]>
granicus.if.org Git - python/log
Brett Cannon [Fri, 21 Jun 2013 22:37:02 +0000 (18:37 -0400)]
merge for issue #18278
Brett Cannon [Fri, 21 Jun 2013 22:31:55 +0000 (18:31 -0400)]
Issue #18278: properly document how the loaders are called for FileFinder
Victor Stinner [Fri, 21 Jun 2013 17:08:06 +0000 (19:08 +0200)]
marshal: optimize parsing of empty Unicode strings
Don't create a temporary buffer of zeroy byte nor call r_string() if the length
is zero, create directly the empty string.
Christian Heimes [Fri, 21 Jun 2013 16:53:27 +0000 (18:53 +0200)]
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links
Christian Heimes [Fri, 21 Jun 2013 16:53:13 +0000 (18:53 +0200)]
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links
Christian Heimes [Fri, 21 Jun 2013 16:26:05 +0000 (18:26 +0200)]
Add tests for untested features of the 'stat' module (part of issue #11016)
Christian Heimes [Fri, 21 Jun 2013 16:25:56 +0000 (18:25 +0200)]
Add tests for untested features of the 'stat' module (part of issue #11016)
Andrew Kuchling [Fri, 21 Jun 2013 15:49:57 +0000 (11:49 -0400)]
#12716: reorganize docs for os module a bit
* Move the constants used by os.open() to after the description of os.open(),
instead of putting them in their own section.
* Move RTLD_* constants to "Miscellaneous System Information" section, and
mention the sys functions they're used with.
* Mention dir_fd parameter in os.open() text.
* Typo fix ("are a supported by").
Andrew Kuchling [Fri, 21 Jun 2013 14:58:41 +0000 (10:58 -0400)]
#13226: update references from ctypes/DLFCN modules to os module
Andrew Kuchling [Fri, 21 Jun 2013 12:07:35 +0000 (08:07 -0400)]
Merge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 12:00:58 +0000 (08:00 -0400)]
Closes #18218: use correct variable name for starting point
Andrew Kuchling [Fri, 21 Jun 2013 11:58:35 +0000 (07:58 -0400)]
Closes #18239: correct description of count() in module docstring
Andrew Kuchling [Fri, 21 Jun 2013 11:44:50 +0000 (07:44 -0400)]
Closes #18247: add Lib/test/data/* to .gitignore
Andrew Kuchling [Fri, 21 Jun 2013 01:40:14 +0000 (21:40 -0400)]
Merge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 01:33:05 +0000 (21:33 -0400)]
Closes #18267: use floor division in code example
Brett Cannon [Fri, 21 Jun 2013 01:30:32 +0000 (21:30 -0400)]
Grammatical mistake in a comment
Andrew Kuchling [Fri, 21 Jun 2013 01:20:20 +0000 (21:20 -0400)]
Merge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 01:17:41 +0000 (21:17 -0400)]
Closes #18272: use 'builtins' for 3.3 instead of __builtin__
Victor Stinner [Thu, 20 Jun 2013 22:36:30 +0000 (00:36 +0200)]
whatsnew/3.4: mention functools.singledispatch, PEP 443
Victor Stinner [Thu, 20 Jun 2013 22:31:55 +0000 (00:31 +0200)]
whatsnew/3.4: mention the new enum module, PEP 435
Andrew Kuchling [Thu, 20 Jun 2013 13:51:51 +0000 (09:51 -0400)]
Merge from 3.3
Andrew Kuchling [Thu, 20 Jun 2013 13:29:09 +0000 (09:29 -0400)]
#4153: update Unicode howto for Python 3.3
* state that python3 source encoding is UTF-8, and give examples
* mention surrogateescape in the 'tips and tricks' section, and
backslashreplace in the "Python's Unicode Support" section.
* Describe Unicode support provided by the re module.
* link to Nick Coghlan's and Ned Batchelder's notes/presentations.
* default filesystem encoding is now UTF-8, not ascii.
* Describe StreamRecoder class.
* update acks section
* remove usage of "I think", "I'm not going to", etc.
* various edits
* remove revision history and original outline
Senthil Kumaran [Thu, 20 Jun 2013 03:20:26 +0000 (22:20 -0500)]
merge from 3.3
Add -b and -X options to python man page.
Patch contributed by Corey Brune.
Senthil Kumaran [Thu, 20 Jun 2013 03:19:46 +0000 (22:19 -0500)]
Add -b and -X options to python man page.
Patch contributed by Corey Brune.
R David Murray [Wed, 19 Jun 2013 20:59:22 +0000 (16:59 -0400)]
Merge: Tweak programming faq examples so that it (mostly) passes doctest.
R David Murray [Wed, 19 Jun 2013 20:58:26 +0000 (16:58 -0400)]
Tweak programming faq examples so that it (mostly) passes doctest.
The exception is the import related questions at the end, which
need to be rewritten anyway.
Benjamin Peterson [Wed, 19 Jun 2013 16:01:58 +0000 (09:01 -0700)]
merge 3.3 (#18248)
Benjamin Peterson [Wed, 19 Jun 2013 16:01:42 +0000 (09:01 -0700)]
fix libffi build on AIX (closes #18248)
Serhiy Storchaka [Wed, 19 Jun 2013 07:29:58 +0000 (10:29 +0300)]
Issue #18202: Fix minor bugs and cleanup test_source_encoding.py.
Serhiy Storchaka [Wed, 19 Jun 2013 07:23:35 +0000 (10:23 +0300)]
Issue #18202: Fix minor bugs and cleanup test_coding.py.
Brett Cannon [Wed, 19 Jun 2013 00:51:42 +0000 (20:51 -0400)]
merge
Brett Cannon [Wed, 19 Jun 2013 00:49:55 +0000 (20:49 -0400)]
Issue #17177: Clarify some deprecations
Christian Heimes [Wed, 19 Jun 2013 00:43:19 +0000 (02:43 +0200)]
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code
Christian Heimes [Wed, 19 Jun 2013 00:40:38 +0000 (02:40 +0200)]
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code
Christian Heimes [Wed, 19 Jun 2013 00:09:00 +0000 (02:09 +0200)]
merge heads
Christian Heimes [Wed, 19 Jun 2013 00:08:41 +0000 (02:08 +0200)]
merge heads
Christian Heimes [Wed, 19 Jun 2013 00:07:20 +0000 (02:07 +0200)]
Issue #18259: Declare sethostname in socketmodule.c for AIX
Christian Heimes [Wed, 19 Jun 2013 00:06:29 +0000 (02:06 +0200)]
Issue #18259: Declare sethostname in socketmodule.c for AIX
Antoine Pitrou [Tue, 18 Jun 2013 21:28:18 +0000 (23:28 +0200)]
Fix compilation warning with gcc 4.8 (unused typedef)
Antoine Pitrou [Tue, 18 Jun 2013 20:19:11 +0000 (22:19 +0200)]
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Antoine Pitrou [Tue, 18 Jun 2013 20:17:48 +0000 (22:17 +0200)]
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Christian Heimes [Tue, 18 Jun 2013 11:22:37 +0000 (13:22 +0200)]
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Christian Heimes [Tue, 18 Jun 2013 11:22:17 +0000 (13:22 +0200)]
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Brett Cannon [Mon, 17 Jun 2013 23:58:57 +0000 (19:58 -0400)]
Grammar tweak
Brett Cannon [Mon, 17 Jun 2013 21:48:30 +0000 (17:48 -0400)]
Issue #17222: fix a mix-up in some exception messages.
Reported by Arfrever Frehtes Taifersar Arahesis.
Victor Stinner [Mon, 17 Jun 2013 21:39:06 +0000 (23:39 +0200)]
(Merge 3.3) test_faulthandler: use _sigsegv() instead of _read_null()
faulthandler._read_null() is not reliable: it does not crash on AIX.
Victor Stinner [Mon, 17 Jun 2013 21:37:59 +0000 (23:37 +0200)]
test_faulthandler: use _sigsegv() instead of _read_null()
faulthandler._read_null() is not reliable: it does not crash on AIX.
Victor Stinner [Mon, 17 Jun 2013 20:02:14 +0000 (22:02 +0200)]
(Merge 3.3) ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 20:01:53 +0000 (22:01 +0200)]
ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 19:52:24 +0000 (21:52 +0200)]
(Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
Victor Stinner [Mon, 17 Jun 2013 19:51:56 +0000 (21:51 +0200)]
Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
Victor Stinner [Mon, 17 Jun 2013 19:28:14 +0000 (21:28 +0200)]
Issue #18228: Use locale.setlocale(name, None) instead of
locale.getlocale(name) in test.regrtest.saved_test_environment
locale.getlocale() parses the locale, which is useless for
saved_test_environment.
Victor Stinner [Mon, 17 Jun 2013 18:40:05 +0000 (20:40 +0200)]
Issue #18228: Fix locale test of test.regrtest.saved_test_environment
Skip LC_ALL becore getlocale(locale.LC_ALL) always fail, and catch also
ValueError.
Victor Stinner [Mon, 17 Jun 2013 18:35:42 +0000 (20:35 +0200)]
(Merge 3.3) regrtest.py: Fix another typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:35:08 +0000 (20:35 +0200)]
regrtest.py: Fix another typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:28:02 +0000 (20:28 +0200)]
(Merge 3.3) regrtest.py: Fix typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:27:10 +0000 (20:27 +0200)]
regrtest.py: Fix typo in the usage of the faulthandler module
Christian Heimes [Mon, 17 Jun 2013 13:45:11 +0000 (15:45 +0200)]
merge heads
Christian Heimes [Mon, 17 Jun 2013 13:44:12 +0000 (15:44 +0200)]
Issue #18147: Add diagnostic functions to ssl.SSLContext().
get_ca_list() lists all loaded CA certificates and cert_store_stats() returns
amount of loaded X.509 certs, X.509 CA certs and CRLs.
Serhiy Storchaka [Mon, 17 Jun 2013 13:38:00 +0000 (16:38 +0300)]
Merge heads
Serhiy Storchaka [Mon, 17 Jun 2013 13:36:20 +0000 (16:36 +0300)]
Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
Serhiy Storchaka [Mon, 17 Jun 2013 13:34:41 +0000 (16:34 +0300)]
Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
Christian Heimes [Mon, 17 Jun 2013 13:32:57 +0000 (15:32 +0200)]
Issue #18207: Fix test_ssl for some versions of OpenSSL that ignore seconds
in ASN1_TIME fields.
Serhiy Storchaka [Mon, 17 Jun 2013 13:11:06 +0000 (16:11 +0300)]
Issue #18223: Refactor test_tarfile.
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
* Replace ImportError by ModuleNotFoundError.
and some other minor enhancements.
Serhiy Storchaka [Mon, 17 Jun 2013 12:38:50 +0000 (15:38 +0300)]
Issue #18223: Refactor test_tarfile.
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
and some other minor enhancements.
Brett Cannon [Sun, 16 Jun 2013 23:17:12 +0000 (19:17 -0400)]
documentation suggesting something which doesn't exist
Brett Cannon [Sun, 16 Jun 2013 23:09:46 +0000 (19:09 -0400)]
Merge doc/argument name fix
Brett Cannon [Sun, 16 Jun 2013 23:07:16 +0000 (19:07 -0400)]
merge
Brett Cannon [Sun, 16 Jun 2013 23:06:55 +0000 (19:06 -0400)]
Fix a misnaming of a method and an argument
Brett Cannon [Sun, 16 Jun 2013 22:37:53 +0000 (18:37 -0400)]
Issue #18076: Introduce imoportlib.util.decode_source().
The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.
Brett Cannon [Sun, 16 Jun 2013 22:05:54 +0000 (18:05 -0400)]
importlib.abc.SourceLoader.get_source() was re-raising SyntaxError and
UnicodeDecodeError as ImportError. That was over-reaching the point of
raising ImportError in get_source() (which is to signal the source
code was not found when it should have). Conflating the two exceptions
with ImportError could lead to masking errors with the source which
should be known outside of whether there was an error simply getting
the source to begin with.
Brett Cannon [Sun, 16 Jun 2013 21:23:06 +0000 (17:23 -0400)]
Issue #18115: Abstract out managing the cleanup of modules to use in
loaders where C code provides the loaded module.
Brett Cannon [Sun, 16 Jun 2013 19:20:48 +0000 (15:20 -0400)]
Check that warnings.showwarning() is not changed.
Brett Cannon [Sun, 16 Jun 2013 18:56:58 +0000 (14:56 -0400)]
Issues #18058, 18057: Make importlib._bootstrap.NamespaceLoader
conform the the InspectLoader ABC. Perk of this is that runpy/-m can
now work with namespace packages.
Brett Cannon [Sun, 16 Jun 2013 17:14:06 +0000 (13:14 -0400)]
merge
Brett Cannon [Sun, 16 Jun 2013 17:13:40 +0000 (13:13 -0400)]
Issue #17177: The imp module is pending deprecation.
To make sure there is no issue with code that is both Python 2 and 3
compatible, there are no plans to remove the module any sooner than
Python 4 (unless the community moves to Python 3 solidly before then).
Andrew Kuchling [Sun, 16 Jun 2013 17:02:55 +0000 (13:02 -0400)]
Merge with 3.3
Andrew Kuchling [Sun, 16 Jun 2013 16:58:48 +0000 (12:58 -0400)]
Describe 'surrogateescape' in the documentation.
Also, improve some docstring descriptions of the 'errors' parameter.
Closes #14015.
Brett Cannon [Sun, 16 Jun 2013 15:37:57 +0000 (11:37 -0400)]
Stop using the deprecated unittest.TestCase.assertRaisesRegexp()
Brett Cannon [Sun, 16 Jun 2013 03:24:11 +0000 (23:24 -0400)]
Make test_builtin work when executed directly
Gregory P. Smith [Sun, 16 Jun 2013 01:14:56 +0000 (18:14 -0700)]
Prevent a possible double close of parent pipe fds when the subprocess
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
Gregory P. Smith [Sun, 16 Jun 2013 01:05:17 +0000 (18:05 -0700)]
news entry for subprocess double close fix.
Gregory P. Smith [Sun, 16 Jun 2013 01:04:26 +0000 (18:04 -0700)]
Prevent a possible double close of parent pipe fds when the subprocess
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
Brett Cannon [Sat, 15 Jun 2013 22:39:21 +0000 (18:39 -0400)]
Issue #17177: stop using imp in test_importlib
Brett Cannon [Sat, 15 Jun 2013 22:10:18 +0000 (18:10 -0400)]
Issue #17177: update checkpyc to stop using imp
Brett Cannon [Sat, 15 Jun 2013 21:52:59 +0000 (17:52 -0400)]
Issue # 17177: Stop using imp in setup.py
Brett Cannon [Sat, 15 Jun 2013 21:33:27 +0000 (17:33 -0400)]
Issue # 17177: Stop using imp in turtledemo
Brett Cannon [Sat, 15 Jun 2013 21:32:30 +0000 (17:32 -0400)]
Issue #17177: Stop using imp in zipfile
Brett Cannon [Sat, 15 Jun 2013 21:11:25 +0000 (17:11 -0400)]
Issue #17177: Stop using imp in a bunch of tests
Andrew Kuchling [Sat, 15 Jun 2013 19:10:08 +0000 (15:10 -0400)]
Merge with 3.3
Brett Cannon [Sat, 15 Jun 2013 18:32:11 +0000 (14:32 -0400)]
Issue #17177: Stop using imp in sysconfig
Brett Cannon [Sat, 15 Jun 2013 18:27:21 +0000 (14:27 -0400)]
Issue #17177: switch from imp.new_module to types.ModuleType for runpy
Brett Cannon [Sat, 15 Jun 2013 18:25:04 +0000 (14:25 -0400)]
Issue #17177: Stop using imp in pydoc
Brett Cannon [Sat, 15 Jun 2013 18:07:21 +0000 (14:07 -0400)]
Issue #17177: Stop using imp with py_compile
Andrew Kuchling [Sat, 15 Jun 2013 18:04:04 +0000 (14:04 -0400)]
#18113: Objects associated to a curses.panel object with set_userptr() were leaked.
Reported by Atsuo Ishimoto.
Brett Cannon [Sat, 15 Jun 2013 17:38:07 +0000 (13:38 -0400)]
merge
Brett Cannon [Sat, 15 Jun 2013 17:37:38 +0000 (13:37 -0400)]
merge w/ 3.3
Brett Cannon [Sat, 15 Jun 2013 17:37:12 +0000 (13:37 -0400)]
Drop some dead imports of imp
Andrew Kuchling [Sat, 15 Jun 2013 17:29:09 +0000 (13:29 -0400)]
Fix typo; clarify that the methods were removed entirely
Brett Cannon [Sat, 15 Jun 2013 17:23:01 +0000 (13:23 -0400)]
Issue #17177: Stop using imp in multiprocessing