]> granicus.if.org Git - python/log
python
19 years agomaintain support for older python versions in this module so that it
Gregory P. Smith [Mon, 30 Jan 2006 00:22:08 +0000 (00:22 +0000)]
maintain support for older python versions in this module so that it
is ok for a standalone pybsddb source dist for use with <= 2.3.

19 years agofix test import for use in standalone pybsddb project bsddb3 module as well
Gregory P. Smith [Sun, 29 Jan 2006 23:54:38 +0000 (23:54 +0000)]
fix test import for use in standalone pybsddb project bsddb3 module as well
as python builtin bsddb.

19 years agoWhitespace normalization.
Tim Peters [Sun, 29 Jan 2006 22:50:26 +0000 (22:50 +0000)]
Whitespace normalization.

19 years agoTry a number of ports, in case 9020 is already in use.
Martin v. Löwis [Sun, 29 Jan 2006 20:10:38 +0000 (20:10 +0000)]
Try a number of ports, in case 9020 is already in use.

19 years agoExplicitly close the server socket.
Martin v. Löwis [Sun, 29 Jan 2006 19:55:18 +0000 (19:55 +0000)]
Explicitly close the server socket.

19 years agoadd bsddb.db.DBEnv.set_tx_timestamp mention
Gregory P. Smith [Sun, 29 Jan 2006 19:46:23 +0000 (19:46 +0000)]
add bsddb.db.DBEnv.set_tx_timestamp mention

19 years agoDelete aclocal.m4, and require autoconf 2.59, fixing
Martin v. Löwis [Sun, 29 Jan 2006 09:53:44 +0000 (09:53 +0000)]
Delete aclocal.m4, and require autoconf 2.59, fixing
#811160 in a different way.

19 years agoWork around a Solaris peculiarity that caused test_pty to sometimes fail: a
Thomas Wouters [Sat, 28 Jan 2006 12:05:54 +0000 (12:05 +0000)]
Work around a Solaris peculiarity that caused test_pty to sometimes fail: a
tty opened by os.openpty() isn't always a tty according to os.isatty(), when
it's tested inside the process that opened it. Doesn't affect actual
functionality, as using a tty this way is rarely, if ever, useful. Ignoring
the failure allows the test for actual functionality to continue.

Will backport to 2.4-maint.

19 years agoImproved handling of syntax errors.
Jeremy Hylton [Fri, 27 Jan 2006 15:18:39 +0000 (15:18 +0000)]
Improved handling of syntax errors.

Expand set of errors caught in set_context().  Some new errors, some
old error messages changed for consistency.

Fixed error checking in generator expression code.  The first set of
tests were impossible condition given the grammar.  In general, the
ast code uses REQ() for those sanity checks.

Fix some error handling for augmented assignments.  As comments in the
code explain, set_context() ought to work here, but I got unexpected
crashes when I tried it.  Should come back to this.

Add note to Grammar that yield expression is a special case.

Add doctest cases for SyntaxErrors raised by ast.c.

19 years agoAdd wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVER
Gregory P. Smith [Fri, 27 Jan 2006 07:06:15 +0000 (07:06 +0000)]
Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVER
(test cases and dbobj wrapping)

19 years agoAdd wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVER
Gregory P. Smith [Fri, 27 Jan 2006 07:05:40 +0000 (07:05 +0000)]
Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVER

19 years agoFix PyGC_Collect() to be exported from the built DLL on Windows. (Fix given
Barry Warsaw [Thu, 26 Jan 2006 18:59:06 +0000 (18:59 +0000)]
Fix PyGC_Collect() to be exported from the built DLL on Windows.  (Fix given
by Matt Messier).

19 years agoThere was a race condition where the connector would try to connect
Neal Norwitz [Wed, 25 Jan 2006 08:39:35 +0000 (08:39 +0000)]
There was a race condition where the connector would try to connect
before the listener was ready (on gentoo x86 buildslave).  This
caused the listener to not exit normally since nobody connected to it
(waited in accept()).  The exception was raised in the other thread
and the test failed.

This fix doesn't completely eliminate the race, but should make it
near impossible to trigger.  Hopefully it's good enough.

19 years agoRemove generated test db files
Neal Norwitz [Wed, 25 Jan 2006 07:20:47 +0000 (07:20 +0000)]
Remove generated test db files

19 years agomwh pointed out _Filemodule.c is generated. So to fix the memory leak
Neal Norwitz [Wed, 25 Jan 2006 05:42:22 +0000 (05:42 +0000)]
mwh pointed out _Filemodule.c is generated. So to fix the memory leak
this file (the source) must be fixed.

Why isn't there a comment at the top saying the file is generated and
why are both the source and generated file checked in?  Bootstrap problem?

Will backport.

19 years agoFix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.
Neal Norwitz [Wed, 25 Jan 2006 05:21:55 +0000 (05:21 +0000)]
Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.

Will backport.

19 years agotest_rude_shutdown(): Rewrote to use proper thread
Tim Peters [Tue, 24 Jan 2006 22:44:54 +0000 (22:44 +0000)]
test_rude_shutdown():  Rewrote to use proper thread
synchronization and termination.

19 years agoWhitespace normalization.
Tim Peters [Tue, 24 Jan 2006 22:44:08 +0000 (22:44 +0000)]
Whitespace normalization.

19 years agonote the bsddb extension module changes.
Gregory P. Smith [Tue, 24 Jan 2006 20:09:45 +0000 (20:09 +0000)]
note the bsddb extension module changes.

19 years agocommits sourceforge patch #1407992 by neil.norwitz.
Gregory P. Smith [Tue, 24 Jan 2006 19:55:02 +0000 (19:55 +0000)]
commits sourceforge patch #1407992 by neil.norwitz.

this fixes the bsddb db associate tests when compiled against
BerkeleyDB 3.3 thru 4.1.  4.2 thru 4.4 already passed and still
pass.

19 years agomodule list utility
Fredrik Lundh [Tue, 24 Jan 2006 16:16:19 +0000 (16:16 +0000)]
module list utility

19 years agoPatch #1349118: urllib2 now supports user:pass@ style proxy
Martin v. Löwis [Tue, 24 Jan 2006 15:51:21 +0000 (15:51 +0000)]
Patch #1349118: urllib2 now supports user:pass@ style proxy
specifications, raises IOErrors when proxies for unsupported protocols
are defined, and uses the https proxy on https redirections.

19 years agoSupport for BerkeleyDB 4.4 (tested against 4.4.20 as well as all the
Gregory P. Smith [Tue, 24 Jan 2006 09:46:48 +0000 (09:46 +0000)]
Support for BerkeleyDB 4.4 (tested against 4.4.20 as well as all the
way back thru 3.2).  This should be backported to the release24-maint
branch.

19 years agoFix SF #1412837, compile failed with Watcom compiler
Neal Norwitz [Tue, 24 Jan 2006 06:06:11 +0000 (06:06 +0000)]
Fix SF #1412837, compile failed with Watcom compiler

19 years agoRepaired new test failures on Windows:
Tim Peters [Mon, 23 Jan 2006 22:19:24 +0000 (22:19 +0000)]
Repaired new test failures on Windows:

- The path separator isn't "/" on Windows.

- Leaving behind a read-only file causes cascades
  of bogus failures on Windows.

19 years agoCorrect misspellings.
Georg Brandl [Mon, 23 Jan 2006 22:00:17 +0000 (22:00 +0000)]
Correct misspellings.

19 years agoAdd markup to new section in codecs docs
Georg Brandl [Mon, 23 Jan 2006 21:33:48 +0000 (21:33 +0000)]
Add markup to new section in codecs docs

19 years agoCorrect typos and markup errors (Raymond, thanks for texcheck)
Georg Brandl [Mon, 23 Jan 2006 21:33:03 +0000 (21:33 +0000)]
Correct typos and markup errors (Raymond, thanks for texcheck)

19 years agoAdd two missing markup tags.
Georg Brandl [Mon, 23 Jan 2006 21:31:00 +0000 (21:31 +0000)]
Add two missing markup tags.

19 years agoWhitespace normalization.
Tim Peters [Mon, 23 Jan 2006 21:28:42 +0000 (21:28 +0000)]
Whitespace normalization.

19 years agoAdd \versionadded for sftp scheme
Georg Brandl [Mon, 23 Jan 2006 20:49:24 +0000 (20:49 +0000)]
Add \versionadded for sftp scheme

19 years agoDisable this test until I can test on big-endian machines and get passing
Neal Norwitz [Mon, 23 Jan 2006 08:48:03 +0000 (08:48 +0000)]
Disable this test until I can test on big-endian machines and get passing

19 years agoTest zipimporter a bit more. Also get working with -R :: option for finding ref...
Neal Norwitz [Mon, 23 Jan 2006 07:52:13 +0000 (07:52 +0000)]
Test zipimporter a bit more.  Also get working with -R :: option for finding ref leaks

19 years agoConvenience function to remove a possibly non-existant file
Neal Norwitz [Mon, 23 Jan 2006 07:51:27 +0000 (07:51 +0000)]
Convenience function to remove a possibly non-existant file

19 years agoTest getsignal() and some error conditions
Neal Norwitz [Mon, 23 Jan 2006 07:50:06 +0000 (07:50 +0000)]
Test getsignal() and some error conditions

19 years agoUse unittest and make sure a few other cases don't crash
Neal Norwitz [Mon, 23 Jan 2006 07:49:36 +0000 (07:49 +0000)]
Use unittest and make sure a few other cases don't crash

19 years agoThis should fix a mem leak on the Mac. Brett tested it.
Neal Norwitz [Mon, 23 Jan 2006 07:25:29 +0000 (07:25 +0000)]
This should fix a mem leak on the Mac.  Brett tested it.

19 years agoAnother typo.
Georg Brandl [Sun, 22 Jan 2006 20:47:26 +0000 (20:47 +0000)]
Another typo.

19 years agotypo
Georg Brandl [Sun, 22 Jan 2006 19:38:05 +0000 (19:38 +0000)]
typo

19 years agoCorrect several typos in libos.tex. Bug #1412227.
Georg Brandl [Sun, 22 Jan 2006 19:34:59 +0000 (19:34 +0000)]
Correct several typos in libos.tex. Bug #1412227.

19 years agoTypo
Georg Brandl [Sun, 22 Jan 2006 16:11:01 +0000 (16:11 +0000)]
Typo

19 years agoRemove reference to Grail and Netscape 2.0 from cgi docs.
Georg Brandl [Sun, 22 Jan 2006 13:49:21 +0000 (13:49 +0000)]
Remove reference to Grail and Netscape 2.0 from cgi docs.

19 years agoMisc. changes, including documenting the ability to specify a class attribute in...
Vinay Sajip [Sun, 22 Jan 2006 11:58:39 +0000 (11:58 +0000)]
Misc. changes, including documenting the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.

19 years agoFix typo
Walter Dörwald [Sat, 21 Jan 2006 10:50:39 +0000 (10:50 +0000)]
Fix typo

19 years agoBug #902075: urllib2 now handles "host:port" proxy specifications
Georg Brandl [Sat, 21 Jan 2006 07:20:56 +0000 (07:20 +0000)]
Bug #902075: urllib2 now handles "host:port" proxy specifications

Can/should this be backported?

19 years ago_compile(): raise an exception if downcasting to SRE_CODE
Tim Peters [Sat, 21 Jan 2006 02:47:53 +0000 (02:47 +0000)]
_compile():  raise an exception if downcasting to SRE_CODE
loses information:

    OverflowError: regular expression code size limit exceeded

Otherwise the compiled code is gibberish, possibly leading at
least to wrong results or (as reported on c.l.py) internal
sre errors at match time.

I'm not sure how to test this.  SRE_CODE is a 2-byte type on
my box, and it's easy to create a regexp that causes the new
exception to trigger here.  But it may be a 4-byte type on
other boxes, and creating a regexp large enough to trigger
problems there would be pretty crazy.

Bugfix candidate.

19 years agoWhitespace normalization.
Tim Peters [Fri, 20 Jan 2006 23:40:56 +0000 (23:40 +0000)]
Whitespace normalization.

19 years agoPatch #1410998: remove "DOS" from os.py docstring
Georg Brandl [Fri, 20 Jan 2006 21:36:02 +0000 (21:36 +0000)]
Patch #1410998: remove "DOS" from os.py docstring

19 years agoPatch #1410783: add documentation links for static/classmethod
Georg Brandl [Fri, 20 Jan 2006 21:33:54 +0000 (21:33 +0000)]
Patch #1410783: add documentation links for static/classmethod

19 years agoDocument supported schemes.
Georg Brandl [Fri, 20 Jan 2006 21:17:01 +0000 (21:17 +0000)]
Document supported schemes.

19 years agoTry to resolve the remaining webbrowser issues (backgrounding, local urls)
Georg Brandl [Fri, 20 Jan 2006 21:03:35 +0000 (21:03 +0000)]
Try to resolve the remaining webbrowser issues (backgrounding, local urls)

19 years agoWhitespace normalization.
Tim Peters [Fri, 20 Jan 2006 20:03:24 +0000 (20:03 +0000)]
Whitespace normalization.

19 years agoAdded a test for the ability to specify a class attribute in Formatter configuration...
Vinay Sajip [Fri, 20 Jan 2006 18:29:36 +0000 (18:29 +0000)]
Added a test for the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.

19 years agoAdded a test for the ability to specify a class attribute in Formatter configuration...
Vinay Sajip [Fri, 20 Jan 2006 18:28:59 +0000 (18:28 +0000)]
Added a test for the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.

19 years agoAdded the ability to specify a class attribute in Formatter configuration. Contribute...
Vinay Sajip [Fri, 20 Jan 2006 18:28:03 +0000 (18:28 +0000)]
Added the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.

19 years agoPatch #1388073: Make unittest.TestCase easier to subclass
Georg Brandl [Fri, 20 Jan 2006 17:55:00 +0000 (17:55 +0000)]
Patch #1388073: Make unittest.TestCase easier to subclass

19 years agotypo
Georg Brandl [Fri, 20 Jan 2006 17:53:27 +0000 (17:53 +0000)]
typo

19 years agoAdd markup to a "Python Standard Library" doc reference I added for bug 839585.
Georg Brandl [Fri, 20 Jan 2006 17:51:37 +0000 (17:51 +0000)]
Add markup to a "Python Standard Library" doc reference I added for bug 839585.

19 years agoCheckin the test of patch #1400181.
Georg Brandl [Fri, 20 Jan 2006 17:48:54 +0000 (17:48 +0000)]
Checkin the test of patch #1400181.

19 years agoBug #1407902: Added support for sftp:// URIs to urlparse.
Georg Brandl [Fri, 20 Jan 2006 17:24:23 +0000 (17:24 +0000)]
Bug #1407902: Added support for sftp:// URIs to urlparse.

19 years agoReadd bug report note.
Georg Brandl [Fri, 20 Jan 2006 13:38:26 +0000 (13:38 +0000)]
Readd bug report note.

19 years agoBug #1402224: Add warning to dl docs about crashes.
Georg Brandl [Fri, 20 Jan 2006 09:34:29 +0000 (09:34 +0000)]
Bug #1402224: Add warning to dl docs about crashes.

19 years agoBug #1396471: Document that Windows' ftell() can return invalid
Georg Brandl [Fri, 20 Jan 2006 09:14:36 +0000 (09:14 +0000)]
Bug #1396471: Document that Windows' ftell() can return invalid
values for text files with UNIX-style line endings.

19 years agoBug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl [Fri, 20 Jan 2006 09:07:35 +0000 (09:07 +0000)]
Bug #1371247: Update Windows LCIDs in locale.py.

19 years agoadd missing version identification
Fred Drake [Fri, 20 Jan 2006 03:30:36 +0000 (03:30 +0000)]
add missing version identification

19 years agoPass unquoted string to stat.
Martin v. Löwis [Thu, 19 Jan 2006 16:17:31 +0000 (16:17 +0000)]
Pass unquoted string to stat.

19 years agoinitwinsound(): this no longer compiled on Windows,
Tim Peters [Thu, 19 Jan 2006 15:25:07 +0000 (15:25 +0000)]
initwinsound():  this no longer compiled on Windows,
because code snuck in between auto declarations.

19 years agoinitmsvcrt(): This no longer compiled on Windows, because
Tim Peters [Thu, 19 Jan 2006 15:21:30 +0000 (15:21 +0000)]
initmsvcrt():  This no longer compiled on Windows, because
a recent change inserted code before an auto declaration.

19 years agoAdd a more informative error message for test_float_parsing so the failing
Brett Cannon [Thu, 19 Jan 2006 07:09:09 +0000 (07:09 +0000)]
Add a more informative error message for test_float_parsing so the failing
locale can be known.

19 years agoCheck return result from Py_InitModule*(). This API can fail.
Neal Norwitz [Thu, 19 Jan 2006 06:09:39 +0000 (06:09 +0000)]
Check return result from Py_InitModule*().  This API can fail.

Probably should be backported.

19 years agoQuote the path to the executable before invoking system().
Tim Peters [Wed, 18 Jan 2006 20:04:02 +0000 (20:04 +0000)]
Quote the path to the executable before invoking system().

19 years agoAdd missing make_buildinfo.c.
Martin v. Löwis [Wed, 18 Jan 2006 19:18:51 +0000 (19:18 +0000)]
Add missing make_buildinfo.c.

19 years agoGenerate getbuildinfo.o each time the linker is invoked;
Martin v. Löwis [Wed, 18 Jan 2006 09:13:51 +0000 (09:13 +0000)]
Generate getbuildinfo.o each time the linker is invoked;
try to generate SVNVERSION information if subwcrev.exe
can be found.

19 years agofixed example:
Fredrik Lundh [Tue, 17 Jan 2006 21:31:31 +0000 (21:31 +0000)]
fixed example:
adding missing import, handle_close, test code, etc.

19 years agoSF bug #1347874; FeedParser does not comply with RFC2822.
Barry Warsaw [Tue, 17 Jan 2006 05:58:08 +0000 (05:58 +0000)]
SF bug #1347874; FeedParser does not comply with RFC2822.

Change headerRE as suggested in the bug report, so that single character
headers are accepted.  Test case added too.  Will backport to Python 2.4.

19 years agoSF Bug #1407069, Remove extra semi-colon if there is no long long
Neal Norwitz [Tue, 17 Jan 2006 05:27:39 +0000 (05:27 +0000)]
SF Bug #1407069, Remove extra semi-colon if there is no long long

19 years agoUpdate email.Message.get_filename() documentation.
Barry Warsaw [Tue, 17 Jan 2006 05:24:25 +0000 (05:24 +0000)]
Update email.Message.get_filename() documentation.

19 years agoPorted 42075 from release23-maint branch.
Barry Warsaw [Tue, 17 Jan 2006 04:49:07 +0000 (04:49 +0000)]
Ported 42075 from release23-maint branch.

SF bug #1403349 solution for email 3.0; some MUAs use the 'file' parameter
name in the Content-Distribution header, so Message.get_filename() should fall
back to using that.  Will port to the Python 2.5 trunk.

Also, bump the email package version to 3.0.1 for eventual release.  Of
course, add a test case too.

XXX Need to update the documentation.

19 years agoRefactoring for fileConfig. Contributed by Shane Hathaway.
Vinay Sajip [Mon, 16 Jan 2006 21:28:37 +0000 (21:28 +0000)]
Refactoring for fileConfig. Contributed by Shane Hathaway.

19 years agoChanges due to added test for fileConfig contributed by Shane Hathaway.
Vinay Sajip [Mon, 16 Jan 2006 21:25:28 +0000 (21:25 +0000)]
Changes due to added test for fileConfig contributed by Shane Hathaway.

19 years agoAdded test for fileConfig. Contributed by Shane Hathaway.
Vinay Sajip [Mon, 16 Jan 2006 21:24:38 +0000 (21:24 +0000)]
Added test for fileConfig. Contributed by Shane Hathaway.

19 years agoExceptions raised during renaming in rotating file handlers are now passed to handleE...
Vinay Sajip [Mon, 16 Jan 2006 09:27:58 +0000 (09:27 +0000)]
Exceptions raised during renaming in rotating file handlers are now passed to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised).

19 years agoExceptions raised during renaming in rotating file handlers are now passed to handleE...
Vinay Sajip [Mon, 16 Jan 2006 09:27:10 +0000 (09:27 +0000)]
Exceptions raised during renaming in rotating file handlers are now passed to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised).

19 years agoTimedRotatingFileHandler now calculates next rollover from previous rollover rather...
Vinay Sajip [Mon, 16 Jan 2006 09:13:58 +0000 (09:13 +0000)]
TimedRotatingFileHandler now calculates next rollover from previous rollover rather than current time.

19 years agoFixed bug in time-to-midnight calculation.
Vinay Sajip [Mon, 16 Jan 2006 09:08:06 +0000 (09:08 +0000)]
Fixed bug in time-to-midnight calculation.

19 years agorefresh every 12 hours for crazy people like me that keep the page up
Neal Norwitz [Mon, 16 Jan 2006 04:37:22 +0000 (04:37 +0000)]
refresh every 12 hours for crazy people like me that keep the page up

19 years agoGet socketmodule to build after adding netlink support.
Neal Norwitz [Mon, 16 Jan 2006 04:31:40 +0000 (04:31 +0000)]
Get socketmodule to build after adding netlink support.

19 years agoAdd recent item
Andrew M. Kuchling [Sun, 15 Jan 2006 16:11:28 +0000 (16:11 +0000)]
Add recent item

19 years agothe implementation uses ZipImportError, not ZipImporterError...
Fredrik Lundh [Sun, 15 Jan 2006 15:00:40 +0000 (15:00 +0000)]
the implementation uses ZipImportError, not ZipImporterError...

19 years agothe implementation uses ZipImportError, not ZipImporterError...
Fredrik Lundh [Sun, 15 Jan 2006 14:59:55 +0000 (14:59 +0000)]
the implementation uses ZipImportError, not ZipImporterError...

19 years agotypo
Fredrik Lundh [Sun, 15 Jan 2006 10:17:59 +0000 (10:17 +0000)]
typo

19 years agoRemove buildno.
Martin v. Löwis [Sun, 15 Jan 2006 09:34:11 +0000 (09:34 +0000)]
Remove buildno.

19 years agoPatch #1396093: Further .vcproj cleanups
Martin v. Löwis [Sun, 15 Jan 2006 09:26:43 +0000 (09:26 +0000)]
Patch #1396093: Further .vcproj cleanups

19 years agoRemove dots in \version{changed,added} argument and
Georg Brandl [Sun, 15 Jan 2006 07:55:35 +0000 (07:55 +0000)]
Remove dots in \version{changed,added} argument and
correct argument order.

19 years agoChange build format of netlink addresses.
Martin v. Löwis [Sun, 15 Jan 2006 07:49:20 +0000 (07:49 +0000)]
Change build format of netlink addresses.

19 years agoRemove extra period at end.
Neal Norwitz [Sun, 15 Jan 2006 02:57:57 +0000 (02:57 +0000)]
Remove extra period at end.

19 years agoAlphabetize some names and remove a dupe
Neal Norwitz [Sat, 14 Jan 2006 21:26:22 +0000 (21:26 +0000)]
Alphabetize some names and remove a dupe

19 years agoPatch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis [Sat, 14 Jan 2006 18:12:57 +0000 (18:12 +0000)]
Patch #1103116: AF_NETLINK sockets basic support.

19 years agoadded kjohnson to the ACKS list
Fredrik Lundh [Sat, 14 Jan 2006 13:02:53 +0000 (13:02 +0000)]
added kjohnson to the ACKS list

19 years agocollected my segfaulting Python examples from the SF trackers
Armin Rigo [Sat, 14 Jan 2006 10:58:30 +0000 (10:58 +0000)]
collected my segfaulting Python examples from the SF trackers
(is the purpose of the crashers directory to scare people? :-)