]> granicus.if.org Git - python/log
python
14 years agoTest that "source" with nonexisting things works as expected.
Georg Brandl [Fri, 30 Jul 2010 18:15:16 +0000 (18:15 +0000)]
Test that "source" with nonexisting things works as expected.

14 years agoFix source finding if the given frame is a module-level frame.
Georg Brandl [Fri, 30 Jul 2010 18:08:12 +0000 (18:08 +0000)]
Fix source finding if the given frame is a module-level frame.

14 years agoUse OpenSSL 1.0.0a on Windows.
Martin v. Löwis [Fri, 30 Jul 2010 17:30:51 +0000 (17:30 +0000)]
Use OpenSSL 1.0.0a on Windows.

14 years agoDrop 2.4 support. Add disabled algorithms to Configure options.
Martin v. Löwis [Fri, 30 Jul 2010 17:29:39 +0000 (17:29 +0000)]
Drop 2.4 support. Add disabled algorithms to Configure options.

14 years agoAdd "longlist" and "source" commands, ideas borrowed from pdb++ by Antonio Cuni.
Georg Brandl [Fri, 30 Jul 2010 17:04:28 +0000 (17:04 +0000)]
Add "longlist" and "source" commands, ideas borrowed from pdb++ by Antonio Cuni.

14 years agoSeveral enhancements to pdb and its test suite.
Georg Brandl [Fri, 30 Jul 2010 16:00:46 +0000 (16:00 +0000)]
Several enhancements to pdb and its test suite.

* added basic test for basic commands
* removed duplication of command docs, and moved them to their implementation
* unified and useful display of exceptions
* output messages and errors using overridable methods (also fixes #1503502)

14 years agopdb now has its own tests.
Georg Brandl [Fri, 30 Jul 2010 15:33:52 +0000 (15:33 +0000)]
pdb now has its own tests.

14 years agoAdd Breakpoint.bpformat(), which returns the info usually printed by bpprint(). ...
Georg Brandl [Fri, 30 Jul 2010 15:01:23 +0000 (15:01 +0000)]
Add Breakpoint.bpformat(), which returns the info usually printed by bpprint().  Necessary for major refactoring of pdb output handling.

14 years ago#7964 followup: add test case to ensure issue remains fixed.
Georg Brandl [Fri, 30 Jul 2010 14:16:43 +0000 (14:16 +0000)]
#7964 followup: add test case to ensure issue remains fixed.

14 years agoAdd myself for pdb.
Georg Brandl [Fri, 30 Jul 2010 13:36:43 +0000 (13:36 +0000)]
Add myself for pdb.

14 years agoAdd note about surprising behaviour from round function.
Mark Dickinson [Fri, 30 Jul 2010 13:13:02 +0000 (13:13 +0000)]
Add note about surprising behaviour from round function.

14 years ago#809887: improve pdb feedback for breakpoint-related actions. Also add a functional...
Georg Brandl [Fri, 30 Jul 2010 12:01:20 +0000 (12:01 +0000)]
#809887: improve pdb feedback for breakpoint-related actions.  Also add a functional test for these commands.

14 years ago#3143: enable "collapsible sidebar" feature of new Sphinx version.
Georg Brandl [Fri, 30 Jul 2010 11:31:03 +0000 (11:31 +0000)]
#3143: enable "collapsible sidebar" feature of new Sphinx version.

14 years ago#5294: Fix the behavior of pdb "continue" command when called in the top-level debugg...
Georg Brandl [Fri, 30 Jul 2010 10:29:19 +0000 (10:29 +0000)]
#5294: Fix the behavior of pdb "continue" command when called in the top-level debugged frame.

14 years ago#5727: Restore the ability to use readline when calling into pdb in doctests.
Georg Brandl [Fri, 30 Jul 2010 09:59:28 +0000 (09:59 +0000)]
#5727: Restore the ability to use readline when calling into pdb in doctests.

14 years agoRemove redundant import.
Georg Brandl [Fri, 30 Jul 2010 09:54:44 +0000 (09:54 +0000)]
Remove redundant import.

14 years ago#6719: In pdb, do not stop somewhere in the encodings machinery if the source file...
Georg Brandl [Fri, 30 Jul 2010 09:43:00 +0000 (09:43 +0000)]
#6719: In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding.

14 years agoIssue #8048: Prevent doctests from failing when sys.displayhook has
Georg Brandl [Fri, 30 Jul 2010 09:23:23 +0000 (09:23 +0000)]
Issue #8048: Prevent doctests from failing when sys.displayhook has
been reassigned.

14 years ago#1472251: remove addition of "\n" to code given to pdb.run[eval](), the bug in exec...
Georg Brandl [Fri, 30 Jul 2010 09:14:20 +0000 (09:14 +0000)]
#1472251: remove addition of "\n" to code given to pdb.run[eval](), the bug in exec() that made this necessary has been fixed.  Also document that you can give code objects to run() and runeval(), and add some tests to test_pdb.

14 years ago#8015: fix crash when entering an empty line for breakpoint commands. Also restore...
Georg Brandl [Fri, 30 Jul 2010 08:54:49 +0000 (08:54 +0000)]
#8015: fix crash when entering an empty line for breakpoint commands.  Also restore environment properly when an exception occurs during the definition of commands.

14 years agoDocument the "jump" command in pdb.__doc__, and add a version tag for "until X".
Georg Brandl [Fri, 30 Jul 2010 08:45:26 +0000 (08:45 +0000)]
Document the "jump" command in pdb.__doc__, and add a version tag for "until X".

14 years agoAllow giving an explicit line number to "until".
Georg Brandl [Fri, 30 Jul 2010 08:43:32 +0000 (08:43 +0000)]
Allow giving an explicit line number to "until".

14 years ago#1437051: allow "continue"/"next"/etc. in .pdbrc, also add pdb -c option to give...
Georg Brandl [Fri, 30 Jul 2010 08:29:39 +0000 (08:29 +0000)]
#1437051: allow "continue"/"next"/etc. in .pdbrc, also add pdb -c option to give these commands.  This allows to run a script until an exception occurs.

14 years ago#9230: allow Pdb.checkline() to be called without a current frame, for setting breakp...
Georg Brandl [Fri, 30 Jul 2010 07:21:26 +0000 (07:21 +0000)]
#9230: allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging.

14 years ago#4179: In pdb, allow "list ." as a command to return to the currently debugged line.
Georg Brandl [Fri, 30 Jul 2010 07:14:01 +0000 (07:14 +0000)]
#4179: In pdb, allow "list ." as a command to return to the currently debugged line.

14 years agoClarification.
Georg Brandl [Fri, 30 Jul 2010 07:03:39 +0000 (07:03 +0000)]
Clarification.

14 years agoIssue #9422: Fix memory leak when re-initializing a struct.Struct object.
Mark Dickinson [Thu, 29 Jul 2010 21:41:59 +0000 (21:41 +0000)]
Issue #9422:  Fix memory leak when re-initializing a struct.Struct object.

14 years ago#4108: the first default entry (User-agent: *) wins.
Georg Brandl [Thu, 29 Jul 2010 17:55:01 +0000 (17:55 +0000)]
#4108: the first default entry (User-agent: *) wins.

14 years ago#8603: Add environb to os.__all__
Victor Stinner [Thu, 29 Jul 2010 17:19:38 +0000 (17:19 +0000)]
#8603: Add environb to os.__all__

14 years ago#6630: allow customizing flags for compiling string.Template.idpattern.
Georg Brandl [Thu, 29 Jul 2010 17:16:10 +0000 (17:16 +0000)]
#6630: allow customizing flags for compiling string.Template.idpattern.

14 years ago#9397: remove mention of dbm.bsd which does not exist anymore.
Victor Stinner [Thu, 29 Jul 2010 16:26:56 +0000 (16:26 +0000)]
#9397: remove mention of dbm.bsd which does not exist anymore.

14 years ago#6522: add a "decorator" directive to explicitly document decorators, and use it...
Georg Brandl [Thu, 29 Jul 2010 16:01:11 +0000 (16:01 +0000)]
#6522: add a "decorator" directive to explicitly document decorators, and use it in a few places.

14 years ago#9388: remove ERA_YEAR which is never defined in the source code.
Georg Brandl [Thu, 29 Jul 2010 14:49:08 +0000 (14:49 +0000)]
#9388: remove ERA_YEAR which is never defined in the source code.

14 years ago#9397: remove mention of dbm.bsd which does not exist anymore.
Georg Brandl [Thu, 29 Jul 2010 14:46:07 +0000 (14:46 +0000)]
#9397: remove mention of dbm.bsd which does not exist anymore.

14 years agoUse correct directive and name.
Georg Brandl [Thu, 29 Jul 2010 14:36:11 +0000 (14:36 +0000)]
Use correct directive and name.

14 years ago#9407: document configparser.Error.
Georg Brandl [Thu, 29 Jul 2010 14:32:22 +0000 (14:32 +0000)]
#9407: document configparser.Error.

14 years agoUse Py_CLEAR().
Georg Brandl [Thu, 29 Jul 2010 14:23:06 +0000 (14:23 +0000)]
Use Py_CLEAR().

14 years ago#1090076: explain the behavior of *vars* in get() better.
Georg Brandl [Thu, 29 Jul 2010 14:17:12 +0000 (14:17 +0000)]
#1090076: explain the behavior of *vars* in get() better.

14 years agoFix typo.
Mark Dickinson [Thu, 29 Jul 2010 13:56:56 +0000 (13:56 +0000)]
Fix typo.

14 years ago#3874: document HTMLParser.unknown_decl().
Georg Brandl [Thu, 29 Jul 2010 13:38:37 +0000 (13:38 +0000)]
#3874: document HTMLParser.unknown_decl().

14 years agoFix #9412: make list of messages an instance attribute instead of class attribute.
Georg Brandl [Thu, 29 Jul 2010 13:19:42 +0000 (13:19 +0000)]
Fix #9412: make list of messages an instance attribute instead of class attribute.

14 years ago#9411: allow selecting an encoding for configparser files. Also adds a new test...
Georg Brandl [Thu, 29 Jul 2010 12:17:40 +0000 (12:17 +0000)]
#9411: allow selecting an encoding for configparser files.  Also adds a new test config file to test special cases.

14 years agoFix for r83202: improve the handling of empty lines.
Georg Brandl [Thu, 29 Jul 2010 11:56:20 +0000 (11:56 +0000)]
Fix for r83202: improve the handling of empty lines.

14 years ago#6538: fix regex documentation again -- use fictional class names "regex" and "match...
Georg Brandl [Thu, 29 Jul 2010 11:49:05 +0000 (11:49 +0000)]
#6538: fix regex documentation again -- use fictional class names "regex" and "match" but do not document them as classes, remove 1.5 compat info and use new default argument syntax where possible.

14 years agoRemove Python 1.5 compatibility note.
Georg Brandl [Thu, 29 Jul 2010 11:15:36 +0000 (11:15 +0000)]
Remove Python 1.5 compatibility note.

14 years agoUpdate test_os.py according to my last changes on _Environ.__repr__()
Victor Stinner [Thu, 29 Jul 2010 00:29:00 +0000 (00:29 +0000)]
Update test_os.py according to my last changes on _Environ.__repr__()

14 years agoIssue #9283: Oops, add missing { and } to repr(os.environ)
Victor Stinner [Wed, 28 Jul 2010 21:25:42 +0000 (21:25 +0000)]
Issue #9283: Oops, add missing { and } to repr(os.environ)

14 years ago#9283: Fix repr(os.environ), display unicode keys and values on POSIX systems
Victor Stinner [Wed, 28 Jul 2010 21:23:23 +0000 (21:23 +0000)]
#9283: Fix repr(os.environ), display unicode keys and values on POSIX systems

14 years agoAdd missing file.
Georg Brandl [Wed, 28 Jul 2010 17:37:27 +0000 (17:37 +0000)]
Add missing file.

14 years agoSyntax cleanup.
Florent Xicluna [Wed, 28 Jul 2010 16:39:41 +0000 (16:39 +0000)]
Syntax cleanup.

14 years agoFix Issue6325 - robotparse to honor urls with query strings.
Senthil Kumaran [Wed, 28 Jul 2010 16:27:56 +0000 (16:27 +0000)]
Fix Issue6325 - robotparse to honor urls with query strings.

14 years ago#1682942: add some ConfigParser features: alternate delimiters, alternate comments...
Georg Brandl [Wed, 28 Jul 2010 13:13:46 +0000 (13:13 +0000)]
#1682942: add some ConfigParser features: alternate delimiters, alternate comments, empty lines in values.  Also enhance the docs with more examples and mention SafeConfigParser before ConfigParser.  Patch by Lukas Langa, review by myself, Eric and Ezio.

14 years ago#9354: Provide getsockopt() in asyncore file_wrapper(). Patch by Lukas Langa.
Georg Brandl [Wed, 28 Jul 2010 08:19:35 +0000 (08:19 +0000)]
#9354: Provide getsockopt() in asyncore file_wrapper().  Patch by Lukas Langa.

14 years agoIssue #8991: convertbuffer() rejects discontigious buffers
Victor Stinner [Wed, 28 Jul 2010 00:40:58 +0000 (00:40 +0000)]
Issue #8991: convertbuffer() rejects discontigious buffers

14 years agoFix failure introduced in r83182.
Ezio Melotti [Wed, 28 Jul 2010 00:23:21 +0000 (00:23 +0000)]
Fix failure introduced in r83182.

14 years agoIssue #8966: ctypes: Remove implicit bytes-unicode conversion
Victor Stinner [Wed, 28 Jul 2010 00:15:03 +0000 (00:15 +0000)]
Issue #8966: ctypes: Remove implicit bytes-unicode conversion

14 years agoFix ctypes tests to avoid implicit bytes-unicode conversion
Victor Stinner [Tue, 27 Jul 2010 23:36:41 +0000 (23:36 +0000)]
Fix ctypes tests to avoid implicit bytes-unicode conversion

14 years agoIssue #9378: python -m pickle <pickle file> will now load and display
Alexander Belopolsky [Tue, 27 Jul 2010 23:02:38 +0000 (23:02 +0000)]
Issue #9378: python -m pickle <pickle file> will now load and display
the first object in the pickle file.

14 years agoWith skipUnless there is no need to add test classes conditionally.
Ezio Melotti [Tue, 27 Jul 2010 22:24:13 +0000 (22:24 +0000)]
With skipUnless there is no need to add test classes conditionally.

14 years agoIssue #9294: remove dead code in Objects/object.c. Patch by Grant Limberg.
Antoine Pitrou [Tue, 27 Jul 2010 22:08:27 +0000 (22:08 +0000)]
Issue #9294: remove dead code in Objects/object.c.  Patch by Grant Limberg.

14 years agoUse proper skips and assert* methods in test_asyncore.
Ezio Melotti [Tue, 27 Jul 2010 22:03:33 +0000 (22:03 +0000)]
Use proper skips and assert* methods in test_asyncore.

14 years agoIssue #4770: Restrict binascii module to accept only bytes (as specified).
Florent Xicluna [Tue, 27 Jul 2010 21:20:15 +0000 (21:20 +0000)]
Issue #4770: Restrict binascii module to accept only bytes (as specified).
And fix the email package to encode to ASCII instead of ``raw-unicode-escape`` before ASCII-to-binary decoding.

14 years agoUpdate Sphinx to 1.0.1.
Georg Brandl [Tue, 27 Jul 2010 18:19:21 +0000 (18:19 +0000)]
Update Sphinx to 1.0.1.

14 years agoIssue #9384: python -m tkinter will now display a simple demo applet.
Alexander Belopolsky [Tue, 27 Jul 2010 14:16:32 +0000 (14:16 +0000)]
Issue #9384: python -m tkinter will now display a simple demo applet.

14 years agoThe default size of the re module's compiled regular expression cache has
Gregory P. Smith [Tue, 27 Jul 2010 05:31:29 +0000 (05:31 +0000)]
The default size of the re module's compiled regular expression cache has
been increased from 100 to 500 and the cache replacement policy has changed
from simply clearing the entire cache on overflow to randomly forgetting 20%
of the existing cached compiled regular expressions.  This is a performance
win for applications that use a lot of regular expressions and limits the
impact of the performance hit anytime the cache is exceeded.

14 years agoClarify.
Georg Brandl [Mon, 26 Jul 2010 21:12:13 +0000 (21:12 +0000)]
Clarify.

14 years agoAdded versionadded entry for the annotate argument.
Alexander Belopolsky [Mon, 26 Jul 2010 18:27:49 +0000 (18:27 +0000)]
Added versionadded entry for the annotate argument.

14 years agoAdd Reid.
Georg Brandl [Mon, 26 Jul 2010 17:09:32 +0000 (17:09 +0000)]
Add Reid.

14 years agoFix indentation in example.
Georg Brandl [Mon, 26 Jul 2010 17:00:20 +0000 (17:00 +0000)]
Fix indentation in example.

14 years agoFix grammar.
Georg Brandl [Mon, 26 Jul 2010 15:11:49 +0000 (15:11 +0000)]
Fix grammar.

14 years agoReword paragraph
Andrew M. Kuchling [Mon, 26 Jul 2010 13:08:58 +0000 (13:08 +0000)]
Reword paragraph

14 years ago#7637: fix a grammar error; simplify a sentence
Andrew M. Kuchling [Mon, 26 Jul 2010 12:54:02 +0000 (12:54 +0000)]
#7637: fix a grammar error; simplify a sentence

14 years agoAdd Brian Quinlan.
Georg Brandl [Mon, 26 Jul 2010 09:33:12 +0000 (09:33 +0000)]
Add Brian Quinlan.

14 years ago#9381: fix markup.
Georg Brandl [Mon, 26 Jul 2010 08:51:42 +0000 (08:51 +0000)]
#9381: fix markup.

14 years agoMake python version of fromtimestamp behave more like C.
Alexander Belopolsky [Mon, 26 Jul 2010 02:36:41 +0000 (02:36 +0000)]
Make python version of fromtimestamp behave more like C.

14 years agoAdd note about #7113 and add Łukasz Langa to ACKS
Brian Curtin [Mon, 26 Jul 2010 02:36:32 +0000 (02:36 +0000)]
Add note about #7113 and add Łukasz Langa to ACKS

14 years agoFix #7113. Patch by Łukasz Langa.
Brian Curtin [Mon, 26 Jul 2010 00:27:10 +0000 (00:27 +0000)]
Fix #7113. Patch by Łukasz Langa.

Changes include using a list of lines instead of patching together using
string interpolation, and a multi-line value test cases.

14 years ago#777884: make .normalize() do nothing for childless nodes, instead of raising an...
Andrew M. Kuchling [Sun, 25 Jul 2010 23:38:47 +0000 (23:38 +0000)]
#777884: make .normalize() do nothing for childless nodes, instead of raising an exception

14 years ago#7637: clarify description of encoding parameter
Andrew M. Kuchling [Sun, 25 Jul 2010 23:23:30 +0000 (23:23 +0000)]
#7637: clarify description of encoding parameter

14 years agoIssue #4686 - add .args to exceptions in the configparsermodule
Michael Foord [Sun, 25 Jul 2010 23:09:25 +0000 (23:09 +0000)]
Issue #4686 - add .args to exceptions in the configparsermodule

14 years ago#1495229: update the type names used by the XML DOM mapping
Andrew M. Kuchling [Sun, 25 Jul 2010 22:57:12 +0000 (22:57 +0000)]
#1495229: update the type names used by the XML DOM mapping

14 years agoCorrected comments on where settrace and setprofile are tested.
Alexander Belopolsky [Sun, 25 Jul 2010 15:05:42 +0000 (15:05 +0000)]
Corrected comments on where settrace and setprofile are tested.

14 years agoIssue #9315: Renamed test_trace to test_sys_settrace and
Alexander Belopolsky [Sun, 25 Jul 2010 15:02:55 +0000 (15:02 +0000)]
Issue #9315: Renamed test_trace to test_sys_settrace and
test_profilehooks to test_sys_setprofile so that test_trace can be
used for testing the trace module and for naming consistency.

14 years agoIssue #9315: Revert r83005 before renaming test_trace to
Alexander Belopolsky [Sun, 25 Jul 2010 14:58:54 +0000 (14:58 +0000)]
Issue #9315: Revert r83005 before renaming test_trace to
test_sys_settrace and test_profilehooks to test_sys_setprofile in all
three branches.

14 years agoFix for issue 9367: the test code for os.getgroups
Ronald Oussoren [Sat, 24 Jul 2010 14:15:19 +0000 (14:15 +0000)]
Fix for issue 9367: the test code for os.getgroups
assumes that the result of getgroups and the output
of the id(1) command return groups in the same
order.  That assumption is both fragile and false.

14 years agoPut listdir default argument into declaration.
Martin v. Löwis [Sat, 24 Jul 2010 10:09:11 +0000 (10:09 +0000)]
Put listdir default argument into declaration.

14 years agoImplementation for issue 4184
Richard Jones [Sat, 24 Jul 2010 09:51:40 +0000 (09:51 +0000)]
Implementation for issue 4184

Changes the previously private attributes to make them public, increasing the potential for extending the library in user code. Backward-compatible and documented.

14 years ago#9032: XML-RPC client: Transport.request() retries on EPIPE error
Victor Stinner [Sat, 24 Jul 2010 02:24:55 +0000 (02:24 +0000)]
#9032: XML-RPC client: Transport.request() retries on EPIPE error

The EPIPE error occurs when the server closes the socket and the client sends a
"big" XML-RPC request (I don't know exactly the size threshold).

request() just have to ignore the error because single_request() closes the
socket on error, and so the next call to single_request() will open a new
socket.

Remove also a comment in the HTTP client because it's now wrong: see r70643
and issue #5542.

14 years agoIssue #4629: getopt raises an error if an argument ends with = whereas getopt
Victor Stinner [Sat, 24 Jul 2010 00:49:20 +0000 (00:49 +0000)]
Issue #4629: getopt raises an error if an argument ends with = whereas getopt
doesn't except a value (eg. --help= is rejected if getopt uses ['help='] long
options).

14 years agoUse _datetime docstring if _datetime is available.
Alexander Belopolsky [Fri, 23 Jul 2010 20:03:53 +0000 (20:03 +0000)]
Use _datetime docstring if _datetime is available.

14 years agoIssue #7989: Added pure python implementation of the datetime module.
Alexander Belopolsky [Fri, 23 Jul 2010 19:25:47 +0000 (19:25 +0000)]
Issue #7989: Added pure python implementation of the datetime module.

14 years agoAdd Brian Brazil.
Brett Cannon [Fri, 23 Jul 2010 16:58:57 +0000 (16:58 +0000)]
Add Brian Brazil.

14 years agoMention in the fnmatch docs that meta-characters in translate cannot be quoted.
Brett Cannon [Fri, 23 Jul 2010 16:58:21 +0000 (16:58 +0000)]
Mention in the fnmatch docs that meta-characters in translate cannot be quoted.

Closes issue 9358. Thanks to Brian Brazil for the patch.

14 years agoAdd queue tests for empty, full, put_nowait, and get_nowait.
Brett Cannon [Fri, 23 Jul 2010 16:56:21 +0000 (16:56 +0000)]
Add queue tests for empty, full, put_nowait, and get_nowait.

Closes issue 9357. Thanks to Brian Brazil for the patch.

14 years agoUpdate to 1.0.
Georg Brandl [Fri, 23 Jul 2010 16:55:42 +0000 (16:55 +0000)]
Update to 1.0.

14 years agoFix some markup glitches.
Georg Brandl [Fri, 23 Jul 2010 16:55:26 +0000 (16:55 +0000)]
Fix some markup glitches.

14 years ago#9359: fix typo. Thanks to Piotr Kasprzyk for the patch.
Ezio Melotti [Fri, 23 Jul 2010 16:48:22 +0000 (16:48 +0000)]
#9359: fix typo. Thanks to Piotr Kasprzyk for the patch.

14 years agoTab test_repr_daemon over so it's included in ThreadTests.
Brian Curtin [Fri, 23 Jul 2010 16:30:10 +0000 (16:30 +0000)]
Tab test_repr_daemon over so it's included in ThreadTests.
Noticed by Amaury.

14 years agoAdd tests for fnmatch.filter and translate.
Brett Cannon [Fri, 23 Jul 2010 16:23:13 +0000 (16:23 +0000)]
Add tests for fnmatch.filter and translate.

Partially closes issue 9356. Thanks to Brian Brazil for the patch.

14 years agoMake fnmatch be more PEP 8 compliant.
Brett Cannon [Fri, 23 Jul 2010 16:22:25 +0000 (16:22 +0000)]
Make fnmatch be more PEP 8 compliant.

Partially closes issue 9356. Thanks to Brian Brazil for the patch.