R David Murray
089305f8f6
Merge: Clarify the wording of a news entry.
2013-12-31 17:34:40 -05:00
R David Murray
b075cc0d76
Clarify the wording of a news entry.
2013-12-31 17:33:47 -05:00
R David Murray
33ef1aeb1e
whatsnew: mock called_with improvements, socket CAN_BCM support.
...
Also reworded the other entries in the socket section of whatsnew, as
well as a couple of unrelated news entries.
2013-12-31 16:04:50 -05:00
R David Murray
8b2d68245e
whatsnew: random.getrandbits performance.
...
Also fix a NEWS file issue number error, and some spacing fixes in whatsnew.
2013-12-31 15:06:05 -05:00
R David Murray
2691ee6183
whatsnew: abc.ABC. Also add issue number to news entry and reword.
2013-12-28 23:15:12 -05:00
Senthil Kumaran
b6fac245b5
Backporing the fix from Issue #12692
2013-12-28 17:36:18 -08:00
Antoine Pitrou
3e86ba4e32
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:26:33 +01:00
R David Murray
880fee60ca
Add context to a json NEWS entry.
2013-12-27 17:08:18 -05:00
Antoine Pitrou
b5c66f8645
Fix breakage in TestSuite.countTestCases() introduced by issue #11798 .
2013-12-28 20:37:58 +01:00
Antoine Pitrou
156b3610b8
Issue #19918 : Fix PurePath.relative_to() under Windows.
2013-12-28 19:49:04 +01:00
Antoine Pitrou
e6d2f159fc
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:30:51 +01:00
Antoine Pitrou
c1764dd350
Issue #19648 : implement empty tests in pickletester. Patch by Gennadiy Zlobin.
2013-12-28 16:57:37 +01:00
R David Murray
d7bc99ef4c
Mostly-null merge of #18116 backport (updated NEWS entry).
2013-12-27 11:43:42 -05:00
R David Murray
ecff5e51a5
#18116 : backport fix to 3.3 since real-world failure mode demonstrated.
...
In issue 20074 it was pointed out that getpass would fail with a traceback if
stdin was, for example /dev/null, which is a non-unlikely scenario.
Also backported the tests from issue 17484 as modified by issue 18116.
(What I really did was copy getpass.py and test_getpass.py from their
state on tip as of 17bd04fbf3d3).
2013-12-27 11:24:32 -05:00
Serhiy Storchaka
8c4f57d1d5
Issue #20046 : Locale alias table no longer contains entities which can be
...
calculated. Generalized support of the euro modifier.
2013-12-27 00:56:53 +02:00
Serhiy Storchaka
e190fac5f9
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:21:52 +02:00
Serhiy Storchaka
5eb01530b2
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:20:59 +02:00
Serhiy Storchaka
1b97ed5abc
Issue #20067 : Tkinter variables now work when wantobjects is false.
2013-12-26 20:06:43 +02:00
Serhiy Storchaka
d97c01ff28
Issue #20067 : Tkinter variables now work when wantobjects is false.
2013-12-26 20:06:05 +02:00
doko@ubuntu.com
e575148cc2
- Issue #20070 : Don't run test_urllib2net when network resources are not
...
enabled.
2013-12-26 17:37:11 +01:00
Zachary Ware
bb4b7c12fa
Issue #19938 : Re-enabled test_bug_1333982 in test_dis, which had been
...
disabled since 3.0 due to the changes in listcomp handling.
2013-12-26 09:55:24 -06:00
Zachary Ware
e80e806b3a
Issue #19938 : Re-enabled test_bug_1333982 in test_dis, which had been
...
disabled since 3.0 due to the changes in listcomp handling.
2013-12-26 09:53:49 -06:00
Serhiy Storchaka
cb131948fe
Issue #19320 : test_tcl no longer fails when wantobjects is false.
2013-12-25 17:29:41 +02:00
Serhiy Storchaka
cc4290bf91
Issue #19320 : test_tcl no longer fails when wantobjects is false.
2013-12-25 17:29:01 +02:00
Serhiy Storchaka
81d2be9580
Issue #19020 : Tkinter now uses splitlist() instead of split() in configure
...
methods.
2013-12-25 16:36:43 +02:00
Serhiy Storchaka
848972cac1
Issue #19020 : Tkinter now uses splitlist() instead of split() in configure
...
methods.
2013-12-25 16:35:38 +02:00
Serhiy Storchaka
a7a4b4916f
Issue #20058 : sys.stdin.readline() in IDLE now always returns only one line.
2013-12-25 14:27:16 +02:00
Serhiy Storchaka
0fd557647d
Issue #20058 : sys.stdin.readline() in IDLE now always returns only one line.
2013-12-25 14:24:35 +02:00
R David Murray
6e39015f61
pty.spawn returns os.waitpid; optimization of BZ2File and LZMAFile.
2013-12-24 22:28:04 -05:00
R David Murray
76825bce53
Fix English in a NEWS entry.
2013-12-24 15:41:45 -05:00
R David Murray
cad227a553
Move IPv6 NEWS entry into correct section.
2013-12-24 15:37:58 -05:00
R David Murray
d91ba206a2
Mention Windows 2000 and OS/2 drops, python-config as shell script.
2013-12-24 12:13:44 -05:00
R David Murray
72420ff3ce
Mention PATHEXT and removed Misc dirs; clarify wording of a NEWS entry.
2013-12-24 10:46:44 -05:00
Nick Coghlan
ae2ee96ad7
Issue #19744 : improve ensurepip error when ssl is missing
2013-12-23 23:07:07 +10:00
Nick Coghlan
0a68dacb0d
Issue #19734 : add missing NEWS entry
2013-12-23 17:42:02 +10:00
Antoine Pitrou
20d5adea6a
Fix TypeError on "setup.py upload --show-response".
2013-12-22 18:14:56 +01:00
Antoine Pitrou
335a5128e5
Fix TypeError on "setup.py upload --show-response".
2013-12-22 18:13:51 +01:00
Antoine Pitrou
e8d07a9885
Issue #12226 : HTTPS is now used by default when connecting to PyPI.
2013-12-22 01:45:42 +01:00
Antoine Pitrou
f60b7df9f8
Issue #12226 : HTTPS is now used by default when connecting to PyPI.
2013-12-22 01:35:53 +01:00
Antoine Pitrou
29fd05f900
Issue #20045 : Fix "setup.py register --list-classifiers".
2013-12-21 22:59:06 +01:00
Antoine Pitrou
716b7222e9
Issue #20045 : Fix "setup.py register --list-classifiers".
2013-12-21 22:57:56 +01:00
Antoine Pitrou
2b7f69851d
Issue #18879 : When a method is looked up on a temporary file, avoid closing the file before the method is possibly called.
2013-12-21 22:16:19 +01:00
Antoine Pitrou
17c93260a6
Issue #18879 : When a method is looked up on a temporary file, avoid closing the file before the method is possibly called.
2013-12-21 22:14:56 +01:00
Christian Heimes
266772abe9
merge
2013-12-21 16:19:57 +01:00
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
2013-12-21 16:19:10 +01:00
Antoine Pitrou
712cb734bd
Issue #20037 : Avoid crashes when doing text I/O late at interpreter shutdown.
2013-12-21 15:51:54 +01:00
Guido van Rossum
a960599be5
Add some asyncio news for beta 2.
2013-12-20 20:47:06 -08:00
Serhiy Storchaka
6e6ec50f82
Issue #20034 : Updated alias mapping to most recent locale.alias file
...
from X.org distribution using makelocalealias.py.
2013-12-20 18:50:32 +02:00
Serhiy Storchaka
715233c3cd
Issue #20034 : Updated alias mapping to most recent locale.alias file
...
from X.org distribution using makelocalealias.py.
2013-12-20 18:23:26 +02:00
Zachary Ware
e36e8be2ee
Issue #19683 : Removed empty tests from test_minidom. Patch by Ajitesh Gupta.
2013-12-19 13:44:56 -06:00
Serhiy Storchaka
936b1c3aba
Merge with 3.3
2013-12-19 21:24:06 +02:00
Serhiy Storchaka
c8cc42edf4
Issue #5815 : Fixed support for locales with modifiers. Fixed support for
...
locale encodings with hyphens.
2013-12-19 21:21:25 +02:00
Victor Stinner
08263f10f8
(Merge 3.3) Issue #20026 : Fix the sqlite module to handle correctly invalid
...
isolation level (wrong type).
2013-12-19 16:39:00 +01:00
Victor Stinner
cb1f74ec40
Issue #20026 : Fix the sqlite module to handle correctly invalid isolation level
...
(wrong type).
2013-12-19 16:38:03 +01:00
Serhiy Storchaka
cf58fb5e29
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:28:04 +02:00
Serhiy Storchaka
cac23a50ee
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:27:18 +02:00
R David Murray
0ce3e9d82b
Merge: #19855 : uuid.get_node now looks on the PATH for executables on unix.
2013-12-17 21:14:41 -05:00
R David Murray
4be1e24933
#19855 : uuid.get_node now looks on the PATH for executables on unix.
...
Patch by Serhiy Storchaka.
2013-12-17 21:13:16 -05:00
Serhiy Storchaka
cac05e2e90
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:51:40 +02:00
Serhiy Storchaka
1c84ac1f55
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:50:02 +02:00
Nick Coghlan
9a76735b1d
Close #19946 : use runpy as needed in multiprocessing
...
- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__
2013-12-17 22:17:26 +10:00
Victor Stinner
1d006a2c0e
Backout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not work on Windows
2013-12-16 23:39:40 +01:00
Victor Stinner
fffb96ba66
Issue #18283 : shutil.which() now supports bytes argument, not only text argument.
2013-12-16 22:48:48 +01:00
Christian Heimes
bd9cbb0691
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:16:45 +01:00
Christian Heimes
de57074874
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:15:44 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Antoine Pitrou
c274fd22ed
Issue #19887 : Improve the Path.resolve() algorithm to support certain symlink chains.
...
Original patch by Serhiy.
2013-12-16 19:57:41 +01:00
Zachary Ware
d2e48ca813
Issue #19987 : Merge with 3.3
2013-12-16 09:05:44 -06:00
Zachary Ware
1007432c95
Issue #19987 : Re-write test_alias_fallback in test_winsound to have two
...
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 09:02:41 -06:00
Christian Heimes
d9fbb446a2
merge
2013-12-16 14:35:58 +01:00
Christian Heimes
cb3558dcc1
Issue #18215 : Add script Tools/ssl/test_multiple_versions.py to compile and
...
run Python's unit tests with multiple versions of OpenSSL.
2013-12-16 14:35:39 +01:00
Serhiy Storchaka
cc83b0c8f6
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:14:19 +02:00
Serhiy Storchaka
593568bf47
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:13:28 +02:00
Serhiy Storchaka
f5ad91c392
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:36:10 +02:00
Serhiy Storchaka
3d7e11520e
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:34:55 +02:00
R David Murray
755d5ea12a
Merge: #19532 : make compileall with no file/dir args respect -f and -q.
2013-12-15 20:56:00 -05:00
R David Murray
8a1d1e647e
#19532 : make compileall with no file/dir args respect -f and -q.
...
Patch by Vajrasky Kok.
2013-12-15 20:49:38 -05:00
Serhiy Storchaka
c836a28cc1
Issue #17576 : Removed deprecation warnings added in changeset 618cca51a27e.
2013-12-14 21:07:09 +02:00
Serhiy Storchaka
79f19f9e7c
Issue #19623 : Fixed writing to unseekable files in the aifc module.
2013-12-14 20:42:22 +02:00
Serhiy Storchaka
84d28b4ee5
Issue #19623 : Fixed writing to unseekable files in the aifc module.
2013-12-14 20:35:04 +02:00
Serhiy Storchaka
03241e8017
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:18:39 +02:00
Serhiy Storchaka
5da107ac72
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:12:02 +02:00
Brett Cannon
98620d87f2
Issue #19963 : Document that importlib.import_module() will import
...
parent packages automatically.
2013-12-13 13:57:41 -05:00
Brett Cannon
ca7ab7c7f1
Issue #19946 : Raise ImportError when the main module cannot be found
...
by multiprocessing.spawn (before it was raising an AttributeError).
2013-12-13 11:43:10 -05:00
Victor Stinner
507ac3a591
(Merge 3.3) Issue #19969 : PyBytes_FromFormatV() now raises an OverflowError if
...
"%c" argument is not in range [0; 255].
2013-12-13 12:15:31 +01:00
Victor Stinner
c9362cf86a
Issue #19969 : PyBytes_FromFormatV() now raises an OverflowError if "%c"
...
argument is not in range [0; 255].
2013-12-13 12:14:44 +01:00
Victor Stinner
590cebe391
Issue #19787 : PyThread_set_key_value() now always set the value
...
In Python 3.3, PyThread_set_key_value() did nothing if the key already exists
(if the current value is a non-NULL pointer).
When _PyGILState_NoteThreadState() is called twice on the same thread with a
different Python thread state, it still keeps the old Python thread state to
keep the old behaviour. Replacing the Python thread state with the new state
introduces new bugs: see issues #10915 and #15751 .
2013-12-13 11:08:56 +01:00
Serhiy Storchaka
cb1c4c8c22
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:55 +02:00
Serhiy Storchaka
3ad2d70947
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:01 +02:00
Victor Stinner
441adb8c57
Backout changeset 46393019b650
...
test_capi is failing and the fix is not trivial, I prefer to revert
2013-12-13 04:14:41 +01:00
Victor Stinner
cd0cb8ccd3
Close #19787 : PyThread_set_key_value() now always set the value. In Python 3.3,
...
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).
_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.
2013-12-13 03:22:00 +01:00
Victor Stinner
1310510793
Issue #14432 : Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:17:29 +01:00
Victor Stinner
fdeb6ec45a
Issue #14432 : Remove the thread state field from the frame structure. Fix a
...
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
2013-12-13 02:01:38 +01:00
Victor Stinner
62ca10051b
Close #19576 : PyGILState_Ensure() now initializes threads. At startup, Python
...
has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the
first time and PyEval_InitThreads() was not called yet, a GIL needs to be
created.
2013-12-13 01:46:43 +01:00
Zachary Ware
63321b4978
Issue #19828 : Merge with 3.3
2013-12-11 17:01:21 -06:00
Zachary Ware
36193e73b8
Issue #19828 : Fixed test_site when the whole suite is run with -S.
...
Also, cleaned up an unused import.
2013-12-11 16:59:44 -06:00
R David Murray
50bfbb9903
#19063 : fix set_payload handling of non-ASCII string input.
...
This version of the fix raises an error instead of accepting the invalid
input (ie: if a non-ASCII string is used but no charset is specified).
2013-12-11 16:52:11 -05:00
R David Murray
d5c4c7411a
#19063 : partially fix set_payload handling of non-ASCII string input.
...
This is a backward compatible partial fix, the complete fix requires raising
an error instead of accepting the invalid input, so the real fix is only
suitable for 3.4.
2013-12-11 16:34:34 -05:00
Serhiy Storchaka
c4f3212abc
Issue #17576 : Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:26:36 +02:00
Serhiy Storchaka
31a655411a
Issue #17576 : Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:07:54 +02:00