]> granicus.if.org Git - python/log
python
19 years agoRemove unused macro, check is done elsewhere
Neal Norwitz [Tue, 6 Dec 2005 06:36:36 +0000 (06:36 +0000)]
Remove unused macro, check is done elsewhere

19 years agoRemove unnecessary extern variable
Neal Norwitz [Mon, 5 Dec 2005 07:16:38 +0000 (07:16 +0000)]
Remove unnecessary extern variable

19 years agomwh spotted a copied error message, make it unique (and correct)
Neal Norwitz [Mon, 5 Dec 2005 01:23:48 +0000 (01:23 +0000)]
mwh spotted a copied error message, make it unique (and correct)

19 years agoFix SF #1373161, r41552 broke test_file on OS X
Neal Norwitz [Mon, 5 Dec 2005 01:17:03 +0000 (01:17 +0000)]
Fix SF #1373161, r41552 broke test_file on OS X

You apparently can seek(0) on sys.stdin on OS X.
But you can't go backwards, so seek(-1).

19 years agoFix bug
Michael W. Hudson [Mon, 5 Dec 2005 00:27:49 +0000 (00:27 +0000)]
Fix bug

1346144 ] Segfaults from unaligned loads in floatobject.c

by using memcpy and not just blinding casting char* to double*.

Thanks to Rune Holm for the report.

19 years ago[Patch #1372995] Add \versionadded
Andrew M. Kuchling [Sun, 4 Dec 2005 20:25:23 +0000 (20:25 +0000)]
[Patch #1372995] Add \versionadded

19 years ago[Bug #1281032] Pass encoding from the input source to pyexpat's ParserCreate()
Andrew M. Kuchling [Sun, 4 Dec 2005 19:53:45 +0000 (19:53 +0000)]
[Bug #1281032] Pass encoding from the input source to pyexpat's ParserCreate()

19 years ago[Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit string...
Andrew M. Kuchling [Sun, 4 Dec 2005 19:11:17 +0000 (19:11 +0000)]
[Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit string, not a Unicode string

19 years ago[Bug #1041501] Fix example
Andrew M. Kuchling [Sun, 4 Dec 2005 17:17:46 +0000 (17:17 +0000)]
[Bug #1041501] Fix example

19 years ago[Patch #1039083] Add 'encoding' parameter to SimpleXMLRPCServer
Andrew M. Kuchling [Sun, 4 Dec 2005 17:13:12 +0000 (17:13 +0000)]
[Patch #1039083] Add 'encoding' parameter to SimpleXMLRPCServer

19 years agoUse boolean name
Andrew M. Kuchling [Sun, 4 Dec 2005 16:45:05 +0000 (16:45 +0000)]
Use boolean name

19 years ago[Patch #893642] Add optional allow_none argument to SimpleXMLRPCServer, CGIXMLRPCRequ...
Andrew M. Kuchling [Sun, 4 Dec 2005 16:34:40 +0000 (16:34 +0000)]
[Patch #893642] Add optional allow_none argument to SimpleXMLRPCServer, CGIXMLRPCRequestHandler

19 years ago[Bug #1372836] Remove unused code
Andrew M. Kuchling [Sun, 4 Dec 2005 16:09:54 +0000 (16:09 +0000)]
[Bug #1372836] Remove unused code

19 years agoAdd placeholder section on old and new-style classes
Andrew M. Kuchling [Sun, 4 Dec 2005 16:07:15 +0000 (16:07 +0000)]
Add placeholder section on old and new-style classes

19 years ago[Bug #792570] Under Windows, socket.read() seems to run into trouble when
Andrew M. Kuchling [Sun, 4 Dec 2005 15:36:57 +0000 (15:36 +0000)]
[Bug #792570] Under Windows, socket.read() seems to run into trouble when
asked to read tens of megabytes of data.  On my Mac, it hits MemoryErrors
when reading around 15Mb in one chunk.  The fix is to read the body in several
parts, not as one big piece.

It would be nice to fix the underlying socket.read() problem, too.

2.4 bugfix candidate.

19 years ago[Bug #1222790] Set reuse-address and close-on-exec flags on the HTTP listening socket
Andrew M. Kuchling [Sun, 4 Dec 2005 15:07:41 +0000 (15:07 +0000)]
[Bug #1222790] Set reuse-address and close-on-exec flags on the HTTP listening socket

19 years agoBug #1368481: python.dir refers to whatsnew23
Georg Brandl [Fri, 2 Dec 2005 13:43:08 +0000 (13:43 +0000)]
Bug #1368481: python.dir refers to whatsnew23

19 years agoset expectations appropriately. ;)
Anthony Baxter [Thu, 1 Dec 2005 02:25:11 +0000 (02:25 +0000)]
set expectations appropriately. ;)

19 years agoFix typo.
Walter Dörwald [Wed, 30 Nov 2005 20:16:17 +0000 (20:16 +0000)]
Fix typo.

19 years agoRemove sorting HOWTO, after converting it to a wiki page at http://wiki.python.org...
Andrew M. Kuchling [Wed, 30 Nov 2005 01:14:48 +0000 (01:14 +0000)]
Remove sorting HOWTO, after converting it to a wiki page at http://wiki.python.org/moin/HowTo/Sorting

19 years agoSilence VS2005 warnings about deprecated functions.
Martin v. Löwis [Tue, 29 Nov 2005 17:09:13 +0000 (17:09 +0000)]
Silence VS2005 warnings about deprecated functions.

19 years agoLimit x86 machine instructions and Win95 support to _M_IX86.
Martin v. Löwis [Tue, 29 Nov 2005 17:08:24 +0000 (17:08 +0000)]
Limit x86 machine instructions and Win95 support to _M_IX86.

19 years agoTest another error case in PyFloat_FromString().
Walter Dörwald [Tue, 29 Nov 2005 15:45:14 +0000 (15:45 +0000)]
Test another error case in PyFloat_FromString().

19 years agofix link
Fred Drake [Tue, 29 Nov 2005 12:40:58 +0000 (12:40 +0000)]
fix link

19 years agoSF#1368827
Fredrik Lundh [Tue, 29 Nov 2005 11:22:29 +0000 (11:22 +0000)]
SF#1368827

bad link in XML-RPC documentation

19 years agoFix leaked reference to None.
Walter Dörwald [Mon, 28 Nov 2005 22:15:56 +0000 (22:15 +0000)]
Fix leaked reference to None.

19 years agoPatch #1350409: Port signal handling to VS 2005.
Martin v. Löwis [Mon, 28 Nov 2005 17:34:23 +0000 (17:34 +0000)]
Patch #1350409: Port signal handling to VS 2005.

19 years agoFix memory leaks
Neal Norwitz [Sun, 27 Nov 2005 20:38:31 +0000 (20:38 +0000)]
Fix memory leaks

19 years agoImprove test coverage. Hope the test_file changes work the same on windows.
Neal Norwitz [Sun, 27 Nov 2005 20:37:43 +0000 (20:37 +0000)]
Improve test coverage.  Hope the test_file changes work the same on windows.

19 years agoPatch #1162825: Support non-ASCII characters in IDLE window titles.
Martin v. Löwis [Sun, 27 Nov 2005 16:59:04 +0000 (16:59 +0000)]
Patch #1162825: Support non-ASCII characters in IDLE window titles.

19 years agobug #1365984: urllib and data: URLs. Problem was that cStringIO objects cannot be...
Georg Brandl [Sat, 26 Nov 2005 16:50:44 +0000 (16:50 +0000)]
bug #1365984: urllib and data: URLs. Problem was that cStringIO objects cannot be assigned attributes on the fly.

19 years agoPatch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis [Sat, 26 Nov 2005 11:38:24 +0000 (11:38 +0000)]
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Also set _XOPEN_SOURCE to 500.
Will backport to 2.4.

19 years agoSF patch #1364946: Add a reference link from the dcoumentation of the encode
Walter Dörwald [Fri, 25 Nov 2005 17:17:12 +0000 (17:17 +0000)]
SF patch #1364946: Add a reference link from the dcoumentation of the encode
and decode methods to the documentation of the default error handlers.

19 years agoSF patch #1364545: test_cmd_line.py relied on english error messages when
Walter Dörwald [Fri, 25 Nov 2005 15:22:10 +0000 (15:22 +0000)]
SF patch #1364545: test_cmd_line.py relied on english error messages when
invoking the Python interpreter (which didn't work on non-english Windows
versions). Check return codes instead.

19 years agoRemove unused _callers member. No need for types, use isinstance
Neal Norwitz [Fri, 25 Nov 2005 03:19:29 +0000 (03:19 +0000)]
Remove unused _callers member. No need for types, use isinstance

19 years agoStop looping to do nothing, just pass.
Neal Norwitz [Fri, 25 Nov 2005 03:18:58 +0000 (03:18 +0000)]
Stop looping to do nothing, just pass.

19 years agoNo need for types, use isinstance
Neal Norwitz [Fri, 25 Nov 2005 03:17:59 +0000 (03:17 +0000)]
No need for types, use isinstance

19 years agoUse sorted() builtin
Neal Norwitz [Fri, 25 Nov 2005 03:16:34 +0000 (03:16 +0000)]
Use sorted() builtin

19 years agoTest is still disabled, but access through public module
Neal Norwitz [Fri, 25 Nov 2005 03:15:49 +0000 (03:15 +0000)]
Test is still disabled, but access through public module

19 years agoGet symtable to limp along, can run compiler/symbols.py. Not saying much, needs...
Neal Norwitz [Fri, 25 Nov 2005 03:14:00 +0000 (03:14 +0000)]
Get symtable to limp along, can run compiler/symbols.py.  Not saying much, needs more work.

19 years agoCleanup a bit more references so test_urllibnet is stable (test_urllib2 is sometimes...
Neal Norwitz [Fri, 25 Nov 2005 02:55:49 +0000 (02:55 +0000)]
Cleanup a bit more references so test_urllibnet is stable (test_urllib2 is sometimes stable, at least in isolation)

19 years agoFix some comment typos
Neal Norwitz [Fri, 25 Nov 2005 02:02:50 +0000 (02:02 +0000)]
Fix some comment typos

19 years agoFix typo in comment.
Neal Norwitz [Thu, 24 Nov 2005 23:28:37 +0000 (23:28 +0000)]
Fix typo in comment.

Delete globals which contain variable information at the end of the test.
This makes the test stable (no reported leaks) when running regrtest -R
to find reference leaks.

19 years agoFix a few more ref leaks. Backport candidate
Neal Norwitz [Thu, 24 Nov 2005 22:09:18 +0000 (22:09 +0000)]
Fix a few more ref leaks.  Backport candidate

19 years agoMove registration of the codec search function to the module scope
Neal Norwitz [Thu, 24 Nov 2005 22:00:56 +0000 (22:00 +0000)]
Move registration of the codec search function to the module scope
so it is only executed once.  Otherwise the same search function is
repeated added to the codec search path when regrtest is run with -R
and leaks are reported.

19 years agomove test into a unittest.TestCase, no functional changes
Neal Norwitz [Thu, 24 Nov 2005 21:58:51 +0000 (21:58 +0000)]
move test into a unittest.TestCase, no functional changes

19 years agobug #1281408: make Py_BuildValue work with unsigned longs and long longs
Georg Brandl [Thu, 24 Nov 2005 15:37:42 +0000 (15:37 +0000)]
bug #1281408: make Py_BuildValue work with unsigned longs and long longs

19 years agoFix main() call
Kurt B. Kaiser [Wed, 23 Nov 2005 15:12:19 +0000 (15:12 +0000)]
Fix main() call

Patch 1315161 sebastien blanchet

19 years agoPrevent threading.Thread.join() from blocking when a previous call raised an
Brett Cannon [Wed, 23 Nov 2005 02:15:50 +0000 (02:15 +0000)]
Prevent threading.Thread.join() from blocking when a previous call raised an
exception (e.g., passing in an illegal argument).

Applies patch #1314396.  Thanks Eric Blossom.

19 years ago1. Made advanced keybinding dialog functional.
Kurt B. Kaiser [Tue, 22 Nov 2005 21:09:37 +0000 (21:09 +0000)]
1. Made advanced keybinding dialog functional.
2. Allow binding of movement keys

19 years agoBug #1357604: os.makedirs handles UNC paths
Georg Brandl [Tue, 22 Nov 2005 20:14:29 +0000 (20:14 +0000)]
Bug #1357604: os.makedirs handles UNC paths

19 years agoAdded example for the ** operator in function calls
Georg Brandl [Tue, 22 Nov 2005 19:50:14 +0000 (19:50 +0000)]
Added example for the ** operator in function calls

19 years agoPatch #1255218: libmultifile.tex: tell what a decoration is
Georg Brandl [Tue, 22 Nov 2005 19:42:45 +0000 (19:42 +0000)]
Patch #1255218: libmultifile.tex: tell what a decoration is

19 years agoBug #869197: setgroups rejects long integer argument
Georg Brandl [Tue, 22 Nov 2005 19:30:31 +0000 (19:30 +0000)]
Bug #869197: setgroups rejects long integer argument

19 years agoBug #1359053: Doc: \Uxxxxxxxx escapes _are_ interpreted in raw unicode strings
Georg Brandl [Tue, 22 Nov 2005 19:23:58 +0000 (19:23 +0000)]
Bug #1359053: Doc: \Uxxxxxxxx escapes _are_ interpreted in raw unicode strings

19 years agoPrefer GNOME browser over mozilla.
Georg Brandl [Tue, 22 Nov 2005 19:18:01 +0000 (19:18 +0000)]
Prefer GNOME browser over mozilla.

19 years agoAdd a note to os.chown that permission constants can be combined
Georg Brandl [Tue, 22 Nov 2005 19:15:27 +0000 (19:15 +0000)]
Add a note to os.chown that permission constants can be combined

19 years ago[Patch #1094164] replaceChild(x,x) ends up removing x of the tree. Add fix from...
Andrew M. Kuchling [Tue, 22 Nov 2005 19:03:16 +0000 (19:03 +0000)]
[Patch #1094164] replaceChild(x,x) ends up removing x of the tree.  Add fix from Felix Rabe and a test case

19 years ago[Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and bugfix...
Andrew M. Kuchling [Tue, 22 Nov 2005 15:32:28 +0000 (15:32 +0000)]
[Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed.  Add tests and bugfix.  Bug reported by John Schmidt; bugfix by Danny Yoo.

19 years agoTypo fix
Andrew M. Kuchling [Tue, 22 Nov 2005 15:14:44 +0000 (15:14 +0000)]
Typo fix

19 years agoAdd generator-expression nodes
Andrew M. Kuchling [Tue, 22 Nov 2005 15:09:07 +0000 (15:09 +0000)]
Add generator-expression nodes

19 years agoAdd comment about updating docs
Andrew M. Kuchling [Tue, 22 Nov 2005 15:01:13 +0000 (15:01 +0000)]
Add comment about updating docs

19 years ago[Bug #449093] FloorDiv AST node type not listed
Andrew M. Kuchling [Tue, 22 Nov 2005 14:52:31 +0000 (14:52 +0000)]
[Bug #449093] FloorDiv AST node type not listed

19 years agoUse optparse instead of getopt for command line options.
Walter Dörwald [Tue, 22 Nov 2005 14:12:21 +0000 (14:12 +0000)]
Use optparse instead of getopt for command line options.

Use "raise instance" instead of "raise class, args".

Modernize the code in other spots (bools, startswith()).

19 years agoAvoid using str as a variable name.
Walter Dörwald [Tue, 22 Nov 2005 12:58:19 +0000 (12:58 +0000)]
Avoid using str as a variable name.

19 years agoimprove test coverage in Python/pystrtod.c and Python/mystrtoul.c.
Neal Norwitz [Tue, 22 Nov 2005 05:17:40 +0000 (05:17 +0000)]
improve test coverage in Python/pystrtod.c and Python/mystrtoul.c.

19 years agoFix typo and update comment obsoleted by 'syntax' patch
Kurt B. Kaiser [Tue, 22 Nov 2005 02:17:10 +0000 (02:17 +0000)]
Fix typo and update comment obsoleted by 'syntax' patch

19 years agoDefault two second delay on attribute pop-up, less noisy interface.
Kurt B. Kaiser [Tue, 22 Nov 2005 01:52:22 +0000 (01:52 +0000)]
Default two second delay on attribute pop-up, less noisy interface.
(Opens immediately if TAB is typed after '.')

19 years agoFollowing 'syntax' patch, accelerator keys in menus weren't being
Kurt B. Kaiser [Tue, 22 Nov 2005 01:47:14 +0000 (01:47 +0000)]
Following 'syntax' patch, accelerator keys in menus weren't being
updated after a keyset change.  Also, formatted ApplyKeyBindings()

19 years agoUse basestring instead of type.StringType for checking whether a input
Walter Dörwald [Mon, 21 Nov 2005 19:10:07 +0000 (19:10 +0000)]
Use basestring instead of type.StringType for checking whether a input
or output file is a file name instead of a file object. This enables
unicode file names as arguments to uu.encode() and uu.decode().

19 years agoAdd a test for uu.encode() that passed filenames as
Walter Dörwald [Mon, 21 Nov 2005 18:55:56 +0000 (18:55 +0000)]
Add a test for uu.encode() that passed filenames as
in_file and out_file.

19 years agoAdd a rudimentary test for the platform module that at least calls each
Walter Dörwald [Mon, 21 Nov 2005 17:48:12 +0000 (17:48 +0000)]
Add a rudimentary test for the platform module that at least calls each
documented function once.

19 years agoFix typo.
Walter Dörwald [Mon, 21 Nov 2005 17:01:27 +0000 (17:01 +0000)]
Fix typo.

19 years agoEnable optional "const" argument to _New routines.
Jack Jansen [Mon, 21 Nov 2005 13:24:25 +0000 (13:24 +0000)]
Enable optional "const" argument to _New routines.

19 years agoFix a few more memory leaks
Neal Norwitz [Sun, 20 Nov 2005 23:58:38 +0000 (23:58 +0000)]
Fix a few more memory leaks

Document more info about the benefits of configuring without
pymalloc when running valgrind

19 years agoRemove import string and use string methods
Neal Norwitz [Sun, 20 Nov 2005 00:24:18 +0000 (00:24 +0000)]
Remove import string and use string methods

19 years agoLast batch of ref leaks in new AST code.
Neal Norwitz [Sat, 19 Nov 2005 23:58:29 +0000 (23:58 +0000)]
Last batch of ref leaks in new AST code.
Also converted a bunch of assert(0) to SystemError's.

There are still printfs, etc that need to be cleaned up.

19 years agoFix up incomplete sentence
Andrew M. Kuchling [Sat, 19 Nov 2005 18:43:38 +0000 (18:43 +0000)]
Fix up incomplete sentence

19 years agoMerge IDLE-syntax-branch r39668:41449 into trunk
Kurt B. Kaiser [Fri, 18 Nov 2005 22:05:48 +0000 (22:05 +0000)]
Merge IDLE-syntax-branch r39668:41449 into trunk

A    idlelib/AutoCompleteWindow.py
A    idlelib/AutoComplete.py
A    idlelib/HyperParser.py
M    idlelib/PyShell.py
M    idlelib/ParenMatch.py
M    idlelib/configDialog.py
M    idlelib/EditorWindow.py
M    idlelib/PyParse.py
M    idlelib/CallTips.py
M    idlelib/CallTipWindow.py
M    idlelib/run.py
M    idlelib/config-extensions.def
A    idlelib/MultiCall.py

19 years agoIncrease code coverage in Python/structmember.c from 33% to 40%
Walter Dörwald [Fri, 18 Nov 2005 16:51:05 +0000 (16:51 +0000)]
Increase code coverage in Python/structmember.c from 33% to 40%
(by forcing a call to the listmember() function).

19 years agoAdd tests to increase code coverage in Python/codecs.c and Python/exceptions.c.
Walter Dörwald [Thu, 17 Nov 2005 18:51:34 +0000 (18:51 +0000)]
Add tests to increase code coverage in Python/codecs.c and Python/exceptions.c.

19 years agodon't get me started about distutils...
Skip Montanaro [Thu, 17 Nov 2005 18:31:09 +0000 (18:31 +0000)]
don't get me started about distutils...

19 years agonote build workaround for Sol10/gcc 3.4
Skip Montanaro [Thu, 17 Nov 2005 18:19:39 +0000 (18:19 +0000)]
note build workaround for Sol10/gcc 3.4

19 years agoFix typo in comment
Walter Dörwald [Thu, 17 Nov 2005 09:36:06 +0000 (09:36 +0000)]
Fix typo in comment
(reported on the pydotorg mailing list).

19 years agoAdd tests for various error cases and for readbuffer_encode() and
Walter Dörwald [Thu, 17 Nov 2005 08:52:34 +0000 (08:52 +0000)]
Add tests for various error cases and for readbuffer_encode() and
charbuffer_encode(). This increases code coverage in Modules/_codecsmodule.c
from 83% to 95%.

19 years agoCorrectly handle identifiers for anonymous scopes and align genexpr name with symtable.c
Nick Coghlan [Wed, 16 Nov 2005 12:46:55 +0000 (12:46 +0000)]
Correctly handle identifiers for anonymous scopes and align genexpr name with symtable.c

19 years agoBring handling of genexpr in line with other anonymous scope names
Nick Coghlan [Wed, 16 Nov 2005 12:45:24 +0000 (12:45 +0000)]
Bring handling of genexpr in line with other anonymous scope names

19 years agoadd more doc
Neal Norwitz [Wed, 16 Nov 2005 05:49:04 +0000 (05:49 +0000)]
add more doc

19 years agoFix some more memory leaks.
Neal Norwitz [Wed, 16 Nov 2005 05:12:59 +0000 (05:12 +0000)]
Fix some more memory leaks.
Call error_ret() in decode_str().  It was called in some other places,
but seemed inconsistent.  It is safe to call PyTokenizer_Free() after
calling error_ret().

19 years agoversion was not initialized properly
Neal Norwitz [Wed, 16 Nov 2005 05:04:51 +0000 (05:04 +0000)]
version was not initialized properly

19 years agoBetter indentation after first line of string continuation.
Kurt B. Kaiser [Tue, 15 Nov 2005 07:20:06 +0000 (07:20 +0000)]
Better indentation after first line of string continuation.
IDLEfork Patch 681992, Noam Raphael

19 years agoFix another memory leak or two (one real, one potential)
Neal Norwitz [Tue, 15 Nov 2005 07:17:53 +0000 (07:17 +0000)]
Fix another memory leak or two (one real, one potential)

19 years agoAdd a note about how to do the memory deallocation a bit.
Neal Norwitz [Tue, 15 Nov 2005 05:09:44 +0000 (05:09 +0000)]
Add a note about how to do the memory deallocation a bit.
This needs a lot of work.

19 years agoFix a whole bunch of potential memory leaks (and some real ones too)
Neal Norwitz [Tue, 15 Nov 2005 05:04:31 +0000 (05:04 +0000)]
Fix a whole bunch of potential memory leaks (and some real ones too)
in error conditions.

19 years agoPrevent unlikely memory leak, tok should always be freed when parsetok() returns
Neal Norwitz [Tue, 15 Nov 2005 04:54:23 +0000 (04:54 +0000)]
Prevent unlikely memory leak, tok should always be freed when parsetok() returns

19 years agoThou shalt not lie, there are really 5 types now
Neal Norwitz [Tue, 15 Nov 2005 04:52:16 +0000 (04:52 +0000)]
Thou shalt not lie, there are really 5 types now

19 years agoConvert all internal errors from Exception to SystemError
Neal Norwitz [Mon, 14 Nov 2005 04:25:03 +0000 (04:25 +0000)]
Convert all internal errors from Exception to SystemError
Remove an abort() and let a SystemError be raised.

19 years agoUse convenience function
Neal Norwitz [Mon, 14 Nov 2005 00:47:57 +0000 (00:47 +0000)]
Use convenience function

19 years agoFix memory leak with bad generator expression
Neal Norwitz [Mon, 14 Nov 2005 00:18:03 +0000 (00:18 +0000)]
Fix memory leak with bad generator expression

19 years agoremove useless debug print helper. fix a couple of exceptions
Neal Norwitz [Sun, 13 Nov 2005 21:17:28 +0000 (21:17 +0000)]
remove useless debug print helper.  fix a couple of exceptions