]> granicus.if.org Git - python/log
python
14 years agoRemove unnecessary import.
Barry Warsaw [Wed, 24 Nov 2010 18:18:21 +0000 (18:18 +0000)]
Remove unnecessary import.

14 years agoifdef a Windows specific section.
Brian Curtin [Wed, 24 Nov 2010 13:23:18 +0000 (13:23 +0000)]
ifdef a Windows specific section.

14 years agoFix #10027. st_nlink not set on Windows calls to os.stat/lstat.
Brian Curtin [Wed, 24 Nov 2010 13:14:05 +0000 (13:14 +0000)]
Fix #10027. st_nlink not set on Windows calls to os.stat/lstat.

Note: This patch has no tests because as of now there is no way to create
links. #8879 adds that and the tests will go in there. I've manually observed
that existing links on my system function properly with this.

14 years agoRemove UTF-8 BOM.
Georg Brandl [Wed, 24 Nov 2010 09:09:29 +0000 (09:09 +0000)]
Remove UTF-8 BOM.

14 years agoIssIssue 1859: Add Jeremy Thurgood to Misc/ACKS
Terry Reedy [Tue, 23 Nov 2010 20:32:47 +0000 (20:32 +0000)]
IssIssue 1859: Add Jeremy Thurgood to Misc/ACKS

14 years agoIssue 1859: Doc that textwrap does not break on \n (pending possible behavior patch...
Terry Reedy [Tue, 23 Nov 2010 20:17:24 +0000 (20:17 +0000)]
Issue 1859: Doc that textwrap does not break on \n (pending possible behavior patch). Patch by Jeremy Thurgood.

14 years agoassert.h is also included. Thanks to Savio Sena.
Georg Brandl [Tue, 23 Nov 2010 18:14:57 +0000 (18:14 +0000)]
assert.h is also included. Thanks to Savio Sena.

14 years ago#10511: clarification of what heaps are; suggested by Johannes Hoff.
Georg Brandl [Tue, 23 Nov 2010 08:37:54 +0000 (08:37 +0000)]
#10511: clarification of what heaps are; suggested by Johannes Hoff.

14 years ago#10468: document Unicode exception creation and access functions.
Georg Brandl [Tue, 23 Nov 2010 07:54:19 +0000 (07:54 +0000)]
#10468: document Unicode exception creation and access functions.

14 years agoIssue 9222 Fix filetypes for open dialog
Terry Reedy [Tue, 23 Nov 2010 06:01:31 +0000 (06:01 +0000)]
Issue 9222 Fix filetypes for open dialog

14 years agoinformation on Issue #9846
Łukasz Langa [Tue, 23 Nov 2010 00:19:53 +0000 (00:19 +0000)]
information on Issue #9846

14 years agozipfile: remove remaining ResourceWarnings
Łukasz Langa [Tue, 23 Nov 2010 00:15:02 +0000 (00:15 +0000)]
zipfile: remove remaining ResourceWarnings

14 years agoIssue #9846: ZipExtFile provides no mechanism for closing the underlying file object
Łukasz Langa [Mon, 22 Nov 2010 23:31:26 +0000 (23:31 +0000)]
Issue #9846: ZipExtFile provides no mechanism for closing the underlying file object

14 years agoIssue #6878: Fixed return type of tkinter methods documented to return lists.
Alexander Belopolsky [Mon, 22 Nov 2010 19:40:51 +0000 (19:40 +0000)]
Issue #6878: Fixed return type of tkinter methods documented to return lists.

14 years agoFix test_multiprocessing when ctypes isn't available
Antoine Pitrou [Mon, 22 Nov 2010 16:26:21 +0000 (16:26 +0000)]
Fix test_multiprocessing when ctypes isn't available

14 years agoFix tests when ctypes isn't available
Antoine Pitrou [Mon, 22 Nov 2010 16:19:04 +0000 (16:19 +0000)]
Fix tests when ctypes isn't available

14 years ago#9424: add a DeprecationWarning for assertEquals, assertNotEquals, assertAlmostEquals...
Ezio Melotti [Mon, 22 Nov 2010 12:56:58 +0000 (12:56 +0000)]
#9424: add a DeprecationWarning for assertEquals, assertNotEquals, assertAlmostEquals, assertNotAlmostEquals, and assert_

14 years agoissue 10501
Kristján Valur Jónsson [Mon, 22 Nov 2010 11:37:06 +0000 (11:37 +0000)]
issue 10501
make_buildinfo regression with unquoted path
Make_buildinfo.exe should be called with a quoted path, and should quote the full paths to its temp files, to support spaces in filenames.

14 years agoImprove test for 'python -m unittest' launching test discovery
Michael Foord [Mon, 22 Nov 2010 10:41:27 +0000 (10:41 +0000)]
Improve test for 'python -m unittest' launching test discovery

14 years agoIssue #10459: Update CJK character names to Unicode 6.0.
Martin v. Löwis [Mon, 22 Nov 2010 09:00:02 +0000 (09:00 +0000)]
Issue #10459: Update CJK character names to Unicode 6.0.

14 years agoFix - s/urllib2/urllib.request/
Senthil Kumaran [Mon, 22 Nov 2010 05:08:13 +0000 (05:08 +0000)]
Fix - s/urllib2/urllib.request/

14 years agoFix Issue4493 - urllib2 adds '/' to the path component of url, when it does not
Senthil Kumaran [Mon, 22 Nov 2010 04:48:26 +0000 (04:48 +0000)]
Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not
starts with one. This behavior is exhibited by browser and other clients.

14 years agoFix resource warning from patchcheck.py
Éric Araujo [Mon, 22 Nov 2010 03:13:47 +0000 (03:13 +0000)]
Fix resource warning from patchcheck.py

14 years agoRemove unnecessary `object` base class in docs (#10366).
Éric Araujo [Mon, 22 Nov 2010 03:09:19 +0000 (03:09 +0000)]
Remove unnecessary `object` base class in docs (#10366).

Also add a note about inheritance from `object` being default.

14 years agoIssue #10138: Removed 'indefinitely' from the proleptic calendar description.
Alexander Belopolsky [Mon, 22 Nov 2010 03:06:56 +0000 (03:06 +0000)]
Issue #10138: Removed 'indefinitely' from the proleptic calendar description.

14 years agoFix one compileall test (#10453). Patch by Michele Orrù.
Éric Araujo [Mon, 22 Nov 2010 02:42:43 +0000 (02:42 +0000)]
Fix one compileall test (#10453).  Patch by Michele Orrù.

14 years agoAdd myself for unittest and fix Alexander username
Ezio Melotti [Mon, 22 Nov 2010 01:22:43 +0000 (01:22 +0000)]
Add myself for unittest and fix Alexander username

14 years agor84925 followup: add docstring for get_makefile_filename (+PEP 257 fixes)
Éric Araujo [Mon, 22 Nov 2010 01:19:20 +0000 (01:19 +0000)]
r84925 followup: add docstring for get_makefile_filename (+PEP 257 fixes)

14 years agoFix typo
Éric Araujo [Mon, 22 Nov 2010 01:11:49 +0000 (01:11 +0000)]
Fix typo

14 years agoUpdate maintainers
Raymond Hettinger [Mon, 22 Nov 2010 01:08:14 +0000 (01:08 +0000)]
Update maintainers

14 years agoQuote the paths in the event that they contain spaces.
Brian Curtin [Mon, 22 Nov 2010 00:01:01 +0000 (00:01 +0000)]
Quote the paths in the event that they contain spaces.

14 years agoIssue 3292: Fixup to the Sequence docs.
Raymond Hettinger [Sun, 21 Nov 2010 23:51:45 +0000 (23:51 +0000)]
Issue 3292: Fixup to the Sequence docs.

14 years agoFix #6378. Start IDLE using the proper version of Python based on the directory
Brian Curtin [Sun, 21 Nov 2010 23:45:10 +0000 (23:45 +0000)]
Fix #6378. Start IDLE using the proper version of Python based on the directory
tree that idle.bat resides in.

Works with any/all versions of Python installed concurrently.

14 years agoIssue 6722: Improve the namedtuple examples.
Raymond Hettinger [Sun, 21 Nov 2010 23:23:29 +0000 (23:23 +0000)]
Issue 6722: Improve the namedtuple examples.

14 years agoIssue 10470: 'python -m unittest' launches test discovery by default.(If you need...
Michael Foord [Sun, 21 Nov 2010 21:28:01 +0000 (21:28 +0000)]
Issue 10470:  'python -m unittest' launches test discovery by default.(If you need to pass options to test discovery the discover subcommand must still be specified explicitly.)

14 years agoIssue #10488: Bring documentation for 'float' builtin up to date.
Mark Dickinson [Sun, 21 Nov 2010 21:09:58 +0000 (21:09 +0000)]
Issue #10488: Bring documentation for 'float' builtin up to date.

14 years agoAdd CSS rule for the deprecated-removed directive
Ezio Melotti [Sun, 21 Nov 2010 20:27:39 +0000 (20:27 +0000)]
Add CSS rule for the deprecated-removed directive

14 years agoAdd sets to the precedence table.
Brett Cannon [Sun, 21 Nov 2010 19:58:24 +0000 (19:58 +0000)]
Add sets to the precedence table.

14 years agoMake test_nntplib more robust
Antoine Pitrou [Sun, 21 Nov 2010 17:14:19 +0000 (17:14 +0000)]
Make test_nntplib more robust

14 years agoFix TestBytesGeneratorIdempotent tests and a couple bugs they revealed.
R. David Murray [Sun, 21 Nov 2010 16:53:48 +0000 (16:53 +0000)]
Fix TestBytesGeneratorIdempotent tests and a couple bugs they revealed.

The tests that were failing on (some) windows machines, where the
msg_XX.txt files used native \r\n lineseps are now also run on machines
that use \n natively, and conversely the \n tests are run on Windows.
The failing tests revealed one place where linesep needed to be added
to a flatten call in generator.  There was also another that the tests
didn't catch, so I added a test for that case as well.

14 years agofix refleak
Benjamin Peterson [Sun, 21 Nov 2010 15:12:34 +0000 (15:12 +0000)]
fix refleak

14 years agoFix issue3709 - BaseHTTPRequestHandler will buffer the headers and write only on...
Senthil Kumaran [Sun, 21 Nov 2010 14:36:14 +0000 (14:36 +0000)]
Fix issue3709 - BaseHTTPRequestHandler will buffer the headers and write only on end_headers call.

14 years agoconfigparser: read-only attributes to get the section name and parser from a SectionP...
Łukasz Langa [Sun, 21 Nov 2010 13:56:42 +0000 (13:56 +0000)]
configparser: read-only attributes to get the section name and parser from a SectionProxy instance

14 years agoIssue #10489: removed broken `__name__` support from configparser
Łukasz Langa [Sun, 21 Nov 2010 13:41:35 +0000 (13:41 +0000)]
Issue #10489: removed broken `__name__` support from configparser

14 years agoFix capitalization.
Mark Dickinson [Sun, 21 Nov 2010 07:37:49 +0000 (07:37 +0000)]
Fix capitalization.

14 years agoRevert r86517
Raymond Hettinger [Sun, 21 Nov 2010 04:08:28 +0000 (04:08 +0000)]
Revert  r86517

14 years agoAdd a couple of missing versionadded tags in the inspect module docs
Nick Coghlan [Sun, 21 Nov 2010 03:55:53 +0000 (03:55 +0000)]
Add a couple of missing versionadded tags in the inspect module docs

14 years agoIssue #10220: Add inspect.getgeneratorstate(). Initial patch by Rodolpho Eckhardt
Nick Coghlan [Sun, 21 Nov 2010 03:44:04 +0000 (03:44 +0000)]
Issue #10220: Add inspect.getgeneratorstate(). Initial patch by Rodolpho Eckhardt

14 years agoStyle edits in followup to r86521 (#9312)
Éric Araujo [Sun, 21 Nov 2010 03:09:17 +0000 (03:09 +0000)]
Style edits in followup to r86521 (#9312)

14 years agoIssue #7770: Note the useful range of sin/cos in the decimal module examples.
Raymond Hettinger [Sun, 21 Nov 2010 02:47:22 +0000 (02:47 +0000)]
Issue #7770: Note the useful range of sin/cos in the decimal module examples.

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.