]> granicus.if.org Git - python/log
python
14 years agoFix some shallow bugs in Demo/parser/unparse.py, and add tests:
Mark Dickinson [Mon, 28 Jun 2010 19:31:41 +0000 (19:31 +0000)]
Fix some shallow bugs in Demo/parser/unparse.py, and add tests:

  - insert commas between entries in del statement
  - left and right shifts were represented as >> and << (respectively); reverse
  - unindent properly after for: else:  or while: else:
  - add parens around the result of an unary operation
  - add parens around negative numbers, to avoid turning (-1)**2 into -1**2.

14 years agoDocumentation correction. urllib2.urlopen.info returns a mimetools.Message instance...
Senthil Kumaran [Mon, 28 Jun 2010 17:07:40 +0000 (17:07 +0000)]
Documentation correction. urllib2.urlopen.info returns a mimetools.Message instance not HTTPMessage object.

14 years agofix skipping condition
Benjamin Peterson [Mon, 28 Jun 2010 15:41:06 +0000 (15:41 +0000)]
fix skipping condition

14 years agotestcapi tests are definitely cpython only
Benjamin Peterson [Mon, 28 Jun 2010 15:36:40 +0000 (15:36 +0000)]
testcapi tests are definitely cpython only

14 years agoFix Issue8653 - Docstring for urlunsplit function.
Senthil Kumaran [Mon, 28 Jun 2010 13:56:46 +0000 (13:56 +0000)]
Fix Issue8653 - Docstring for urlunsplit function.

14 years agoFix issue3428 - Document HTTPMessage class.
Senthil Kumaran [Mon, 28 Jun 2010 10:54:17 +0000 (10:54 +0000)]
Fix issue3428 - Document HTTPMessage class.

14 years agoremove unused last argument to property_copy
Benjamin Peterson [Mon, 28 Jun 2010 02:58:25 +0000 (02:58 +0000)]
remove unused last argument to property_copy

14 years agomark tracking tests as implementation details
Benjamin Peterson [Sun, 27 Jun 2010 22:40:26 +0000 (22:40 +0000)]
mark tracking tests as implementation details

14 years agoFix for Issue8883: without this patch test_urllib will fail
Ronald Oussoren [Sun, 27 Jun 2010 13:59:39 +0000 (13:59 +0000)]
Fix for Issue8883: without this patch test_urllib will fail
when there is a bare IP address in the "Bypass proxy settings
for these Hosts & Domains" list on MacOSX.

14 years agoThe uuid library on OSX 10.5 seems to contain the same bug as the one
Ronald Oussoren [Sun, 27 Jun 2010 12:43:47 +0000 (12:43 +0000)]
The uuid library on OSX 10.5 seems to contain the same bug as the one
on OSX 10.6, therefore don't use it there either.

This fixes issue8621.

14 years agoTwo small fixes for the support for SDKs on MacOSX:
Ronald Oussoren [Sun, 27 Jun 2010 12:36:16 +0000 (12:36 +0000)]
Two small fixes for the support for SDKs on MacOSX:

1) The code that checks if an path should be located in the SDK
   explicitly excludes /usr/local. This fixes issue9046

2) The SDK variant for filtering "db_dirs_to_check" in setup.py
   was not doing anything because of a missing assignment.

14 years agoUntabify.
Georg Brandl [Sun, 27 Jun 2010 11:24:15 +0000 (11:24 +0000)]
Untabify.

14 years agoTwo typos.
Georg Brandl [Sun, 27 Jun 2010 10:55:38 +0000 (10:55 +0000)]
Two typos.

14 years agoFix URL.
Georg Brandl [Sun, 27 Jun 2010 10:51:44 +0000 (10:51 +0000)]
Fix URL.

14 years agoUse designated syntax for optional grammar element.
Georg Brandl [Sun, 27 Jun 2010 10:49:23 +0000 (10:49 +0000)]
Use designated syntax for optional grammar element.

14 years agoConfusing punctuation.
Georg Brandl [Sun, 27 Jun 2010 10:47:47 +0000 (10:47 +0000)]
Confusing punctuation.

14 years agoIssue 9024: Added :cdata: tag to PyDateTimeAPI
Alexander Belopolsky [Sat, 26 Jun 2010 18:49:10 +0000 (18:49 +0000)]
Issue 9024: Added :cdata: tag to PyDateTimeAPI

14 years agoFix extra space.
Ezio Melotti [Sat, 26 Jun 2010 18:44:42 +0000 (18:44 +0000)]
Fix extra space.

14 years ago#9085: email versions have gotten out of sync, 2.7 is actually 4.0.3.
R. David Murray [Sat, 26 Jun 2010 18:39:50 +0000 (18:39 +0000)]
#9085: email versions have gotten out of sync, 2.7 is actually 4.0.3.

In 2.5 the email version was bumped to 4.0.2 just before release but
after the maintenance branch was set up.  The bump was not backported
to trunk, and 2.6 went out the door with a version number of 4.0.1.
I bumped this to 4.0.2 because of a behavior change, but that makes
it look the same as 2.5.  So bump it again to 4.0.3.

14 years agoFix indentation in recently added test.
R. David Murray [Sat, 26 Jun 2010 03:27:32 +0000 (03:27 +0000)]
Fix indentation in recently added test.

14 years agoIssue #9024: Fixed mark-up for PyDateTime_IMPORT macro and added that
Alexander Belopolsky [Sat, 26 Jun 2010 02:05:19 +0000 (02:05 +0000)]
Issue #9024: Fixed mark-up for PyDateTime_IMPORT macro and added that
it is typically used in module initialization function. Thanks Tim
Golden for the patch.

14 years ago#4640: add a test to optparse that proves issue is invalid.
R. David Murray [Sat, 26 Jun 2010 00:06:44 +0000 (00:06 +0000)]
#4640: add a test to optparse that proves issue is invalid.

14 years agomark implementation detail as such
Benjamin Peterson [Fri, 25 Jun 2010 22:58:47 +0000 (22:58 +0000)]
mark implementation detail as such

14 years agothis must be a typo
Benjamin Peterson [Fri, 25 Jun 2010 21:19:04 +0000 (21:19 +0000)]
this must be a typo

14 years agomark implementation detail as such
Benjamin Peterson [Fri, 25 Jun 2010 20:34:01 +0000 (20:34 +0000)]
mark implementation detail as such

14 years agoFix indentation of Python code example in C comment.
Mark Dickinson [Fri, 25 Jun 2010 20:19:48 +0000 (20:19 +0000)]
Fix indentation of Python code example in C comment.

14 years agoIssue #9075: In the ssl module, remove the setting of a `debug` flag
Antoine Pitrou [Fri, 25 Jun 2010 00:03:21 +0000 (00:03 +0000)]
Issue #9075: In the ssl module, remove the setting of a `debug` flag
on an OpenSSL structure.

14 years agoIssue #9020: The Py_IS* macros from pyctype.h should generally only be
Stefan Krah [Thu, 24 Jun 2010 09:33:05 +0000 (09:33 +0000)]
Issue #9020: The Py_IS* macros from pyctype.h should generally only be
used with signed/unsigned char arguments. For integer arguments, EOF
has to be handled separately.

14 years agoprevent assignment to set literals
Benjamin Peterson [Thu, 24 Jun 2010 00:12:40 +0000 (00:12 +0000)]
prevent assignment to set literals

14 years agoremove reverted changed
Benjamin Peterson [Thu, 24 Jun 2010 00:02:46 +0000 (00:02 +0000)]
remove reverted changed

14 years agocpython only gc tests
Benjamin Peterson [Wed, 23 Jun 2010 20:29:26 +0000 (20:29 +0000)]
cpython only gc tests

14 years agoIssue #8930: Remaining indentation fixes after the Grand Unified Indenting.
Stefan Krah [Wed, 23 Jun 2010 18:12:09 +0000 (18:12 +0000)]
Issue #8930: Remaining indentation fixes after the Grand Unified Indenting.

14 years agoFix misindents in compile.c (for Benjamin).
Antoine Pitrou [Tue, 22 Jun 2010 21:42:05 +0000 (21:42 +0000)]
Fix misindents in compile.c (for Benjamin).
Of course, whoever used the wrong indentation rules needs to be spanked.

14 years agomark ref counting as impl detail
Benjamin Peterson [Tue, 22 Jun 2010 20:32:02 +0000 (20:32 +0000)]
mark ref counting as impl detail

14 years agomust force gc here
Benjamin Peterson [Tue, 22 Jun 2010 20:26:20 +0000 (20:26 +0000)]
must force gc here

14 years agobump revision
Benjamin Peterson [Tue, 22 Jun 2010 19:49:47 +0000 (19:49 +0000)]
bump revision

14 years agospacing nit; this isn't C
Benjamin Peterson [Tue, 22 Jun 2010 19:45:51 +0000 (19:45 +0000)]
spacing nit; this isn't C

14 years agoremove INT_MAX assertions; they can fail with large Py_ssize_t #9058
Benjamin Peterson [Tue, 22 Jun 2010 19:16:37 +0000 (19:16 +0000)]
remove INT_MAX assertions; they can fail with large Py_ssize_t #9058

14 years agokeep UserDict an old-style class
Benjamin Peterson [Tue, 22 Jun 2010 18:09:02 +0000 (18:09 +0000)]
keep UserDict an old-style class

Be generous in abc.py to allow this.

14 years agoThe code in _scproxy (a mac specific helper module to
Ronald Oussoren [Tue, 22 Jun 2010 09:32:22 +0000 (09:32 +0000)]
The code in _scproxy (a mac specific helper module to
detect proxy settings) had the wrong logic for detecting
if the checkbox 'Exclude simple hostnames' is checked. This
checkin fixes that.

As a result the test failure 'Issue8455' goes away on systems
where the checkbox is not checked.

I'm carefully avoiding saying that is fixes that issue,
test_urllib2_localnet assumes that system proxy settings are
empty (not just on OSX, see Issue8455 for details).

14 years agoFix for issue8446:
Ronald Oussoren [Tue, 22 Jun 2010 09:18:28 +0000 (09:18 +0000)]
Fix for issue8446:

* Don't import 'ic' in webbrowser, that module is no longer used
* Remove 'MacOS' from the list of modules that should emit a Py3kWarning on import.
  This is needed because one of the earlier tests triggers and import of this
  extension, and that causes a failure in test_py3kwarn (running test_py3kwarn
  separately worked fine)

With these changes 'make tests' no longer says that test_py3kwarn fails.

14 years agotowards final release
Benjamin Peterson [Mon, 21 Jun 2010 17:28:30 +0000 (17:28 +0000)]
towards final release

14 years agotag 2.7rc2
Benjamin Peterson [Mon, 21 Jun 2010 16:11:51 +0000 (16:11 +0000)]
tag 2.7rc2

14 years agobump verson to 2.7rc2 v2.7rc2
Benjamin Peterson [Mon, 21 Jun 2010 15:57:57 +0000 (15:57 +0000)]
bump verson to 2.7rc2

14 years agoupdate pydoc-topics
Benjamin Peterson [Mon, 21 Jun 2010 15:56:45 +0000 (15:56 +0000)]
update pydoc-topics

14 years agofix finding visual studio 2008 on 64 bit #8854
Benjamin Peterson [Mon, 21 Jun 2010 15:27:46 +0000 (15:27 +0000)]
fix finding visual studio 2008 on 64 bit #8854

14 years agoAdd tests for problems reported in issue 8959.
Thomas Heller [Mon, 21 Jun 2010 15:01:18 +0000 (15:01 +0000)]
Add tests for problems reported in issue 8959.

14 years agoFix #8959 by reverting revision 80761.
Thomas Heller [Mon, 21 Jun 2010 14:00:24 +0000 (14:00 +0000)]
Fix #8959 by reverting revision 80761.

14 years agoNote that Python 3.x isn't covered; add forward ref. for UTF-8; note error in 2.5...
Andrew M. Kuchling [Sun, 20 Jun 2010 21:45:45 +0000 (21:45 +0000)]
Note that Python 3.x isn't covered; add forward ref. for UTF-8; note error in 2.5 and up

14 years agoMerge test_strtod and test_float string-to-float conversion tests.
Mark Dickinson [Sun, 20 Jun 2010 18:50:19 +0000 (18:50 +0000)]
Merge test_strtod and test_float string-to-float conversion tests.

14 years agoupdate emacs section
Benjamin Peterson [Sun, 20 Jun 2010 15:12:04 +0000 (15:12 +0000)]
update emacs section

14 years agoRevert r60115
Jean-Paul Calderone [Fri, 18 Jun 2010 20:00:17 +0000 (20:00 +0000)]
Revert r60115

This revision introduced quoting for strings containing | based
on a misunderstanding of the commonly used quoting rules used
on Windows.

| is interpreted by cmd.exe, not by the MS C runtime argv initializer.
It only needs to be quoted if it is part of an argument passed through
cmd.exe.

See issue1300, issue7839, and issue8972.

14 years agoAdd few words about test.test_genericpath.CommonTest
Florent Xicluna [Thu, 17 Jun 2010 20:30:56 +0000 (20:30 +0000)]
Add few words about test.test_genericpath.CommonTest

14 years agoFix Issue4452 - Incorrect docstring of os.setpgrp
Senthil Kumaran [Thu, 17 Jun 2010 16:38:34 +0000 (16:38 +0000)]
Fix Issue4452 - Incorrect docstring of os.setpgrp

14 years ago#8720: fix inspect regression by teaching getsourcefile about linecache.
R. David Murray [Thu, 17 Jun 2010 01:36:52 +0000 (01:36 +0000)]
#8720: fix inspect regression by teaching getsourcefile about linecache.

The fix for issue 4050 caused a regression:  before that fix, source
lines in the linecache would eventually be found by inspect.  After the
fix inspect reports an error earlier, and the source isn't found.
The fix for the fix is to have getsourcefile look in the linecache for
the file and return the psuedo-filename if the source is there, just as
it already returns it if there is a PEP 302 loader.

14 years agoAddressing RDM's review comments on the doc change.
Senthil Kumaran [Wed, 16 Jun 2010 17:37:32 +0000 (17:37 +0000)]
Addressing RDM's review comments on the doc change.

14 years agoFix Issue8937 - SimpleHTTPServer should contain usage example
Senthil Kumaran [Wed, 16 Jun 2010 14:55:31 +0000 (14:55 +0000)]
Fix Issue8937 - SimpleHTTPServer should contain usage example

14 years agoIssue #8469: Further clarifications and improvements to struct module
Mark Dickinson [Tue, 15 Jun 2010 08:33:03 +0000 (08:33 +0000)]
Issue #8469:  Further clarifications and improvements to struct module
documentation.  Thanks Mads Kiilerich.

14 years agoAdd another bunch of items
Andrew M. Kuchling [Tue, 15 Jun 2010 00:38:58 +0000 (00:38 +0000)]
Add another bunch of items

14 years ago#8993: fix reference.
Georg Brandl [Mon, 14 Jun 2010 15:58:39 +0000 (15:58 +0000)]
#8993: fix reference.

14 years agoEzio Melotti was missing from Misc/ACKS.
Mark Dickinson [Sun, 13 Jun 2010 12:01:34 +0000 (12:01 +0000)]
Ezio Melotti was missing from Misc/ACKS.

14 years agoAdd Éric Araujo to Misc/ACKS for doc work and many patch and commit reviews.
Mark Dickinson [Sun, 13 Jun 2010 11:07:00 +0000 (11:07 +0000)]
Add Éric Araujo to Misc/ACKS for doc work and many patch and commit reviews.

14 years agoIssue #8986: erfc was raising OverflowError on Linux for arguments in
Mark Dickinson [Sun, 13 Jun 2010 10:50:29 +0000 (10:50 +0000)]
Issue #8986: erfc was raising OverflowError on Linux for arguments in
the (approximate) range (-27.3, 30.0), as a result of an escaped errno
value.

14 years agoRevert r80580 due to some unintended side effects. See issue #8202 for details.
Nick Coghlan [Sun, 13 Jun 2010 06:50:39 +0000 (06:50 +0000)]
Revert r80580 due to some unintended side effects. See issue #8202 for details.

14 years agoGrammar fix
Andrew M. Kuchling [Sat, 12 Jun 2010 20:00:55 +0000 (20:00 +0000)]
Grammar fix

14 years agoIssue #8469: Add standard sizes to table in struct documentation; additional
Mark Dickinson [Sat, 12 Jun 2010 18:50:34 +0000 (18:50 +0000)]
Issue #8469:  Add standard sizes to table in struct documentation; additional
clarifications and documentation tweaks.

Backport of revisions 81955-81956 from py3k.

14 years agofix warning with ucs4
Benjamin Peterson [Sat, 12 Jun 2010 17:47:06 +0000 (17:47 +0000)]
fix warning with ucs4

14 years agoBackport a fix from Py3k for a potentially misleading example
Nick Coghlan [Sat, 12 Jun 2010 13:45:37 +0000 (13:45 +0000)]
Backport a fix from Py3k for a potentially misleading example

14 years agoUpdate README.
Georg Brandl [Sat, 12 Jun 2010 09:46:03 +0000 (09:46 +0000)]
Update README.

14 years agoFix gratuitous indentation.
Georg Brandl [Sat, 12 Jun 2010 09:45:58 +0000 (09:45 +0000)]
Fix gratuitous indentation.

14 years agoAdd document on how to build.
Georg Brandl [Sat, 12 Jun 2010 09:45:28 +0000 (09:45 +0000)]
Add document on how to build.

14 years agoUse newer toctree syntax.
Georg Brandl [Sat, 12 Jun 2010 09:45:01 +0000 (09:45 +0000)]
Use newer toctree syntax.

14 years agoUpdate version in README.
Georg Brandl [Sat, 12 Jun 2010 06:45:33 +0000 (06:45 +0000)]
Update version in README.

14 years agoDocument that an existing directory raises in mkdir().
Georg Brandl [Sat, 12 Jun 2010 06:28:58 +0000 (06:28 +0000)]
Document that an existing directory raises in mkdir().

14 years agoFix punctuation.
Georg Brandl [Sat, 12 Jun 2010 06:26:54 +0000 (06:26 +0000)]
Fix punctuation.

14 years agoIssue #8924: logging: Improved error handling for Unicode in exception text.
Vinay Sajip [Fri, 11 Jun 2010 22:56:50 +0000 (22:56 +0000)]
Issue #8924: logging: Improved error handling for Unicode in exception text.

14 years agoIssue #8941: decoding big endian UTF-32 data in UCS-2 builds could crash
Antoine Pitrou [Fri, 11 Jun 2010 21:42:26 +0000 (21:42 +0000)]
Issue #8941: decoding big endian UTF-32 data in UCS-2 builds could crash
the interpreter with characters outside the Basic Multilingual Plane
(higher than 0x10000).

14 years agodifferent spellings are just unacceptable
Benjamin Peterson [Fri, 11 Jun 2010 21:40:37 +0000 (21:40 +0000)]
different spellings are just unacceptable

14 years agoFix possible undefined behaviour from signed overflow in struct module.
Mark Dickinson [Fri, 11 Jun 2010 20:27:05 +0000 (20:27 +0000)]
Fix possible undefined behaviour from signed overflow in struct module.

Backport of revisions 81897, 81898 and 81902 from py3k.

14 years agoIssue #8362: Add Misc/maintainers.rst: list of module maintainers
Victor Stinner [Fri, 11 Jun 2010 19:22:28 +0000 (19:22 +0000)]
Issue #8362: Add Misc/maintainers.rst: list of module maintainers

14 years agoRemove extra ] from itertools.count docstring.
Ezio Melotti [Fri, 11 Jun 2010 02:21:25 +0000 (02:21 +0000)]
Remove extra ] from itertools.count docstring.

14 years agoAdd a few more items
Andrew M. Kuchling [Fri, 11 Jun 2010 01:54:58 +0000 (01:54 +0000)]
Add a few more items

14 years ago#5753: Suggest PySys_SetArgvEx() instead of PySys_SetArgv()
Andrew M. Kuchling [Fri, 11 Jun 2010 00:23:01 +0000 (00:23 +0000)]
#5753: Suggest PySys_SetArgvEx() instead of PySys_SetArgv()

14 years ago#5753: update demo.c to use PySys_SetArgvEx(), and add a comment
Andrew M. Kuchling [Fri, 11 Jun 2010 00:16:08 +0000 (00:16 +0000)]
#5753: update demo.c to use PySys_SetArgvEx(), and add a comment

14 years agoEdit comments for current Python; bump version number of Python
Andrew M. Kuchling [Fri, 11 Jun 2010 00:14:34 +0000 (00:14 +0000)]
Edit comments for current Python; bump version number of Python

14 years agoFix issue with nested test suites debug method and module setups. (unittest)
Michael Foord [Thu, 10 Jun 2010 20:40:21 +0000 (20:40 +0000)]
Fix issue with nested test suites debug method and module setups. (unittest)

14 years agoNEWS update for issue 8948.
Michael Foord [Thu, 10 Jun 2010 16:32:00 +0000 (16:32 +0000)]
NEWS update for issue 8948.

14 years agofix code formatting
Benjamin Peterson [Wed, 9 Jun 2010 19:45:04 +0000 (19:45 +0000)]
fix code formatting

14 years agoFixed markup of tm_isdst attribute.
Alexander Belopolsky [Wed, 9 Jun 2010 17:08:11 +0000 (17:08 +0000)]
Fixed markup of tm_isdst attribute.

14 years agoIssue #8930: fix some C code indentation
Antoine Pitrou [Wed, 9 Jun 2010 16:24:00 +0000 (16:24 +0000)]
Issue #8930: fix some C code indentation

14 years agoTypo correction.
Michael Foord [Wed, 9 Jun 2010 12:29:56 +0000 (12:29 +0000)]
Typo correction.

14 years agoIssue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus class...
Michael Foord [Tue, 8 Jun 2010 22:44:52 +0000 (22:44 +0000)]
Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus class and module teardowns are not run by unittest.TestSuite.debug().

14 years agoMove a variable declration outside of a loop to match what was
Brian Curtin [Tue, 8 Jun 2010 21:15:06 +0000 (21:15 +0000)]
Move a variable declration outside of a loop to match what was
done in r81843 for py3k.

14 years agokill extra word
Benjamin Peterson [Tue, 8 Jun 2010 14:53:29 +0000 (14:53 +0000)]
kill extra word

14 years agouse unicode literals
Benjamin Peterson [Mon, 7 Jun 2010 22:33:09 +0000 (22:33 +0000)]
use unicode literals

14 years agoremove extra byte and fix comment
Benjamin Peterson [Mon, 7 Jun 2010 22:32:44 +0000 (22:32 +0000)]
remove extra byte and fix comment

14 years agocorrectly overflow when indexes are too large
Benjamin Peterson [Mon, 7 Jun 2010 22:23:23 +0000 (22:23 +0000)]
correctly overflow when indexes are too large

14 years agoSilence deprecation warning in test___all__ caused by an import bsddb.
Ezio Melotti [Mon, 7 Jun 2010 22:00:18 +0000 (22:00 +0000)]
Silence deprecation warning in test___all__ caused by an import bsddb.

14 years agolocale grouping strings should end in '\0'
Benjamin Peterson [Mon, 7 Jun 2010 21:37:09 +0000 (21:37 +0000)]
locale grouping strings should end in '\0'

14 years ago#8875: Remove duplicated paragraph
Andrew M. Kuchling [Mon, 7 Jun 2010 13:38:40 +0000 (13:38 +0000)]
#8875: Remove duplicated paragraph