Tim Peters
cbd4d08880
Issue 19158: a rare race in BoundedSemaphore could allow .release() too often.
2013-10-09 13:19:21 -05:00
Victor Stinner
8d19767403
Close #19199 : Remove ``PyThreadState.tick_counter`` field
2013-10-09 14:53:01 +02:00
Antoine Pitrou
1cfa0ba883
Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.
2013-10-07 20:40:59 +02:00
Antoine Pitrou
59c900d3bf
Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.
2013-10-07 20:38:51 +02:00
Georg Brandl
7c679514a5
merge with 3.3
2013-10-06 21:23:26 +02:00
Georg Brandl
c377fe2b96
Closes #1215 : document better why it is not a good idea to catch e.g. SIGSEGV and refer to faulthandler.
...
Patch by Martin Pool.
2013-10-06 21:22:42 +02:00
Serhiy Storchaka
992cf1dd59
Issue #18972 : Modernize email examples and use the argparse module in them.
2013-10-06 11:45:25 +03:00
Antoine Pitrou
5df8a8a1fd
Issue #19087 : Improve bytearray allocation in order to allow cheap popping of data at the front (slice deletion).
2013-10-05 21:12:18 +02:00
Ezio Melotti
93d7dda914
#19148 : fix markup errors and wording in enum docs. Patch by Esa Peuha.
2013-10-05 04:13:18 +03:00
Brett Cannon
1448ecf470
Issue #18716 : Deprecate the formatter module
2013-10-04 11:38:59 -04:00
Eric Snow
5c4b4c530f
[issue19152] Revert 832579dbafd6.
2013-10-03 15:03:29 -06:00
Eric Snow
b6b3492317
Fix typo.
2013-10-03 14:39:39 -06:00
Eric Snow
48b42ecd0f
Fix typo.
2013-10-03 14:37:55 -06:00
Eric Snow
bf14dccc4d
[issue19151] Fix issue number in Misc/NEWS entry.
2013-10-03 12:45:04 -06:00
Eric Snow
af8566c847
[issue19152] Add ExtensionFileLoader.get_filename().
2013-10-03 12:08:55 -06:00
Eric Snow
5179445520
[issue19152] Add ExtensionFileLoader.get_filename().
2013-10-03 12:08:55 -06:00
Eric Snow
efbc475278
[issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
2013-10-03 12:08:55 -06:00
Eric Snow
e8bbfebee0
[issue19951] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
2013-10-03 12:08:55 -06:00
Antoine Pitrou
0e61ed8400
Issue #19014 : memoryview.cast() is now allowed on zero-length views.
2013-10-03 19:56:54 +02:00
Antoine Pitrou
60b183407c
Issue #19014 : memoryview.cast() is now allowed on zero-length views.
2013-10-03 19:55:41 +02:00
Serhiy Storchaka
026af2a597
Issue #18037 : 2to3 now escapes '\u' and '\U' in native strings.
2013-10-03 12:10:49 +03:00
Serhiy Storchaka
def0a4c298
Issue #18037 : 2to3 now escapes '\u' and '\U' in native strings.
2013-10-03 12:08:38 +03:00
Nick Coghlan
fdf239a855
Close #17839 : support bytes-like objects in base64 module
...
This mostly affected the encodebytes and decodebytes function
(which are used by base64_codec)
Also added a test to ensure all bytes-bytes codecs can handle
memoryview input and tests for handling of multidimensional
and non-bytes format input in the modern base64 API.
2013-10-03 00:43:22 +10:00
Nick Coghlan
45163ccce4
Close #18690 : register memoryview with Sequence ABC
2013-10-02 22:31:47 +10:00
Nick Coghlan
a0f169cde8
Close #19078 : memoryview now supports reversed
...
Patch by Claudiu Popa
2013-10-02 22:06:54 +10:00
Serhiy Storchaka
7c411a4041
Issue #19132 : The pprint module now supports compact mode.
2013-10-02 11:56:18 +03:00
Serhiy Storchaka
092bd388ce
Issue #19137 : The pprint module now correctly formats instances of set and
...
frozenset subclasses.
2013-10-02 11:43:30 +03:00
Serhiy Storchaka
51844384f4
Issue #19137 : The pprint module now correctly formats instances of set and
...
frozenset subclasses.
2013-10-02 11:40:49 +03:00
Raymond Hettinger
224c87d60c
Issue #18594 : Fix the fallback path in collections.Counter().
2013-10-01 21:36:09 -07:00
Nick Coghlan
f05d981f58
Close #10042 : functools.total_ordering now handles NotImplemented
...
(Patch by Katie Miller)
2013-10-02 00:02:03 +10:00
Nick Coghlan
e6f4631f08
Merge #19092 from 3.3
2013-10-01 23:28:00 +10:00
Nick Coghlan
1a33b2f35b
Close #19092 : ExitStack now reraises exceptions from __exit__
...
Report and patch by Hrvoje Nikšić
2013-10-01 23:24:56 +10:00
Raymond Hettinger
c13516b0a0
merge
2013-10-01 01:00:59 -07:00
Raymond Hettinger
2ff2190b62
Issue #18594 : Fix the fast path for collections.Counter().
...
The path wasn't being taken due to an over-restrictive type check.
2013-10-01 00:55:43 -07:00
Antoine Pitrou
6a9c0e50a9
Issue #12641 : Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
...
Patch by Oscar Benjamin.
2013-09-30 22:29:48 +02:00
Antoine Pitrou
3c678c33a7
Issue #12641 : Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
...
Patch by Oscar Benjamin.
2013-09-30 22:28:10 +02:00
Larry Hastings
d92af0f1d9
Merge 3.4.0a3 release changes.
2013-09-30 01:13:32 +01:00
Larry Hastings
e9cbd181a2
Post-version release cleanup.
2013-09-30 01:09:55 +01:00
Antoine Pitrou
5d23e6d543
Issue #5845 : In site.py, only load readline history from ~/.python_history if no history has been read already. This avoids double writes to the history file at shutdown.
2013-09-29 22:18:38 +02:00
Antoine Pitrou
b2201e1aa6
Properly initialize all fields of a SSL object after allocation.
2013-09-29 19:53:45 +02:00
Antoine Pitrou
860aee75b8
Properly initialize all fields of a SSL object after allocation.
2013-09-29 19:52:45 +02:00
Antoine Pitrou
20b85557f2
Issue #19095 : SSLSocket.getpeercert() now raises ValueError when the SSL handshake hasn't been done.
2013-09-29 19:50:53 +02:00
Christian Heimes
cb1915a17c
Issue #19130 : Correct PCbuild/readme.txt, Python 3.3 and 3.4 require VS 2010
2013-09-29 19:05:23 +02:00
Christian Heimes
9c99cc092e
Issue #19130 : Correct PCbuild/readme.txt, Python 3.3 and 3.4 require VS 2010
2013-09-29 19:02:35 +02:00
Antoine Pitrou
61e10a5efe
Issue #4366 : Fix building extensions on all platforms when --enable-shared is used.
2013-09-29 01:49:07 +02:00
Antoine Pitrou
643238eb53
Issue #4366 : Fix building extensions on all platforms when --enable-shared is used.
2013-09-29 01:48:40 +02:00
Larry Hastings
44719a7717
Version bump to 3.4.0a3.
2013-09-28 23:51:00 +01:00
Serhiy Storchaka
f7622bfcfb
Issue #18950 : Fix miscellaneous bugs in the sunau module.
...
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
correctly updates current file position. Au_read.getnframes() now returns an
integer (as in Python 2). Au_read and Au_write now correctly works with file
object if start file position is not a zero.
2013-09-28 21:24:43 +03:00
Serhiy Storchaka
0300a8db49
Issue #18950 : Fix miscellaneous bugs in the sunau module.
...
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
correctly updates current file position. Au_read.getnframes() now returns an
integer (as in Python 2). Au_read and Au_write now correctly works with file
object if start file position is not a zero.
2013-09-28 21:21:39 +03:00
Nick Coghlan
6ba64f454d
Close #18596 : Support address sanity checking in clang/GCC
...
This patch appropriately marks known false alarms in the
small object allocator when address sanity checking is
enabled (patch contributed by Dhiru Kholia).
2013-09-29 00:28:55 +10:00
Serhiy Storchaka
ab25c7c011
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:14:31 +03:00
Serhiy Storchaka
d2c07a58af
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:11:57 +03:00
Vinay Sajip
5421f35d5e
logging: added support for Unix domain sockets to SocketHandler and DatagramHandler.
2013-09-27 18:18:28 +01:00
Benjamin Peterson
c51c3ed3f2
merge 3.3
2013-09-26 23:43:11 -04:00
Benjamin Peterson
eecdd77c6b
fix my absurd spelling
2013-09-26 23:42:53 -04:00
Benjamin Peterson
c30d05855a
merge 3.3 ( #19098 )
2013-09-26 22:21:41 -04:00
Benjamin Peterson
305e5aac85
don't scale compiler stack frames if the recursion limit is huge ( closes #19098 )
2013-09-26 22:17:45 -04:00
Serhiy Storchaka
369606df2f
Issue #19028 : Fixed tkinter.Tkapp.merge() for non-string arguments.
2013-09-23 23:20:07 +03:00
Serhiy Storchaka
77622f55c2
Issue #18996 : TestCase.assertEqual() now more cleverly shorten differing
...
strings in error report.
2013-09-23 23:07:00 +03:00
Serhiy Storchaka
463bd4b5c6
Issue #19034 : repr() for tkinter.Tcl_Obj now exposes string reperesentation.
2013-09-23 22:49:02 +03:00
Jason R. Coombs
838521eed0
Close #18978 : Merge changes.
2013-09-22 10:06:24 -04:00
Jason R. Coombs
ea9e097464
Update NEWS
2013-09-22 09:40:06 -04:00
Nick Coghlan
f94a16b494
Close #18626 : add a basic CLI for the inspect module
2013-09-22 22:46:49 +10:00
Serhiy Storchaka
dac8b8b7a6
Issue #3015 : Fixed tkinter with wantobject=False. Any Tcl command call
...
returned empty string.
2013-09-20 23:24:20 +03:00
Serhiy Storchaka
31f477c7eb
Issue #3015 : Fixed tkinter with wantobject=False. Any Tcl command call
...
returned empty string.
2013-09-20 23:21:44 +03:00
Serhiy Storchaka
c8bf95cfc5
Issue #18050 : Fixed an incompatibility of the re module with Python 3.3.0
...
binaries.
2013-09-20 21:24:39 +03:00
Tim Peters
df099f5df6
Update internal comments to say _something_ about the "API ID".
...
Best I can tell, the possible values for this aren't documented anywhere.
2013-09-19 21:06:37 -05:00
R David Murray
cf6d0e77ea
Merge #19037 : adjust file times *before* moving maildir files into place.
2013-09-18 08:36:36 -04:00
R David Murray
41a22f1a77
#19037 : adjust file times *before* moving maildir files into place.
...
This avoids race conditions when other programs are monitoring
the maildir directory. Patch by janzert.
2013-09-18 08:34:40 -04:00
R David Murray
4750fa8369
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 21:28:17 -04:00
R David Murray
fb9dc0b3ae
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 21:04:50 -04:00
R David Murray
8270a2c209
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 20:32:54 -04:00
R David Murray
104aab956f
#14984 : On POSIX, enforce permissions when reading default .netrc.
...
Initial patch by Bruno Piguet.
This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it. Fixing that issue will be an enhancement.
2013-09-17 20:30:02 -04:00
Serhiy Storchaka
935349406a
Issue #18873 : The tokenize module, IDLE, 2to3, and the findnocoding.py script
...
now detect Python source code encoding only in comment lines.
2013-09-16 23:57:00 +03:00
Serhiy Storchaka
dafea85190
Issue #18873 : The tokenize module, IDLE, 2to3, and the findnocoding.py script
...
now detect Python source code encoding only in comment lines.
2013-09-16 23:51:56 +03:00
Serhiy Storchaka
3c41154331
Issue #17003 : Unified the size argument names in the io module with common
...
practice.
2013-09-16 23:18:10 +03:00
Andrew Kuchling
173a157e72
#1565525 : Add traceback.clear_frames() helper function to clear locals ref'd by a traceback
2013-09-15 18:15:56 -04:00
Senthil Kumaran
defe7f4c62
Expose --bind argument for http.server, enable http.server to bind to a user
...
specified network interface.
Patch contributed by Malte Swart. Addresses issue #17764 .
HG :Enter commit message. Lines beginning with 'HG:' are removed.
2013-09-15 09:37:27 -07:00
Raymond Hettinger
c76aa4832b
merge
2013-09-14 20:52:54 -07:00
Raymond Hettinger
46f5ca31d0
Issue #19018 : The heapq.merge() function no longer suppresses IndexError
2013-09-14 20:51:57 -07:00
Antoine Pitrou
0715b9fad3
Issue #18937 : Add an assertLogs() context manager to unittest.TestCase to ensure that a block of code emits a message using the logging module.
2013-09-14 19:45:47 +02:00
Georg Brandl
bc75046bb3
Add a NEWS entry for b9b521efeba3.
2013-09-14 09:10:21 +02:00
Georg Brandl
c5884d8930
Add NEWS entry for c18c18774e24.
2013-09-14 09:09:18 +02:00
Eli Bendersky
12f18289c0
Merge for Issue #18997 : Issue #18997 : fix ElementTree crash with using pickle and __getstate__.
2013-09-13 06:27:52 -07:00
Eli Bendersky
61f4cd1dd5
Add Germán M. Bravo to Misc/ACKS
2013-09-13 06:24:59 -07:00
Serhiy Storchaka
bf28d2dcad
Issue #18818 : The "encodingname" part of PYTHONIOENCODING is now optional.
2013-09-13 11:46:24 +03:00
Senthil Kumaran
187b063005
Fix http.server's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:22:45 -07:00
Senthil Kumaran
72c238e21a
Fix http.server's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:21:18 -07:00
Serhiy Storchaka
5abf3d9926
Issue #18784 : The uuid module no more attempts to load libc via ctypes.CDLL,
...
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
2013-09-13 07:49:36 +03:00
Serhiy Storchaka
016af3f4d4
Issue #18784 : The uuid module no more attempts to load libc via ctypes.CDLL,
...
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
2013-09-13 07:46:40 +03:00
Serhiy Storchaka
fa7d3b13a3
Issue #18988 : The "Tab" key now works when a word is already autocompleted.
2013-09-11 22:48:52 +03:00
Serhiy Storchaka
dd4754e6a8
Issue #18988 : The "Tab" key now works when a word is already autocompleted.
2013-09-11 22:46:27 +03:00
Raymond Hettinger
f27623215c
Issue #18962 : Optimize the single iterator case for heapq.merge()
...
Suggested by Wouter Bolsterlee.
2013-09-11 01:15:40 -05:00
Larry Hastings
8568f66daf
Merge.
2013-09-09 21:12:21 +09:00
Larry Hastings
60560b18d2
Post-3.4.0a2-release fixups.
2013-09-09 21:08:52 +09:00
Serhiy Storchaka
050b62d1a6
Fix a typo. ( closes #18953 )
2013-09-08 20:43:02 +03:00
Serhiy Storchaka
c700180443
Fix a typo. ( closes #18953 )
2013-09-08 20:42:13 +03:00
Victor Stinner
8898350076
Close #18957 : The PYTHONFAULTHANDLER environment variable now only enables the
...
faulthandler module if the variable is non-empty. Same behaviour than other
variables like PYTHONDONTWRITEBYTECODE.
2013-09-08 11:36:23 +02:00
Nick Coghlan
ff6382b40d
Merge #18952 fix from 3.3
2013-09-08 12:49:53 +10:00
Nick Coghlan
0494c2ae7f
Close #18952 : correctly download test support data
...
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.
This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.
The unexpected skips were noticed and reported by Zachary Ware
2013-09-08 11:40:34 +10:00
Antoine Pitrou
7b4769937f
Issue #18808 : Thread.join() now waits for the underlying thread state to be destroyed before returning.
...
This prevents unpredictable aborts in Py_EndInterpreter() when some non-daemon threads are still running.
2013-09-07 23:38:37 +02:00
Larry Hastings
3a2d18b7d7
Version number bump for Python 3.4.0a2.
2013-09-07 23:42:07 +12:00
Ethan Furman
9143b0e087
Added Elazar to Misc/ACKS.
2013-09-06 19:58:01 -07:00
Ned Deily
f70f4a63b6
Issue #18458 : Prevent crashes with newer versions of libedit. Its readline
...
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-09-06 15:16:19 -07:00
Antoine Pitrou
b0478b3f5f
Issue #18623 : Factor out the _SuppressCoreFiles context manager into test.support.
...
Patch by Valerie Lambert.
2013-09-06 20:50:00 +02:00
R David Murray
4a0430166b
#18852 : Handle readline.__doc__ being None in site.py readline activation.
...
Patch by Berker Peksag.
2013-09-06 13:08:08 -04:00
Eli Bendersky
cdac551675
Issue #18920 : argparse's default version action (for -v, --version) should
...
output to stdout, matching the 'python -v'
Reported by Wolfgang Maier
2013-09-06 06:49:15 -07:00
Eli Bendersky
309836c5c8
Issue #18849 : Fixed a Windows-specific tempfile bug where collision with an
...
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:14:16 -07:00
Eli Bendersky
f315df31bd
Issue #18849 : Fixed a Windows-specific tempfile bug where collision with an
...
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:11:19 -07:00
Ned Deily
981b69318d
Issue #15663 : Tcl/Tk 8.5.14 is now included with the OS X 10.6+
...
64-bit/32-bit installer for 10.6+. It is no longer necessary
to install a third-party version of Tcl/Tk 8.5 to work around the
problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
and later releases.
2013-09-06 01:18:36 -07:00
Ned Deily
d819b931f3
Issue #1584 : Provide options to override default search paths for Tcl and Tk
...
when building _tkinter. configure has two new options; if used, both must
be specified:
./configure \
--with-tcltk-includes="-I/opt/local/include" \
--with-tcltk-libs="-L/opt/local/lib -ltcl8.5 -ltk8.5"
In addition, the options can be overridden with make:
make \
TCLTK_INCLUDES="-I/opt/local/include" \
TCLTK_LIBS="-L/opt/local/lib -ltcl8.6 -ltk8.6"
2013-09-06 01:07:05 -07:00
Tim Peters
b2372959ab
Nerge 3.3 into default.
...
Issue #18942 : sys._debugmallocstats() output was damaged on Windows.
_PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format
code, but MS doesn't support that code. Interpolated
PY_FORMAT_SIZE_T in place of the "z".
2013-09-05 23:04:26 -05:00
Tim Peters
eaa3bcc370
Issue #18942 : sys._debugmallocstats() output was damaged on Windows.
...
_PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format
code, but MS doesn't support that code. Interpolated
PY_FORMAT_SIZE_T in place of the "z".
2013-09-05 22:57:04 -05:00
Serhiy Storchaka
a83a022f9a
Issue #18672 : Fixed format specifiers for Py_ssize_t in debugging output in
...
the _sre moduel.
2013-09-05 18:02:31 +03:00
Serhiy Storchaka
134f0de66d
Issue #18672 : Fixed format specifiers for Py_ssize_t in debugging output in
...
the _sre moduel.
2013-09-05 18:01:15 +03:00
Serhiy Storchaka
c56894d305
Issue #18922 : Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write
...
their version strings to stdout, and not to sderr.
2013-09-05 17:44:53 +03:00
Serhiy Storchaka
1e0d82cece
Issue #18830 : inspect.getclasstree() no more produces duplicated entries even
...
when input list contains duplicates.
2013-09-05 17:16:12 +03:00
Serhiy Storchaka
362c1b513d
Issue #18830 : inspect.getclasstree() no more produces duplicated entries even
...
when input list contains duplicates.
2013-09-05 17:14:32 +03:00
Serhiy Storchaka
34d201374c
Issue #18878 : sunau.open now supports the context manager protocol. Based on
...
patches by Claudiu Popa and R. David Murray.
2013-09-05 17:01:53 +03:00
Victor Stinner
555e57de19
(Merge 3.3) Issue #18909 : Fix _tkinter.tkapp.interpaddr() on Windows 64-bit,
...
don't cast 64-bit pointer to long (32 bits).
2013-09-05 00:23:08 +02:00
Victor Stinner
e1040e276b
Issue #18909 : Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
...
64-bit pointer to long (32 bits).
2013-09-05 00:22:24 +02:00
Antoine Pitrou
e619427f7e
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:52:14 +02:00
Antoine Pitrou
e93b63b74b
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:46:33 +02:00
Charles-François Natali
243d8d85de
Issue #16853 : Add new selectors module.
2013-09-04 19:02:49 +02:00
Andrew Svetlov
58b5c5ad14
Issue #18882 : Add threading.main_thread() function.
2013-09-04 07:01:07 +03:00
Meador Inge
3c56145638
Issue #16826 : Revert fix while Windows issues are being worked out.
2013-09-03 19:54:40 -05:00
Meador Inge
c9e1dcdd53
Issue #16826 : Revert fix while Windows issues are being worked out.
2013-09-03 19:43:49 -05:00
Meador Inge
2b0a98f540
Merge heads.
2013-09-03 17:32:13 -05:00
Meador Inge
9ab358ad7c
Issue #16826 : Don't check for PYTHONCASEOK when using -E.
...
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
2013-09-03 16:53:22 -05:00
Serhiy Storchaka
e06a89655a
Issue #18901 : The sunau getparams method now returns a namedtuple rather than
...
a plain tuple. Patch by Claudiu Popa.
2013-09-04 00:43:03 +03:00
Meador Inge
d151da9ef7
Issue #16826 : Don't check for PYTHONCASEOK when using -E.
...
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
2013-09-03 16:37:26 -05:00
Serhiy Storchaka
4c6a020a2d
Issue #17487 : The result of the wave getparams method now is pickleable again.
...
Patch by Claudiu Popa.
2013-09-04 00:28:43 +03:00
Eli Bendersky
207fe01187
Issue #18912 : Fix indentation in docstring
...
Contributed by Jeroen Van Goey
2013-09-03 06:38:55 -07:00
Terry Jan Reedy
7e7cf8bc51
Issue #12037 : Fix test_email for desktop Windows.
2013-08-31 17:16:45 -04:00
Terry Jan Reedy
740d6b6f39
Issue #12037 : Fix test_email for desktop Windows.
2013-08-31 17:12:21 -04:00
Terry Jan Reedy
2e87c87933
Merge from 3.3 #18489 Search Engine tests
2013-08-31 16:28:53 -04:00
Terry Jan Reedy
31e4d325b6
Issue #18489 : Add complete, gui-free tests for idlelib.SearchEngine.
...
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
2013-08-31 16:27:16 -04:00
Ethan Furman
fb13721b1b
Close #18780 : %-formatting now prints value for int subclasses with %d, %i, and %u codes.
2013-08-31 10:18:55 -07:00
Antoine Pitrou
4879a963d4
Issue #18756 : os.urandom() now uses a lazily-opened persistent file descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads.
2013-08-31 00:26:02 +02:00
Charles-François Natali
79a53ea7d7
Issue #18418 : After fork(), reinit all threads states, not only active ones.
...
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:34:26 +02:00
Charles-François Natali
9939cc89a4
Issue #18418 : After fork(), reinit all threads states, not only active ones.
...
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:32:53 +02:00
Gregory P. Smith
6cc50391a6
Fixes Issue #15507 : test_subprocess's test_send_signal could fail if the test
...
runner were run in an environment where the process inherited an ignore
setting for SIGINT. Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
2013-08-29 13:39:44 -07:00
Gregory P. Smith
dee0434e2f
Fixes issue #15507 : test_subprocess's test_send_signal could fail if the test
...
runner were run in an environment where the process inherited an ignore
setting for SIGINT. Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
2013-08-29 13:35:27 -07:00
Serhiy Storchaka
de2800f8f1
Issue #17974 : Switch unittest from using getopt to using argparse.
2013-08-29 12:37:28 +03:00
Serhiy Storchaka
64f7c4e4ca
Issue #16799 : Switched from getopt to argparse style in regrtest's argument
...
parsing. Added more tests for regrtest's argument parsing.
2013-08-29 12:26:23 +03:00
Serhiy Storchaka
48e6a8c88a
Issue #18743 : Fix references to non-existant "StringIO" module
...
in docstrings and comments.
2013-08-29 11:39:48 +03:00
Serhiy Storchaka
50254c57cd
Issue #18743 : Fix references to non-existant "StringIO" module
...
in docstrings and comments.
2013-08-29 11:35:43 +03:00
Andrew Svetlov
eb97368451
Issue #11798 : TestSuite now drops references to own tests after execution.
2013-08-28 21:28:38 +03:00
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
...
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
2013-08-28 00:53:59 +02:00
Serhiy Storchaka
46e1ce214b
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Victor Stinner
14e461d5b9
Close #11619 : The parser and the import machinery do not encode Unicode
...
filenames anymore on Windows.
2013-08-26 22:28:21 +02:00
Ezio Melotti
ec42975bc6
#18833 : merge with 3.3.
2013-08-26 00:17:21 +03:00
Ezio Melotti
4f1353ab10
#18833 : add a test for test_telnetlib. Patch by Alex Volkov.
2013-08-25 23:56:43 +03:00
Antoine Pitrou
7eaf3f7080
Issue #18808 : Non-daemon threads are now automatically joined when a sub-interpreter is shutdown (it would previously dump a fatal error).
2013-08-25 19:48:18 +02:00
Serhiy Storchaka
58b3ebfab9
Issue #18817 : Fix a resource warning in Lib/aifc.py demo. Patch by
...
Vajrasky Kok.
2013-08-25 19:16:01 +03:00
Serhiy Storchaka
b33baf1c9f
Issue #18817 : Fix a resource warning in Lib/aifc.py demo.
2013-08-25 19:12:56 +03:00
R David Murray
0cb8e5131d
Merge #16611 : BaseCookie now parses 'secure' and 'httponly' flags.
2013-08-25 11:09:45 -04:00
R David Murray
cd0f74b1e0
#16611 : BaseCookie now parses 'secure' and 'httponly' flags.
...
Previously it generated them if they were given a value, but completely
ignored them if they were present in the string passed in to be parsed. Now
if the flag appears on a cookie, the corresponding Morsel key will reference a
True value. Other pre-existing behavior is retained in this maintenance
patch: if the source contains something like 'secure=foo', morsel['secure']
will return 'foo'. Since such a value doesn't round trip and never did (and
would be a surprising occurrence) a subsequent non-bug-fix patch may change
this behavior.
Inspired by a patch from Julien Phalip, who reviewed this one.
2013-08-25 11:09:02 -04:00
Christian Heimes
9dd279a3ac
Issue #11973 : Fix a problem in kevent. The flags and fflags fields are now
...
properly handled as unsigned.
2013-08-25 14:57:38 +02:00
Christian Heimes
f1fe159822
Issue #11973 : Fix a problem in kevent. The flags and fflags fields are now
...
properly handled as unsigned.
2013-08-25 14:57:00 +02:00
Christian Heimes
cfa47962c2
Issue #18747 : Fix spelling errors in my commit message and comments,
...
thanks to Vajrasky Kok for proof-reading.
2013-08-25 14:19:29 +02:00
Christian Heimes
61636e7105
Issue #18747 : Fix spelling errors in my commit message and comments,
...
thanks to Vajrasky Kok for proof-reading.
2013-08-25 14:19:16 +02:00
Vinay Sajip
5939027969
Closes #18807 : pyvenv now takes a --copies argument allowing copies instead of symlinks even where symlinks are available and the default.
2013-08-25 00:04:06 +01:00
Nick Coghlan
095668914c
Close #18538 : ``python -m dis`` now uses argparse.
...
Patch by Michele Orrù.
2013-08-25 00:48:17 +10:00
Benjamin Peterson
3a7dffa4ce
remove support for compiling on systems without getcwd()
...
Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.
2013-08-23 21:01:48 -05:00
Brett Cannon
f79126f373
Issue #18394 : Explicitly close the file object cgi.FieldStorage
...
caches.
Eliminates the ResoureWarning raised during testing.
Patch also independently written by Vajrasky Kok.
2013-08-23 15:15:48 -04:00
Victor Stinner
a93c6db68b
(Merge 3.3) Close #17702 : On error, os.environb now removes suppress the except
...
context when raising a new KeyError with the original key.
2013-08-23 19:23:42 +02:00
Victor Stinner
0c2dd0c0a9
Close #17702 : On error, os.environb now removes suppress the except context
...
when raising a new KeyError with the original key.
2013-08-23 19:19:15 +02:00
Brett Cannon
f1e0273023
NEW entry for issue #18755
2013-08-23 11:47:26 -04:00
Serhiy Storchaka
e39e54d0b3
Issue #16809 : Fixed some tkinter incompabilities with Tcl/Tk 8.6.
2013-08-22 17:53:06 +03:00
Serhiy Storchaka
06ce077e43
Issue #16809 : Fixed some tkinter incompabilities with Tcl/Tk 8.6.
2013-08-22 17:51:58 +03:00
Serhiy Storchaka
254954aacd
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:42:05 +03:00
Serhiy Storchaka
203eb317d2
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:40:31 +03:00
Christian Heimes
50f6e71fed
Issue #18747 : Update Misc/NEWS to reflect the latest changeset.
2013-08-22 13:22:46 +02:00
Christian Heimes
1852b30c50
Issue #18747 : Update Misc/NEWS to reflect the latest changeset.
2013-08-22 13:22:37 +02:00
R David Murray
b8c537094d
Merge #18324 : set_payload now correctly handles binary input.
2013-08-21 21:13:51 -04:00
R David Murray
00ae435dee
#18324 : set_payload now correctly handles binary input.
...
This also backs out the previous fixes for for #14360 , #1717 , and #16564 .
Those bugs were actually caused by the fact that set_payload didn't decode to
str, thus rendering the model inconsistent. This fix does mean the data
processed by the encoder functions goes through an extra encode/decode cycle,
but it means the model is always consistent. Future API updates will provide
a better way to encode payloads, which will bypass this minor de-optimization.
Tests by Vajrasky Kok.
2013-08-21 21:10:31 -04:00
Antoine Pitrou
1e440cf5a2
Issue #18792 : Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions.
2013-08-22 00:39:46 +02:00
Antoine Pitrou
f6fbf56071
Issue #18792 : Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions.
2013-08-22 00:39:46 +02:00
Victor Stinner
13423c3726
Close #18794 : Add a fileno() method and a closed attribute to select.devpoll
...
objects.
Add also tests on fileno() method and closed attribute of select.epoll and select.kqueue.
2013-08-22 00:19:50 +02:00
Serhiy Storchaka
4e4088d273
Issue #17119 : Fixed integer overflows when processing large strings and tuples
...
in the tkinter module.
2013-08-21 21:43:08 +03:00
Serhiy Storchaka
9e6b97502f
Issue #17119 : Fixed integer overflows when processing large strings and tuples
...
in the tkinter module.
2013-08-21 21:38:21 +03:00
Christian Heimes
6acbe2aaa3
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:34 +02:00
Christian Heimes
f77b4b20e9
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:05 +02:00
Serhiy Storchaka
5617df1be6
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:50:32 +03:00
Serhiy Storchaka
b1973c252c
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:38:21 +03:00
Serhiy Storchaka
edd0de58a8
Issue #13461 : Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.
...
Patch by Yogesh Chaudhari.
2013-08-20 20:07:50 +03:00
Serhiy Storchaka
ec67d187ee
Issue #13461 : Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.
...
Patch by Yogesh Chaudhari.
2013-08-20 20:04:47 +03:00
Raymond Hettinger
c301b55d7b
Issue 18774: Update news and whatsnew for the set optimizations
2013-08-19 09:12:20 -07:00
Christian Heimes
85532eb212
Issue #18777 : The ssl module now uses the new CRYPTO_THREADID API of
...
OpenSSL 1.0.0+ instead of the deprecated CRYPTO id callback function.
2013-08-19 17:36:39 +02:00
Christian Heimes
4d98ca9ff6
Issue #18777 : The ssl module now uses the new CRYPTO_THREADID API of
...
OpenSSL 1.0.0+ instead of the deprecated CRYPTO id callback function.
2013-08-19 17:36:29 +02:00
Christian Heimes
44ed3de6f4
Issue #18774 : Remove last bits of GNU PTH thread code, patch by Vajrasky Kok.
2013-08-18 12:43:24 +02:00
Christian Heimes
17dd53b464
merge
2013-08-18 03:16:16 +02:00
Christian Heimes
5bb2c8668d
add missing #
2013-08-18 03:11:47 +02:00
Christian Heimes
958dbb974f
add missing #
2013-08-18 03:11:11 +02:00
Antoine Pitrou
6f6ec37838
Issue #16105 : When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, report an exception instead of ignoring the error.
2013-08-17 20:27:56 +02:00
Christian Heimes
f920a1c1f1
Issue 18768: Correct doc string of RAND_edg(). Patch by Vajrasky Kok.
2013-08-17 17:25:27 +02:00
Christian Heimes
3c2593b2bb
Issue 18768: Correct doc string of RAND_edg(). Patch by Vajrasky Kok.
2013-08-17 17:25:18 +02:00
Ezio Melotti
a7e7497d88
#18466 : merge with 3.3.
2013-08-17 16:58:13 +03:00
Ezio Melotti
85a8629d21
#18466 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:57:41 +03:00
Christian Heimes
1d8e7dbf1a
Issue #18178 : Fix ctypes on BSD. dlmalloc.c was compiled twice which broke malloc weak symbols.
2013-08-17 15:02:05 +02:00
Christian Heimes
9ff79f7c46
Issue #18178 : Fix ctypes on BSD. dlmalloc.c was compiled twice which broke malloc weak symbols.
2013-08-17 15:01:54 +02:00
Christian Heimes
e06d47c70c
Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:58:00 +02:00
Christian Heimes
a3811e4b8f
merge
2013-08-17 00:55:39 +02:00
Christian Heimes
824f7f366d
Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:54:47 +02:00
Serhiy Storchaka
8fa8ee3970
Issue #18701 : Remove support of old CPython versions (<3.0) from C code.
2013-08-17 00:48:02 +03:00
Antoine Pitrou
95b21460ee
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:49:32 +02:00
Antoine Pitrou
ec34ab5010
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:44:38 +02:00
Antoine Pitrou
566c470e3e
Issue #1666318 : Add a test that shutil.copytree() retains directory permissions.
...
Patch by Catherine Devlin.
2013-08-16 19:36:18 +02:00
Antoine Pitrou
ac601601ce
Issue #1666318 : Add a test that shutil.copytree() retains directory permissions.
...
Patch by Catherine Devlin.
2013-08-16 19:35:02 +02:00
Christian Heimes
177b3f9982
Issue #18673 : Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel
...
3.11 or newer. It's only defined on system with 3.11 uapi headers, too.
2013-08-16 14:35:09 +02:00
Christian Heimes
37d5cebb48
Change the builtin hash algorithms' names to lower case names
...
as promised by hashlib's documentation.
2013-08-15 18:31:48 +02:00
Eric Snow
8e4554027b
Closes issue #18698 : ensure importlib.reload() returns the module out of sys.modules.
2013-08-14 18:11:09 -06:00
Eric Snow
7491f1726b
issue #18698 : ensure importlib.reload() returns the module out of sys.modules.
2013-08-14 18:03:34 -06:00
Victor Stinner
fc8a0a7b82
(Merge 3.3) Issue #18405 : Improve the entropy of crypt.mksalt().
2013-08-14 01:40:46 +02:00
Victor Stinner
7f7b941fdc
Issue #18405 : Improve the entropy of crypt.mksalt().
2013-08-14 01:39:14 +02:00
Victor Stinner
97869103ba
Close #12015 : The tempfile module now uses a suffix of 8 random characters
...
instead of 6, to reduce the risk of filename collision. The entropy was reduced
when uppercase letters were removed from the charset used to generate random
characters.
2013-08-14 01:28:28 +02:00
Antoine Pitrou
9ed5f27266
Issue #18722 : Remove uses of the "register" keyword in C code.
2013-08-13 20:18:52 +02:00
David Wolever
bbf4a46304
Merge issue #17701 : Improving strftime documentation.
2013-08-12 17:15:36 -04:00
David Wolever
569a5faaea
Issue #17701 : Improving strftime documentation.
2013-08-12 16:56:02 -04:00
Antoine Pitrou
389dec8bcf
Issue #18585 : Add :func:`textwrap.shorten` to collapse and truncate a piece of text to a given length.
2013-08-12 22:39:09 +02:00
Larry Hastings
e70f2d588a
Issue #18667 : Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions.
2013-08-12 13:53:20 -04:00
Larry Hastings
00964ed216
Issue #18667 : Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions.
2013-08-12 13:49:30 -04:00
Brett Cannon
e1f159722e
Closes issue #18598 : Have the exception message for
...
importlib.import_module() include the name of the module when the
'package' argument is missing but needed.
2013-08-12 13:29:11 -04:00
Terry Jan Reedy
e1acf347a5
Merge
2013-08-10 18:40:04 -04:00
Terry Jan Reedy
56ecb366d6
Merge heads
2013-08-10 18:33:37 -04:00
Antoine Pitrou
40322e6ad5
Issue #10241 : Clear extension module dict copies at interpreter shutdown.
...
Patch by Neil Schemenauer, minimally modified.
(re-apply after fix for tkinter-related crash)
2013-08-11 00:30:09 +02:00
Terry Jan Reedy
ee8f773c25
Issue #18676 : Merge from 3.3
2013-08-10 18:23:18 -04:00
Antoine Pitrou
584e815114
Fix refcounting issue with extension types in tkinter.
...
(issue #15721 )
2013-08-11 00:22:30 +02:00
Terry Jan Reedy
7608b607b1
Issue #18676 : Change 'positive' to 'non-negative' in queue.py put and get
...
docstrings and ValueError messages. Patch by Zhongyue Luo
2013-08-10 18:17:13 -04:00
Terry Jan Reedy
b723a12c04
Merge with 3.3
2013-08-10 17:46:48 -04:00
Terry Jan Reedy
a594c63d66
Issue #18429 : Add user-oriented News entry about Format / Format Paragraph
...
now working with comment block selections. Patch was part of 18226 patch.
2013-08-10 17:46:24 -04:00
Terry Jan Reedy
9559243fc8
Merge with 3.3
2013-08-10 16:57:02 -04:00
Terry Jan Reedy
7c64aad9fb
Issue #18226 : Add docstrings and unittests for idlelib/FormatParagraph.py.
...
Move comment code to a separate function so it can be separately tested.
Original patches by Todd Rovito and Phil Webster.
2013-08-10 16:56:28 -04:00
Ezio Melotti
fbcf4d78c8
#18681 : merge with 3.3.
2013-08-10 20:01:43 +03:00
Ezio Melotti
056bafe7a6
#18681 : Fix a NameError in imp.reload() (noticed by Weizhao Li).
2013-08-10 19:59:36 +03:00
R David Murray
2bb2f6acd0
Merge #8112 : Update the documenting xmlrpc server to use getfullargspec.
2013-08-10 12:03:54 -04:00
R David Murray
f22b62e261
#8112 : Update the documenting xmlrpc server to use getfullargspec.
...
Before this patch it would raise an error when trying to display
documentation for a method that used annotations.
Patch by Claudiu Popa.
2013-08-10 12:01:47 -04:00
Christian Heimes
c7c953adfe
typo, changeset dd0d751cc7f1 belongs to issue #16499 not issue #16400
2013-08-10 16:38:23 +02:00
Christian Heimes
ad73a9cf97
Issue #16400 : Add command line option for isolated mode.
...
-I
Run Python in isolated mode. This also implies -E and -s. In isolated mode
sys.path contains neither the script’s directory nor the user’s
site-packages directory. All PYTHON* environment variables are ignored,
too. Further restrictions may be imposed to prevent the user from
injecting malicious code.
2013-08-10 16:36:18 +02:00
R David Murray
bb17d2b857
#18600 : add policy to add_string, and as_bytes and __bytes__ methods.
...
This was triggered by wanting to make the doctest in email.policy.rst pass;
as_bytes and __bytes__ are clearly useful now that we have BytesGenerator.
Also updated the Message docs to document the policy keyword that was
added in 3.3.
2013-08-09 16:15:28 -04:00
Vinay Sajip
3f58277382
Closes #18671 : Output more information when logging exceptions occur.
2013-08-08 18:28:53 +01:00
Ezio Melotti
d119b7beba
#18357 : merge with 3.3.
2013-08-08 20:12:57 +03:00
Ezio Melotti
2532635fcd
#18357 : add tests for dictview set difference. Patch by Fraser Tweedale.
2013-08-08 20:12:28 +03:00
Ezio Melotti
5cc06fde43
#18273 : merge with 3.3.
2013-08-08 15:18:26 +03:00
Ezio Melotti
66f2ea042a
#18273 : move the tests in Lib/test/json_tests to Lib/test/test_json and make them discoverable by unittest. Patch by Zachary Ware.
2013-08-08 15:03:45 +03:00
Larry Hastings
a27b83ad2d
Issue #15301 : Parsing fd, uid, and gid parameters for builtins
...
in Modules/posixmodule.c is now far more robust.
2013-08-08 00:19:50 -07:00
Antoine Pitrou
853395b448
Issue #18621 : Prevent the site module's patched builtins from keeping too many references alive for too long.
2013-08-06 22:56:40 +02:00
Ezio Melotti
0e0ccf73ff
#18443 : remove the TextMate entry now that the bundle has been removed and fix ordering. Patch by Févry Thibault.
2013-08-06 19:52:25 +03:00