Meador Inge
31b798d3c8
Issue #12618 : py_compile cannot create files in current directory
...
Initial patch by Sjoerd de Vries.
2011-11-28 09:34:47 -06:00
Meador Inge
22b9b37915
Issue #12618 : py_compile cannot create files in current directory
...
Initial patch by Sjoerd de Vries.
2011-11-28 09:27:32 -06:00
Antoine Pitrou
5604ef3e36
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
...
This also adds a test for issue #5319 , whose resolution introduced the issue.
2011-11-26 22:02:29 +01:00
Antoine Pitrou
d7c8fbf89e
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
...
This also adds a test for issue #5319 , whose resolution introduced the issue.
2011-11-26 21:59:36 +01:00
Antoine Pitrou
c366117820
Merge heads
2011-11-26 01:13:12 +01:00
Antoine Pitrou
f0effe6379
Better resolution for issue #11849 : Ensure that free()d memory arenas are really released
...
on POSIX systems supporting anonymous memory mappings. Patch by Charles-François Natali.
2011-11-26 01:11:02 +01:00
Victor Stinner
0fdfceb782
Issue #12567 : The curses module uses Unicode functions for Unicode arguments
...
when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.
2011-11-25 22:10:02 +01:00
Antoine Pitrou
c24847658f
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:29:27 +01:00
Antoine Pitrou
4558bad7d6
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Victor Stinner
cad939bf9d
NEWS: fix the issue number for PyUnicode_EncodeDecimal change
2011-11-25 20:11:54 +01:00
Victor Stinner
6345be9a14
Close #13093 : PyUnicode_EncodeDecimal() doesn't support error handlers
...
different than "strict" anymore. The caller was unable to compute the
size of the output buffer: it depends on the error handler.
2011-11-25 20:09:01 +01:00
Antoine Pitrou
86a36b500a
PEP 3155 / issue #13448 : Qualified name for classes and functions.
2011-11-25 18:56:07 +01:00
Antoine Pitrou
0e86a5842d
Issue #9957 : SpooledTemporaryFile.truncate() now accepts an optional size parameter, as other file-like objects.
...
Patch by Ryan Kelly.
2011-11-25 18:03:09 +01:00
Antoine Pitrou
bc53032408
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
...
Patch by Robert Xiao.
2011-11-23 01:42:52 +01:00
Antoine Pitrou
116d6b98bf
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
...
Patch by Robert Xiao.
2011-11-23 01:39:19 +01:00
Victor Stinner
cbbd562f00
Merge branch default
2011-11-22 22:23:23 +01:00
Victor Stinner
896f4714f4
Merge branch 3.2
2011-11-22 22:22:26 +01:00
Victor Stinner
65170954e0
(Merge 3.2) Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:16:17 +01:00
Amaury Forgeot d'Arc
942d5ba125
Merge branch 3.2
2011-11-22 22:02:01 +01:00
Victor Stinner
60b385e813
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:01:28 +01:00
Amaury Forgeot d'Arc
58e8761da6
Issue #13436 : Fix a bogus error message when an AST object was passed
...
an invalid integer value.
2011-11-22 21:51:55 +01:00
Giampaolo Rodola'
f683700121
sort last committed name in alphabetical order
2011-11-22 21:19:37 +01:00
Giampaolo Rodola'
bc7ea5872b
fix wrong credit and issue id given in previous commit
2011-11-22 13:37:58 +01:00
Giampaolo Rodola'
be55d99b3d
Fix 13245:
...
sched.scheduler class constructor's timefunc and delayfunct parameters are now optional.
scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter.
Patch contributed by Matt Mulsow.
2011-11-22 13:33:34 +01:00
Antoine Pitrou
6dd381eb62
Issue #12328 : Under Windows, refactor handling of Ctrl-C events and
...
make _multiprocessing.win32.WaitForMultipleObjects interruptible when
the wait_flag parameter is false. Patch by sbt.
2011-11-21 21:26:56 +01:00
Antoine Pitrou
ce4a9da705
Issue #13411 : memoryview objects are now hashable when the underlying object is hashable.
2011-11-21 20:46:33 +01:00
Antoine Pitrou
7fe601c5bf
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:22:01 +01:00
Antoine Pitrou
58fcf9f801
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Petri Lehtinen
aadc519ceb
Merge branch 3.2 ( closes #13338 )
2011-11-19 22:04:33 +02:00
Petri Lehtinen
8d40f16a60
Issue #13338 : Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER
...
This allows compiling extension modules with -Wswitch-enum on gcc.
Initial patch by Floris Bruynooghe.
2011-11-19 22:03:10 +02:00
Antoine Pitrou
f34a0cdc6c
Issue #10227 : Add an allocation cache for a single slice object.
...
Patch by Stefan Behnel.
2011-11-18 20:14:34 +01:00
Ezio Melotti
304261e85d
#13358 : merge with 3.2.
2011-11-18 18:02:59 +02:00
Ezio Melotti
15cb489234
#13358 : HTMLParser now calls handle_data only once for each CDATA.
2011-11-18 18:01:49 +02:00
Ezio Melotti
def4728fd6
#4147 : merge with 3.2.
2011-11-18 17:36:07 +02:00
Ezio Melotti
8008f2aba0
#4147 : minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.
2011-11-18 17:34:26 +02:00
Antoine Pitrou
56a220ae4e
Issue #13393 : BufferedReader.read1() now asks the full requested size to
...
the raw stream instead of limiting itself to the buffer size.
2011-11-16 00:56:10 +01:00
Victor Stinner
1ab6c2d2c2
Issue #13374 : The Windows bytes API has been deprecated in the os module. Use
...
Unicode filenames instead of bytes filenames to not depend on the ANSI code
page anymore and to support any filename.
2011-11-15 22:27:41 +01:00
Florent Xicluna
6166519d2b
Closes #13297 : use bytes type to send and receive binary data through XMLRPC.
2011-11-15 20:53:25 +01:00
Antoine Pitrou
28e401e717
Issue #13392 : Writing a pyc file should now be atomic under Windows as well.
2011-11-15 19:15:19 +01:00
Éric Araujo
3f2ba3bd86
Branch merge
2011-11-15 16:12:22 +01:00
Antoine Pitrou
78edf7576e
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:44:16 +01:00
Antoine Pitrou
5418ee0b9a
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:42:21 +01:00
Antoine Pitrou
9a812cbc89
Issue #13389 : Full garbage collection passes now clear the freelists for
...
list and dict objects. They already cleared other freelists in the
interpreter.
2011-11-15 00:00:12 +01:00
Jesus Cea
d8b9ae6e8f
Issue #6397 : Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
2011-11-14 19:07:41 +01:00
Éric Araujo
84ed8f7075
Add entries for distutils2 contributors (their patches are in packaging)
2011-11-14 18:14:09 +01:00
Éric Araujo
a5e7f31070
Remove NEWS entries for packaging test suite fixes.
...
I haven’t updated NEWS for every change or fix in packaging, thinking
that the only entry we need for 3.3a1 is “Add packaging module to the
stdlib”. Other developers have however added entries for these fixes,
but I don’t think they are interesting for users.
Note that the distutils2 backport has a full changelog.
2011-11-14 18:13:24 +01:00
Ezio Melotti
d5d4406c8e
#1745761 , #755670 , #13357 , #12629 , #1200313 : merge with 3.2.
2011-11-14 18:56:11 +02:00
Ezio Melotti
c2fe57762b
#1745761 , #755670 , #13357 , #12629 , #1200313 : improve attribute handling in HTMLParser.
2011-11-14 18:53:33 +02:00
Antoine Pitrou
61093c0ced
Issue #13193 : Fix distutils.filelist.FileList and
...
packaging.manifest.Manifest under Windows. The "recursive-include"
directive now recognizes both legal path separators.
2011-11-12 01:27:19 +01:00
Antoine Pitrou
3714c1ebfd
Add NEWS entry for #13193
2011-11-12 01:22:11 +01:00
Florent Xicluna
c178d9bcc4
Merge 3.2. Remove duplicate ACKS and reorder slightly to prevent future dups.
2011-11-11 19:31:02 +01:00
Florent Xicluna
490062b42c
Remove duplicate ACKS.
2011-11-11 19:21:22 +01:00
Brian Curtin
4ff29db243
Merge 3.2
2011-11-11 09:41:17 -06:00
Brian Curtin
675f6b87cd
Fix #13384 . Remove __future__ import in 3.x code.
2011-11-11 09:37:25 -06:00
Eli Bendersky
28a08205c5
Issue #13191 : typo in argparse docs
2011-11-11 10:58:36 +02:00
Eli Bendersky
a7795dbe9a
Issue #13191 : typo in argparse docs
2011-11-11 10:57:01 +02:00
Eli Bendersky
6e9002c8e0
Issue #13365 : correct an error in the documentation of str.expandtabs. Patch by John Feuerstein
2011-11-11 10:44:22 +02:00
Eli Bendersky
c2c896093b
Issue #13365 : correct an error in the documentation of str.expandtabs
2011-11-11 10:40:14 +02:00
Antoine Pitrou
de20b0b50e
Issue #13149 : Speed up append-only StringIO objects.
...
This is very similar to the "lazy strings" idea.
2011-11-10 21:47:38 +01:00
Charles-François Natali
10b8cf4455
Issue #7777 : socket: Add Reliable Datagram Sockets (PF_RDS) support.
2011-11-10 19:21:37 +01:00
Antoine Pitrou
021572431b
Issue #13373 : multiprocessing.Queue.get() could sometimes block indefinitely
...
when called with a timeout. Patch by Arnaud Ysmal.
2011-11-10 00:38:25 +01:00
Antoine Pitrou
a365113679
Issue #13373 : multiprocessing.Queue.get() could sometimes block indefinitely
...
when called with a timeout. Patch by Arnaud Ysmal.
2011-11-10 00:37:09 +01:00
Jesus Cea
bc91b46951
Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:24:43 +01:00
Jesus Cea
c241df814f
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 16:20:46 +01:00
Nick Coghlan
c29248f232
Issue #13237 : Forward port subprocess module updates and explicitly document UTF-8 encoding assumption when universal_newlines=True
2011-11-08 20:49:23 +10:00
Jesus Cea
6e533f040b
MERGE: Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:39:26 +01:00
Jesus Cea
0fd66b8f30
MERGE: Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 16:34:22 +01:00
Nick Coghlan
217f05b3ed
Issue #13237 : Forward port from 3.2 of subprocess documentation updates. Needed quite a few adjustments to account for new features coming in 3.3
2011-11-08 22:11:21 +10:00
Brian Curtin
304a165426
News updates for #13327 .
2011-11-07 16:30:01 -06:00
Éric Araujo
b1c6f59d71
Branch merge
2011-11-07 18:11:12 +01:00
Brian Curtin
52fbea1d87
Fix #13327 . Remove the need for an explicit None as the second argument to
...
os.utime in order to update to the current time. The second argument is now
optional.
2011-11-06 13:41:17 -06:00
Petri Lehtinen
9589ab1745
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 21:06:10 +02:00
Petri Lehtinen
ebfaabd663
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 21:02:39 +02:00
Amaury Forgeot d'Arc
864741b2c7
Issue #13350 : Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.
2011-11-06 15:10:48 +01:00
Petri Lehtinen
08ad2fbc7f
curses.tparm() is expecting a byte string, not curses.tigetstr()
...
Issue #10570
2011-11-06 09:26:52 +02:00
Petri Lehtinen
fd6b582a71
curses.tparm() is expecting a byte string, not curses.tigetstr()
...
Issue #10570
2011-11-06 09:24:19 +02:00
Éric Araujo
8e5d7cbca1
Remove obsolete/duplicate entries
2011-11-06 05:35:32 +01:00
Antoine Pitrou
5ee9d8a8a2
Issue #13342 : input() used to ignore sys.stdin's and sys.stdout's unicode
...
error handler in interactive mode (when calling into PyOS_Readline()).
2011-11-06 00:38:45 +01:00
Antoine Pitrou
0d776b1ce8
Issue #13342 : input() used to ignore sys.stdin's and sys.stdout's unicode
...
error handler in interactive mode (when calling into PyOS_Readline()).
2011-11-06 00:34:26 +01:00
Petri Lehtinen
8e9f6c4251
Accept None as start and stop parameters for list.index() and tuple.index().
...
Closes #13340 .
2011-11-05 23:25:34 +02:00
Petri Lehtinen
c2f0a46111
Accept None as start and stop parameters for list.index() and tuple.index()
...
Closes #13340 .
2011-11-05 23:24:31 +02:00
Petri Lehtinen
7d7cee9f64
Merge heads
2011-11-05 22:00:17 +02:00
Petri Lehtinen
6ab96e41bd
Remove __pycache__ directories correctly on OpenBSD
...
Closes #13326 .
2011-11-05 21:24:45 +02:00
Benjamin Peterson
d64fc39a80
news note about range introspection
2011-11-05 15:18:51 -04:00
Petri Lehtinen
bc74ee039c
Remove __pycache__ directories correctly on OpenBSD
...
The find utility of OpenBSD doesn't support the "-exec cmd {} +"
action. Change it to use "-depth -exec cmd {} ;" instead.
Also, remove __pycache__ before *.py[co], as most bytecode files are
in __pycache__ directories. Only those generated by Python 2 under
Doc/tools are not.
Closes #13326 .
2011-11-05 21:17:08 +02:00
Petri Lehtinen
064e39330d
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:22:03 +02:00
Petri Lehtinen
395ca72380
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:21:16 +02:00
Petri Lehtinen
8c481b6212
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:46:10 +02:00
Petri Lehtinen
8c482ee955
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:44:59 +02:00
Amaury Forgeot d'Arc
9028a10144
Issue #13343 : Fix a SystemError when a lambda expression uses a global
...
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
2011-11-04 22:29:24 +01:00
Amaury Forgeot d'Arc
97c1bef6a4
Issue #13343 : Fix a SystemError when a lambda expression uses a global
...
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
2011-11-04 22:17:45 +01:00
Petri Lehtinen
c9f38462ee
Issue #3067 : Fix the error raised by locale.setlocale()
2011-11-04 22:22:03 +02:00
Petri Lehtinen
3c85fe07f4
Issue #3067 : Fix the error raised by locale.setlocale()
2011-11-04 22:21:07 +02:00
Florent Xicluna
495dcbd5c1
Merge 3.2: issue #13140
2011-11-04 10:22:57 +01:00
Florent Xicluna
12b66b5217
Closes #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:16:28 +01:00
Ross Lagerwall
ab1078b987
(Merge 3.2) Issue #13339 .
2011-11-04 07:15:35 +02:00
Ross Lagerwall
dcfde5aac9
Issue #13339 : Fix compile error in posixmodule.c due to missing semicolon.
...
Thanks to Robert Xiao.
2011-11-04 07:09:14 +02:00
Victor Stinner
65f51bb150
(Merge 3.2) Issue #10570 : curses.putp() is now expecting a byte string, instead
...
of a Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
2011-11-03 20:36:55 +01:00
Victor Stinner
b3bc7e764d
Issue #10570 : curses.putp() is now expecting a byte string, instead of a
...
Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
2011-11-03 20:35:40 +01:00
Éric Araujo
146f870916
Branch merge
2011-11-03 16:44:13 +01:00
Éric Araujo
880801501b
Improve byte-compilation in packaging to be independent of -O or -B.
...
The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs). Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.
On a related topic, I also removed the code that prevented byte
compilation under python -B. The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason. I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.
Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc. It clears up a
misunderstanding that I (and maybe other people) had.
2011-11-03 05:08:28 +01:00
Éric Araujo
815901108b
Fix typos in recent NEWS entries
2011-11-03 00:12:39 +01:00
Victor Stinner
df5bccc8a3
(Merge 3.2) Issue #10570 : curses.tigetstr() is now expecting a byte string,
...
instead of a Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:47:58 +01:00
Victor Stinner
2662133a05
Issue #10570 : curses.tigetstr() is now expecting a byte string, instead of a
...
Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:45:29 +01:00
Charles-François Natali
23e1ecbd66
Issue #13324 : fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.
2011-11-02 18:58:25 +01:00
Ezio Melotti
ca897e960a
#13295 : http.server now produces valid HTML 4.01 strict.
2011-11-02 19:33:29 +02:00
Florent Xicluna
91d5193b3a
Closes #2892 : preserve iterparse events in case of SyntaxError.
2011-11-01 23:31:09 +01:00
Florent Xicluna
f24e7e6c41
Merge 3.2: issue #2892
2011-11-01 23:33:14 +01:00
Senthil Kumaran
6c5bd40a3e
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
...
the relevant module. Other cleanup improvements. Patch by flox.
2011-11-01 23:20:31 +08:00
Ezio Melotti
7de56f6a04
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:12:22 +02:00
Ned Deily
316f573d9c
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:16:35 -07:00
Senthil Kumaran
ce260142c6
Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
...
even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 01:35:17 +08:00
Ned Deily
7aff451728
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
...
(Patch by Roger Serwy)
2011-10-30 20:01:35 -07:00
Florent Xicluna
9783b44bcf
Merge heads
2011-10-30 20:26:28 +01:00
Florent Xicluna
93dfee1dfc
Issue #13293 : Better error message when trying to marshal bytes using xmlrpc.client.
2011-10-30 20:22:25 +01:00
Florent Xicluna
3fa29f7cd7
Closes #13291 : NameError in xmlrpc package.
2011-10-30 20:18:50 +01:00
Petri Lehtinen
cd06a14df7
Add Misc/NEWS entry for issue #10519
2011-10-30 21:11:09 +02:00
Antoine Pitrou
8db076cf8a
Issue #10363 : Deallocate global locks in Py_Finalize().
2011-10-30 19:13:55 +01:00
Barry Warsaw
46ae0efce1
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 16:52:17 -04:00
Florent Xicluna
5d1155c08e
Closes #13258 : Use callable() built-in in the standard library.
2011-10-28 14:45:05 +02:00
Ezio Melotti
f50ffa94ab
#13273 : fix a bug that prevented HTMLParser to properly detect some tags when strict=False.
2011-10-28 13:21:09 +03:00
Petri Lehtinen
64c1c07201
merge heads
2011-10-24 21:24:58 +03:00
Petri Lehtinen
a94200e6ce
Issue #13018 : Fix reference leaks in error paths in dictobject.c.
...
Patch by Suman Saha.
2011-10-24 21:12:58 +03:00
Charles-François Natali
f8859e1808
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:45:29 +02:00
Florent Xicluna
c45fb25fba
Issue #13255 : wrong docstrings in array module.
2011-10-24 13:14:55 +02:00
Florent Xicluna
023611f34e
Issue 13141: Demonstrate recommended style for socketserver examples.
2011-10-23 22:40:37 +02:00
Nick Coghlan
de31b191e5
Issue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.
2011-10-23 22:04:16 +10:00
Florent Xicluna
711f87ca7d
Issue #9168 : now smtpd is able to bind privileged port.
2011-10-20 23:03:43 +02:00
Senthil Kumaran
fdd4575d19
News entry for Issue12529 and Issue12604
2011-10-21 00:29:47 +08:00
Senthil Kumaran
29fa9d4d68
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:46:00 +08:00
Łukasz Langa
a5a9a9c369
Fixes #10860 : Handle empty port after port delimiter in httplib
2011-10-18 21:17:39 +02:00
Antoine Pitrou
551ba20e8e
Issue #13188 : When called without an explicit traceback argument,
...
generator.throw() now gets the traceback from the passed exception's
`__traceback__` attribute. Patch by Petri Lehtinen.
2011-10-18 16:40:50 +02:00
Ezio Melotti
6bfecd1271
#12448 : smtplib now flushes stdout while running ``python -m smtplib``
...
in order to display the prompt correctly. Patch by Petri Lehtinen.
2011-10-18 13:20:07 +03:00
Nadeem Vawda
bcb86c5246
Issue #13194 : zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
2011-10-17 19:34:22 +02:00
Mark Hammond
6c58b28f2f
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:05:57 +11:00
Raymond Hettinger
4b779b3785
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.
2011-10-15 23:50:42 -07:00
Éric Araujo
181ae4baa1
Branch merge
2011-10-14 16:50:09 +02:00
Ezio Melotti
7903913fa6
#670664 : merge with 3.2.
2011-11-01 14:14:15 +02:00
Ned Deily
d61f9d1715
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:22:53 -07:00
Ross Lagerwall
59142db6d3
Issue #12797 : Added custom opener parameter to builtin open() and FileIO.open().
2011-10-31 20:34:46 +02:00
Senthil Kumaran
ab06e3f285
merge from 3.2 - Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
...
even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 01:39:49 +08:00
Ned Deily
d1029c4853
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
...
(Patch by Roger Serwy)
2011-10-30 20:05:30 -07:00
Florent Xicluna
75861df9ab
Fix User-Agent for the xmlrpc.client, and catch KeyboardInterrupt for the standalone xmlrpc.server.
2011-10-30 20:39:24 +01:00
Florent Xicluna
2b6403e5d1
Merge heads
2011-10-30 20:25:29 +01:00
Florent Xicluna
f70fd7092d
Merge 3.2
2011-10-30 20:24:40 +01:00
Petri Lehtinen
a7a32353bf
Add Misc/NEWS entry for issue #10519
2011-10-30 21:18:25 +02:00
Antoine Pitrou
6fbbc33440
Issue #10363 : Deallocate global locks in Py_Finalize().
2011-10-30 19:14:46 +01:00
Charles-François Natali
d4621190c9
Issue #5661 : Add a test for ECONNRESET/EPIPE handling to test_asyncore. Patch
...
by Xavier de Gaye.
2011-10-29 12:45:56 +02:00
Barry Warsaw
c21a81bf76
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 17:08:12 -04:00
Florent Xicluna
aabbda5354
Merge 3.2
2011-10-28 14:52:29 +02:00
Ezio Melotti
91ec2e8a31
#13273 : merge with 3.2.
2011-10-28 13:23:57 +03:00
Antoine Pitrou
41032a69c1
Issue #11183 : Add finer-grained exceptions to the ssl module, so that
...
you don't have to inspect the exception's attributes in the common case.
2011-10-27 23:56:55 +02:00
Victor Stinner
7592d0513e
Fix the issue number of my cp65001 commit: 13247 => issue #13216
2011-10-27 01:43:48 +02:00
Victor Stinner
2f3ca9f20e
Close #13247 : Add cp65001 codec, the Windows UTF-8 (CP_UTF8)
2011-10-27 01:38:56 +02:00
Victor Stinner
82a647b721
Fix typo in NEWS
2011-10-26 01:42:30 +02:00
Victor Stinner
8b905bd9d4
Issue #13226 : Add RTLD_xxx constants to the os module. These constants can by
...
used with sys.setdlopenflags().
2011-10-25 13:34:04 +02:00
Victor Stinner
e0be423297
Close #10278 : Add clock_getres(), clock_gettime() and CLOCK_xxx constants to
...
the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic
clock
2011-10-25 13:06:09 +02:00
Petri Lehtinen
08a95cabe3
merge heads
2011-10-24 21:22:39 +03:00
Petri Lehtinen
24bd5adcff
Merge 3.2
2011-10-24 21:17:52 +03:00
Charles-François Natali
feeb3a366c
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:47:43 +02:00
Florent Xicluna
6a985c3549
Merge 3.2.
2011-10-24 13:17:27 +02:00
Mark Dickinson
39411f60a2
Issue #13248 , issue #8540 : Remove deprecated Context._clamp attribute from Decimal module.
2011-10-24 10:31:52 +01:00
Florent Xicluna
e9126b5e3b
Merge 3.2
2011-10-23 22:44:19 +02:00
Mark Dickinson
36645681c8
Issue #13201 : equality for range objects is now based on equality of the underlying sequences. Thanks Sven Marnach for the patch.
2011-10-23 19:53:01 +01:00
Nick Coghlan
9715d26305
Merge issue 1294232 patch from 3.2
2011-10-23 22:36:42 +10:00
Meador Inge
70d86bdef1
Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py
...
Parser/asdl_c.py was missed in commit 7109f31300fb when _Py_identifier
was replaced with _Py_IDENTIFIER. Thanks to Eric Snow for the patch.
2011-10-22 14:06:50 -05:00
Ezio Melotti
931b8aac80
#12753 : Add support for Unicode name aliases and named sequences.
2011-10-21 21:57:36 +03:00
Éric Araujo
3764a964ca
Banch merge
2011-10-21 15:52:10 +02:00
Vinay Sajip
04d5bc00a2
Closes #13235 : Added deprecation for warn() methods and function in logging.
2011-10-21 07:33:42 +01:00
Éric Araujo
f89ebdc358
Fix missing imports in setup scripts generated by packaging ( #13205 ).
...
I’ve made more edits than the bug report suggested to make sure the
generated setup script is compatible with many Python versions; a
comment in the source explains that in detail.
The cfg_to_args function uses old 2.x idioms like codecs.open and
RawConfigParser.readfp because I want the setup.py generated by packaging and
distutils2 to be the same. Most users won’t see the deprecation warning and I
ignore it in the test suite.
Thanks to David Barnett for the report and original patch.
2011-10-21 06:27:06 +02:00
Antoine Pitrou
ac65d96777
Issue #12170 : The count(), find(), rfind(), index() and rindex() methods
...
of bytes and bytearray objects now accept an integer between 0 and 255
as their first argument. Patch by Petri Lehtinen.
2011-10-20 23:54:17 +02:00
Florent Xicluna
407cfd1a26
Issue #9168 : now smtpd is able to bind privileged port.
2011-10-20 23:14:36 +02:00
Senthil Kumaran
00e36e59ea
News entry for Issue12529 and Issue12604
2011-10-21 00:31:40 +08:00
Raymond Hettinger
cd9fdfd652
Issue 13227: Option to make the lru_cache() type specific (suggested by Andrew Koenig).
2011-10-20 08:57:45 -07:00
Raymond Hettinger
becd56822a
Issue #13121 : Support in-place math operators for collections.Counter().
2011-10-19 13:40:37 -07:00
Éric Araujo
3bb8be6d78
Branch merge
2011-10-19 21:32:39 +02:00
Senthil Kumaran
7e3062b320
default - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:52:41 +08:00
Éric Araujo
4f996449bf
Fix typo
2011-10-19 06:02:24 +02:00
Victor Stinner
3a50e7056e
Issue #12281 : Rewrite the MBCS codec to handle correctly replace and ignore
...
error handlers on all Windows versions. The MBCS codec is now supporting all
error handlers, instead of only replace to encode and ignore to decode.
2011-10-18 21:21:00 +02:00
Antoine Pitrou
1e73a2467f
Issue #13150 : sysconfig no longer parses the Makefile and config.h files
...
when imported, instead doing it at build time. This makes importing
sysconfig faster and reduces Python startup time by 20%.
2011-10-18 17:52:24 +02:00
Antoine Pitrou
cf28eacafe
Issue #13188 : When called without an explicit traceback argument,
...
generator.throw() now gets the traceback from the passed exception's
``__traceback__`` attribute. Patch by Petri Lehtinen.
2011-10-18 16:42:55 +02:00
Ezio Melotti
3de134b1d1
#12448 : merge with 3.2.
2011-10-18 13:26:49 +03:00
Victor Stinner
5c267e2d22
Close #12454 : The mailbox module is now using ASCII, instead of the locale
...
encoding, to read and write MH mailboxes (.mh_sequences files).
2011-10-17 20:44:22 +02:00
Nadeem Vawda
2b9f36cdb6
Merge #13194 : zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
2011-10-17 19:40:47 +02:00
Antoine Pitrou
707033a694
Issue #13146 : Writing a pyc file is now atomic under POSIX.
2011-10-17 19:28:44 +02:00
Mark Hammond
a9efb6fdd8
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:28:09 +11:00
Senthil Kumaran
de49d64dbc
Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg.
2011-10-16 23:54:44 +08:00
Éric Araujo
d139b99426
Fix writing of the RESOURCES file by packaging ( #12386 )
2011-10-14 16:58:23 +02:00
Éric Araujo
77466be08a
Branch merge
2011-10-14 16:56:02 +02:00
Lars Gustäbel
ac3d137a30
Issue #13158 : Fix decoding and encoding of base-256 number fields in tarfile.
...
The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.
2011-10-14 12:46:40 +02:00
Lars Gustäbel
01277d166a
Merge with 3.2: Issue #13158 : Fix decoding and encoding of base-256 number fields in tarfile.
...
The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.
2011-10-14 12:53:10 +02:00
Victor Stinner
0e7e715a11
(Merge 3.2) Issue #13025 : mimetypes is now reading MIME types using the UTF-8
...
encoding, instead of the locale encoding.
2011-10-14 03:05:10 +02:00
Victor Stinner
82ac9bcdb3
Issue #13025 : mimetypes is now reading MIME types using the UTF-8 encoding,
...
instead of the locale encoding.
2011-10-14 03:03:35 +02:00
Victor Stinner
792b47f6ca
(Merge 3.2) Issue #10653 : On Windows, use strftime() instead of wcsftime()
...
because wcsftime() doesn't format time zone correctly.
2011-10-14 02:39:06 +02:00
Victor Stinner
c1f32ca0ad
Issue #10653 : On Windows, use strftime() instead of wcsftime() because
...
wcsftime() doesn't format time zone correctly.
2011-10-14 02:36:13 +02:00
Nadeem Vawda
72d6a13413
Merge #13159 : Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.
...
Also fix the bz2 module, which suffered from the same problem.
2011-10-13 13:38:14 +02:00
Nadeem Vawda
d41a98bdd9
Issue #13159 : Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.
...
Also fix the bz2 module, whose classes used the same algorithm.
2011-10-13 13:34:16 +02:00
Antoine Pitrou
6b4883dec0
PEP 3151 / issue #12555 : reworking the OS and IO exception hierarchy.
2011-10-12 02:54:14 +02:00
Antoine Pitrou
10a99b024d
Issue #13150 : The tokenize module doesn't compile large regular expressions at startup anymore.
...
Instead, the re module's standard caching does its work.
2011-10-11 15:45:56 +02:00
Éric Araujo
c822f08c71
Merge #11751 from 3.2
2011-10-11 02:46:59 +02:00