Guido van Rossum
fd53fd62c9
Fixes by Ero Carrera to remove PyString_. I had to massage a few problems away.
...
Also, this now leaks a bit -- that's for tomorrow's sprint day.
2007-08-24 04:05:13 +00:00
Guido van Rossum
eda12ecc5f
Patch by Ero Carrera to get rid of PyString in timemodule.c.
2007-08-24 03:51:52 +00:00
Guido van Rossum
28bbe4252e
math.floor(<int>) now returns the argument,
...
so the overflow test no longer matters.
2007-08-24 03:46:30 +00:00
Neal Norwitz
9cfc62c44f
cPickle was removed
2007-08-24 02:51:04 +00:00
Guido van Rossum
15d3d04547
Before calling _PyType_Lookup() the type needs to be initialized.
2007-08-24 02:02:45 +00:00
Neal Norwitz
0d94203cc1
Use unicode for the errno.errorcode names
2007-08-24 00:10:00 +00:00
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