Ask Solem
518eaa8a76
Issue #7707 : Documented that multiprocessing.Queue operations during
...
import can lead to deadlocks.
2010-11-09 21:46:03 +00:00
Ask Solem
e912f5ab7a
Added missing NEWS entry for my previous commit (r86370).
2010-11-09 21:14:53 +00:00
Antoine Pitrou
fb0469112f
Issue #10022 : The dictionary returned by the `getpeercert()` method
...
of SSL sockets now has additional items such as `issuer` and `notBefore`.
2010-11-09 20:21:19 +00:00
Antoine Pitrou
859c4ef0a0
Make `usenetrc` False by default (the old behaviour of having it True by
...
default could be rather confusing).
2010-11-09 18:58:42 +00:00
Antoine Pitrou
1cb121ecea
Issue #1926 : Add support for NNTP over SSL on port 563, as well as
...
STARTTLS. Patch by Andrew Vant.
2010-11-09 18:54:37 +00:00
Victor Stinner
58c0752a33
Issue #10335 : Add tokenize.open(), detect the file encoding using
...
tokenize.detect_encoding() and open it in read only mode.
2010-11-09 01:08:59 +00:00
Éric Araujo
0cfba09b09
This was actually fixed for the previous alpha.
2010-11-08 21:48:23 +00:00
Éric Araujo
551f02ca63
Add missing NEWS entry for a fix committed by Senthil.
...
All recent modifications to distutils should now be covered in NEWS.
2010-11-08 18:15:17 +00:00
R. David Murray
7dff9e08fb
#10321 : Add support for sending binary DATA and Message objects to smtplib
2010-11-08 17:15:13 +00:00
Éric Araujo
a563392f92
Move a news entry to the right section (+ light reformatting)
2010-11-08 17:13:03 +00:00
Georg Brandl
b8bbffd34d
Fix next version name.
2010-11-08 16:57:52 +00:00
Victor Stinner
64bc3b28a3
Issue #10329 : The trace module writes reports using the input Python script
...
encoding, instead of the locale encoding. Patch written by Alexander
Belopolsky.
2010-11-07 15:47:36 +00:00
Hirokazu Yamamoto
4ae5f138da
Issue #6317 : Now winsound.PlaySound only accepts unicode with MvL's approval.
2010-11-07 14:29:26 +00:00
Hirokazu Yamamoto
35adf5dcf1
Changed entry name because it's hard to merge.
2010-11-07 11:32:01 +00:00
Hirokazu Yamamoto
c08c9bccfc
Issue #6317 : Now winsound.PlaySound can accept non ascii filename.
2010-11-07 09:23:15 +00:00
Éric Araujo
e7cf954247
Add missing NEWS entries for some of my commits.
2010-11-06 15:01:07 +00:00
Éric Araujo
ba7209f0a5
Prevent race condition with mkdir in distutils. Patch by Arfrever on #9281 .
2010-11-06 04:48:05 +00:00
Éric Araujo
909ddbd193
Add missing NEWS entry for r86239.
2010-11-06 04:24:00 +00:00
Éric Araujo
89c0478c53
Add missing entry for r86223.
2010-11-05 23:58:34 +00:00
Antoine Pitrou
243757eb79
Issue #10180 : Pickling file objects is now explicitly forbidden, since
...
unpickling them produced nonsensical results.
2010-11-05 21:15:39 +00:00
Antoine Pitrou
39a6591507
Issue #10311 : The signal module now restores errno before returning from
...
its low-level signal handler. Patch by Hallvard B Furuseth.
2010-11-05 19:47:27 +00:00
Antoine Pitrou
a078115434
Issue #10282 : Add a `nntp_implementation` attribute to NNTP objects.
2010-11-05 19:16:37 +00:00
David Malcolm
9696088b6d
Issue #10288 : The deprecated family of "char"-handling macros
...
(ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc
instead.
2010-11-05 17:23:41 +00:00
Antoine Pitrou
08eeadac27
Issue #10283 : Add a `group_pattern` argument to NNTP.list().
2010-11-04 21:36:15 +00:00
Antoine Pitrou
99c4830d0c
Issue #3699 : Fix test_bigaddrspace and extend it to test bytestrings
...
as well as unicode strings. Initial patch by Sandro Tosi.
2010-11-04 20:48:37 +00:00
Antoine Pitrou
aeb6ceead7
Issue #10293 : Remove obsolete field in the PyMemoryView structure,
...
unused undocumented value PyBUF_SHADOW, and strangely-looking code in
PyMemoryView_GetContiguous.
2010-11-04 20:30:33 +00:00
Eric Smith
27bbca6f79
Issue #6081 : Add str.format_map. str.format_map(mapping) is similar to str.format(**mapping), except mapping does not get converted to a dict.
2010-11-04 17:06:58 +00:00
Phillip J. Eby
b6d4a8e4de
Implement http://bugs.python.org/issue10155 using And Clover's patch, w/added
...
docs and support for more client-generated CGI variables. (This should
complete the WSGI 1.0.1 compliance changes for Python 3.x.)
2010-11-03 22:39:01 +00:00
Antoine Pitrou
4103bc09a4
Issue #10281 : nntplib now returns None for absent fields in the OVER/XOVER
...
response, instead of raising an exception.
2010-11-03 18:18:43 +00:00
Phillip J. Eby
a01799f71a
Update docs (and sample app in wsgiref.simple_server) to reflect PEP 3333.
2010-11-03 00:46:45 +00:00
Antoine Pitrou
f80b3f72c6
Issue #10280 : NNTP.nntp_version should reflect the highest version
...
advertised by the server.
2010-11-02 22:31:52 +00:00
Brett Cannon
ed82ca1078
Ditch some dead code in test_unicode_file.
...
Closes issue #10294 . Thanks Stefan Behnel for the find.
2010-11-02 19:27:59 +00:00
Martin v. Löwis
16f344df36
Issue #10184 : Touch directories only once when extracting a tarfile.
2010-11-01 21:39:13 +00:00
Alexander Belopolsky
ea13d9d86b
Issue #10199 : Moved Demo/turtle under Lib/
2010-11-01 17:39:37 +00:00
Antoine Pitrou
4d98489da3
Issue #10265 : Close file objects explicitly in sunau. Patch by Brian Brazil.
2010-10-31 21:27:04 +00:00
Raymond Hettinger
189316a2e3
Issue 10110: Let Queue.put recognize a full queue when the maxsize parameter has been reduced.
2010-10-31 17:57:52 +00:00
Benjamin Peterson
076ed00003
add --enable-loadable-sqlite-extensions #10268
2010-10-31 17:11:02 +00:00
Antoine Pitrou
f569826f06
Issue #10266 : uu.decode didn't close in_file explicitly when it was given
...
as a filename. Patch by Brian Brazil.
2010-10-31 16:04:14 +00:00
Antoine Pitrou
e974571d36
Issue #10160 : Speed up operator.attrgetter. Patch by Christos Georgiou.
2010-10-31 15:26:04 +00:00
Vinay Sajip
65b4af34d7
Updated NEWS about logging.basicConfig().
2010-10-31 15:11:43 +00:00
Raymond Hettinger
b643ef8f8e
Issue #5729 : json.dumps to support using '\t' as an indent string
2010-10-31 08:00:16 +00:00
Benjamin Peterson
bbb0412ad1
if FileIO.__init__ fails, close fd
2010-10-30 23:16:28 +00:00
Antoine Pitrou
8d2b51b46a
Issue #10253 : FileIO leaks a file descriptor when trying to open a file
...
for append that isn't seekable. Patch by Brian Brazil.
2010-10-30 16:19:14 +00:00
Georg Brandl
6ce29fa7a8
Fix test_mailbox by supporting context manager protocol for get_file() returns.
2010-10-30 14:33:28 +00:00
Antoine Pitrou
bfa3470b85
Issue #10246 : uu.encode didn't close file objects explicitly when filenames
...
were given to it. Patch by Brian Brazil.
2010-10-30 13:03:56 +00:00
Georg Brandl
cc2adbc693
#10198 : fix duplicate header when writeframes() is called with an empty string.
2010-10-30 08:29:28 +00:00
Raymond Hettinger
dd4215483f
Issue 10221: Improve error message for dict.pop().
2010-10-30 08:10:29 +00:00
Brett Cannon
028011f9f0
Silence ResourceWarnings in modulefinder by using file context managers.
2010-10-30 00:26:48 +00:00
Brett Cannon
011057854d
Add some missing entries related to the various ResourceWarning fixes I have committed.
2010-10-30 00:18:54 +00:00
Antoine Pitrou
e1eca4e3f5
Issue #10233 : Close file objects in a timely manner in the tarfile module
...
and its test suite.
2010-10-29 23:49:49 +00:00
Martin v. Löwis
72f48422e2
Issue #9377 : Use Unicode API for gethostname on Windows.
2010-10-29 18:20:08 +00:00
Antoine Pitrou
e033e06db0
Issue #10093 : ResourceWarnings are now issued when files and sockets are
...
deallocated without explicit closing. These warnings are silenced by
default, except in pydebug mode.
2010-10-29 10:38:18 +00:00
Lars Gustäbel
9cbdd75ec5
Add read support for all missing variants of the GNU sparse
...
extensions. Thus, in addition to GNUTYPE_SPARSE headers, sparse
information in pax headers created by GNU tar can now be decoded.
All three formats 0.0, 0.1 and 1.0 are supported.
On filesystems that support this, holes in files are now restored
whenever a sparse member is extracted.
2010-10-29 09:08:19 +00:00
Antoine Pitrou
07e20ef50b
Issue #5437 : A preallocated MemoryError instance should not hold traceback
...
data (including local variables caught in the stack trace) alive infinitely.
2010-10-28 22:56:58 +00:00
Georg Brandl
b9a4391754
#10218 : return timeout status from Condition.wait, mirroring other primitives' behavior.
2010-10-28 09:03:20 +00:00
Georg Brandl
4d54088599
#7351 : add more consistent exception name alias.
2010-10-28 06:42:33 +00:00
Antoine Pitrou
b156a46b26
Issue #8852 : Allow the socket module to build on OpenSolaris.
2010-10-27 20:13:57 +00:00
Antoine Pitrou
6b03ee6033
Issue #5027 : The standard `xml` namespace is now understood by
...
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace . Patch by Troy J. Farrell.
2010-10-27 18:33:30 +00:00
Georg Brandl
7424dd359c
#5975 : add unix_dialect to csv module.
2010-10-27 07:27:06 +00:00
R. David Murray
ba488d1504
#7761 : fix telnetlib.interact failures on Windows.
2010-10-26 12:42:24 +00:00
Vinay Sajip
a39c571061
logging: Added style option to Formatter to allow %, {} or himBHformatting.
2010-10-25 13:57:39 +00:00
Jesus Cea
7e9065cf8c
Issue #10143 : Update "os.pathconf" values
2010-10-25 13:02:04 +00:00
Georg Brandl
08be72d0aa
Add a new warning gategory, ResourceWarning, as discussed on python-dev. It is silent by default,
...
except when configured --with-pydebug.
Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
2010-10-24 15:11:22 +00:00
Nick Coghlan
543af75961
Issue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)
2010-10-24 11:23:25 +00:00
Benjamin Peterson
503d6c5ae9
remove broken code accounting an offset the size of the line #10186
2010-10-24 02:52:05 +00:00
R. David Murray
8451c4b6e0
#1349106 : add linesep argument to generator.flatten and header.encode.
2010-10-23 22:19:56 +00:00
Georg Brandl
1e908af335
#6518 : enable context manager protocol for ossaudiodev types.
2010-10-23 17:31:52 +00:00
Victor Stinner
75d8c5cea2
Issue #6011 : sysconfig and distutils.sysconfig use the surrogateescape error
...
handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source
code directory name contains a non-ASCII character and the locale encoding is
ASCII.
2010-10-23 17:02:31 +00:00
Antoine Pitrou
ff150f2921
Revert r85797 (and r85798): it broke the Windows buildbots because of
...
test_multiprocessing's misbehaviour.
2010-10-22 21:41:05 +00:00
Antoine Pitrou
7eecffd05d
Issue #9935 : Speed up pickling of instances of user-defined classes.
2010-10-22 19:43:59 +00:00
Antoine Pitrou
d532321f7b
Issue #5639 : Add a *server_hostname* argument to `SSLContext.wrap_socket`
...
in order to support the TLS SNI extension. `HTTPSConnection` and
`urlopen()` also use this argument, so that HTTPS virtual hosts are now
supported.
2010-10-22 18:19:07 +00:00
Georg Brandl
83938437cb
#10166 : rewrite self-recursion to iteration in pstats.Stats.add(). Also add a unittest and a stats test file.
2010-10-22 06:28:01 +00:00
Brian Curtin
000f974b44
Fix #10162 : Add try/except around _winreg.OpenKey for keys that are
...
unreadable by all users, e.g., Flash, Silverlight, and Java keys were
causing errors.
We don't currently have a way to grant/deny permissions for a key
via winreg so there are no tests for this.
2010-10-21 14:11:48 +00:00
Antoine Pitrou
9583cac633
Issue #10089 : Add support for arbitrary -X options on the command-line.
...
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-21 13:42:28 +00:00
Victor Stinner
f933e1ab6f
Issue #4388 : On Mac OS X, decode command line arguments from UTF-8, instead of
...
the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable
is not set, the locale encoding is ISO-8859-1, whereas most programs (including
Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and
to encode command line arguments on this OS.
2010-10-20 22:58:25 +00:00
Vinay Sajip
2a20dfc2aa
logging: Made StreamHandler terminator configurable.
2010-10-20 20:05:38 +00:00
Ronald Oussoren
f3500e1198
Fix for issue #7473 .
...
Without this patch you'll get link errors in some extensions
(in particular the _curses_panel) one when you try to build
a 3-way universal framework when you previously installed a
2-way universal framework using the python.org installer.
2010-10-20 13:10:12 +00:00
Vinay Sajip
6dbed2e8b3
logging: Allowed filters to be just callables.
2010-10-19 20:53:01 +00:00
Vinay Sajip
6fac817136
logging: Added tests for _logRecordClass changes.
2010-10-19 20:44:14 +00:00
Georg Brandl
7004bd1a3d
#10092 : Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this.
2010-10-19 18:54:25 +00:00
Vinay Sajip
062d56b1f0
logging: Added _logRecordClass, getLogRecordClass, setLogRecordClass to increase flexibility of LogRecord creation.
2010-10-19 15:26:24 +00:00
Alexander Belopolsky
4a98e3b6d0
Issue #10117 : Tools/scripts/reindent.py now accepts source files that
...
use encoding other than ASCII or UTF-8. Source encoding is preserved
when reindented code is written to a file.
2010-10-18 14:43:38 +00:00
Hirokazu Yamamoto
b08820ad40
Issue #5117 : Case normalization was needed on ntpath.relpath(). And
...
fixed root directory issue on posixpath.relpath(). (Ported working fixes
from ntpath)
2010-10-18 12:13:18 +00:00
R. David Murray
e194dd60f0
#678250 : Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.
...
Patch by Sébastien Sablé. This solves a test_mmap failure on AIX.
2010-10-18 01:14:06 +00:00
R. David Murray
a90032a3fb
#1343 : Add short_empty_elements option to XMLGenerator.
...
Patch and tests by Neil Muller.
2010-10-17 22:46:45 +00:00
Benjamin Peterson
8f67d0893f
make hashes always the size of pointers; introduce Py_hash_t #9778
2010-10-17 20:54:53 +00:00
Martin v. Löwis
c980ffde14
Drop OPT:Olimit, as it confuses SunPRO (and other compilers).
2010-10-17 19:36:54 +00:00
Matthias Klose
8690ae57f3
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
2010-10-17 13:22:33 +00:00
Victor Stinner
9d396399da
Issue #10123 : Don't use non-ascii filenames in test_doctest tests. Add a
...
new test specific to unicode (non-ascii name and filename).
2010-10-16 21:54:59 +00:00
Victor Stinner
4c7c8c3023
Issue #9713 , #10114 : Parser functions (eg. PyParser_ASTFromFile) expects
...
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
2010-10-16 13:14:10 +00:00
Benjamin Peterson
230b20684f
don't identify the toplevel namespace by name #9997
2010-10-16 03:45:45 +00:00
Barry Warsaw
f6219a588d
Add NEWS for issue 9807 part 1.
2010-10-16 01:20:45 +00:00
R. David Murray
e16cda9ad8
#9862 : On AIX PIPE_BUF is broken. Make it 512.
...
Patch by Sébastien Sablé.
2010-10-15 23:12:57 +00:00
Georg Brandl
3844f0d7cd
#6098 : Refrain from claiming DOM level 3 conformance in minidom.
2010-10-15 18:00:35 +00:00
Georg Brandl
b9cd72a9f7
#5762 : fix handling of empty namespace in minidom, which would result in AttributeError on toxml().
2010-10-15 17:58:45 +00:00
Georg Brandl
d2413428dc
Fix issue references.
2010-10-15 16:42:14 +00:00
Alexander Belopolsky
e8f583244a
Issue #9308 : Removed redundant coding cookies. Added tests for
...
importing encoded modules that do not depend on specific stdlib
modules being encoded in a certain way.
2010-10-15 16:28:20 +00:00
Georg Brandl
c01537f742
#9054 : fix crash when using pyexpat with a system expat lib version 2.0.1.
2010-10-15 16:26:08 +00:00
Georg Brandl
1f7fffb308
#2830 : add html.escape() helper and move cgi.escape() uses in the standard library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
2010-10-15 15:57:45 +00:00
Georg Brandl
b4dac71a87
#5355 : Provide mappings from Expat error numbers to string descriptions and backwards, in order to actually make it possible to analyze error codes provided by ExpatError.
2010-10-15 14:46:48 +00:00