]> granicus.if.org Git - python/log
python
14 years agoAdd Lukasz.
Georg Brandl [Wed, 8 Sep 2010 10:43:45 +0000 (10:43 +0000)]
Add Lukasz.

14 years agoIn the case where only a user supplied random() method is available,
Raymond Hettinger [Wed, 8 Sep 2010 00:30:28 +0000 (00:30 +0000)]
In the case where only a user supplied random() method is available,
adopt a strategy that makes the fewest calls to random().

14 years agoFollow-up to #9199: Fix str.join use, add newlines.
Éric Araujo [Wed, 8 Sep 2010 00:00:45 +0000 (00:00 +0000)]
Follow-up to #9199: Fix str.join use, add newlines.

Thanks to Konrad Delong for writing a test for upload_docs
--show-response in distutils2, letting me catch my mistake.

14 years agoFix incorrect use of Command.announce (#9199)
Éric Araujo [Tue, 7 Sep 2010 23:08:57 +0000 (23:08 +0000)]
Fix incorrect use of Command.announce (#9199)

14 years agoFix eon-old bug in build_clib options (#1718574)
Éric Araujo [Tue, 7 Sep 2010 22:11:52 +0000 (22:11 +0000)]
Fix eon-old bug in build_clib options (#1718574)

14 years agoIssue #9707: Rewritten reference implementation of threading.local which
Antoine Pitrou [Tue, 7 Sep 2010 22:06:17 +0000 (22:06 +0000)]
Issue #9707: Rewritten reference implementation of threading.local which
is friendlier towards reference cycles.  This change is not normally
visible since an optimized C implementation (_thread._local) is used
instead.

14 years agoAlso catch some gaierrors
Antoine Pitrou [Tue, 7 Sep 2010 21:43:31 +0000 (21:43 +0000)]
Also catch some gaierrors

14 years agoFix typo in whatsnew (#9793)
Éric Araujo [Tue, 7 Sep 2010 21:35:35 +0000 (21:35 +0000)]
Fix typo in whatsnew (#9793)

14 years ago#6394: Add os.getppid() support for Windows.
Amaury Forgeot d'Arc [Tue, 7 Sep 2010 21:31:17 +0000 (21:31 +0000)]
#6394: Add os.getppid() support for Windows.

14 years agoImprove transient_internet() again to detect more network errors,
Antoine Pitrou [Tue, 7 Sep 2010 21:09:09 +0000 (21:09 +0000)]
Improve transient_internet() again to detect more network errors,
and use it in test_robotparser. Fixes #8574.

14 years agoIssue #9792: In case of connection failure, socket.create_connection()
Antoine Pitrou [Tue, 7 Sep 2010 21:05:49 +0000 (21:05 +0000)]
Issue #9792: In case of connection failure, socket.create_connection()
would swallow the exception and raise a new one, making it impossible
to fetch the original errno, or to filter timeout errors.  Now the
original error is re-raised.

14 years agoIssue #8574: better implementation of test.support.transient_internet().
Antoine Pitrou [Tue, 7 Sep 2010 20:42:19 +0000 (20:42 +0000)]
Issue #8574: better implementation of test.support.transient_internet().
Original patch by Victor.

14 years agoNeaten-up comments and warning message.
Raymond Hettinger [Tue, 7 Sep 2010 20:04:42 +0000 (20:04 +0000)]
Neaten-up comments and warning message.

14 years agoMinor refactoring and cleanup. Extend looping randrange() technique to subclasses.
Raymond Hettinger [Tue, 7 Sep 2010 19:19:33 +0000 (19:19 +0000)]
Minor refactoring and cleanup.  Extend looping randrange() technique to subclasses.

14 years agoUpdate nntplib examples to use a public news server.
Antoine Pitrou [Tue, 7 Sep 2010 18:44:12 +0000 (18:44 +0000)]
Update nntplib examples to use a public news server.
The example still doesn't work as-is under py3k, due to incomplete
or buggy porting of the nntplib module.

14 years agoIssue #9758: When fcntl.ioctl() was called with mutable_flag set to True,
Antoine Pitrou [Tue, 7 Sep 2010 16:30:09 +0000 (16:30 +0000)]
Issue #9758: When fcntl.ioctl() was called with mutable_flag set to True,
and the passed buffer was exactly 1024 bytes long, the buffer wouldn't
be updated back after the system call.  Original patch by Brian Brazil.

14 years agoRemove invalid test (it was supposed to fail on 64-bit machines.).
Raymond Hettinger [Tue, 7 Sep 2010 15:38:33 +0000 (15:38 +0000)]
Remove invalid test (it was supposed to fail on 64-bit machines.).

14 years agoFix test that depends on a particular implementation of random.choice().
Raymond Hettinger [Tue, 7 Sep 2010 15:00:15 +0000 (15:00 +0000)]
Fix test that depends on a particular implementation of random.choice().

14 years agoIssue #4026: Make the fcntl extension build under AIX.
Antoine Pitrou [Tue, 7 Sep 2010 14:52:42 +0000 (14:52 +0000)]
Issue #4026: Make the fcntl extension build under AIX.
Patch by Sébastien Sablé.

14 years agoAdjust #8956 to add the bad signal number to the exception message.
Brian Curtin [Tue, 7 Sep 2010 13:24:38 +0000 (13:24 +0000)]
Adjust #8956 to add the bad signal number to the exception message.

14 years agoFix corner case for Random.choice() and add tests.
Raymond Hettinger [Tue, 7 Sep 2010 10:06:56 +0000 (10:06 +0000)]
Fix corner case for Random.choice() and add tests.

14 years agoSmall clean-ups.
Raymond Hettinger [Tue, 7 Sep 2010 09:32:57 +0000 (09:32 +0000)]
Small clean-ups.

14 years agoAdd stub entry for argparse.
Georg Brandl [Tue, 7 Sep 2010 08:18:26 +0000 (08:18 +0000)]
Add stub entry for argparse.

14 years agotypo
Raymond Hettinger [Tue, 7 Sep 2010 05:35:10 +0000 (05:35 +0000)]
typo

14 years agoRemove outdated reference to Wichmann-Hill algorithm.
Raymond Hettinger [Tue, 7 Sep 2010 05:32:49 +0000 (05:32 +0000)]
Remove outdated reference to Wichmann-Hill algorithm.

14 years agoIssues #7889, #9025 and #9379: Improvements to the random module.
Raymond Hettinger [Tue, 7 Sep 2010 04:44:52 +0000 (04:44 +0000)]
Issues #7889, #9025 and #9379:  Improvements to the random module.

14 years agoMinor code cleanup
Raymond Hettinger [Tue, 7 Sep 2010 00:48:40 +0000 (00:48 +0000)]
Minor code cleanup

14 years agoDocument which part of the random module module are guaranteed.
Raymond Hettinger [Tue, 7 Sep 2010 00:38:15 +0000 (00:38 +0000)]
Document which part of the random module module are guaranteed.

14 years agoDocument which part of the random module module are guaranteed.
Raymond Hettinger [Mon, 6 Sep 2010 23:36:31 +0000 (23:36 +0000)]
Document which part of the random module module are guaranteed.

14 years agoMore docstring updates
Amaury Forgeot d'Arc [Mon, 6 Sep 2010 22:31:52 +0000 (22:31 +0000)]
More docstring updates

14 years agoChange docstrings to match the implementation
Amaury Forgeot d'Arc [Mon, 6 Sep 2010 22:23:13 +0000 (22:23 +0000)]
Change docstrings to match the implementation

14 years agoUpdated information on logging contextual information.
Vinay Sajip [Mon, 6 Sep 2010 22:18:20 +0000 (22:18 +0000)]
Updated information on logging contextual information.

14 years agoAdd method to OrderedDict for repositioning keys to the ends.
Raymond Hettinger [Mon, 6 Sep 2010 21:26:09 +0000 (21:26 +0000)]
Add method to OrderedDict for repositioning keys to the ends.

14 years agotypo
Florent Xicluna [Mon, 6 Sep 2010 20:27:55 +0000 (20:27 +0000)]
typo

14 years agotypo
Florent Xicluna [Mon, 6 Sep 2010 20:27:15 +0000 (20:27 +0000)]
typo

14 years agoFix markup nits
Raymond Hettinger [Mon, 6 Sep 2010 19:55:51 +0000 (19:55 +0000)]
Fix markup nits

14 years agoFix some errors that #7566 introduced on non-Windows platforms due to
Brian Curtin [Mon, 6 Sep 2010 19:46:17 +0000 (19:46 +0000)]
Fix some errors that #7566 introduced on non-Windows platforms due to
an ImportError. Rearranged the import, faked out the implementation when
the import fails, and reorganized a test that depends on Win32 behavior.

14 years agoIssue #9754: Similarly to assertRaises and assertRaisesRegexp, unittest
Antoine Pitrou [Mon, 6 Sep 2010 19:25:46 +0000 (19:25 +0000)]
Issue #9754: Similarly to assertRaises and assertRaisesRegexp, unittest
test cases now also have assertWarns and assertWarnsRegexp methods to
check that a given warning type was triggered by the code under test.

14 years agoIssue #5506: BytesIO objects now have a getbuffer() method exporting a
Antoine Pitrou [Mon, 6 Sep 2010 18:48:21 +0000 (18:48 +0000)]
Issue #5506: BytesIO objects now have a getbuffer() method exporting a
view of their contents without duplicating them.  The view is both readable
and writable.

14 years agoImplement #7566 - os.path.sameopenfile for Windows.
Brian Curtin [Mon, 6 Sep 2010 17:07:27 +0000 (17:07 +0000)]
Implement #7566 - os.path.sameopenfile for Windows.

This uses the GetFileInformationByHandle function to return a tuple of values
to identify a file, then ntpath.sameopenfile compares file tuples, which
is exposed as os.path.sameopenfile.

14 years agoFix #8956. ValueError message was only mentioning one signal.
Brian Curtin [Mon, 6 Sep 2010 16:29:29 +0000 (16:29 +0000)]
Fix #8956. ValueError message was only mentioning one signal.

Rather than list out the three signals (or more over time), the message was
made less specific but still descriptive.

14 years agoClean up the fix to #9324 with some of the suggestions raised on python-dev
Brian Curtin [Mon, 6 Sep 2010 16:04:10 +0000 (16:04 +0000)]
Clean up the fix to #9324 with some of the suggestions raised on python-dev
in response to the original checkin.

Move the validation from the original loop into a switch statement,
and adjust a platform check in the tests.

14 years agoAdd an option to choose the IO module under test (allows to bench
Antoine Pitrou [Mon, 6 Sep 2010 12:36:55 +0000 (12:36 +0000)]
Add an option to choose the IO module under test (allows to bench
e.g. the pure Python implementation in _pyio).

14 years agohashlib has two new constant attributes: algorithms_guaranteed and
Gregory P. Smith [Mon, 6 Sep 2010 08:30:23 +0000 (08:30 +0000)]
hashlib has two new constant attributes: algorithms_guaranteed and
algorithms_avaiable that respectively list the names of hash algorithms
guaranteed to exist in all Python implementations and the names of hash
algorithms available in the current process.

Renames the attribute new in 3.2a0 'algorithms' to 'algorithms_guaranteed'.

14 years ago#9780: both { and } are not valid fill characters.
Georg Brandl [Mon, 6 Sep 2010 06:49:07 +0000 (06:49 +0000)]
#9780: both { and } are not valid fill characters.

14 years agoRemove redundant word.
Georg Brandl [Mon, 6 Sep 2010 06:45:47 +0000 (06:45 +0000)]
Remove redundant word.

14 years agoRevert accidental commit, apologies for the noise
Éric Araujo [Mon, 6 Sep 2010 01:31:11 +0000 (01:31 +0000)]
Revert accidental commit, apologies for the noise

14 years agoFix nits
Raymond Hettinger [Mon, 6 Sep 2010 01:29:23 +0000 (01:29 +0000)]
Fix nits

14 years agoUpdate
Éric Araujo [Mon, 6 Sep 2010 01:27:06 +0000 (01:27 +0000)]
Update

14 years agoMore updates to whatsnew3.2
Raymond Hettinger [Mon, 6 Sep 2010 01:16:46 +0000 (01:16 +0000)]
More updates to whatsnew3.2

14 years agolink to docs
Benjamin Peterson [Mon, 6 Sep 2010 00:32:12 +0000 (00:32 +0000)]
link to docs

14 years agoClean-up example of using fileinput as a context manager.
Raymond Hettinger [Sun, 5 Sep 2010 23:50:32 +0000 (23:50 +0000)]
Clean-up example of using fileinput as a context manager.

14 years agoTake advantage of the frozenset constant optimization.
Raymond Hettinger [Sun, 5 Sep 2010 23:15:06 +0000 (23:15 +0000)]
Take advantage of the frozenset constant optimization.

14 years agoIssue #9293: I/O streams now raise `io.UnsupportedOperation` when an
Antoine Pitrou [Sun, 5 Sep 2010 23:01:12 +0000 (23:01 +0000)]
Issue #9293: I/O streams now raise `io.UnsupportedOperation` when an
unsupported operation is attempted (for example, writing to a file open
only for reading).

14 years agoPost-release update.
Georg Brandl [Sun, 5 Sep 2010 21:29:17 +0000 (21:29 +0000)]
Post-release update.

14 years agoRe-tag 3.2a2.
Georg Brandl [Sun, 5 Sep 2010 19:01:40 +0000 (19:01 +0000)]
Re-tag 3.2a2.

14 years agoFix accidental suppression in r84537 v3.2a2
Éric Araujo [Sun, 5 Sep 2010 18:59:49 +0000 (18:59 +0000)]
Fix accidental suppression in r84537

14 years agoRemove tag.
Georg Brandl [Sun, 5 Sep 2010 18:58:42 +0000 (18:58 +0000)]
Remove tag.

14 years agoTagging release 3.2a2.
Georg Brandl [Sun, 5 Sep 2010 18:48:14 +0000 (18:48 +0000)]
Tagging release 3.2a2.

14 years agoMake naming consistent
Éric Araujo [Sun, 5 Sep 2010 18:43:07 +0000 (18:43 +0000)]
Make naming consistent

14 years agoFix for issue9662, patch by Łukasz Langa in issue5504.
Ronald Oussoren [Sun, 5 Sep 2010 18:25:59 +0000 (18:25 +0000)]
Fix for issue9662, patch by Łukasz Langa in issue5504.

14 years agoFix amk’s tracker name
Éric Araujo [Sun, 5 Sep 2010 18:21:46 +0000 (18:21 +0000)]
Fix amk’s tracker name

14 years agoFix reST in NEWS, and remove NEWS.help (all committers should now know reST anyway...
Georg Brandl [Sun, 5 Sep 2010 17:32:31 +0000 (17:32 +0000)]
Fix reST in NEWS, and remove NEWS.help (all committers should now know reST anyway, and for those who do not, there is Documenting Python.)

14 years agoFix typos and wording in what’s new 3.2.
Éric Araujo [Sun, 5 Sep 2010 17:32:25 +0000 (17:32 +0000)]
Fix typos and wording in what’s new 3.2.

- The entry about shutil.copytree is just a revert of r84524 which
looks like an unfinished edition.
- The use of gender-neutral language (s/his/their/) removes the
implicit assumption that programmer == male (change agreed by Antoine).
- Other changes should be uncontroversial fixes.

I haven’t rewrapped under 80 lines to keep the diffs readable; I’ll
rewrap later.

14 years ago#9776: fix some spacing.
Georg Brandl [Sun, 5 Sep 2010 17:09:18 +0000 (17:09 +0000)]
#9776: fix some spacing.

14 years ago#9747: fix copy-paste error in getresgid() doc.
Georg Brandl [Sun, 5 Sep 2010 17:07:12 +0000 (17:07 +0000)]
#9747: fix copy-paste error in getresgid() doc.

14 years agoRewrap.
Georg Brandl [Sun, 5 Sep 2010 17:06:50 +0000 (17:06 +0000)]
Rewrap.

14 years agoRewrap and consistency fixes.
Georg Brandl [Sun, 5 Sep 2010 11:28:33 +0000 (11:28 +0000)]
Rewrap and consistency fixes.

14 years agoFill-in sqlite3 stubs
Raymond Hettinger [Sun, 5 Sep 2010 08:54:32 +0000 (08:54 +0000)]
Fill-in sqlite3 stubs

14 years agoAdd example of ftplib's new context manager.
Raymond Hettinger [Sun, 5 Sep 2010 08:46:36 +0000 (08:46 +0000)]
Add example of ftplib's new context manager.

14 years agoAdd PEP 391 to whatsnew
Raymond Hettinger [Sun, 5 Sep 2010 08:35:38 +0000 (08:35 +0000)]
Add PEP 391 to whatsnew

14 years agoBump to 3.2a2.
Georg Brandl [Sun, 5 Sep 2010 08:30:40 +0000 (08:30 +0000)]
Bump to 3.2a2.

14 years agoUpdate pydoc topics.
Georg Brandl [Sun, 5 Sep 2010 08:28:41 +0000 (08:28 +0000)]
Update pydoc topics.

14 years agoMore updates to whatsnew.
Raymond Hettinger [Sun, 5 Sep 2010 06:13:47 +0000 (06:13 +0000)]
More updates to whatsnew.

14 years agoClean-up functools.total_ordering().
Raymond Hettinger [Sun, 5 Sep 2010 05:57:35 +0000 (05:57 +0000)]
Clean-up functools.total_ordering().

14 years agoAdd an example
Raymond Hettinger [Sun, 5 Sep 2010 05:56:44 +0000 (05:56 +0000)]
Add an example

14 years agoInline cmp_lt().
Raymond Hettinger [Sun, 5 Sep 2010 05:26:10 +0000 (05:26 +0000)]
Inline cmp_lt().

14 years agoMore updates to whatsnew
Raymond Hettinger [Sun, 5 Sep 2010 01:00:19 +0000 (01:00 +0000)]
More updates to whatsnew

14 years agoTypo
Raymond Hettinger [Sun, 5 Sep 2010 00:36:26 +0000 (00:36 +0000)]
Typo

14 years agoUpdate whatsnew for Pep3149.
Raymond Hettinger [Sun, 5 Sep 2010 00:27:25 +0000 (00:27 +0000)]
Update whatsnew for Pep3149.

14 years agorun autoreconf
Benjamin Peterson [Sun, 5 Sep 2010 00:09:07 +0000 (00:09 +0000)]
run autoreconf

14 years agoUpdate whatsnew for Pep3147.
Raymond Hettinger [Sat, 4 Sep 2010 23:53:24 +0000 (23:53 +0000)]
Update whatsnew for Pep3147.

14 years agoAdopt more descriptive attribute names as suggested on python-dev.
Raymond Hettinger [Sat, 4 Sep 2010 22:46:06 +0000 (22:46 +0000)]
Adopt more descriptive attribute names as suggested on python-dev.

14 years agoDrop cabarc artifact.
Martin v. Löwis [Sat, 4 Sep 2010 22:12:46 +0000 (22:12 +0000)]
Drop cabarc artifact.

14 years agoIssue #8734: Avoid crash in msvcrt.get_osfhandle() when an invalid file
Antoine Pitrou [Sat, 4 Sep 2010 20:53:29 +0000 (20:53 +0000)]
Issue #8734: Avoid crash in msvcrt.get_osfhandle() when an invalid file
descriptor is provided.  Patch by Pascal Chambon.

14 years agoIssue #7451: Improve decoding performance of JSON objects, and reduce
Antoine Pitrou [Sat, 4 Sep 2010 20:16:53 +0000 (20:16 +0000)]
Issue #7451: Improve decoding performance of JSON objects, and reduce
the memory consumption of said decoded objects when they use the same
strings as keys.

14 years agoIssue #9777: test_idna requires the "network" resource
Antoine Pitrou [Sat, 4 Sep 2010 18:50:35 +0000 (18:50 +0000)]
Issue #9777: test_idna requires the "network" resource

14 years agoFix typos in error messages (thanks Arfrever).
Antoine Pitrou [Sat, 4 Sep 2010 18:45:37 +0000 (18:45 +0000)]
Fix typos in error messages (thanks Arfrever).

14 years agoIssue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
Antoine Pitrou [Sat, 4 Sep 2010 18:43:52 +0000 (18:43 +0000)]
Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
by the new (and simpler) DUP_TOP_TWO.  Performance isn't changed, but
our bytecode is a bit simplified.  Patch by Demur Rumed.

14 years ago_warnings exposed two variables with the name 'default_action' and
Brett Cannon [Sat, 4 Sep 2010 18:24:04 +0000 (18:24 +0000)]
_warnings exposed two variables with the name 'default_action' and
'once_registry'. This is bad as the warnings module had variables named
'defaultaction' and 'onceregistry' which are what people should be looking at
(technically those variables shouldn't be mucked with as they are undocumented,
but we all know better than to believe that isn't happening). So the variables
from _warnings have been renamed to come off as private and to avoid confusion
over what variable should be used.

Closes issue #9766. Thanks to Antoine Pitrou for the discovery.

14 years agoFix running the copy module from the command-line (however use{ful,less} it may be).
Antoine Pitrou [Sat, 4 Sep 2010 17:46:44 +0000 (17:46 +0000)]
Fix running the copy module from the command-line (however use{ful,less} it may be).

14 years agoFix Björn's name in ACKS.
Antoine Pitrou [Sat, 4 Sep 2010 17:40:51 +0000 (17:40 +0000)]
Fix Björn's name in ACKS.

14 years agoIssue #1100562: Fix deep-copying of objects derived from the list and dict types.
Antoine Pitrou [Sat, 4 Sep 2010 17:40:21 +0000 (17:40 +0000)]
Issue #1100562: Fix deep-copying of objects derived from the list and dict types.
Patch by Michele Orrù and Björn Lindqvist.

14 years agoIssue #9581: Fix non-working PosixGroupsTester test case
Antoine Pitrou [Sat, 4 Sep 2010 17:32:06 +0000 (17:32 +0000)]
Issue #9581: Fix non-working PosixGroupsTester test case
(it only runs as root, which is why nobody bothered about the failure)

14 years agoIssue #7736: Release the GIL around calls to opendir() and closedir()
Antoine Pitrou [Sat, 4 Sep 2010 17:21:57 +0000 (17:21 +0000)]
Issue #7736: Release the GIL around calls to opendir() and closedir()
in the posix module.  Patch by Marcin Bachry.

14 years agoWorkaround PEP 3149 build problems.
Antoine Pitrou [Sat, 4 Sep 2010 16:28:00 +0000 (16:28 +0000)]
Workaround PEP 3149 build problems.

14 years agoIssue #1303434: Include PDBs in release.
Martin v. Löwis [Sat, 4 Sep 2010 14:38:09 +0000 (14:38 +0000)]
Issue #1303434: Include PDBs in release.
Patch by James Lee and Daniel Stutzbach.

14 years agoadd consistent support for the vars and default arguments on all
Fred Drake [Sat, 4 Sep 2010 04:35:34 +0000 (04:35 +0000)]
add consistent support for the vars and default arguments on all
configuration parser classes
(http://bugs.python.org/issue9421)

14 years agoWelcome to the UTF-8 world.
Florent Xicluna [Fri, 3 Sep 2010 23:47:32 +0000 (23:47 +0000)]
Welcome to the UTF-8 world.

14 years agoFix missing word.
Georg Brandl [Fri, 3 Sep 2010 22:49:27 +0000 (22:49 +0000)]
Fix missing word.