]> granicus.if.org Git - python/log
python
14 years agoTry to get more useful output from failing buildbot
Éric Araujo [Sun, 21 Nov 2010 02:19:09 +0000 (02:19 +0000)]
Try to get more useful output from failing buildbot

14 years agoClean-up the description of the range object.
Raymond Hettinger [Sun, 21 Nov 2010 00:07:55 +0000 (00:07 +0000)]
Clean-up the description of the range object.

14 years agoDocument index and count as part of the Sequence ABC (#9746)
Éric Araujo [Sat, 20 Nov 2010 23:56:22 +0000 (23:56 +0000)]
Document index and count as part of the Sequence ABC (#9746)

14 years agopep 7 actually wants the brace on a new line
Benjamin Peterson [Sat, 20 Nov 2010 23:05:39 +0000 (23:05 +0000)]
pep 7 actually wants the brace on a new line

14 years agofix two broken tests
Benjamin Peterson [Sat, 20 Nov 2010 23:03:34 +0000 (23:03 +0000)]
fix two broken tests

14 years agomerge all range tests into test_range
Benjamin Peterson [Sat, 20 Nov 2010 23:01:55 +0000 (23:01 +0000)]
merge all range tests into test_range

14 years agoenable test that was commented out for whatever reason
Benjamin Peterson [Sat, 20 Nov 2010 22:50:04 +0000 (22:50 +0000)]
enable test that was commented out for whatever reason

14 years agocode style and simplification
Benjamin Peterson [Sat, 20 Nov 2010 22:44:32 +0000 (22:44 +0000)]
code style and simplification

14 years agoAdd error handling in range_count.
Georg Brandl [Sat, 20 Nov 2010 22:40:10 +0000 (22:40 +0000)]
Add error handling in range_count.

14 years agocount() should return integers #10474
Benjamin Peterson [Sat, 20 Nov 2010 22:35:41 +0000 (22:35 +0000)]
count() should return integers #10474

14 years agoFix typos and style in compileall.
Éric Araujo [Sat, 20 Nov 2010 21:53:02 +0000 (21:53 +0000)]
Fix typos and style in compileall.

14 years agoFix email doc update I overlooked (thanks, Éric)
R. David Murray [Sat, 20 Nov 2010 21:28:24 +0000 (21:28 +0000)]
Fix email doc update I overlooked (thanks, Éric)

14 years ago#10453: compileall now uses argparse instead of getopt, so -h works.
R. David Murray [Sat, 20 Nov 2010 21:18:51 +0000 (21:18 +0000)]
#10453: compileall now uses argparse instead of getopt, so -h works.

Patch by Michele Orrù.

14 years agoIssue #8078: Add constants for higher baud rates in the termios module.
Antoine Pitrou [Sat, 20 Nov 2010 20:03:08 +0000 (20:03 +0000)]
Issue #8078: Add constants for higher baud rates in the termios module.
Patch by Rodolpho Eckhardt.

14 years ago#9724: add nonlocal to pydoc topics.
Georg Brandl [Sat, 20 Nov 2010 19:54:36 +0000 (19:54 +0000)]
#9724: add nonlocal to pydoc topics.

14 years agoIssue #10255: Fix reference leak in Py_InitializeEx(). Patch by Neil
Antoine Pitrou [Sat, 20 Nov 2010 19:50:57 +0000 (19:50 +0000)]
Issue #10255: Fix reference leak in Py_InitializeEx().  Patch by Neil
Schemenauer.

14 years agoAdd entry for r86601
Éric Araujo [Sat, 20 Nov 2010 19:37:28 +0000 (19:37 +0000)]
Add entry for r86601

14 years agoIn 3.x, bytearray is akin to bytes, not str.
Antoine Pitrou [Sat, 20 Nov 2010 19:36:05 +0000 (19:36 +0000)]
In 3.x, bytearray is akin to bytes, not str.

14 years agoFix two NameErrors in distutils (#10407)
Éric Araujo [Sat, 20 Nov 2010 19:35:27 +0000 (19:35 +0000)]
Fix two NameErrors in distutils (#10407)

14 years agorevert changes in inappropiate branch
Benjamin Peterson [Sat, 20 Nov 2010 19:09:08 +0000 (19:09 +0000)]
revert changes in inappropiate branch

14 years ago#9424: Replace deprecated assert* methods in the Python test suite.
Ezio Melotti [Sat, 20 Nov 2010 19:04:17 +0000 (19:04 +0000)]
#9424: Replace deprecated assert* methods in the Python test suite.

14 years agodon't shadow globals
Benjamin Peterson [Sat, 20 Nov 2010 18:24:54 +0000 (18:24 +0000)]
don't shadow globals

14 years agoIssue #10371: Deprecated undocumented functions in the trace module.
Alexander Belopolsky [Sat, 20 Nov 2010 18:21:07 +0000 (18:21 +0000)]
Issue #10371: Deprecated undocumented functions in the trace module.

14 years agoadd filename to ENOENT message #4925
Benjamin Peterson [Sat, 20 Nov 2010 18:07:52 +0000 (18:07 +0000)]
add filename to ENOENT message #4925

14 years agoAddition of issue 9926 to NEWS
Michael Foord [Sat, 20 Nov 2010 17:50:34 +0000 (17:50 +0000)]
Addition of issue 9926 to NEWS

14 years agocorrect logic when pos is after the string #10467
Benjamin Peterson [Sat, 20 Nov 2010 17:24:04 +0000 (17:24 +0000)]
correct logic when pos is after the string #10467

14 years agoImprove unittest.TestLoader.discover docstring
Michael Foord [Sat, 20 Nov 2010 17:22:21 +0000 (17:22 +0000)]
Improve unittest.TestLoader.discover docstring

14 years agoadd space
Benjamin Peterson [Sat, 20 Nov 2010 17:22:13 +0000 (17:22 +0000)]
add space

14 years agocode style
Benjamin Peterson [Sat, 20 Nov 2010 17:21:08 +0000 (17:21 +0000)]
code style

14 years agoFix issue10377 - Output from pstats - it is just secs (i.e, wallclock time) and not...
Senthil Kumaran [Sat, 20 Nov 2010 17:02:50 +0000 (17:02 +0000)]
Fix issue10377 - Output from pstats - it is just secs (i.e, wallclock time) and not CPU time.

14 years agoIssue 9732: __class__ no longer checked on objects by getattr_static
Michael Foord [Sat, 20 Nov 2010 16:58:30 +0000 (16:58 +0000)]
Issue 9732: __class__ no longer checked on objects by getattr_static

14 years agoIssue 9732: fetch the method resolution order from the type metaclass directly in...
Michael Foord [Sat, 20 Nov 2010 16:40:44 +0000 (16:40 +0000)]
Issue 9732: fetch the method resolution order from the type metaclass directly in getattr_static

14 years ago#1574217: only swallow AttributeErrors in isinstance, not everything.
R. David Murray [Sat, 20 Nov 2010 16:33:30 +0000 (16:33 +0000)]
#1574217: only swallow AttributeErrors in isinstance, not everything.

Patch and tests by Brian Harring, with improvements by Ralf Schmitt.

14 years agoremoved a NEWS entry that cloned itself in mysterious circumstances
Łukasz Langa [Sat, 20 Nov 2010 16:24:30 +0000 (16:24 +0000)]
removed a NEWS entry that cloned itself in mysterious circumstances

14 years agoIssue 9732: remove use of __class__ in inspect.getattr_static and note the mro except...
Michael Foord [Sat, 20 Nov 2010 16:20:16 +0000 (16:20 +0000)]
Issue 9732: remove use of __class__ in inspect.getattr_static and note the mro exception to code execution

14 years agoacknowledge configparser evolution
Łukasz Langa [Sat, 20 Nov 2010 16:16:24 +0000 (16:16 +0000)]
acknowledge configparser evolution

14 years agoconfigparser: the name of the DEFAULT section is now customizable
Łukasz Langa [Sat, 20 Nov 2010 16:15:37 +0000 (16:15 +0000)]
configparser: the name of the DEFAULT section is now customizable

14 years agoIssue 10326: further extend test for unpickling to ensure type lookup mechanism works...
Michael Foord [Sat, 20 Nov 2010 15:47:56 +0000 (15:47 +0000)]
Issue 10326: further extend test for unpickling to ensure type lookup mechanism works after unpickling

14 years agoIssue 10326: extend test for pickling of TestCase instances to ensure they can be...
Michael Foord [Sat, 20 Nov 2010 15:43:02 +0000 (15:43 +0000)]
Issue 10326: extend test for pickling of TestCase instances to ensure they can be unpickled too

14 years agoIssue 10326: TestCase instances can now be pickled (they store names of instance...
Michael Foord [Sat, 20 Nov 2010 15:34:26 +0000 (15:34 +0000)]
Issue 10326: TestCase instances can now be pickled (they store names of instance methods instead of references to the instance methods themselves).

14 years agoImprove TestBytesGeneratorIdempotent using by using linesep.
R. David Murray [Sat, 20 Nov 2010 15:10:13 +0000 (15:10 +0000)]
Improve TestBytesGeneratorIdempotent using by using linesep.

Also corrects a typo from a previous commit.  Unfortunately
this does *not* fix issue #10134.

14 years agoIssue 9732: addition of getattr_static to the inspect module
Michael Foord [Sat, 20 Nov 2010 15:07:30 +0000 (15:07 +0000)]
Issue 9732: addition of getattr_static to the inspect module

14 years agosocket.gethostbyname(socket.gethostname()) can fail when host name resolution is...
Georg Brandl [Sat, 20 Nov 2010 14:16:17 +0000 (14:16 +0000)]
socket.gethostbyname(socket.gethostname()) can fail when host name resolution is not set up correctly; do not fail test_socket if this is the case.

14 years ago#10460: an even better indent.pro.
Georg Brandl [Sat, 20 Nov 2010 14:08:53 +0000 (14:08 +0000)]
#10460: an even better indent.pro.

14 years ago#10439: document PyCodec C APIs.
Georg Brandl [Sat, 20 Nov 2010 13:44:41 +0000 (13:44 +0000)]
#10439: document PyCodec C APIs.

14 years ago#10460: Update indent.pro to match PEP 7 better.
Georg Brandl [Sat, 20 Nov 2010 11:47:10 +0000 (11:47 +0000)]
#10460: Update indent.pro to match PEP 7 better.

14 years ago#10465: fix broken delegation in __getattr__ of _PaddedFile.
Georg Brandl [Sat, 20 Nov 2010 11:25:01 +0000 (11:25 +0000)]
#10465: fix broken delegation in __getattr__ of _PaddedFile.

14 years agoIssue #9920: Skip tests for cmath.atan and cmath.atanh applied to
Mark Dickinson [Sat, 20 Nov 2010 11:08:27 +0000 (11:08 +0000)]
Issue #9920: Skip tests for cmath.atan and cmath.atanh applied to
complex zeros on systems where the log1p function fails to respect
the sign of zero.  This fixes a test failure on AIX.

14 years agoIssue #10325: Fix two issues in the fallback definitions of PY_LLONG_MAX and
Mark Dickinson [Sat, 20 Nov 2010 10:43:10 +0000 (10:43 +0000)]
Issue #10325: Fix two issues in the fallback definitions of PY_LLONG_MAX and
PY_ULLONG_MAX in pyport.h.  Thanks Hallvard B Furuseth for the patch.

14 years agoRegenerated configure and pyconfig.h.in.
Mark Dickinson [Sat, 20 Nov 2010 10:29:12 +0000 (10:29 +0000)]
Regenerated configure and pyconfig.h.in.

14 years agoFix rst markup errors.
Georg Brandl [Sat, 20 Nov 2010 10:24:34 +0000 (10:24 +0000)]
Fix rst markup errors.

14 years agoUse correct markup for True/False/None
Ezio Melotti [Sat, 20 Nov 2010 10:13:45 +0000 (10:13 +0000)]
Use correct markup for True/False/None

14 years agoAdd configure-time test for log1p disrespecting zero sign.
Mark Dickinson [Sat, 20 Nov 2010 10:09:56 +0000 (10:09 +0000)]
Add configure-time test for log1p disrespecting zero sign.

14 years agoAdd a few labels and links to unittest doc
Ezio Melotti [Sat, 20 Nov 2010 09:57:27 +0000 (09:57 +0000)]
Add a few labels and links to unittest doc

14 years agonew plan: functions that want 'tmp' can declare it
Benjamin Peterson [Sat, 20 Nov 2010 04:31:07 +0000 (04:31 +0000)]
new plan: functions that want 'tmp' can declare it

14 years agoFixes a timing-related failure on Windows (issue 10183)
Brian Quinlan [Sat, 20 Nov 2010 04:09:35 +0000 (04:09 +0000)]
Fixes a timing-related failure on Windows (issue 10183)

14 years agoMake test class name unique so that both test classes run.
R. David Murray [Sat, 20 Nov 2010 03:48:58 +0000 (03:48 +0000)]
Make test class name unique so that both test classes run.

14 years agoc89 declarations
Benjamin Peterson [Sat, 20 Nov 2010 02:01:45 +0000 (02:01 +0000)]
c89 declarations

14 years agouse %R format code; fixes invalid dereferencing #10391
Benjamin Peterson [Sat, 20 Nov 2010 01:38:49 +0000 (01:38 +0000)]
use %R format code; fixes invalid dereferencing #10391

14 years agoDo not put a raw REPLACEMENT CHARACTER in the document.
Georg Brandl [Fri, 19 Nov 2010 22:09:04 +0000 (22:09 +0000)]
Do not put a raw REPLACEMENT CHARACTER in the document.

14 years agoremove documentation for something that's gone
Fred Drake [Fri, 19 Nov 2010 21:24:25 +0000 (21:24 +0000)]
remove documentation for something that's gone

14 years agoFix test_ssl_presence when ssl is not present
Antoine Pitrou [Fri, 19 Nov 2010 20:07:52 +0000 (20:07 +0000)]
Fix test_ssl_presence when ssl is not present

14 years agoIssue #4153: Updated Unicode HOWTO.
Alexander Belopolsky [Fri, 19 Nov 2010 16:09:58 +0000 (16:09 +0000)]
Issue #4153: Updated Unicode HOWTO.

14 years ago#10455: fix typo
Ezio Melotti [Thu, 18 Nov 2010 19:48:27 +0000 (19:48 +0000)]
#10455: fix typo

14 years agoIssue 7828: Fixed chr() and ord() documentation for wide characters
Alexander Belopolsky [Thu, 18 Nov 2010 18:50:13 +0000 (18:50 +0000)]
Issue 7828: Fixed chr() and ord() documentation for wide characters

14 years agoWrap all test_nntplib methods accessing a remote server in a transient_internet()
Antoine Pitrou [Thu, 18 Nov 2010 17:29:23 +0000 (17:29 +0000)]
Wrap all test_nntplib methods accessing a remote server in a transient_internet()
exception catcher.  Wrapping the initial connection routine is not sufficient
as network timeouts can then occur as part of NNTP commands.

14 years agoCode Changes as per review comments by Antoine Pitrou.
Senthil Kumaran [Thu, 18 Nov 2010 17:08:48 +0000 (17:08 +0000)]
Code Changes as per review comments by Antoine Pitrou.

14 years agoFix usage of :option: in the docs (#9312).
Éric Araujo [Thu, 18 Nov 2010 16:38:46 +0000 (16:38 +0000)]
Fix usage of :option: in the docs (#9312).

:option: is used to create a link to an option of python, not to mark
up any instance of any arbitrary command-line option.  These were
changed to ````.

For modules which do have a command-line interface, lists of options
have been properly marked up with the program/cmdoption directives
combo.  Options defined in such blocks can be linked to with :option:
later in the same file, they won’t link to an option of python.

Finally, the markup of command-line fragments in optparse.rst has
been cleaned to use ``x`` instead of ``"x"``, keeping that latter
form for actual Python strings.

Patch by Eli Bendersky and Éric Araujo.

14 years agoFix Issue2244 - urllib unquotes user and password info multiple times - Patch by...
Senthil Kumaran [Thu, 18 Nov 2010 15:36:41 +0000 (15:36 +0000)]
Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy

14 years agoIssue #10356: hash(Decimal("sNaN")) now raises ValueError instead of TypeError.
Stefan Krah [Thu, 18 Nov 2010 15:20:34 +0000 (15:20 +0000)]
Issue #10356: hash(Decimal("sNaN")) now raises ValueError instead of TypeError.

14 years agoMake test_nntplib more robust when the "last" article in a group can't be retrieved
Antoine Pitrou [Thu, 18 Nov 2010 15:11:43 +0000 (15:11 +0000)]
Make test_nntplib more robust when the "last" article in a group can't be retrieved

14 years agoFix Issue 9991: xmlrpc client ssl check faulty
Senthil Kumaran [Thu, 18 Nov 2010 15:00:53 +0000 (15:00 +0000)]
Fix Issue 9991: xmlrpc client ssl check faulty

14 years agoRemove spurious space that was breaking Vim’s reST highlighting.
Éric Araujo [Thu, 18 Nov 2010 14:22:08 +0000 (14:22 +0000)]
Remove spurious space that was breaking Vim’s reST highlighting.

14 years agoreduce try block compass
Benjamin Peterson [Thu, 18 Nov 2010 14:14:43 +0000 (14:14 +0000)]
reduce try block compass

14 years agoIssue 10260
Kristján Valur Jónsson [Thu, 18 Nov 2010 12:46:39 +0000 (12:46 +0000)]
Issue 10260
Adding the wait_for() method to threading.Condition

14 years agoRemove duplicate period from reference doc
Michael Foord [Thu, 18 Nov 2010 11:02:50 +0000 (11:02 +0000)]
Remove duplicate period from reference doc

14 years agoIssue #10446 NEWS entry
Alexander Belopolsky [Thu, 18 Nov 2010 03:50:18 +0000 (03:50 +0000)]
Issue #10446 NEWS entry

14 years agoFix a minor inconsistency in capitalization for the 'No module named' exception
Brett Cannon [Thu, 18 Nov 2010 03:03:04 +0000 (03:03 +0000)]
Fix a minor inconsistency in capitalization for the 'No module named' exception
message in importlib.

Thanks to Éric Araujo for spotting the inconsistency.

14 years agoFix #8886. Use context managers throughout the test.
Brian Curtin [Thu, 18 Nov 2010 02:15:28 +0000 (02:15 +0000)]
Fix #8886. Use context managers throughout the test.

14 years agoIssue #10446: Several changes to module documentation generated by pydoc:
Alexander Belopolsky [Thu, 18 Nov 2010 01:52:54 +0000 (01:52 +0000)]
Issue #10446: Several changes to module documentation generated by pydoc:

1. Online reference manual link is now version-specific and the
   'MODULE DOCS' section renamed to 'MODULE REFERENCE'.

2. 'FILE' section is moved to the end of the file.

3. Special names processed by pydoc such as __version__ or __credits__
   are now excluded from the DATA section.

4. Defined __all__ to prevent pydoc from exposing undocumented details
   about itself.

5. Removed Python 2.3 compatibility code.

14 years agohandle dict subclasses gracefully in PyArg_ValidateKeywordArguments
Benjamin Peterson [Wed, 17 Nov 2010 22:33:12 +0000 (22:33 +0000)]
handle dict subclasses gracefully in PyArg_ValidateKeywordArguments

14 years agoUse laxer timeouts in barrier tests
Antoine Pitrou [Wed, 17 Nov 2010 21:55:41 +0000 (21:55 +0000)]
Use laxer timeouts in barrier tests

14 years agoIssue #9518: Extend the PyModuleDef_HEAD_INIT macro to explicitly
David Malcolm [Wed, 17 Nov 2010 21:20:18 +0000 (21:20 +0000)]
Issue #9518: Extend the PyModuleDef_HEAD_INIT macro to explicitly
zero-initialize all fields, fixing compiler warnings seen when building
extension modules with gcc with "-Wmissing-field-initializers" (implied
by "-W")

14 years agoIssue #10443: Add the SSLContext.set_default_verify_paths() method.
Antoine Pitrou [Wed, 17 Nov 2010 20:29:42 +0000 (20:29 +0000)]
Issue #10443: Add the SSLContext.set_default_verify_paths() method.

14 years agoIssue #10440: Support RUSAGE_THREAD as a constant in the resource module.
Antoine Pitrou [Wed, 17 Nov 2010 16:19:35 +0000 (16:19 +0000)]
Issue #10440: Support RUSAGE_THREAD as a constant in the resource module.
Patch by Robert Collins.

14 years agoIssue #10356: Decimal(-1).__hash__() should equal hash(Decimal(-1)).
Stefan Krah [Wed, 17 Nov 2010 11:16:34 +0000 (11:16 +0000)]
Issue #10356: Decimal(-1).__hash__() should equal hash(Decimal(-1)).

14 years agoRemoves an inefficient spin loop in as_completed
Brian Quinlan [Wed, 17 Nov 2010 11:06:29 +0000 (11:06 +0000)]
Removes an inefficient spin loop in as_completed

14 years agoFix typo
Ezio Melotti [Tue, 16 Nov 2010 20:57:59 +0000 (20:57 +0000)]
Fix typo

14 years agoModules/_io/bufferedio.c (buffered_dealloc_warn): Make it static.
Matthias Klose [Tue, 16 Nov 2010 20:07:51 +0000 (20:07 +0000)]
Modules/_io/bufferedio.c (buffered_dealloc_warn): Make it static.

14 years agoProvide links to Python source where the code is short, readable and
Éric Araujo [Tue, 16 Nov 2010 19:13:50 +0000 (19:13 +0000)]
Provide links to Python source where the code is short, readable and
informative adjunct to the docs.  Forward-port of Raymond's r86225 and
r86245 using the new source reST role added in #10334.

14 years agoIssue #10429: IMAP.starttls() stored the capabilities as bytes objects,
Antoine Pitrou [Tue, 16 Nov 2010 17:55:26 +0000 (17:55 +0000)]
Issue #10429: IMAP.starttls() stored the capabilities as bytes objects,
rather than strings.

14 years agoAvoid some BytesWarnings when running test_imaplib in verbose mode
Antoine Pitrou [Tue, 16 Nov 2010 17:49:46 +0000 (17:49 +0000)]
Avoid some BytesWarnings when running test_imaplib in verbose mode

14 years agoPost-release bumps.
Georg Brandl [Tue, 16 Nov 2010 15:15:56 +0000 (15:15 +0000)]
Post-release bumps.

14 years agoAdd stub for PEP 3148.
Georg Brandl [Tue, 16 Nov 2010 15:15:29 +0000 (15:15 +0000)]
Add stub for PEP 3148.

14 years agoIssue #10413: Updated comments to reflect code changes
Alexander Belopolsky [Tue, 16 Nov 2010 14:29:01 +0000 (14:29 +0000)]
Issue #10413: Updated comments to reflect code changes

14 years agoLogging: added stack_info argument.
Vinay Sajip [Sun, 14 Nov 2010 21:33:04 +0000 (21:33 +0000)]
Logging: added stack_info argument.

14 years agoIssue 10410: An iterable is not necessarily a container.
Raymond Hettinger [Sun, 14 Nov 2010 05:27:15 +0000 (05:27 +0000)]
Issue 10410:  An iterable is not necessarily a container.

14 years agoTagging 3.2a4.
Georg Brandl [Sat, 13 Nov 2010 13:25:56 +0000 (13:25 +0000)]
Tagging 3.2a4.

14 years agoMinor edits. v3.2a4
Georg Brandl [Sat, 13 Nov 2010 13:25:40 +0000 (13:25 +0000)]
Minor edits.

14 years agoFix Issue5111 - Wrap the Ipv6 host with [] in the Host header
Senthil Kumaran [Sat, 13 Nov 2010 12:27:49 +0000 (12:27 +0000)]
Fix Issue5111 -  Wrap the Ipv6 host with [] in the Host header