]> granicus.if.org Git - python/log
python
18 years agoWhitespace changes to make the source more compliant with PEP8 (SF#1589070)
Ronald Oussoren [Tue, 7 Nov 2006 16:00:34 +0000 (16:00 +0000)]
Whitespace changes to make the source more compliant with PEP8 (SF#1589070)

18 years agoFix a number of typos in strings and comments (sf#1589070)
Ronald Oussoren [Tue, 7 Nov 2006 15:53:38 +0000 (15:53 +0000)]
Fix a number of typos in strings and comments (sf#1589070)

18 years agonote that user can control directory location even if default dir is used
Skip Montanaro [Mon, 6 Nov 2006 14:34:52 +0000 (14:34 +0000)]
note that user can control directory location even if default dir is used

18 years agoUpdate link
Andrew M. Kuchling [Sun, 5 Nov 2006 21:04:37 +0000 (21:04 +0000)]
Update link

18 years agoBug #1588287: fix invalid assertion for `1,2` in debug builds.
Neal Norwitz [Sat, 4 Nov 2006 19:25:22 +0000 (19:25 +0000)]
Bug #1588287: fix invalid assertion for `1,2` in debug builds.

Will backport

18 years ago- Patch #1060577: Extract list of RPM files from spec file in
Martin v. Löwis [Sat, 4 Nov 2006 18:14:06 +0000 (18:14 +0000)]
- Patch #1060577: Extract list of RPM files from spec file in
  bdist_rpm
Will backport to 2.5.

18 years agoWhitespace normalization.
Tim Peters [Fri, 3 Nov 2006 02:32:46 +0000 (02:32 +0000)]
Whitespace normalization.

18 years agoFix a code example by adding a missing import.
Thomas Heller [Thu, 2 Nov 2006 20:22:29 +0000 (20:22 +0000)]
Fix a code example by adding a missing import.

Fixes #1557890.

Will backport to release25-maint.

18 years agoReplace the XXX marker in the 'Arrays and pointers' reference manual
Thomas Heller [Thu, 2 Nov 2006 19:48:24 +0000 (19:48 +0000)]
Replace the XXX marker in the 'Arrays and pointers' reference manual
section with a link to the tutorial sections.

Will backport to release25-maint.

18 years agoAdded relativeCreated to Formatter doc (has been in the system for a long time -...
Vinay Sajip [Tue, 31 Oct 2006 17:34:31 +0000 (17:34 +0000)]
Added relativeCreated to Formatter doc (has been in the system for a long time - was unaccountably left out of the docs and not noticed until now).

18 years agoChange to improve speed of _fixupChildren
Vinay Sajip [Tue, 31 Oct 2006 17:32:37 +0000 (17:32 +0000)]
Change to improve speed of _fixupChildren

18 years agoI'm assuming this is correct, it fixes the tests so they pass again
Neal Norwitz [Sun, 29 Oct 2006 23:58:36 +0000 (23:58 +0000)]
I'm assuming this is correct, it fixes the tests so they pass again

18 years agoFix refleak
Neal Norwitz [Sun, 29 Oct 2006 23:39:03 +0000 (23:39 +0000)]
Fix refleak

18 years agoAdd tests for incremental codecs with an errors
Walter Dörwald [Sun, 29 Oct 2006 23:02:27 +0000 (23:02 +0000)]
Add tests for incremental codecs with an errors
argument.

18 years agoAdd tests for basic argument errors.
Walter Dörwald [Sun, 29 Oct 2006 22:06:28 +0000 (22:06 +0000)]
Add tests for basic argument errors.

18 years agoMove the check for openpty to the beginning.
Georg Brandl [Sun, 29 Oct 2006 21:54:18 +0000 (21:54 +0000)]
Move the check for openpty to the beginning.

18 years agoRemove leftover test output file.
Georg Brandl [Sun, 29 Oct 2006 20:35:12 +0000 (20:35 +0000)]
Remove leftover test output file.

18 years agoConvert test_openpty to unittest.
Georg Brandl [Sun, 29 Oct 2006 20:31:17 +0000 (20:31 +0000)]
Convert test_openpty to unittest.

18 years agoConvert test_MimeWriter to unittest.
Georg Brandl [Sun, 29 Oct 2006 20:28:26 +0000 (20:28 +0000)]
Convert test_MimeWriter to unittest.

18 years agoCompletely convert test_httplib to unittest.
Georg Brandl [Sun, 29 Oct 2006 20:24:01 +0000 (20:24 +0000)]
Completely convert test_httplib to unittest.

18 years agoConvert test_cgi to unittest.
Georg Brandl [Sun, 29 Oct 2006 20:09:12 +0000 (20:09 +0000)]
Convert test_cgi to unittest.

18 years agoConvert test_cookie to unittest.
Georg Brandl [Sun, 29 Oct 2006 19:51:16 +0000 (19:51 +0000)]
Convert test_cookie to unittest.

18 years agoConvert test_types to unittest.
Georg Brandl [Sun, 29 Oct 2006 19:35:03 +0000 (19:35 +0000)]
Convert test_types to unittest.

18 years agoConvert test_nis to unittest.
Georg Brandl [Sun, 29 Oct 2006 19:24:43 +0000 (19:24 +0000)]
Convert test_nis to unittest.

18 years agoConvert test_poll to unittest.
Georg Brandl [Sun, 29 Oct 2006 19:20:45 +0000 (19:20 +0000)]
Convert test_poll to unittest.

18 years agoConvert test_mmap to unittest.
Georg Brandl [Sun, 29 Oct 2006 19:13:40 +0000 (19:13 +0000)]
Convert test_mmap to unittest.

18 years agoBug #1576657: when setting a KeyError for a tuple key, make sure that
Georg Brandl [Sun, 29 Oct 2006 18:31:42 +0000 (18:31 +0000)]
Bug #1576657: when setting a KeyError for a tuple key, make sure that
the tuple isn't used as the "exception arguments tuple".

18 years agoUpdate comments, remove commented out code.
Neal Norwitz [Sun, 29 Oct 2006 18:30:10 +0000 (18:30 +0000)]
Update comments, remove commented out code.
Move assembler structure next to assembler code to make it easier to
move it to a separate file.

18 years agoBug #1586773: extend hashlib docstring.
Georg Brandl [Sun, 29 Oct 2006 18:01:08 +0000 (18:01 +0000)]
Bug #1586773: extend hashlib docstring.

18 years agoBug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
Georg Brandl [Sun, 29 Oct 2006 14:39:09 +0000 (14:39 +0000)]
Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.

18 years agoFix the new EncodedFile test to work with big endian platforms.
Georg Brandl [Sun, 29 Oct 2006 09:32:16 +0000 (09:32 +0000)]
Fix the new EncodedFile test to work with big endian platforms.

18 years agoTest assert if __debug__ is true.
Georg Brandl [Sun, 29 Oct 2006 09:18:00 +0000 (09:18 +0000)]
Test assert if __debug__ is true.

18 years agoPatch #1583880: fix tarfile's problems with long names and posix/
Georg Brandl [Sun, 29 Oct 2006 09:16:12 +0000 (09:16 +0000)]
Patch #1583880: fix tarfile's problems with long names and posix/
GNU modes.

18 years agoBug #1357915: allow all sequence types for shell arguments in
Georg Brandl [Sun, 29 Oct 2006 09:05:04 +0000 (09:05 +0000)]
Bug #1357915: allow all sequence types for shell arguments in
subprocess.

18 years agoRemove trailing comma.
Georg Brandl [Sun, 29 Oct 2006 09:01:01 +0000 (09:01 +0000)]
Remove trailing comma.

18 years agoBug #1586448: the compiler module now emits the same bytecode for
Georg Brandl [Sun, 29 Oct 2006 08:53:06 +0000 (08:53 +0000)]
Bug #1586448: the compiler module now emits the same bytecode for
list comprehensions as the builtin compiler, using the LIST_APPEND
opcode.

18 years agoClean up a leftover from old listcomp generation code.
Georg Brandl [Sun, 29 Oct 2006 08:47:08 +0000 (08:47 +0000)]
Clean up a leftover from old listcomp generation code.

18 years agoFix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
Georg Brandl [Sun, 29 Oct 2006 08:39:22 +0000 (08:39 +0000)]
Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
fix all codecs file wrappers to work correctly with the "with"
statement (bug #1586513).

18 years agoFrom SF 1557890, fix problem of using wrong type in example.
Neal Norwitz [Sat, 28 Oct 2006 22:12:26 +0000 (22:12 +0000)]
From SF 1557890, fix problem of using wrong type in example.

Will backport.

18 years agoFix test_modulefinder so it doesn't fail when run after test_distutils.
Neal Norwitz [Sat, 28 Oct 2006 21:56:49 +0000 (21:56 +0000)]
Fix test_modulefinder so it doesn't fail when run after test_distutils.

18 years agoDon't inline Py_ADDRESS_IN_RANGE with gcc 4+ either.
Neal Norwitz [Sat, 28 Oct 2006 21:21:00 +0000 (21:21 +0000)]
Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either.

Will backport.

18 years agoPrevent crash if alloc of garbage fails. Found by Typo.pl.
Neal Norwitz [Sat, 28 Oct 2006 21:20:12 +0000 (21:20 +0000)]
Prevent crash if alloc of garbage fails.  Found by Typo.pl.

Will backport.

18 years agoFix bug #1565514, SystemError not raised on too many nested blocks.
Neal Norwitz [Sat, 28 Oct 2006 21:19:07 +0000 (21:19 +0000)]
Fix bug #1565514, SystemError not raised on too many nested blocks.
It seems like this should be a different error than SystemError, but
I don't have any great ideas and SystemError was raised in 2.4 and earlier.

Will backport.

18 years agoFix crash in test on HP-UX. Apparently, it's not possible to delete a lock if
Neal Norwitz [Sat, 28 Oct 2006 21:17:51 +0000 (21:17 +0000)]
Fix crash in test on HP-UX.  Apparently, it's not possible to delete a lock if
it's held (even by the current thread).

Will backport.

18 years agoFix warnings with HP's C compiler. It doesn't recognize that infinite
Neal Norwitz [Sat, 28 Oct 2006 21:16:54 +0000 (21:16 +0000)]
Fix warnings with HP's C compiler.  It doesn't recognize that infinite
loops are, um, infinite.  These conditions should not be able to happen.

Will backport.

18 years agoAdd some asserts. In sysmodule, I think these were to try to silence
Neal Norwitz [Sat, 28 Oct 2006 21:15:30 +0000 (21:15 +0000)]
Add some asserts.  In sysmodule, I think these were to try to silence
some warnings from Klokwork.  They verify the assumptions of the format
of svn version output.

The assert in the thread module helped debug a problem on HP-UX.

18 years agomake test_grammar pass with python -O
Georg Brandl [Sat, 28 Oct 2006 20:25:09 +0000 (20:25 +0000)]
make test_grammar pass with python -O

18 years agoFix nth() itertool recipe.
Georg Brandl [Sat, 28 Oct 2006 16:04:04 +0000 (16:04 +0000)]
Fix nth() itertool recipe.

18 years agoConvert test_opcodes to unittest.
Georg Brandl [Sat, 28 Oct 2006 13:56:58 +0000 (13:56 +0000)]
Convert test_opcodes to unittest.

18 years agoConvert test_math to unittest.
Georg Brandl [Sat, 28 Oct 2006 13:51:49 +0000 (13:51 +0000)]
Convert test_math to unittest.

18 years agoUpdate outstanding bugs test file.
Georg Brandl [Sat, 28 Oct 2006 13:11:41 +0000 (13:11 +0000)]
Update outstanding bugs test file.

18 years agoConvert test_global, test_scope and test_grammar to unittest.
Georg Brandl [Sat, 28 Oct 2006 13:10:17 +0000 (13:10 +0000)]
Convert test_global, test_scope and test_grammar to unittest.

I tried to enclose all tests which must be run at the toplevel
(instead of inside a method) in exec statements.

18 years agoPort test_bufio to unittest.
Walter Dörwald [Sat, 28 Oct 2006 10:47:12 +0000 (10:47 +0000)]
Port test_bufio to unittest.

18 years agoPatch #1552024: add decorator support to unparse.py demo script.
Georg Brandl [Fri, 27 Oct 2006 20:39:43 +0000 (20:39 +0000)]
Patch #1552024: add decorator support to unparse.py demo script.

18 years agoModulefinder now handles absolute and relative imports, including
Thomas Heller [Fri, 27 Oct 2006 19:05:53 +0000 (19:05 +0000)]
Modulefinder now handles absolute and relative imports, including
tests.

Will backport to release25-maint.

18 years agoWindowsError.str should display the windows error code,
Thomas Heller [Fri, 27 Oct 2006 18:31:36 +0000 (18:31 +0000)]
WindowsError.str should display the windows error code,
not the posix error code; with test.
Fixes #1576174.

Will backport to release25-maint.

18 years ago[Patch #1503717] Tiny patch from Chris AtLee to stop a lengthy line from being printed
Andrew M. Kuchling [Fri, 27 Oct 2006 18:15:02 +0000 (18:15 +0000)]
[Patch #1503717] Tiny patch from Chris AtLee to stop a lengthy line from being printed

18 years agoCheck db_setup_debug for a few print statements; change sqlite_setup_debug to False
Andrew M. Kuchling [Fri, 27 Oct 2006 18:13:46 +0000 (18:13 +0000)]
Check db_setup_debug for a few print statements; change sqlite_setup_debug to False

18 years ago[Patch #1574068 by Scott Dial] urllib and urllib2 were using
Andrew M. Kuchling [Fri, 27 Oct 2006 17:11:23 +0000 (17:11 +0000)]
[Patch #1574068 by Scott Dial] urllib and urllib2 were using
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.

18 years agoClarify docstring
Andrew M. Kuchling [Fri, 27 Oct 2006 17:06:16 +0000 (17:06 +0000)]
Clarify docstring

18 years ago[Bug #1575506] The _singlefileMailbox class was using the wrong file object in its...
Andrew M. Kuchling [Fri, 27 Oct 2006 16:55:34 +0000 (16:55 +0000)]
[Bug #1575506] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error

18 years ago[Bug #1576241] Let functools.wraps work with built-in functions
Andrew M. Kuchling [Fri, 27 Oct 2006 16:39:10 +0000 (16:39 +0000)]
[Bug #1576241] Let functools.wraps work with built-in functions

18 years agoPoint users to the subprocess module in the docs for os.system, os.spawn*, os.popen2...
Andrew M. Kuchling [Fri, 27 Oct 2006 14:53:41 +0000 (14:53 +0000)]
Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules

18 years ago[Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats...
Andrew M. Kuchling [Fri, 27 Oct 2006 13:22:46 +0000 (13:22 +0000)]
[Bug #1542016] Report PCALL_POP value.  This makes the return value of sys.callstats() match its docstring.

Backport candidate.  Though it's an API change, this is a pretty obscure
portion of the API.

18 years ago[Bug #1562583] Mention the set_reuse_addr() method
Andrew M. Kuchling [Fri, 27 Oct 2006 13:06:25 +0000 (13:06 +0000)]
[Bug #1562583] Mention the set_reuse_addr() method

18 years ago[Bug #1583946] Reword description of server and issuer
Andrew M. Kuchling [Fri, 27 Oct 2006 12:50:38 +0000 (12:50 +0000)]
[Bug #1583946] Reword description of server and issuer

18 years ago[Bug #1585690] Note that line_num was added in Python 2.5
Andrew M. Kuchling [Fri, 27 Oct 2006 12:18:38 +0000 (12:18 +0000)]
[Bug #1585690] Note that line_num was added in Python 2.5

18 years agoSome wording changes and markup fixes
Andrew M. Kuchling [Fri, 27 Oct 2006 11:37:01 +0000 (11:37 +0000)]
Some wording changes and markup fixes

18 years agoAdd item
Andrew M. Kuchling [Fri, 27 Oct 2006 11:36:41 +0000 (11:36 +0000)]
Add item

18 years agoSet svn:keywords property
Andrew M. Kuchling [Fri, 27 Oct 2006 11:33:29 +0000 (11:33 +0000)]
Set svn:keywords property

18 years agoPatch #1567274: Support SMTP over TLS.
Martin v. Löwis [Fri, 27 Oct 2006 07:13:28 +0000 (07:13 +0000)]
Patch #1567274: Support SMTP over TLS.

18 years agoGet DBL_MAX from float.h not values.h. Will backport.
Martin v. Löwis [Fri, 27 Oct 2006 07:06:52 +0000 (07:06 +0000)]
Get DBL_MAX from float.h not values.h. Will backport.

18 years agoCheck for values.h. Will backport.
Martin v. Löwis [Fri, 27 Oct 2006 06:42:27 +0000 (06:42 +0000)]
Check for values.h. Will backport.

18 years agoPatch #1549049: Rewrite type conversion in structmember.
Martin v. Löwis [Fri, 27 Oct 2006 06:16:31 +0000 (06:16 +0000)]
Patch #1549049: Rewrite type conversion in structmember.
Fixes #1545696 and #1566140. Will backport to 2.5.

18 years agoTypo fix
Andrew M. Kuchling [Thu, 26 Oct 2006 19:16:46 +0000 (19:16 +0000)]
Typo fix

18 years ago[Bug #1579796] Wrong syntax for PyDateTime_IMPORT in documentation. Reported by...
Andrew M. Kuchling [Thu, 26 Oct 2006 19:10:46 +0000 (19:10 +0000)]
[Bug #1579796] Wrong syntax for PyDateTime_IMPORT in documentation.  Reported by David Faure.

18 years agoPatch [ 1583506 ] tarfile.py: 100-char filenames are truncated
Georg Brandl [Tue, 24 Oct 2006 16:54:16 +0000 (16:54 +0000)]
Patch [ 1583506 ] tarfile.py: 100-char filenames are truncated

18 years agoRemove passwd.adjunct.byname from list of maps
Martin v. Löwis [Sun, 22 Oct 2006 13:45:13 +0000 (13:45 +0000)]
Remove passwd.adjunct.byname from list of maps
for test_nis. Will backport to 2.5.

18 years ago- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
Martin v. Löwis [Sun, 22 Oct 2006 10:55:15 +0000 (10:55 +0000)]
- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
  ctypes isn't considered as requiring executable stacks.
Will backport to 2.5.

18 years agoPatch #1580872: Remove duplicate declaration of PyCallable_Check.
Martin v. Löwis [Sun, 22 Oct 2006 10:46:18 +0000 (10:46 +0000)]
Patch #1580872: Remove duplicate declaration of PyCallable_Check.
Will backport to 2.5.

18 years agoPatch #1580674: with this patch os.readlink uses the filesystem encoding to
Ronald Oussoren [Sun, 22 Oct 2006 10:45:18 +0000 (10:45 +0000)]
Patch #1580674: with this patch os.readlink uses the filesystem encoding to
decode unicode objects and returns an unicode object when the argument is one.

18 years agoPort test___future__ to unittest.
Walter Dörwald [Sun, 22 Oct 2006 08:59:41 +0000 (08:59 +0000)]
Port test___future__ to unittest.

18 years ago[Bug #1576348] Fix typo in example
Andrew M. Kuchling [Thu, 19 Oct 2006 21:55:55 +0000 (21:55 +0000)]
[Bug #1576348] Fix typo in example

18 years agoRestore CFLAGS after checking for __attribute__
Martin v. Löwis [Thu, 19 Oct 2006 16:01:37 +0000 (16:01 +0000)]
Restore CFLAGS after checking for __attribute__

18 years agoFix various minor errors in passing arguments to
Martin v. Löwis [Thu, 19 Oct 2006 11:00:37 +0000 (11:00 +0000)]
Fix various minor errors in passing arguments to
PyArg_ParseTuple.

18 years agoAdd check for the PyArg_ParseTuple format, and declare
Martin v. Löwis [Thu, 19 Oct 2006 10:58:46 +0000 (10:58 +0000)]
Add check for the PyArg_ParseTuple format, and declare
it if it is supported.

18 years agoAdd missing svn:eol-style to text files.
Tim Peters [Wed, 18 Oct 2006 05:10:28 +0000 (05:10 +0000)]
Add missing svn:eol-style to text files.

18 years agoWhitespace normalization.
Tim Peters [Wed, 18 Oct 2006 05:09:12 +0000 (05:09 +0000)]
Whitespace normalization.

18 years agonewIobject(): repaired incorrect cast to quiet MSVC warning.
Tim Peters [Wed, 18 Oct 2006 05:06:06 +0000 (05:06 +0000)]
newIobject():  repaired incorrect cast to quiet MSVC warning.

18 years agoctypes callback functions only support 'fundamental' result types.
Thomas Heller [Tue, 17 Oct 2006 19:30:48 +0000 (19:30 +0000)]
ctypes callback functions only support 'fundamental' result types.
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called.  This is a partial fix for #1574584.

Will backport to release25-maint.

18 years agoForward-port r52358:
Martin v. Löwis [Tue, 17 Oct 2006 18:59:23 +0000 (18:59 +0000)]
Forward-port r52358:
- Bug #1578513: Cross compilation was broken by a change to configure.
Repair so that it's back to how it was in 2.4.3.

18 years agoRemove obsolete file. Will backport.
Martin v. Löwis [Tue, 17 Oct 2006 18:09:55 +0000 (18:09 +0000)]
Remove obsolete file. Will backport.

18 years agoPatch #1457736: Update VC6 to use current PCbuild settings.
Martin v. Löwis [Tue, 17 Oct 2006 15:18:06 +0000 (15:18 +0000)]
Patch #1457736: Update VC6 to use current PCbuild settings.
Will backport to 2.5.

18 years agoFix turtle so that you can launch the demo2 function on its own instead of only
Brett Cannon [Mon, 16 Oct 2006 03:09:52 +0000 (03:09 +0000)]
Fix turtle so that you can launch the demo2 function on its own instead of only
when the module is launched as a script.

18 years agoMention the bdist_msi module. Will backport to 2.5.
Martin v. Löwis [Sun, 15 Oct 2006 14:30:38 +0000 (14:30 +0000)]
Mention the bdist_msi module. Will backport to 2.5.

18 years agoRemove binary property, set eol-style to CRLF instead.
Martin v. Löwis [Sun, 15 Oct 2006 12:01:43 +0000 (12:01 +0000)]
Remove binary property, set eol-style to CRLF instead.

18 years agoDrop binary property on dsp files, set eol-style
Martin v. Löwis [Sun, 15 Oct 2006 11:59:56 +0000 (11:59 +0000)]
Drop binary property on dsp files, set eol-style
to CRLF instead.

18 years agoSet the eol-style for project files to "CRLF".
Martin v. Löwis [Sun, 15 Oct 2006 11:57:40 +0000 (11:57 +0000)]
Set the eol-style for project files to "CRLF".

18 years agoRound to int, because some systems support sub-second time stamps in stat, but not...
Martin v. Löwis [Sun, 15 Oct 2006 11:02:07 +0000 (11:02 +0000)]
Round to int, because some systems support sub-second time stamps in stat, but not in utime.
Also be consistent with modifying only mtime, not atime.

18 years agoBug #1567666: Emulate GetFileAttributesExA for Win95.
Martin v. Löwis [Sun, 15 Oct 2006 09:43:39 +0000 (09:43 +0000)]
Bug #1567666: Emulate GetFileAttributesExA for Win95.
Will backport to 2.5.