python
14 years agoAdd some internal links.
Raymond Hettinger [Tue, 30 Nov 2010 17:45:41 +0000 (17:45 +0000)]
Add some internal links.

14 years agoIssue #9598: untabify.py will now respect encoding cookie in the files it processes
Alexander Belopolsky [Tue, 30 Nov 2010 17:30:43 +0000 (17:30 +0000)]
Issue #9598: untabify.py will now respect encoding cookie in the files it processes

14 years agoLet’s keep “throw” for the generator method and use “raise” elsewhere.
Éric Araujo [Tue, 30 Nov 2010 17:20:31 +0000 (17:20 +0000)]
Let’s keep “throw” for the generator method and use “raise” elsewhere.

14 years agoIssue #10552: Partially fixed a sort error in Tools/unicode/gencodec.py
Alexander Belopolsky [Tue, 30 Nov 2010 16:56:15 +0000 (16:56 +0000)]
Issue #10552: Partially fixed a sort error in Tools/unicode/gencodec.py

14 years agoActually fix what I attempted to fix in r86888...
Brian Curtin [Tue, 30 Nov 2010 15:54:04 +0000 (15:54 +0000)]
Actually fix what I attempted to fix in r86888...

14 years agoIssue 9873: the URL parsing functions now accept ASCII encoded byte sequences in...
Nick Coghlan [Tue, 30 Nov 2010 15:48:08 +0000 (15:48 +0000)]
Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings

14 years agoTry to fix failures on platforms that can't encode the test characters.
Brian Curtin [Tue, 30 Nov 2010 15:40:04 +0000 (15:40 +0000)]
Try to fix failures on platforms that can't encode the test characters.
Skip the test if encoding fails.

14 years agoFix typo.
Georg Brandl [Tue, 30 Nov 2010 14:57:54 +0000 (14:57 +0000)]
Fix typo.

14 years agoRemove redundant includes of headers that are already included by Python.h.
Georg Brandl [Tue, 30 Nov 2010 09:41:01 +0000 (09:41 +0000)]
Remove redundant includes of headers that are already included by Python.h.

14 years agoInclude structseq.h in Python.h, and remove now-redundant includes in individual...
Georg Brandl [Tue, 30 Nov 2010 09:30:54 +0000 (09:30 +0000)]
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.

14 years agoFix input type for zlib.
Georg Brandl [Tue, 30 Nov 2010 08:20:16 +0000 (08:20 +0000)]
Fix input type for zlib.

14 years ago#10584: fix bad links.
Georg Brandl [Tue, 30 Nov 2010 07:43:28 +0000 (07:43 +0000)]
#10584: fix bad links.

14 years agoNeaten-up a bit.
Raymond Hettinger [Tue, 30 Nov 2010 07:13:04 +0000 (07:13 +0000)]
Neaten-up a bit.

14 years agoIssue 10220: switch to using string constants rather than integers for inspect.getgen...
Nick Coghlan [Tue, 30 Nov 2010 06:36:04 +0000 (06:36 +0000)]
Issue 10220: switch to using string constants rather than integers for inspect.getgeneratorstate() return values and make debugging friendly str() and repr() for generator states a requirement in the test suite

14 years agoIssue 10586: change the new functools.lru_cache implementation to expose the maximum...
Nick Coghlan [Tue, 30 Nov 2010 06:19:46 +0000 (06:19 +0000)]
Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.

14 years agoIssue #10572: Moved json tests to Lib/test/json_tests.
Alexander Belopolsky [Tue, 30 Nov 2010 03:03:30 +0000 (03:03 +0000)]
Issue #10572: Moved json tests to Lib/test/json_tests.
Approved by Raymond Hettinger.

14 years agoIssue #10323: Predictable final state for slice().
Raymond Hettinger [Tue, 30 Nov 2010 02:49:29 +0000 (02:49 +0000)]
Issue #10323: Predictable final state for slice().

14 years agoUse booleans where applicable.
Georg Brandl [Mon, 29 Nov 2010 20:19:15 +0000 (20:19 +0000)]
Use booleans where applicable.

14 years agoCode style cleanup in bdb.
Georg Brandl [Mon, 29 Nov 2010 20:12:24 +0000 (20:12 +0000)]
Code style cleanup in bdb.

14 years agoFix heading style inconsistencies.
Georg Brandl [Mon, 29 Nov 2010 14:53:15 +0000 (14:53 +0000)]
Fix heading style inconsistencies.

14 years agoFix indentation bug.
Georg Brandl [Mon, 29 Nov 2010 14:50:54 +0000 (14:50 +0000)]
Fix indentation bug.

14 years agoRemove the comment used while testing.
Senthil Kumaran [Mon, 29 Nov 2010 12:42:29 +0000 (12:42 +0000)]
Remove the comment used while testing.

14 years agoFix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
Senthil Kumaran [Mon, 29 Nov 2010 11:54:17 +0000 (11:54 +0000)]
Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.

14 years agoIssue #10565: Iterator ABC should require both __next__ and __iter__.
Raymond Hettinger [Mon, 29 Nov 2010 03:56:12 +0000 (03:56 +0000)]
Issue #10565:  Iterator ABC should require both __next__ and __iter__.

14 years agoUse assertCountEqual instead of assertItemsEqual
Ezio Melotti [Mon, 29 Nov 2010 02:02:10 +0000 (02:02 +0000)]
Use assertCountEqual instead of assertItemsEqual

14 years agoDo not add an obsolete unittest name to Py3.2.
Raymond Hettinger [Mon, 29 Nov 2010 01:38:25 +0000 (01:38 +0000)]
Do not add an obsolete unittest name to Py3.2.

14 years agoFix for #8879.
Brian Curtin [Sun, 28 Nov 2010 23:59:46 +0000 (23:59 +0000)]
Fix for #8879.
Amaury noticed that this was originally written in a way that would fail on
names that can't be encoded with the mbcs codec. Restructured the function
to work with wide names first then narrow names second, to fall in line
with the way other functions are written in posixmodule.c.

14 years agoAdd callable() to the built-in functions table.
Ezio Melotti [Sun, 28 Nov 2010 04:18:54 +0000 (04:18 +0000)]
Add callable() to the built-in functions table.

14 years agothere's now a setup.py switch for this
Benjamin Peterson [Sun, 28 Nov 2010 02:51:28 +0000 (02:51 +0000)]
there's now a setup.py switch for this

14 years agoWindows: fix leak in posix_listdir.
Stefan Krah [Sat, 27 Nov 2010 22:06:49 +0000 (22:06 +0000)]
Windows: fix leak in posix_listdir.

14 years agoIssue #10518: Bring back the callable() builtin.
Antoine Pitrou [Sat, 27 Nov 2010 22:00:11 +0000 (22:00 +0000)]
Issue #10518: Bring back the callable() builtin.
Approved by Guido (BDFL) and Georg (RM).

14 years agoAdd version-added note twice for new difflib SequenceMatcher autojunk parameter.
Terry Reedy [Sat, 27 Nov 2010 20:52:14 +0000 (20:52 +0000)]
Add version-added note twice for new difflib SequenceMatcher autojunk parameter.

14 years agoMake doc for PyErr_Format() up to date.
Antoine Pitrou [Sat, 27 Nov 2010 20:40:43 +0000 (20:40 +0000)]
Make doc for PyErr_Format() up to date.

14 years agoRoumen Petrov's fix for when all paths are absolute. (Issue 10520)
Barry Warsaw [Sat, 27 Nov 2010 20:03:03 +0000 (20:03 +0000)]
Roumen Petrov's fix for when all paths are absolute.  (Issue 10520)

14 years agoFix additional leaks.
Stefan Krah [Sat, 27 Nov 2010 11:44:18 +0000 (11:44 +0000)]
Fix additional leaks.

14 years agoIssue 10242: unittest.assertItemsEqual makes too many assumptions.
Raymond Hettinger [Sat, 27 Nov 2010 09:31:37 +0000 (09:31 +0000)]
Issue 10242: unittest.assertItemsEqual makes too many assumptions.

14 years agoReplace _nbits() with int.bit_length().
Raymond Hettinger [Sat, 27 Nov 2010 08:09:40 +0000 (08:09 +0000)]
Replace _nbits() with int.bit_length().

14 years agoRewrap long lines + minor edits
Éric Araujo [Fri, 26 Nov 2010 23:46:18 +0000 (23:46 +0000)]
Rewrap long lines + minor edits

14 years agoUse link-generating markup (see #9312)
Éric Araujo [Fri, 26 Nov 2010 23:31:07 +0000 (23:31 +0000)]
Use link-generating markup (see #9312)

14 years agoFixed deprecation warnings.
Alexander Belopolsky [Fri, 26 Nov 2010 18:51:39 +0000 (18:51 +0000)]
Fixed deprecation warnings.

14 years agoFurther indentation cleanup.
Stefan Krah [Fri, 26 Nov 2010 16:16:47 +0000 (16:16 +0000)]
Further indentation cleanup.

14 years agoIssue #10383: Fix two leaks.
Stefan Krah [Fri, 26 Nov 2010 12:58:05 +0000 (12:58 +0000)]
Issue #10383: Fix two leaks.

14 years agoBetter example for os.system(): do not change the system time.
Georg Brandl [Fri, 26 Nov 2010 12:12:14 +0000 (12:12 +0000)]
Better example for os.system(): do not change the system time.

14 years agoTypo fix.
Georg Brandl [Fri, 26 Nov 2010 12:10:06 +0000 (12:10 +0000)]
Typo fix.

14 years agoRemove parenthetical remark that is confusing now that the module is not named "__bui...
Georg Brandl [Fri, 26 Nov 2010 12:08:19 +0000 (12:08 +0000)]
Remove parenthetical remark that is confusing now that the module is not named "__builtin__" anymore.

14 years ago#10420: fix docs of bdb.effective().
Georg Brandl [Fri, 26 Nov 2010 12:05:48 +0000 (12:05 +0000)]
#10420: fix docs of bdb.effective().

14 years agoModernize code in effective().
Georg Brandl [Fri, 26 Nov 2010 12:05:27 +0000 (12:05 +0000)]
Modernize code in effective().

14 years agoUse PyLong_FromLong where appropriate.
Georg Brandl [Fri, 26 Nov 2010 11:55:48 +0000 (11:55 +0000)]
Use PyLong_FromLong where appropriate.

14 years ago#10526: fix typo.
Georg Brandl [Fri, 26 Nov 2010 11:50:13 +0000 (11:50 +0000)]
#10526: fix typo.

14 years agoIndentation cleanup.
Stefan Krah [Fri, 26 Nov 2010 10:54:09 +0000 (10:54 +0000)]
Indentation cleanup.

14 years ago s/colour/color/g
Senthil Kumaran [Fri, 26 Nov 2010 02:20:04 +0000 (02:20 +0000)]
 s/colour/color/g

14 years ago#10453 follow-up: Fix test_quiet on Windows, thanks to Stephan Krah.
Éric Araujo [Fri, 26 Nov 2010 00:39:59 +0000 (00:39 +0000)]
#10453 follow-up: Fix test_quiet on Windows, thanks to Stephan Krah.

14 years agoIssue #7094: Add alternate ('#') flag to __format__ methods for float, complex and...
Eric Smith [Thu, 25 Nov 2010 16:08:06 +0000 (16:08 +0000)]
Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon.

14 years agoMouse support and colour to Demo/curses/life.py by Dafydd Crosby
Senthil Kumaran [Thu, 25 Nov 2010 14:56:44 +0000 (14:56 +0000)]
Mouse support and colour to Demo/curses/life.py by Dafydd Crosby

14 years agoFix compilation warnings seen on Windows.
Amaury Forgeot d'Arc [Thu, 25 Nov 2010 08:13:35 +0000 (08:13 +0000)]
Fix compilation warnings seen on Windows.
'typecode' is always an ascii letter, there was no data lost.

14 years agoClean-up docstring, comments, and whitespace.
Raymond Hettinger [Thu, 25 Nov 2010 08:11:57 +0000 (08:11 +0000)]
Clean-up docstring, comments, and whitespace.

14 years agoIssue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch...
Terry Reedy [Thu, 25 Nov 2010 06:12:34 +0000 (06:12 +0000)]
Issue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch by Terry Reedy, Eli Bendersky, and Simon Cross

14 years agosys.abiflags is not defined on all platforms.
Barry Warsaw [Thu, 25 Nov 2010 03:46:44 +0000 (03:46 +0000)]
sys.abiflags is not defined on all platforms.

14 years agosys.abiflags may not be defined on all platforms.
Barry Warsaw [Thu, 25 Nov 2010 01:34:47 +0000 (01:34 +0000)]
sys.abiflags may not be defined on all platforms.

14 years agoAdd NEWS entry for r86732 and fix double function in the table.
Ezio Melotti [Wed, 24 Nov 2010 22:02:18 +0000 (22:02 +0000)]
Add NEWS entry for r86732 and fix double function in the table.

14 years agoPut /usr/local paths after the relative paths in library_dirs and
Barry Warsaw [Wed, 24 Nov 2010 20:30:00 +0000 (20:30 +0000)]
Put /usr/local paths after the relative paths in library_dirs and
include_dirs, so installed non-matching shared libraries don't break extension
module linking.  Fixes issue 10520.

14 years agoFix #8879. Add os.link support to Windows.
Brian Curtin [Wed, 24 Nov 2010 20:24:31 +0000 (20:24 +0000)]
Fix #8879. Add os.link support to Windows.

Additionally, the st_ino attribute of stat structures was not being filled
in. This was left out of the fix to #10027 and was noticed due to
test_tarfile failing when applying the patch for this issue. An earlier
version of the fix to #10027 included st_ino, but that attribute got lost
in the shuffle of a few review/fix cycles. All tests pass.

14 years ago#10299: Add a table that lists all the built-in functions in functions.rst
Ezio Melotti [Wed, 24 Nov 2010 20:18:02 +0000 (20:18 +0000)]
#10299: Add a table that lists all the built-in functions in functions.rst

14 years agoFinal patch for issue 9807.
Barry Warsaw [Wed, 24 Nov 2010 19:43:47 +0000 (19:43 +0000)]
Final patch for issue 9807.

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.