Yury Selivanov
081bbf6b28
inspect: Fix getsource() to support decorated functions.
...
Issue #1764286 . Patch by Claudiu Popa.
2014-09-26 17:34:54 -04:00
Antoine Pitrou
2c0a916061
Issue #5309 : distutils' build and build_ext commands now accept a ``-j``
...
option to enable parallel building of extension modules.
2014-09-26 23:31:59 +02:00
Yury Selivanov
97e2e06af8
os: Include posix functions in os.__all__. Closes issue #18554 .
...
Patch by Ronald Oussoren.
2014-09-26 12:33:06 -04:00
Berker Peksag
4f6355f861
Issue #17462 : Add a paragraph about advantages of argparse over optparse.
...
Patch by Anastasia Filatova.
2014-09-26 15:35:02 +03:00
Berker Peksag
6c1f0ad665
Issue #17462 : Add a paragraph about advantages of argparse over optparse.
...
Patch by Anastasia Filatova.
2014-09-26 15:34:26 +03:00
Yury Selivanov
1cfd36fdd7
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:09:09 -04:00
Yury Selivanov
592ada9b4b
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:07:56 -04:00
Serhiy Storchaka
e9a086bf01
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:29:27 +03:00
Serhiy Storchaka
5e193ac0bd
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:26:25 +03:00
Berker Peksag
43705d76aa
Issue #21860 : Correct docstrings of FileIO.seek() and FileIO.truncate() methods.
...
Patch by Terry Chia.
2014-09-24 12:44:06 +03:00
Berker Peksag
b87630c273
Issue #21860 : Correct docstrings of FileIO.seek() and FileIO.truncate() methods.
...
Patch by Terry Chia.
2014-09-24 12:43:29 +03:00
Serhiy Storchaka
c563caf3a2
Issue #22362 : Forbidden ambiguous octal escapes out of range 0-0o377 in
...
regular expressions.
2014-09-23 23:22:41 +03:00
Serhiy Storchaka
385ffbffe6
Issue #20912 : Now directories added to ZIP file have correct Unix and MS-DOS
...
directory attributes.
2014-09-23 22:42:02 +03:00
Serhiy Storchaka
46a34924e4
Issue #20912 : Now directories added to ZIP file have correct Unix and MS-DOS
...
directory attributes.
2014-09-23 22:40:23 +03:00
Serhiy Storchaka
07314bcbe7
Issue #21866 : ZipFile.close() no longer writes ZIP64 central directory
...
records if allowZip64 is false.
2014-09-23 21:35:57 +03:00
Serhiy Storchaka
cfbb394488
Issue #21866 : ZipFile.close() no longer writes ZIP64 central directory
...
records if allowZip64 is false.
2014-09-23 21:34:24 +03:00
Benjamin Peterson
21df71ae8e
merge 3.4 ( #22459 )
2014-09-22 22:44:21 -04:00
Benjamin Peterson
eb83ffe1b3
fix error in split() examples ( closes #22459 )
...
Patch by Raúl Cumplido.
2014-09-22 22:43:50 -04:00
Ned Deily
487bd179dc
Fix formatting typo in Misc/NEWS.
2014-09-22 15:36:12 -07:00
Ned Deily
14aa057883
Fix formatting typo in Misc/NEWS.
2014-09-22 15:34:19 -07:00
Larry Hastings
2887f76d45
Merge.
2014-09-22 15:21:08 +01:00
Larry Hastings
f26c2e72d8
Post-release engineering work for 3.4.2rc1.
2014-09-22 15:19:30 +01:00
Senthil Kumaran
a66e3885fb
Issue #22278 : Fix urljoin problem with relative urls, a regression observed
...
after changes to issue22118 were submitted.
Patch contributed by Demian Brecht and reviewed by Antoine Pitrou.
2014-09-22 15:49:16 +08:00
Serhiy Storchaka
782781e96d
Fixed issue #22415 number in Misc/NEWS for changeset fe287268e97b.
2014-09-21 22:59:06 +03:00
Serhiy Storchaka
964fcbaf16
Fixed issue #22415 number in Misc/NEWS for changeset e99a1df8db36.
2014-09-21 22:58:31 +03:00
Serhiy Storchaka
560c578d1d
Issue #22423 : Fixed debugging output of the GROUPREF_EXISTS opcode in the re
...
module.
2014-09-21 22:48:24 +03:00
Serhiy Storchaka
44dae8bde3
Issue #22423 : Fixed debugging output of the GROUPREF_EXISTS opcode in the re
...
module.
2014-09-21 22:47:55 +03:00
Serhiy Storchaka
d7fc141c7d
Merge heads
2014-09-21 22:26:11 +03:00
Serhiy Storchaka
1a5426dbaf
Merge heads
2014-09-21 22:25:25 +03:00
Antoine Pitrou
6e311aa748
Issue #21332 : Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.
2014-09-21 21:15:42 +02:00
Antoine Pitrou
afe8d0646c
Issue #21332 : Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.
2014-09-21 21:10:56 +02:00
Serhiy Storchaka
c904e87c13
Issue #22423 : Unhandled exception in thread no longer causes unhandled
...
AttributeError when sys.stderr is None.
2014-09-21 22:09:20 +03:00
Serhiy Storchaka
52005c2e13
Issue #22423 : Unhandled exception in thread no longer causes unhandled
...
AttributeError when sys.stderr is None.
2014-09-21 22:08:13 +03:00
Larry Hastings
03776e33a9
Bump version number for 3.4.2rc1 release.
2014-09-21 00:09:56 +01:00
Antoine Pitrou
895ce149c1
Issue #22359 : Remove incorrect uses of recursive make. Patch by Jonas Wagner.
2014-09-21 00:21:58 +02:00
R David Murray
7c4093ca95
Merge: #21091 : make is_attachment a method.
2014-09-20 18:16:39 -04:00
R David Murray
8a97896a76
#21091 : make is_attachment a method.
...
Since EmailMessage is a provisional API we can fix API bugs in a
maintenance release, but I used a trick suggested by Serhiy to
maintain backward compatibility with 3.4.0/1.
2014-09-20 18:05:28 -04:00
R David Murray
1de0ac05f3
Merge: #21079 : is_attachment now looks only at the value, ignoring parameters.
2014-09-20 17:49:48 -04:00
R David Murray
97dfad7856
#21079 : is_attachment now looks only at the value, ignoring parameters.
2014-09-20 17:44:53 -04:00
Berker Peksag
bdfeb0387d
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:54:32 +03:00
Berker Peksag
96756b6a27
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:53:05 +03:00
Ned Deily
fc4ead2451
Issue #15661 : Update OS X installer welcome and readme files for 3.4.2.
...
python.org OS X installers are now distributed as signed installer
packages compatible with the Gatekeeper security feature.
2014-09-19 21:03:45 -07:00
Senthil Kumaran
8b7e161ac3
backport context argument of urlopen ( #22366 ) for pep 476
2014-09-19 15:23:30 +08:00
Senthil Kumaran
a5c85b3f5f
Issue #22366 : urllib.request.urlopen will accept a context object (SSLContext)
...
as an argument which will then used be for HTTPS connection.
Patch by Alex Gaynor.
2014-09-19 15:23:30 +08:00
Berker Peksag
3715da5c97
Issue #21391 : Use os.path.abspath in the shutil module.
2014-09-18 05:11:15 +03:00
Antoine Pitrou
e7811fca5e
Closes #11471 : avoid generating a JUMP_FORWARD instruction at the end of an if-block if there is no else-clause.
...
Original patch by Eugene Toder.
2014-09-18 03:06:50 +02:00
Antoine Pitrou
87538e7bc4
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:42:05 +02:00
Antoine Pitrou
cb0a006fd1
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:40:46 +02:00
Senthil Kumaran
dc41440401
Merge from 3.4
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:32:46 +08:00
Senthil Kumaran
86c9e1877c
Merge from 3.3
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:31:47 +08:00
Senthil Kumaran
e025b52db0
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:29:29 +08:00
Antoine Pitrou
0d54887326
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:27:26 +02:00
Antoine Pitrou
637e4544af
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:25:57 +02:00
Antoine Pitrou
7d0b8f95e7
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:23:55 +02:00
Kushal Das
a37b958d65
Closes #21270 : We now override tuple methods in mock.call objects.
2014-09-16 18:33:37 +05:30
Nick Coghlan
a0f33759fa
Merge fix for issue #22166 from 3.4
2014-09-15 23:55:16 +12:00
Nick Coghlan
8fad1676a2
Issue #22166 : clear codec caches in test_codecs
2014-09-15 23:50:44 +12:00
Vinay Sajip
02a8f9e9ac
Closes #20537 : logging methods now accept an exception instance as well as a Boolean value or exception tuple. Thanks to Yury Selivanov for the patch.
2014-09-14 21:29:11 +01:00
Serhiy Storchaka
4ff91eb5e3
Issue #22384 : An exception in Tkinter callback no longer crashes the program
...
when it is run with pythonw.exe.
Documented that Tk.report_callback_exception() is purposed to be overriden in
applications.
2014-09-14 21:18:31 +03:00
Serhiy Storchaka
9502487781
Issue #22384 : An exception in Tkinter callback no longer crashes the program
...
when it is run with pythonw.exe.
Documented that Tk.report_callback_exception() is purposed to be overriden in
applications.
2014-09-14 21:17:32 +03:00
Ned Deily
2ebdb2c911
Issue #22168 : Prevent turtle AttributeError with non-default Canvas on OS X.
2014-09-13 23:40:27 -07:00
Ned Deily
152dfd1dac
Issue #22168 : Prevent turtle AttributeError with non-default Canvas on OS X.
2014-09-13 23:39:16 -07:00
Yury Selivanov
08d4a4f488
inspect.Signature: Fix discrepancy between __eq__ and __hash__.
...
Issue #20334 . Thanks to Antony Lee for bug report & initial patch.
2014-09-12 15:48:02 -04:00
Serhiy Storchaka
2c16df269a
Issue #21147 : sqlite3 now raises an exception if the request contains a null
...
character instead of truncate it. Based on patch by Victor Stinner.
2014-09-11 13:30:48 +03:00
Serhiy Storchaka
42d67af87f
Issue #21147 : sqlite3 now raises an exception if the request contains a null
...
character instead of truncate it. Based on patch by Victor Stinner.
2014-09-11 13:29:05 +03:00
Serhiy Storchaka
c2edcdd194
Issue #13968 : The glob module now supports recursive search in
...
subdirectories using the "**" pattern.
2014-09-11 12:17:37 +03:00
Serhiy Storchaka
d5fd6188e2
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
...
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
2014-09-11 10:58:02 +03:00
Serhiy Storchaka
abf68ce164
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
...
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
2014-09-11 10:57:13 +03:00
Serhiy Storchaka
979f80b8da
Issue #21951 : Use attemptckalloc() instead of ckalloc() in Tkinter.
...
ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL
if the memory allocation fails.
2014-09-11 10:40:44 +03:00
Serhiy Storchaka
0794088379
Issue #21951 : Use attemptckalloc() instead of ckalloc() in Tkinter.
...
ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL
if the memory allocation fails.
2014-09-11 10:38:54 +03:00
Victor Stinner
8ebf910612
(Merge 3.4) Issue #22338 : Fix a crash in the json module on memory allocation
...
failure.
2014-09-10 23:32:36 +02:00
Victor Stinner
31a3ec313d
Issue #22338 : Fix a crash in the json module on memory allocation failure.
2014-09-10 23:31:42 +02:00
Serhiy Storchaka
dd6507eb86
Issue #22369 : Change "context manager protocol" to "context management protocol".
2014-09-10 23:45:42 +03:00
Serhiy Storchaka
148679982f
Issue #22369 : Change "context manager protocol" to "context management protocol".
2014-09-10 23:43:41 +03:00
Serhiy Storchaka
38684c3663
imaplib.IMAP4 now supports the context manager protocol.
...
Original patch by Tarek Ziadé.
2014-09-09 19:07:49 +03:00
Barry Warsaw
d78742a260
- Issue #16662 : load_tests() is now unconditionally run when it is present in
...
a package's __init__.py. TestLoader.loadTestsFromModule() still accepts
use_load_tests, but it is deprecated and ignored. A new keyword-only
attribute `pattern` is added and documented. Patch given by Robert Collins,
tweaked by Barry Warsaw.
2014-09-08 14:21:37 -04:00
Serhiy Storchaka
87a2803eb4
Issue #22226 : Added private function _splitdict() in the Tkinter module.
...
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:49:07 +03:00
Serhiy Storchaka
8f0a1d0f28
Issue #22226 : Added private function _splitdict() in the Tkinter module.
...
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:47:58 +03:00
Serhiy Storchaka
91453026ff
Issue #19524 : Fixed resource leak in the HTTP connection when an invalid
...
response is received. Patch by Martin Panter.
2014-09-06 21:43:49 +03:00
Serhiy Storchaka
f54c350160
Issue #19524 : Fixed resource leak in the HTTP connection when an invalid
...
response is received. Patch by Martin Panter.
2014-09-06 21:41:39 +03:00
Serhiy Storchaka
d8a1447c99
Issue #22215 : Now ValueError is raised instead of TypeError when str or bytes
...
argument contains not permitted null character or byte.
2014-09-06 20:07:17 +03:00
Antoine Pitrou
47e40429fb
Issue #20421 : Add a .version() method to SSL sockets exposing the actual protocol version in use.
2014-09-04 21:00:10 +02:00
Łukasz Langa
53c87d1be2
Merge fix for #19546 : configparser exceptions leak implementation details
2014-09-04 01:42:29 -07:00
Łukasz Langa
949053bff2
Fix #19546 : onfigparser exceptions expose implementation details. Patch by Claudiu Popa.
2014-09-04 01:36:33 -07:00
Victor Stinner
654c037b65
Issue #22258 : Fix typo in Misc/NEWS
2014-09-04 09:29:39 +02:00
Terry Jan Reedy
f29468118b
NEWS items for Idle.
2014-09-03 19:54:06 -04:00
Terry Jan Reedy
be74668dd5
NEWS items for Idle.
2014-09-03 19:52:46 -04:00
Terry Jan Reedy
e1562b56f5
merge with 3.4
2014-09-03 19:43:12 -04:00
Terry Jan Reedy
67fe046878
NEWS items for turtledemo.
2014-09-03 19:39:25 -04:00
Victor Stinner
ae58649721
Issue #22043 : time.monotonic() is now always available
...
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
2014-09-02 23:18:25 +02:00
Victor Stinner
282124b8c4
Closes #22258 : Fix the the internal function set_inheritable() on Illumos.
...
This platform exposes the function ioctl(FIOCLEX), but calling it fails with
errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls
back to the slower fcntl() (F_GETFD and then F_SETFD).
2014-09-02 11:41:04 +02:00
Guido van Rossum
cfd4661e78
Closes #21527 : Add default number of workers to ThreadPoolExecutor. (Claudiu Popa.)
2014-09-02 10:39:18 -07:00
Victor Stinner
8257b6283e
(Merge 3.4) Closes #22258 : Fix the the internal function set_inheritable() on
...
Illumos. This platform exposes the function ioctl(FIOCLEX), but calling it
fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable()
now falls back to the slower fcntl() (F_GETFD and then F_SETFD).
2014-09-02 11:49:48 +02:00
R David Murray
b10be15508
Merge #22215 : have the smtplib 'quit' command reset the state.
2014-08-30 16:55:45 -04:00
R David Murray
0cff49fcf9
#22215 : have the smtplib 'quit' command reset the state.
...
Without this reset, starttls would fail if a connect/starttls was done after a
quit, because smtplib assumed the existing value of emspt_features was
accurate, but it gets reset when starttls completes (and the new value does
not contain the starttls capability, since tls is already started at that
point). (There may be additional places where this lack of reset was an
issue as well.)
Patch by Milan Oberkirch.
2014-08-30 16:51:59 -04:00
Antoine Pitrou
5ce8f35931
Issue #22098 : ctypes' BigEndianStructure and LittleEndianStructure now define an empty __slots__ so that subclasses don't always get an instance dict.
...
Patch by Claudiu Popa.
2014-08-30 00:37:18 +02:00
Antoine Pitrou
fa9211b11d
Issue #22185 : Fix an occasional RuntimeError in threading.Condition.wait() caused by mutation of the waiters queue without holding the lock.
...
Patch by Doug Zongker.
2014-08-29 23:27:33 +02:00
Antoine Pitrou
a64b92edd3
Issue #22185 : Fix an occasional RuntimeError in threading.Condition.wait() caused by mutation of the waiters queue without holding the lock.
...
Patch by Doug Zongker.
2014-08-29 23:26:36 +02:00
Victor Stinner
7efb83393c
Issue #22287 : On UNIX, _PyTime_gettimeofday() now uses
...
clock_gettime(CLOCK_REALTIME) if available. As a side effect, Python now
depends on the librt library on Solaris and on Linux (only with glibc older
than 2.17).
2014-08-29 15:41:08 +02:00
Berker Peksag
0dc10e0d1c
Issue #22182 : Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
...
Patch by Claudiu Popa.
2014-08-29 07:09:25 +03:00
Berker Peksag
6685883c02
Issue #22182 : Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
...
Patch by Claudiu Popa.
2014-08-29 07:07:35 +03:00
Gregory P. Smith
a232613679
The webbrowser module now uses subprocess's start_new_session=True rather
...
than a potentially risky preexec_fn=os.setsid call.
2014-08-27 09:41:05 -07:00
Gregory P. Smith
feac3980ce
The webbrowser module now uses subprocess's start_new_session=True rather
...
than a potentially risky preexec_fn=os.setsid call.
2014-08-27 09:34:38 -07:00
Victor Stinner
3822760f2d
Issue #22042 : signal.set_wakeup_fd(fd) now raises an exception if the file
...
descriptor is in blocking mode.
2014-08-27 12:59:44 +02:00
Antoine Pitrou
cdcafb78b2
Issue #16808 : inspect.stack() now returns a named tuple instead of a tuple.
...
Patch by Daniel Shahaf.
2014-08-24 10:50:28 -04:00
Serhiy Storchaka
66106626ed
Issue #22236 : Tkinter tests now don't reuse default root window. New root
...
window is created for every test class.
Fixed Tkinter images copying operations in NoDefaultRoot mode.
Tcl command names generated for "after" callbacks now contains a name of
original function.
2014-08-24 09:10:58 +03:00
Serhiy Storchaka
d00aff2f62
Issue #22236 : Tkinter tests now don't reuse default root window. New root
...
window is created for every test class.
Fixed Tkinter images copying operations in NoDefaultRoot mode.
Tcl command names generated for "after" callbacks now contains a name of
original function.
2014-08-24 09:07:47 +03:00
Antoine Pitrou
ef3b9ed0ac
Issue #2527 : Add a *globals* argument to timeit functions, in order to override the globals namespace in which the timed code is executed.
...
Patch by Ben Roberts.
2014-08-22 23:13:50 -04:00
Ned Deily
682c04c70c
Issue #21166 : merge from 3.4
2014-08-22 13:36:30 -07:00
Ned Deily
fcbc246e9f
Issue #21166 : Prevent possible segfaults and other random failures of
...
python --generate-posix-vars in pybuilddir.txt build target by ensuring
that pybuilddir.txt is always regenerated when configure is run and
that the newly built skeleton python does not inadvertently import
modules from previously installed instances.
2014-08-22 13:32:49 -07:00
Brett Cannon
145759c892
Merge for issue #22191 fix
2014-08-22 10:46:07 -04:00
Brett Cannon
14ad5319d9
Issue #22191 : Fix warnings.__all__.
...
Thanks to Jon Poler for the patch.
2014-08-22 10:44:47 -04:00
Antoine Pitrou
55ac5b3f7b
Issue #22118 : Switch urllib.parse to use RFC 3986 semantics for the resolution of relative URLs, rather than RFCs 1808 and 2396.
...
Patch by Demian Brecht.
2014-08-21 19:16:17 -04:00
Serhiy Storchaka
a7eb746278
Issue #21549 : Added the "members" parameter to TarFile.list().
2014-08-21 10:01:16 +03:00
Benjamin Peterson
48ad7c0b01
use __qualname__ to compute bound method repr ( closes #21389 )
...
Patch from Steven Barker.
2014-08-20 18:41:57 -05:00
Senthil Kumaran
2b7ccbda90
merge from 3.4
...
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-20 07:55:53 +05:30
Senthil Kumaran
783737625d
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-20 07:53:58 +05:30
Benjamin Peterson
344ff4ab2b
allow recursion depth to be specified ( closes #19628 )
...
Patch from Claudiu Popa.
2014-08-19 16:13:26 -05:00
Serhiy Storchaka
ef1a79799f
Issue #15696 : Add a __sizeof__ implementation for mmap objects on Windows.
2014-08-19 17:12:46 +03:00
Serhiy Storchaka
76b47655ff
Issue #15696 : Add a __sizeof__ implementation for mmap objects on Windows.
2014-08-19 17:11:20 +03:00
Victor Stinner
daca3d7e9b
Issue #22206 : Using pthread, PyThread_create_key() now sets errno to ENOMEM and
...
returns -1 (error) on integer overflow.
2014-08-17 22:11:06 +02:00
Serhiy Storchaka
0879001f00
Issue #22068 : Avoided reference loops with Variables and Fonts in Tkinter.
2014-08-17 15:32:42 +03:00
Serhiy Storchaka
87bbf257ef
Issue #22068 : Avoided reference loops with Variables and Fonts in Tkinter.
2014-08-17 15:31:59 +03:00
Serhiy Storchaka
95d5c9d5ff
Issue #22201 : Command-line interface of the zipfile module now correctly
...
extracts ZIP files with directory entries. Patch by Ryan Wilson.
2014-08-17 15:17:56 +03:00
Serhiy Storchaka
97f17ff840
Issue #22201 : Command-line interface of the zipfile module now correctly
...
extracts ZIP files with directory entries. Patch by Ryan Wilson.
2014-08-17 15:14:48 +03:00
Serhiy Storchaka
41a08e557a
Issue #22165 : SimpleHTTPRequestHandler now supports undecodable file names.
2014-08-17 08:24:49 +03:00
Serhiy Storchaka
cb5bc408ad
Issue #22165 : SimpleHTTPRequestHandler now supports undecodable file names.
2014-08-17 08:22:11 +03:00
Nick Coghlan
f9e227e5a9
Issue #20184 : Add signature introspection for 30 of the builtins
...
Also adds a test to test_inspect to track progress on builtin
introspection support, to ensure it doesn't regress in the future.
2014-08-17 14:01:19 +10:00
Senthil Kumaran
e2953e5146
merge 3.4; backout changeset 3435c5865cfc due to buildbot failures. Ref #8797
2014-08-16 22:54:24 +05:30
Senthil Kumaran
402df0975c
backout changeset 3435c5865cfc due to buildbot failures. Ref #8797
2014-08-16 22:52:37 +05:30
Senthil Kumaran
39e6c07beb
merge from 3.4
...
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-16 14:19:09 +05:30
Senthil Kumaran
b2e3a939bf
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-16 14:17:38 +05:30
Serhiy Storchaka
d7728cafc5
Issue #15381 : Optimized line reading in io.BytesIO.
2014-08-14 22:26:38 +03:00
Berker Peksag
3714ab4c27
Issue #21445 : Pass exception messages correctly to assertTrue in
...
the FileCompareTestCase.test_matching test.
Patch by Steven Barker.
2014-08-14 08:35:15 +03:00
Berker Peksag
143fe05da1
Issue #21445 : Pass exception messages correctly to assertTrue in
...
the FileCompareTestCase.test_matching test.
Patch by Steven Barker.
2014-08-14 08:34:32 +03:00
Serhiy Storchaka
1bed4a9f5f
Issue #20729 : Restored the use of lazy iterkeys()/itervalues()/iteritems()
...
in the mailbox module. This is partial rollback of changeset f340cb045bf9.
2014-08-13 09:36:06 +03:00
Serhiy Storchaka
cd3aacf525
Issue #20729 : Restored the use of lazy iterkeys()/itervalues()/iteritems()
...
in the mailbox module. This is partial rollback of changeset f340cb045bf9.
2014-08-13 09:35:21 +03:00
Raymond Hettinger
92c7b90148
merge
2014-08-12 12:45:28 -07:00
Raymond Hettinger
4d58897fdb
Issue 22184: Early detection and reporting of missing lru_cache parameters
2014-08-12 12:44:52 -07:00
Serhiy Storchaka
1e133cab39
Issue #21448 : Fixed FeedParser feed() to avoid O(N**2) behavior when parsing long line.
...
Original patch by Raymond Hettinger.
2014-08-12 14:00:29 +03:00
Serhiy Storchaka
320a1c0ff7
Issue #21448 : Fixed FeedParser feed() to avoid O(N**2) behavior when parsing long line.
...
Original patch by Raymond Hettinger.
2014-08-12 13:59:11 +03:00
Serhiy Storchaka
2a140fb58b
Issue #17923 : glob() patterns ending with a slash no longer match non-dirs on
...
AIX. Based on patch by Delhallt.
2014-08-12 12:56:25 +03:00
Serhiy Storchaka
6f20170762
Issue #17923 : glob() patterns ending with a slash no longer match non-dirs on
...
AIX. Based on patch by Delhallt.
2014-08-12 12:55:12 +03:00
Antoine Pitrou
bd7ff30ff9
Issue #20746 : Fix test_pdb to run in refleak mode (-R). Patch by Xavier de Gaye.
2014-08-11 21:41:46 -04:00
Antoine Pitrou
c04d468333
Issue #20746 : Fix test_pdb to run in refleak mode (-R). Patch by Xavier de Gaye.
2014-08-11 21:40:38 -04:00
Raymond Hettinger
ac191ce1d3
Issue #22174 : Clean-up grammar and ambiguities in property() docs.
2014-08-10 10:41:25 -07:00
Benjamin Peterson
acb8c52343
add -Werror=declaration-after-statement only to stdlib extension modules ( closes #21121 )
...
Patch from Stefan Krah.
2014-08-09 20:01:49 -07:00
R David Murray
2539e6744b
#21725 : Add RFC 6531 (SMTPUTF8) support to smtpd.
...
Patch by Milan Oberkirch, developed as part of his 2014 GSOC project.
Note that this also fixes a bug in mock_socket ('getpeername' was returning a
simple string instead of the tuple required for IPvX protocols), a bug in
DebugServer with respect to handling binary data (should have been fixed when
decode_data was introduced, but wasn't found until this patch was written),
and a long-standing bug in DebugServer (it was printing an extra blank line at
the end of the displayed message text).
2014-08-09 16:40:49 -04:00
Raymond Hettinger
ed16b2e5ab
merge
2014-08-10 10:41:52 -07:00
Benjamin Peterson
b30802b7a8
merge 3.4 ( #21121 )
2014-08-09 20:04:19 -07:00
doko@ubuntu.com
9e15d7a3cc
- Issue #22176 : Update the ctypes module's libffi to v3.1. This release
...
adds support for the Linux AArch64 and POWERPC ELF ABIv2 little endian
architectures.
2014-08-09 22:43:02 +02:00
doko@ubuntu.com
736a913321
- Issue #22176 : Update the ctypes module's libffi to v3.1. This release
...
adds support for the Linux AArch64 and POWERPC ELF ABIv2 little endian
architectures.
2014-08-09 22:36:35 +02:00
Nick Coghlan
a887d23a86
Merge #21777 from 3.4
2014-08-09 16:19:41 +10:00
Nick Coghlan
e4936b830c
Issue #21777 : separate docs for binary sequence methods
2014-08-09 16:14:04 +10:00
Zachary Ware
d630e0070f
Closes #22060 : Merge with 3.4
2014-08-08 13:35:11 -05:00
Zachary Ware
5a794c16d9
Issue #22060 : Clean up/simplify test_ctypes, use test discovery
2014-08-08 13:32:16 -05:00
Zachary Ware
b40cf1f804
Issue #22160 : Update OpenSSL to 1.0.1i for the Windows build.
2014-08-06 23:21:03 -05:00
Zachary Ware
22f2d2efb7
Issue #22160 : Update OpenSSL to 1.0.1i for the Windows build.
2014-08-06 23:19:29 -05:00
Antoine Pitrou
b349e4c929
Issue #22116 : C functions and methods (of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by Wei Wu.
2014-08-06 19:31:40 -04:00
Serhiy Storchaka
1121377cdb
Issue #5411 : Added support for the "xztar" format in the shutil module.
2014-08-06 18:50:19 +03:00
Serhiy Storchaka
af78ef1824
Issue #21975 : Fixed crash when using uninitialized sqlite3.Row (in particular
...
when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in the
__new__() method.
2014-08-06 17:51:58 +03:00
Serhiy Storchaka
3d4b2d4df2
Issue #21975 : Fixed crash when using uninitialized sqlite3.Row (in particular
...
when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in the
__new__() method.
2014-08-06 17:50:39 +03:00
Serhiy Storchaka
e18f14e850
Move misplaced Misc/NEWS entries to correct locations.
...
Eliminate deprecated the "Extension Modules" section.
2014-08-06 17:45:35 +03:00
Barry Warsaw
7c549c4e64
- Issue #21539 : Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
...
`mkdir -p` and `os.makedirs()` functionality. When true, ignore
FileExistsErrors. Patch by Berker Peksag.
(With minor cleanups, additional tests, doc tweaks, etc. by Barry)
Also:
* Remove some unused imports in test_pathlib.py reported by pyflakes.
2014-08-05 11:28:12 -04:00
Martin v. Löwis
18874a9e13
Issue #22127 : Bypass IDNA for pure-ASCII host names (in particular for numeric IPs).
2014-08-05 16:11:06 +02:00
Martin v. Löwis
eb1c28a849
Issue #22127 : Bypass IDNA for pure-ASCII host names (in particular for numeric IPs).
2014-08-05 16:10:38 +02:00
Larry Hastings
a73cb8a6b8
Issue #22120 : For functions using an unsigned integer return converter,
...
Argument Clinic now generates a cast to that type for the comparison
to -1 in the generated code. (This supresses a compilation warning.)
2014-08-05 19:55:21 +10:00
Larry Hastings
2f93635d34
Issue #20170 : Convert posixmodule to use Argument Clinic.
2014-08-05 14:04:04 +10:00
Ezio Melotti
48b8e4afd1
#18034 : merge with 3.4.
2014-08-04 19:34:57 +03:00
Ezio Melotti
e4aad5ab32
#18034 : update FAQ to suggest importlib.import_module instead of __import__. Patch by Wouter van Heyst.
2014-08-04 19:34:29 +03:00
Zachary Ware
17c336284d
Closes #22104 : Merge with 3.4
2014-08-04 11:18:23 -05:00
Zachary Ware
69fb6a41c5
Issue #22104 : Don't hold a reference to the loaded TestSuite in runtest_inner
2014-08-04 11:15:10 -05:00
Ezio Melotti
c734c387de
#20977 : merge with 3.4.
2014-08-04 17:17:21 +03:00
Ezio Melotti
d577480197
#20977 : fix undefined name in the email module. Patch by Rose Ames.
2014-08-04 17:16:49 +03:00
Ezio Melotti
6fc16d81af
#21047 : set the default value for the *convert_charrefs* argument of HTMLParser to True. Patch by Berker Peksag.
2014-08-02 18:36:12 +03:00
Ezio Melotti
11bec7a1b8
Add an __all__ to html.entities.
2014-08-02 15:15:02 +03:00
Ezio Melotti
73a4359eb0
#15114 : the strict mode and argument of HTMLParser, HTMLParser.error, and the HTMLParserError exception have been removed.
2014-08-02 14:10:30 +03:00
Terry Jan Reedy
ffff1440d1
Issue #22077 : Improve index error messages for bytearrays, bytes, lists, and
...
tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
Original patch by Claudiu Popa.
2014-08-02 01:30:37 -04:00
Victor Stinner
f6a271ae98
Issue #18395 : Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename
...
``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these
functions.
2014-08-01 12:28:48 +02:00
Zachary Ware
cb09dcacab
Issue #21907 : Further improvments to build_pgo.bat. Patch by Ingolf Becker.
2014-07-31 23:48:45 -05:00
Antoine Pitrou
cac9e719cc
Issue #22111 : Assorted cleanups in test_imaplib. Patch by Milan Oberkirch.
2014-07-31 18:35:45 -04:00
Serhiy Storchaka
6716d60cec
Issue #22085 : Dropped support of Tk 8.3 in Tkinter.
2014-07-30 19:19:21 +03:00
Serhiy Storchaka
f44611cadf
Issue #21580 : Now Tkinter correctly handles bytes arguments passed to Tk.
...
In particular this allows to initialize images from binary data.
2014-07-30 18:34:01 +03:00
Serhiy Storchaka
74596a887a
Issue #21580 : Now Tkinter correctly handles bytes arguments passed to Tk.
...
In particular this allows to initialize images from binary data.
2014-07-30 18:33:13 +03:00
Antoine Pitrou
cc66a73d27
Issue #22003 : When initialized from a bytes object, io.BytesIO() now
...
defers making a copy until it is mutated, improving performance and
memory use on some use cases.
Patch by David Wilson.
2014-07-29 19:41:11 -04:00
Victor Stinner
115171086a
Issue #22018 : On Windows, signal.set_wakeup_fd() now also supports sockets.
...
A side effect is that Python depends to the WinSock library.
2014-07-29 23:31:34 +02:00
Ned Deily
acc6e7596f
Edit NEWS entry
2014-07-29 13:51:45 -07:00
Ned Deily
3d4953a14b
Edit NEWS entry
2014-07-29 13:49:11 -07:00
Victor Stinner
1db9e7bb19
Issue #22054 : Add os.get_blocking() and os.set_blocking() functions to get and
...
set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is
set, True otherwise). These functions are not available on Windows.
2014-07-29 22:32:47 +02:00
Ezio Melotti
6aa4269ed2
#21704 : merge with 3.4.
2014-07-29 17:36:20 +03:00
Ezio Melotti
8a0fb2c5ca
#21704 : remove duplicate name in Misc/ACKS.
2014-07-29 17:35:46 +03:00
Terry Jan Reedy
205c226089
Merge with 3.4
2014-07-28 22:40:12 -04:00
Terry Jan Reedy
7eca7343a0
Issue #17172 : add NEWS
2014-07-28 22:38:19 -04:00
Richard Oudkerk
c3fc341c35
Issue #21704 : Merge.
2014-07-28 23:13:58 +01:00
Richard Oudkerk
e0e65817e5
Issue #21704 : Fix build error for _multiprocessing when semaphores
...
are not available. Patch by Arfrever Frehtes Taifersar Arahesis.
2014-07-28 23:01:02 +01:00
Martin v. Löwis
7252a6e81e
Issue #20179 : Apply Argument Clinic to bytes and bytearray.
...
Patch by Tal Einat.
2014-07-27 16:25:09 +02:00
Martin v. Löwis
501b13c622
Issue #20173 : Convert sha1, sha256, sha512 and md5 to ArgumentClinic.
...
Patch by Vajrasky Kok.
2014-07-27 14:20:23 +02:00
Martin v. Löwis
996b671446
Issue #22082 : Clear interned strings in slotdefs.
2014-07-26 16:44:07 +02:00
Victor Stinner
011428e168
(Merge 3.4) Fix repr(_socket.socket) on Windows 64-bit: don't fail with
...
OverflowError on closed socket. repr(socket.socket) already works fine.
2014-07-26 14:37:57 +02:00
Victor Stinner
e254e53c83
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
...
on closed socket. repr(socket.socket) already works fine.
2014-07-26 14:36:55 +02:00
Raymond Hettinger
a22d8231a3
merge
2014-07-25 15:00:30 -07:00
Raymond Hettinger
5a2146a2fd
Issue #22044 : Fixed premature DECREF in call_tzinfo_method.
2014-07-25 14:59:48 -07:00
Serhiy Storchaka
465e60e654
Issue #22033 : Reprs of most Python implemened classes now contain actual
...
class name instead of hardcoded one.
2014-07-25 23:36:00 +03:00
Zachary Ware
54701f303f
Issue #21958 : Merge with 3.4
2014-07-25 14:47:29 -05:00
Zachary Ware
64ba60aa57
Issue #21958 : Define HAVE_ROUND when building with VS 2013 and above.
...
Patch by Zachary Turner.
2014-07-25 14:34:19 -05:00
Nick Coghlan
efd5df9e52
Issue #21947 : handle generator-iterator objects in dis
...
Patch by Clement Rouault.
2014-07-25 23:02:56 +10:00
Nick Coghlan
0861ccbff4
Add missing NEWS entry for issue #18093
2014-07-25 21:55:07 +10:00
Victor Stinner
316b16de13
(Merge 3.4) Issue #16133 : The asynchat.async_chat.handle_read() method now
...
ignores BlockingIOError exceptions. Initial patch written by Xavier de Gaye.
Document also in asyncore documentation that recv() may raise BlockingIOError.
2014-07-24 19:00:28 +02:00
Victor Stinner
45cff66cf6
Issue #16133 : The asynchat.async_chat.handle_read() method now ignores
...
BlockingIOError exceptions. Initial patch written by Xavier de Gaye.
Document also in asyncore documentation that recv() may raise BlockingIOError.
2014-07-24 18:49:36 +02:00
Victor Stinner
24ad98b98c
(Merge 3.4) Issue #19884 : readline: Disable the meta modifier key if stdout is
...
not a terminal to not write the ANSI sequence "\033[1034h" into stdout. This
sequence is used on some terminal (ex: TERM=xterm-256color") to enable support
of 8 bit characters.
2014-07-24 12:24:45 +02:00
Victor Stinner
a3c80ce8b7
Issue #19884 : readline: Disable the meta modifier key if stdout is not a
...
terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
2014-07-24 12:23:56 +02:00
Serhiy Storchaka
e6d9805ec4
Issue #4350 : Removed a number of out-of-dated and non-working for a long time
...
Tkinter methods.
2014-07-23 22:33:50 +03:00
Serhiy Storchaka
4d9e903f7e
Merge heads
2014-07-23 22:13:09 +03:00
Terry Jan Reedy
22084fc8ba
Merge with 3.4
2014-07-23 15:01:29 -04:00
Terry Jan Reedy
b03f0422c5
Issue #21597 : Turtledemo text pane can now be widened to view or copy complete
...
lines or narrowed for small screens.
Issie #19132 : Turtledemo buttons no longer disappear when window is shrun.
Patch mostly by Lita Cho (21597) using idea from patch by Jan Kanis (18132).
2014-07-23 15:01:12 -04:00
Serhiy Storchaka
320f339131
Issue #6167 : Scrollbar.activate() now returns the name of active element if
...
the argument is not specified. Scrollbar.set() now always accepts only 2
arguments. Added tests for Scrollbar.activate() and Scrollbar.set().
2014-07-23 22:00:44 +03:00
Serhiy Storchaka
8518b79a8d
Issue #15275 : Clean up and speed up the ntpath module.
2014-07-23 20:43:13 +03:00
Zachary Ware
f886697659
Closes #22002 : Merge with 3.4
2014-07-23 12:06:47 -05:00
Zachary Ware
f012ba42fe
Issue #22002 : Make full use of test discovery in test sub-packages.
...
Adds `load_package_tests` function to test.support, uses it in test_asyncio,
test_email, test_json, test_tools, test_importlib and all test_importlib
sub-packages to implement test discovery.
2014-07-23 12:00:29 -05:00
Serhiy Storchaka
37f50e0c6b
Issue #21888 : plistlib's load() and loads() now work if the fmt parameter is
...
specified.
2014-07-23 18:50:19 +03:00
Serhiy Storchaka
8966759b03
Issue #21888 : plistlib's load() and loads() now work if the fmt parameter is
...
specified.
2014-07-23 18:49:31 +03:00
Serhiy Storchaka
f1062762f2
Correct issue #21044 patch author.
2014-07-23 18:42:09 +03:00
Serhiy Storchaka
64a1207280
Correct issue #21044 patch author.
2014-07-23 18:41:21 +03:00
Serhiy Storchaka
521e5860a5
Issue #22032 : __qualname__ instead of __name__ is now always used to format
...
fully qualified class names of Python implemented classes.
2014-07-22 15:00:37 +03:00
Serhiy Storchaka
0c937b3ed6
Issue #22031 : Reprs now always use hexadecimal format with the "0x" prefix
...
when contain an id in form " at 0x...".
2014-07-22 12:14:52 +03:00
Serhiy Storchaka
23ea9c8c91
Issue #15759 : "make suspicious", "make linkcheck" and "make doctest" in Doc/
...
now display special message when and only when there are failures.
2014-07-22 10:28:21 +03:00
Serhiy Storchaka
17f5f817de
Issue #15759 : "make suspicious", "make linkcheck" and "make doctest" in Doc/
...
now display special message when and only when there are failures.
2014-07-22 10:24:25 +03:00
Antoine Pitrou
26408df88f
Issue #21976 : Fix test_ssl to accept LibreSSL version strings.
...
Thanks to William Orr.
2014-07-21 18:37:36 -04:00
Antoine Pitrou
dfab935c74
Issue #21976 : Fix test_ssl to accept LibreSSL version strings.
...
Thanks to William Orr.
2014-07-21 18:35:01 -04:00
Victor Stinner
0bffc94d57
Issue #22018 : signal.set_wakeup_fd() now raises an OSError instead of a
...
ValueError on fstat() failure.
2014-07-21 16:28:54 +02:00
Raymond Hettinger
854e76effa
Issue #21868 : Prevent turtle crash due to invalid undo buffer size.
2014-07-20 21:30:32 -07:00
Benjamin Peterson
7e9522fadf
merge 3.4
2014-07-20 13:06:19 -07:00
Benjamin Peterson
01963e6ae9
add #
2014-07-20 13:05:01 -07:00
Serhiy Storchaka
a98faefd68
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
...
attribute. Based on patch by Martin Panter.
2014-07-17 00:00:26 +03:00
Serhiy Storchaka
2c6a3aedeb
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
...
attribute. Based on patch by Martin Panter.
2014-07-16 23:58:58 +03:00
Zachary Ware
3481e21e98
Issue #21918 : Convert test_tools.py to a sub-package of test.
...
Merge with 3.4.
2014-07-16 14:31:51 -05:00
Zachary Ware
2b0a610297
Issue #21918 : Convert test_tools.py to a sub-package of test.
2014-07-16 14:26:09 -05:00
Tal Einat
985e8d8fb3
Fixed recently added Misc/NEWS entry which was moved during merge
2014-07-16 16:52:20 +03:00
Tal Einat
2e4394ee0d
Issue #21765 : Add support for non-ascii identifiers to HyperParser
2014-07-16 16:41:14 +03:00
Tal Einat
9b7f9e6c5a
Issue #21765 : Add support for non-ascii identifiers to HyperParser
2014-07-16 16:33:36 +03:00
Serhiy Storchaka
992334127e
Issue #18974 : Tools/scripts/diff.py now uses argparse instead of optparse.
2014-07-15 13:23:58 +03:00
Ned Deily
55966193f2
Issue #21323 : Fix http.server to again handle scripts in CGI subdirectories,
...
broken by the fix for security issue #19435 . Patch by Zach Byrne.
2014-07-12 22:20:15 -07:00
Ned Deily
5d0d2e6ed6
Issue #21323 : Fix http.server to again handle scripts in CGI subdirectories,
...
broken by the fix for security issue #19435 . Patch by Zach Byrne.
2014-07-12 22:16:56 -07:00
Ned Deily
217f4cd7ee
Issue #21323 : Fix http.server to again handle scripts in CGI subdirectories,
...
broken by the fix for security issue #19435 . Patch by Zach Byrne.
2014-07-12 22:12:39 -07:00
Ned Deily
915a30fb0d
Issue #21323 : Fix http.server to again handle scripts in CGI subdirectories,
...
broken by the fix for security issue #19435 . Patch by Zach Byrne.
2014-07-12 22:06:26 -07:00
Alexander Belopolsky
007a90317d
Issue #21966 : Respect -q command-line option when code module is ran.
...
Contributed by Anton Barkovsky.
2014-07-12 16:36:33 -04:00
Berker Peksag
de1fb6660b
Issue #19076 : Merge with 3.4.
2014-07-12 18:26:03 +03:00
Berker Peksag
ad5ffd4767
Issue #19076 : Don't pass the redundant 'file' argument to self.error().
2014-07-12 18:24:32 +03:00
Berker Peksag
6960c1a94b
Issue #21906 : Merge from 3.4.
2014-07-11 20:44:39 +03:00
Berker Peksag
7aee3ecd57
Issue #21906 : Make Tools/scripts/md5sum.py work in Python 3.
...
Patch by Zachary Ware.
2014-07-11 20:42:18 +03:00