]> granicus.if.org Git - python/log
python
13 years agoIssue #15177: Added dir_fd parameter to os.fwalk().
Larry Hastings [Mon, 25 Jun 2012 11:49:05 +0000 (04:49 -0700)]
Issue #15177: Added dir_fd parameter to os.fwalk().

13 years agoSkip test in freebsd entirely - Kernel bug in freebsd7/8/9 - #10142: Support for...
Jesus Cea [Mon, 25 Jun 2012 11:45:38 +0000 (13:45 +0200)]
Skip test in freebsd entirely - Kernel bug in freebsd7/8/9 - #10142: Support for SEEK_HOLE/SEEK_DATA

13 years agoIssue #15176: Clarified behavior, documentation, and implementation
Larry Hastings [Mon, 25 Jun 2012 11:42:23 +0000 (04:42 -0700)]
Issue #15176: Clarified behavior, documentation, and implementation
of os.listdir().

13 years ago#4489 Make fd based rmtree work on bytes
Hynek Schlawack [Mon, 25 Jun 2012 11:27:31 +0000 (13:27 +0200)]
#4489 Make fd based rmtree work on bytes

13 years agoMore doc fixes: made it clear where to start reading when you click on <dir_fd>.
Larry Hastings [Mon, 25 Jun 2012 10:27:33 +0000 (03:27 -0700)]
More doc fixes: made it clear where to start reading when you click on <dir_fd>.

13 years agomerge heads
Gregory P. Smith [Mon, 25 Jun 2012 08:15:53 +0000 (01:15 -0700)]
merge heads

13 years agoBackout change e8f44ebacda7052267318cecf5b6f128d35add17. Reverting the test
Gregory P. Smith [Mon, 25 Jun 2012 08:15:14 +0000 (01:15 -0700)]
Backout change e8f44ebacda7052267318cecf5b6f128d35add17.  Reverting the test
to using signal.alarm(1) instead of signal.setitimer(signal.ITIMER_REAL, 0.1).

This is an attempt to see if this change is what caused the ubuntu arm buildbot
to hang in test_io's test_interrupted_write_retry_text.
Discussion in Issue #12268.

13 years agoBackout change e8f44ebacda7052267318cecf5b6f128d35add17. Reverting the test
Gregory P. Smith [Mon, 25 Jun 2012 08:13:32 +0000 (01:13 -0700)]
Backout change e8f44ebacda7052267318cecf5b6f128d35add17.  Reverting the test
to using signal.alarm(1) instead of signal.setitimer(signal.ITIMER_REAL, 0.1).

This is an attempt to see if this change is what caused the ubuntu arm buildbot
to hang in test_io's test_interrupted_write_retry_text.
Discussion in Issue #12268.

13 years agoMinor grammar refinement for hmac.compare_digest().
Larry Hastings [Mon, 25 Jun 2012 07:59:34 +0000 (00:59 -0700)]
Minor grammar refinement for hmac.compare_digest().

13 years agoSome tightening of the documentation for the new kwarg-style os module functionality.
Georg Brandl [Mon, 25 Jun 2012 06:33:56 +0000 (08:33 +0200)]
Some tightening of the documentation for the new kwarg-style os module functionality.

13 years agoGrammar fix.
Georg Brandl [Mon, 25 Jun 2012 05:40:32 +0000 (07:40 +0200)]
Grammar fix.

13 years agoGive test directory a more reasonable name.
Eric V. Smith [Sun, 24 Jun 2012 23:55:18 +0000 (19:55 -0400)]
Give test directory a more reasonable name.

13 years agoCloses #15173: Tidied up copyright statements and removed pythonv references.
Vinay Sajip [Sun, 24 Jun 2012 23:47:46 +0000 (00:47 +0100)]
Closes #15173: Tidied up copyright statements and removed pythonv references.

13 years agoFixes issue 15039: namespace packages are no longer imported in preference to modules...
Eric V. Smith [Sun, 24 Jun 2012 23:13:55 +0000 (19:13 -0400)]
Fixes issue 15039: namespace packages are no longer imported in preference to modules of the same name.

13 years agoRestore Misc/NEWS entries lost in the merge for the previous commit.
Larry Hastings [Sun, 24 Jun 2012 21:34:49 +0000 (14:34 -0700)]
Restore Misc/NEWS entries lost in the merge for the previous commit.

13 years agoIssue #15164: Change return value of platform.uname() from a
Larry Hastings [Sun, 24 Jun 2012 21:30:41 +0000 (14:30 -0700)]
Issue #15164: Change return value of platform.uname() from a
plain tuple to a collections.namedtuple.

13 years agoMerge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 20:50:30 +0000 (22:50 +0200)]
Merge with 3.2.

13 years agoFix a couple of versionadded/versionchanged related markup errors.
Georg Brandl [Sun, 24 Jun 2012 20:48:30 +0000 (22:48 +0200)]
Fix a couple of versionadded/versionchanged related markup errors.

13 years agoFix a bunch of "versionchanged" related markup errors.
Georg Brandl [Sun, 24 Jun 2012 20:48:03 +0000 (22:48 +0200)]
Fix a bunch of "versionchanged" related markup errors.

13 years agoMerge
Antoine Pitrou [Sun, 24 Jun 2012 20:42:05 +0000 (22:42 +0200)]
Merge

13 years agoAdd a couple of what's new entries.
Antoine Pitrou [Sun, 24 Jun 2012 20:41:33 +0000 (22:41 +0200)]
Add a couple of what's new entries.

13 years agoFix statement.
Antoine Pitrou [Sun, 24 Jun 2012 20:38:23 +0000 (22:38 +0200)]
Fix statement.

13 years agoFix markup, for real this time.
Georg Brandl [Sun, 24 Jun 2012 20:26:21 +0000 (22:26 +0200)]
Fix markup, for real this time.

13 years agoMerge
Antoine Pitrou [Sun, 24 Jun 2012 20:22:07 +0000 (22:22 +0200)]
Merge

13 years agoFix indentation
Éric Araujo [Sun, 24 Jun 2012 20:22:09 +0000 (16:22 -0400)]
Fix indentation

13 years agoSupport Mageia Linux in the platform module.
Antoine Pitrou [Sun, 24 Jun 2012 20:20:18 +0000 (22:20 +0200)]
Support Mageia Linux in the platform module.

13 years agoCloses #11678: support Arch linux in the platform module.
Georg Brandl [Sun, 24 Jun 2012 20:17:23 +0000 (22:17 +0200)]
Closes #11678: support Arch linux in the platform module.

13 years agoMerge heads.
Ezio Melotti [Sun, 24 Jun 2012 20:04:02 +0000 (22:04 +0200)]
Merge heads.

13 years ago#15156: HTMLParser now uses the new "html.entities.html5" dictionary.
Ezio Melotti [Sun, 24 Jun 2012 20:02:56 +0000 (22:02 +0200)]
#15156: HTMLParser now uses the new "html.entities.html5" dictionary.

13 years agoDrop useenv=true also from the 32-bit build script: It is not necessary and
Stefan Krah [Sun, 24 Jun 2012 20:00:44 +0000 (22:00 +0200)]
Drop useenv=true also from the 32-bit build script: It is not necessary and
leads to failures in successive 64-bit/32-bit builds in the same shell window.

13 years agoIssue #15055: update dictnotes.txt. Patch by Mark Shannon.
Antoine Pitrou [Sun, 24 Jun 2012 19:03:45 +0000 (21:03 +0200)]
Issue #15055: update dictnotes.txt.  Patch by Mark Shannon.

13 years agoMerge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 18:07:40 +0000 (20:07 +0200)]
Merge with 3.2.

13 years agoRefer test_xmlrpc_net to the new buildbot URL at buildbot.python.org.
Georg Brandl [Sun, 24 Jun 2012 18:06:54 +0000 (20:06 +0200)]
Refer test_xmlrpc_net to the new buildbot URL at buildbot.python.org.

13 years agoMerge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 18:02:59 +0000 (20:02 +0200)]
Merge with 3.2.

13 years agoPartial backport of 612f34e31270: fix spacing error in exception message.
Georg Brandl [Sun, 24 Jun 2012 18:01:05 +0000 (20:01 +0200)]
Partial backport of 612f34e31270: fix spacing error in exception message.

13 years agourllib.request: fix spacing errors in exception/warning messages.
Georg Brandl [Sun, 24 Jun 2012 17:56:31 +0000 (19:56 +0200)]
urllib.request: fix spacing errors in exception/warning messages.

13 years agoBranch merge
Éric Araujo [Sun, 24 Jun 2012 17:54:22 +0000 (13:54 -0400)]
Branch merge

13 years agoFix markup
Éric Araujo [Sun, 24 Jun 2012 17:53:48 +0000 (13:53 -0400)]
Fix markup

13 years agoFix typos
Éric Araujo [Sun, 24 Jun 2012 17:53:41 +0000 (13:53 -0400)]
Fix typos

13 years agoRestore test that was using pysetup and can now (#15157) use pydoc
Éric Araujo [Sun, 24 Jun 2012 17:51:22 +0000 (13:51 -0400)]
Restore test that was using pysetup and can now (#15157) use pydoc

13 years agoFix test__locale on Mac; platform.uname() does not have a structseq-type interface...
Georg Brandl [Sun, 24 Jun 2012 17:29:49 +0000 (19:29 +0200)]
Fix test__locale on Mac; platform.uname() does not have a structseq-type interface (yet).

13 years agoIssue #15102: Fix paths of python executables.
Stefan Krah [Sun, 24 Jun 2012 17:04:35 +0000 (19:04 +0200)]
Issue #15102: Fix paths of python executables.

13 years agoAlpha -> Beta
Georg Brandl [Sun, 24 Jun 2012 16:12:24 +0000 (18:12 +0200)]
Alpha -> Beta

13 years agoAdd a single versionadded for a whole section instead of repeating for every function.
Georg Brandl [Sun, 24 Jun 2012 16:09:40 +0000 (18:09 +0200)]
Add a single versionadded for a whole section instead of repeating for every function.

13 years agoSmall whitespace fixes for shutil.rmtree() docs.
Georg Brandl [Sun, 24 Jun 2012 15:39:05 +0000 (17:39 +0200)]
Small whitespace fixes for shutil.rmtree() docs.

13 years ago#444582: fix example and rewrap docs a bit.
Georg Brandl [Sun, 24 Jun 2012 15:37:07 +0000 (17:37 +0200)]
#444582: fix example and rewrap docs a bit.

13 years agoAdd 3.2.3 version to the license table.
Georg Brandl [Sun, 24 Jun 2012 15:31:06 +0000 (17:31 +0200)]
Add 3.2.3 version to the license table.

13 years agoMerge
Antoine Pitrou [Sun, 24 Jun 2012 15:23:12 +0000 (17:23 +0200)]
Merge

13 years agoCloses #15162: the meaning of "online" has shifted a bit in recent years, use "intera...
Georg Brandl [Sun, 24 Jun 2012 15:24:26 +0000 (17:24 +0200)]
Closes #15162: the meaning of "online" has shifted a bit in recent years, use "interactive" instead.

13 years agoUse -W on the Windows 64 buildbots
Antoine Pitrou [Sun, 24 Jun 2012 15:22:50 +0000 (17:22 +0200)]
Use -W on the Windows 64 buildbots

13 years agoRefactor the venv API docs into a real API doc style.
Georg Brandl [Sun, 24 Jun 2012 14:37:59 +0000 (16:37 +0200)]
Refactor the venv API docs into a real API doc style.

13 years agoFix test to really run behind a NNTP virus checker
Antoine Pitrou [Sun, 24 Jun 2012 14:28:18 +0000 (16:28 +0200)]
Fix test to really run behind a NNTP virus checker

13 years agoRemove a detailed discussion of content-based short circuiting, off topic for library...
Antoine Pitrou [Sun, 24 Jun 2012 14:23:54 +0000 (16:23 +0200)]
Remove a detailed discussion of content-based short circuiting, off topic for library docs.

13 years agoSimplify wording.
Antoine Pitrou [Sun, 24 Jun 2012 14:21:10 +0000 (16:21 +0200)]
Simplify wording.

13 years agoRemove debug output from test_shutil
Hynek Schlawack [Sun, 24 Jun 2012 14:21:22 +0000 (16:21 +0200)]
Remove debug output from test_shutil

13 years agoFormatting
Antoine Pitrou [Sun, 24 Jun 2012 14:18:48 +0000 (16:18 +0200)]
Formatting

13 years agoSmall wording update from Larry.
Georg Brandl [Sun, 24 Jun 2012 14:15:46 +0000 (16:15 +0200)]
Small wording update from Larry.

13 years agoFix doc of os.fwalk: example used now non-existing os.fstatat()
Hynek Schlawack [Sun, 24 Jun 2012 14:11:08 +0000 (16:11 +0200)]
Fix doc of os.fwalk: example used now non-existing os.fstatat()

13 years agoMerge heads.
Georg Brandl [Sun, 24 Jun 2012 14:11:23 +0000 (16:11 +0200)]
Merge heads.

13 years agoMerge heads.
Georg Brandl [Sun, 24 Jun 2012 14:10:47 +0000 (16:10 +0200)]
Merge heads.

13 years agoImprove hmac.compare_digest() docstring and documentation, courtesy of Larry H.
Georg Brandl [Sun, 24 Jun 2012 14:07:33 +0000 (16:07 +0200)]
Improve hmac.compare_digest() docstring and documentation, courtesy of Larry H.

13 years agoThe buffer protocol doesn't exist (in the glossary anyway).
Antoine Pitrou [Sun, 24 Jun 2012 14:04:38 +0000 (16:04 +0200)]
The buffer protocol doesn't exist (in the glossary anyway).

13 years agoLarry's suggested rewording of the compare_digest() docs.
Antoine Pitrou [Sun, 24 Jun 2012 14:03:50 +0000 (16:03 +0200)]
Larry's suggested rewording of the compare_digest() docs.

13 years agoMake the benchmark more fair for _decimal/decimal.py by setting context.prec
Stefan Krah [Sun, 24 Jun 2012 12:10:49 +0000 (14:10 +0200)]
Make the benchmark more fair for _decimal/decimal.py by setting context.prec
only once (float obviously doesn't set any context at all).

13 years agoFix use of class markup.
Georg Brandl [Sun, 24 Jun 2012 12:05:40 +0000 (14:05 +0200)]
Fix use of class markup.

13 years agoWhitespace cleanup.
Georg Brandl [Sun, 24 Jun 2012 11:58:31 +0000 (13:58 +0200)]
Whitespace cleanup.

13 years agoRemove unused variable.
Georg Brandl [Sun, 24 Jun 2012 11:55:35 +0000 (13:55 +0200)]
Remove unused variable.

13 years agoFix a refleak in c82451eeb595.
Georg Brandl [Sun, 24 Jun 2012 11:54:51 +0000 (13:54 +0200)]
Fix a refleak in c82451eeb595.

13 years agoIssue #15061: Re-implemented hmac.compare_digest() in C
Christian Heimes [Sun, 24 Jun 2012 11:48:32 +0000 (13:48 +0200)]
Issue #15061: Re-implemented hmac.compare_digest() in C

13 years agoIssue #15118: Change return value of os.uname() and os.times() from
Larry Hastings [Sun, 24 Jun 2012 11:33:36 +0000 (04:33 -0700)]
Issue #15118: Change return value of os.uname() and os.times() from
plain tuples to immutable iterable objects with named attributes
(structseq objects).

13 years agoFix casing of Unix.
Georg Brandl [Sun, 24 Jun 2012 11:31:20 +0000 (13:31 +0200)]
Fix casing of Unix.

13 years agoMake the style of the "Availability" sections consistent.
Georg Brandl [Sun, 24 Jun 2012 11:29:09 +0000 (13:29 +0200)]
Make the style of the "Availability" sections consistent.

13 years agoActually it is just one function.
Georg Brandl [Sun, 24 Jun 2012 11:26:22 +0000 (13:26 +0200)]
Actually it is just one function.

13 years agoMinor clarification about fdopen().
Georg Brandl [Sun, 24 Jun 2012 11:24:56 +0000 (13:24 +0200)]
Minor clarification about fdopen().

13 years agoRemove attribution; this is for the whatsnew.
Georg Brandl [Sun, 24 Jun 2012 11:06:44 +0000 (13:06 +0200)]
Remove attribution; this is for the whatsnew.

13 years agoIssue #15102: Try setting HOST_PYTHON in build-amd64.bat as a temporary
Stefan Krah [Sun, 24 Jun 2012 11:03:59 +0000 (13:03 +0200)]
Issue #15102: Try setting HOST_PYTHON in build-amd64.bat as a temporary
measure.

13 years agoCloses #15161: add support for giving path as a fd for truncate() and pathconf().
Georg Brandl [Sun, 24 Jun 2012 10:55:33 +0000 (12:55 +0200)]
Closes #15161: add support for giving path as a fd for truncate() and pathconf().

13 years agoRestore mostly-alphabetic sorting of os functions.
Georg Brandl [Sun, 24 Jun 2012 10:50:06 +0000 (12:50 +0200)]
Restore mostly-alphabetic sorting of os functions.

13 years agoNote that equivalents are valid for 3.3+ only.
Georg Brandl [Sun, 24 Jun 2012 10:38:14 +0000 (12:38 +0200)]
Note that equivalents are valid for 3.3+ only.

13 years agoMerged upstream changes.
Vinay Sajip [Sun, 24 Jun 2012 10:24:05 +0000 (11:24 +0100)]
Merged upstream changes.

13 years agoAdded Windows launcher documentation.
Vinay Sajip [Sun, 24 Jun 2012 10:23:07 +0000 (11:23 +0100)]
Added Windows launcher documentation.

13 years agoSpeed up _decimal by another 10-15% by caching the thread local context
Stefan Krah [Sun, 24 Jun 2012 10:20:03 +0000 (12:20 +0200)]
Speed up _decimal by another 10-15% by caching the thread local context
that was last accessed. In the pi benchmark (64-bit platform, prec=9),
_decimal is now only 1.5x slower than float.

13 years agoIn random's test_seedargs: Make sure to include at least one seed object with a negat...
Mark Dickinson [Sun, 24 Jun 2012 10:05:30 +0000 (11:05 +0100)]
In random's test_seedargs: Make sure to include at least one seed object with a negative hash.

13 years agoMove Linux-only *xattr() functions to their own subheading.
Georg Brandl [Sun, 24 Jun 2012 09:57:07 +0000 (11:57 +0200)]
Move Linux-only *xattr() functions to their own subheading.

13 years agoFix typo.
Georg Brandl [Sun, 24 Jun 2012 09:56:47 +0000 (11:56 +0200)]
Fix typo.

13 years agoSmall nits in os doc.
Georg Brandl [Sun, 24 Jun 2012 09:54:07 +0000 (11:54 +0200)]
Small nits in os doc.

13 years agoIssue #14815: Bugfix: the PyLong fed into the seed generator must be unsigned.
Larry Hastings [Sun, 24 Jun 2012 09:52:21 +0000 (02:52 -0700)]
Issue #14815: Bugfix: the PyLong fed into the seed generator must be unsigned.

13 years ago"Refactor" docs for the new dir_fd, follow_symlinks, path-as-fd APIs: document the...
Georg Brandl [Sun, 24 Jun 2012 09:45:20 +0000 (11:45 +0200)]
"Refactor" docs for the new dir_fd, follow_symlinks, path-as-fd APIs: document the options at a central place and link to it.

13 years agoCloses #15157: pydoc script added to venvs.
Vinay Sajip [Sun, 24 Jun 2012 09:35:40 +0000 (10:35 +0100)]
Closes #15157: pydoc script added to venvs.

13 years ago#15160: Extend the new email parser to handle MIME headers.
R David Murray [Sun, 24 Jun 2012 09:03:27 +0000 (05:03 -0400)]
#15160: Extend the new email parser to handle MIME headers.

This code passes all the same tests that the existing RFC mime header
parser passes, plus a bunch of additional ones.

There are a couple of commented out tests where there are issues with the
folding.  The folding doesn't normally get invoked for headers parsed from
source, and the cases are marginal anyway (headers with invalid binary data)
so I'm not worried about them, but will fix them after the beta.

There are things that can be done to make this API even more convenient, but I
think this is a solid foundation worth having.  And the parser is a full RFC
parser, so it handles cases that the current parser doesn't.  (There are also
probably cases where it fails when the current parser doesn't, but I haven't
found them yet ;)

Oh, yeah, and there are some really ugly bits in the parser for handling some
'postel' cases that are unfortunately common.

I hope/plan to to eventually refactor a lot of the code in the parser which
should reduce the line count...but there is no escaping the fact that the
error recovery is welter of special cases.

13 years agoIssue #14815: Use Py_ssize_t instead of long for the object hash, to
Larry Hastings [Sun, 24 Jun 2012 08:54:21 +0000 (01:54 -0700)]
Issue #14815: Use Py_ssize_t instead of long for the object hash, to
preserve all 64 bits of hash on Win64.

13 years agoUpdate OS X installer build target compilers.
Ned Deily [Sun, 24 Jun 2012 08:27:51 +0000 (01:27 -0700)]
Update OS X installer build target compilers.

13 years agoPackaging removal: remove pysetup3 install from Makefile.
Ned Deily [Sun, 24 Jun 2012 08:20:58 +0000 (01:20 -0700)]
Packaging removal: remove pysetup3 install from Makefile.

13 years agoFix whitespace
Hynek Schlawack [Sun, 24 Jun 2012 07:51:46 +0000 (09:51 +0200)]
Fix whitespace

13 years agoUpdate compileall calls in OS X installer postflight script to
Ned Deily [Sun, 24 Jun 2012 07:44:30 +0000 (00:44 -0700)]
Update compileall calls in OS X installer postflight script to
properly skip uncompilable files and to compile existing
files in site-packages if reinstalling.  Also, no longer
attempt to install a documentation link in /Developer
as that no longer necessarily exists with Xcode 4.3+.

13 years agoPackaging removal: also revert introduction of sysconfig.cfg.
Éric Araujo [Sun, 24 Jun 2012 07:27:43 +0000 (03:27 -0400)]
Packaging removal: also revert introduction of sysconfig.cfg.

We need a discussion to define what should be customized how; this new
config file is premature.  It was added to serve the needs of the
resources system in install_data / packaging.database, so it can be
removed alongside packaging for 3.3.

13 years agomerge heads
Gregory P. Smith [Sun, 24 Jun 2012 07:24:31 +0000 (00:24 -0700)]
merge heads

13 years agoFixes issue #12268: File readline, readlines and read() or readall() methods
Gregory P. Smith [Sun, 24 Jun 2012 07:23:47 +0000 (00:23 -0700)]
Fixes issue #12268: File readline, readlines and read() or readall() methods
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
from within these methods.

13 years agoRemove obsolete fixapplepython23 script and PythonSystemFixes
Ned Deily [Sun, 24 Jun 2012 07:19:31 +0000 (00:19 -0700)]
Remove obsolete fixapplepython23 script and PythonSystemFixes
installer package from the OS X Makefile for Python 3.  It has
never worked on Python 3 and is not needed there as pre-10.3.9
installs are no longer supported.

13 years agoFixes issue #12268: File readline, readlines and read() or readall() methods
Gregory P. Smith [Sun, 24 Jun 2012 06:55:39 +0000 (23:55 -0700)]
Fixes issue #12268: File readline, readlines and read() or readall() methods
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
from within these methods.