Commit Graph

34882 Commits

Author SHA1 Message Date
Neal Norwitz 9af3ae42f8 Return unicode for a key name from a wide character 2007-08-24 00:06:36 +00:00
Neal Norwitz c1786ea1dc Use UTF-8 for a docstring that contains non-ASCII chars. 2007-08-23 23:58:43 +00:00
Guido van Rossum 10ab4aeb86 Patch by Keir Mierle so that sets can be compared to other objects that know
how to compare themselves to sets.  (Prep work for making dict views more
set-like.)
2007-08-23 23:57:24 +00:00
Guido van Rossum 928115af72 CFunctions' doc strings should be Unicode. 2007-08-23 23:35:15 +00:00
Guido van Rossum 13e05de9ef Fix math.ceil() and math.floor() to fall back to __ceil__ and __floor__
methods (respectively).  With Keir Mierle.
2007-08-23 22:56:55 +00:00
Guido van Rossum 2fa33db12b Finish the work on __round__ and __trunc__.
With Alex Martelli and Keir Mierle.
2007-08-23 22:07:24 +00:00
Neal Norwitz 0f3cff58b2 Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings. 2007-08-23 22:06:07 +00:00
Neal Norwitz 53cbdaa84c Convert a bunch of constant strings in C to unicode. 2007-08-23 21:42:55 +00:00
Neal Norwitz d6d2f2f939 Use unicode. 2007-08-23 20:28:10 +00:00
Guido van Rossum fe096d2e2d Remove unused variable. 2007-08-23 18:31:24 +00:00
Neal Norwitz f9e115abf5 Use a newer API for creating the module so we don't have to create
the docstring manually.  Saves code and a call to PyString_FromString.

(There are still more calls to PyString_FromString.)
2007-08-23 18:08:11 +00:00
Neal Norwitz 56dc955049 Use a newer API for creating the module so we don't have to create
the docstring manually.  Saves code and a call to PyString_FromString.
2007-08-23 17:55:33 +00:00
Gregory P. Smith 361ed15383 Require strict bytes objects for all bsddb.db input values. 2007-08-23 07:32:27 +00:00
Gregory P. Smith e5a8dc684c docstring cut n paste correction 2007-08-23 06:37:46 +00:00
Kurt B. Kaiser 9a3b014f31 os.getcwd() is returning str8; sys.path items are str. 2007-08-23 06:17:40 +00:00
Kurt B. Kaiser e071277939 Conform to py3k dict.{keys, items, values} with some advice from 2b3
M    idlelib/configHandler.py
M    idlelib/ColorDelegator.py
M    idlelib/Delegator.py
M    idlelib/ObjectBrowser.py
M    idlelib/PyShell.py
M    idlelib/Debugger.py
M    idlelib/configDialog.py
M    idlelib/StackViewer.py
M    idlelib/keybindingDialog.py
M    idlelib/tabpage.py
M    idlelib/EditorWindow.py
M    idlelib/WindowList.py
M    idlelib/RemoteDebugger.py
M    idlelib/dynOptionMenuWidget.py
2007-08-23 05:25:55 +00:00
Guido van Rossum 460add4500 Correction to the xmlrpc docs by John Reese and Jacques Frechet. 2007-08-23 02:13:35 +00:00
Kurt B. Kaiser ad66742e34 Fix raise with 2to3
M    idlelib/configHandler.py
M    idlelib/tabpage.py
M    idlelib/EditorWindow.py
M    idlelib/rpc.py
M    idlelib/IOBinding.py
M    idlelib/RemoteDebugger.py
M    idlelib/TreeWidget.py
2007-08-23 01:06:15 +00:00
Collin Winter e45be28be6 Convert raise statements in Lib/plat-{mac,os2emx}. 2007-08-23 00:01:55 +00:00
Guido van Rossum cfe02a498b Fixes by John Reese and Jacques Frechet that make test_xmlrpc pass.
(Note that test_xmlrpc isn't touched by the fixes!)  There were two
separate issues; (a) BaseHTTPServer was using a TextIOWrapper which
was swallowing some of the POST body; (b) the getheaders() API was
changed but (due to integration of 2.6 code) the code wasn't modified.
2007-08-22 23:45:42 +00:00
Guido van Rossum 2523621693 Change the error reporting when an invalid string is encountered to avoid
reporting s'x' as the input (which is a lie).
2007-08-22 23:28:23 +00:00
Alex Martelli ae211f9abf Implement the round functionality for PEP 3141, and add tests for it. 2007-08-22 23:21:33 +00:00
Collin Winter 1dd46a048f Convert raise statements in Mac/. 2007-08-22 23:05:23 +00:00
Collin Winter a817e5894b Convert raise statements in Tools/. 2007-08-22 23:05:06 +00:00
Kurt B. Kaiser 2d7f6a079d Switch to absolute imports to support direct execution of modules. Many
IDLE modules have main() or test() functions which are essential for testing.


M    idlelib/AutoCompleteWindow.py
M    idlelib/UndoDelegator.py
M    idlelib/Bindings.py
M    idlelib/AutoComplete.py
M    idlelib/configHandler.py
M    idlelib/HyperParser.py
M    idlelib/ColorDelegator.py
M    idlelib/ObjectBrowser.py
M    idlelib/ZoomHeight.py
M    idlelib/PyShell.py
M    idlelib/ParenMatch.py
M    idlelib/Debugger.py
M    idlelib/configDialog.py
M    idlelib/StackViewer.py
M    idlelib/ReplaceDialog.py
M    idlelib/ScriptBinding.py
M    idlelib/GrepDialog.py
M    idlelib/EditorWindow.py
M    idlelib/FormatParagraph.py
M    idlelib/OutputWindow.py
M    idlelib/aboutDialog.py
M    idlelib/IdleHistory.py
M    idlelib/PathBrowser.py
M    idlelib/ClassBrowser.py
M    idlelib/CallTips.py
M    idlelib/FileList.py
M    idlelib/idle.py
M    idlelib/CodeContext.py
M    idlelib/SearchDialog.py
M    idlelib/RemoteObjectBrowser.py
M    idlelib/RemoteDebugger.py
M    idlelib/TreeWidget.py
M    idlelib/run.py
M    idlelib/Percolator.py
M    idlelib/macosxSupport.py
2007-08-22 23:01:33 +00:00
Alex Martelli 86d8b3497f Implement the trunc builtin for PEP 3141 2007-08-22 22:39:42 +00:00
Guido van Rossum a62b45c95d Use python -E instead of undef PYTHONPATH. 2007-08-22 21:46:00 +00:00
Collin Winter a65e94c1bf Convert raise statements in bsddb. 2007-08-22 21:45:20 +00:00
Collin Winter 865ea89201 Fix raise statements in hotshot. 2007-08-22 21:45:02 +00:00
Kurt B. Kaiser e405037abc Fix typo in comment 2007-08-22 21:38:31 +00:00
Kurt B. Kaiser 7a4dbaf837 Replace file() with open() 2007-08-22 21:34:28 +00:00
Kurt B. Kaiser 2d726df26e Use buffer of type 'bytes' to accumulate from socket. 2007-08-22 21:33:27 +00:00
Gregory P. Smith e20a2c1397 stop leaving log.0000001 __db.00* and xxx.db turds in developer
sandboxes when bsddb3 tests are run.
2007-08-22 21:28:15 +00:00
Collin Winter d5a5f5d32e Patch #1774414: make it possible to use SVK to develop Python. 2007-08-22 19:45:07 +00:00
Kurt B. Kaiser 4d9620a687 Fix bug introduced at r54854 to mass replace string fcns with methods :-) 2007-08-22 19:41:43 +00:00
Gregory P. Smith 0e6012cbf3 Eat some low hanging fruit... let the test suite run. 2007-08-22 19:23:36 +00:00
Kurt B. Kaiser ea03c11655 Fix some debugging print statements 2007-08-22 18:57:50 +00:00
Guido van Rossum b7f136e73e Make IOBase (and hence all other classes in io.py) use ABCMeta as its metaclass,
so you can use their class .register() method to register virtual subclasses.
2007-08-22 18:14:10 +00:00
Kurt B. Kaiser bfc672b169 Remove some old comments adequately covered in the code. 2007-08-22 18:10:19 +00:00
Kurt B. Kaiser 3a4e24b999 1. Fix File Open: don't encode filename to UTF-8 bytes
2. Get test() code working.
2007-08-22 18:06:14 +00:00
Guido van Rossum 23cfc9845c Convert sunaudio.py to bytes. (It has no unit test of its own!)
Fix test_ossaudiodev by closing the dsp properly (it can't be opened
multiple times on my box).
2007-08-21 22:49:52 +00:00
Kurt B. Kaiser 003b09883e eliminate "from ... import *" in a function. 2007-08-21 19:54:18 +00:00
Lars Gustäbel 3741effcf8 Fall back to 'ascii' encoding if sys.getfilesystemencoding() returns
None. Remove encoding and errors argument from pax create methods in
TarInfo, pax always uses UTF-8.
Adapt the documentation and tests to the new string/unicode concept.
2007-08-21 12:17:05 +00:00
Guido van Rossum 4566c71e0e Fix fallout from making __private variables in threading.py _protected.
(Maybe we need to pick less obvious names for some of those?)
2007-08-21 03:36:47 +00:00
Guido van Rossum 360f2f8be3 Make runtests.py a little more versatile: support -x, and arbitrary flags
to be passed to regrtest.py.  Also add -h for help, and summarize the
BAD/GOOD/SKIPPED files at the end.
2007-08-20 20:17:57 +00:00
Guido van Rossum c1e315d2b0 Rename __whatever variables defined by ABCMeta to _abc_whatever, so as
to simplify legitimate use of these.
2007-08-20 19:29:24 +00:00
Guido van Rossum d06489945f Get rid of all __private variables and methods in the threading module.
These have mostly just gotten in the way of legitimate unanticipated use.
2007-08-20 19:25:41 +00:00
Guido van Rossum 61e21b52f1 Merged revisions 57152-57220 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r57155 | brett.cannon | 2007-08-17 11:51:57 -0700 (Fri, 17 Aug 2007) | 2 lines

  Clarify the comment about setting the PYTHON variable for the Doc Makefile.
........
  r57156 | brett.cannon | 2007-08-17 11:59:58 -0700 (Fri, 17 Aug 2007) | 3 lines

  Remove news entry for test.test_support.guard_warnings_filter as it has been
  removed.
........
  r57158 | facundo.batista | 2007-08-17 12:16:44 -0700 (Fri, 17 Aug 2007) | 9 lines


  Added a flag (_send_traceback_header) to the SimpleXMLRPCServer class
  that allows sending back exception/stack trace information about
  internal server errors (this flag defaults to False to avoid sending
  such information unless explicitly enabled).  Added tests to verify
  behavior of this new feature (these tests are skipped on win32 because
  of problems with WSAEWOULDBLOCK). Renamed HTTPTestCase to
  SimpleServerTestCase. [GSoC - Alan McIntyre]
........
  r57160 | brett.cannon | 2007-08-17 13:16:15 -0700 (Fri, 17 Aug 2007) | 2 lines

  Make test_warnings re-entrant.
........
  r57175 | georg.brandl | 2007-08-17 23:05:56 -0700 (Fri, 17 Aug 2007) | 2 lines

  Fix PDB command descriptions.
........
  r57182 | brett.cannon | 2007-08-18 11:30:36 -0700 (Sat, 18 Aug 2007) | 3 lines

  Remove Mikael as the maintainer of BeOS at his request.  With no maintainer
  should the port be deprecated in 2.6?
........
  r57199 | georg.brandl | 2007-08-19 11:43:50 -0700 (Sun, 19 Aug 2007) | 2 lines

  Fix stray backticks.
........
  r57211 | hyeshik.chang | 2007-08-19 23:49:18 -0700 (Sun, 19 Aug 2007) | 2 lines

  Add cheot-ga-keut composed make-up sequence support in EUC-KR codec.
........
  r57216 | guido.van.rossum | 2007-08-20 08:18:04 -0700 (Mon, 20 Aug 2007) | 4 lines

  Add a hack (originally devised in a slightly different form by Thomas Wouters)
  to prevent spurious tracebacks when a daemon thread's cleanup happens to wake
  up when the world around it has already been destroyed.
........
2007-08-20 19:06:03 +00:00
Jeremy Hylton 7d6068e6c9 Remove note about compatibility layer, as the compatibility layer was removed. 2007-08-20 12:58:48 +00:00
Travis E. Oliphant b803c517bf Fix memory leak in arraymodule.c and respond to a few comments by nnorwitz. 2007-08-20 07:16:33 +00:00