Mark Dickinson
fec6620dfb
Make Fraction(-1).__hash__() return -2 rather than -1 (see issue 10356).
2010-11-13 10:27:38 +00:00
Georg Brandl
24854cac99
Bump to 3.2a4.
2010-11-13 06:39:58 +00:00
Antoine Pitrou
f3b001f966
Issue #4471 : Add the IMAP.starttls() method to enable encryption on
...
standard IMAP4 connections. Original patch by Lorenzo M. Catucci.
2010-11-12 18:49:16 +00:00
R. David Murray
6495136e40
#1466065 : add validate option to base64.b64decode
...
Patch by Neil Tallim. This provides a mechanism for module
users to achieve RFC 3548 compliance in the cases where ignoring
non-base64-alphabet input characters is *not* mandated by the RFC that
references RFC 3548.
2010-11-11 20:09:20 +00:00
Alexander Belopolsky
b9d10d08c4
Issue #10386 : Added __all__ to token module; this simplifies importing
...
in tokenize module and prevents leaking of private names through
import *.
2010-11-11 14:07:41 +00:00
Antoine Pitrou
cf9f98034a
Issue #10372 : Import the warnings module only after the IO library is
...
initialized, so as to avoid bootstrap issues with the '-W' option.
2010-11-10 13:55:25 +00:00
Antoine Pitrou
d79f3c8b3a
Issue #4471 : Properly shutdown socket in IMAP.shutdown(). Patch by
...
Lorenzo M. Catucci.
2010-11-09 23:10:33 +00:00
Antoine Pitrou
b1436f185d
Fix IMAP.login() to work properly.
...
Also, add remote tests for imaplib (part of #4471 ).
2010-11-09 22:55:55 +00:00
Ask Solem
84c29a2e16
Remove uneeded NEWS entries for minor documentation updates.
2010-11-09 22:04:16 +00:00
Ask Solem
ff7ffdd752
Issue #8028 : multiprocessing: Documented that ``Process.terminate``
...
is only intented for use by the parent process.
2010-11-09 21:52:33 +00:00
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
Victor Stinner
f3170ccef8
Use locale encoding if Py_FileSystemDefaultEncoding is not set
...
* PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and
PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if
Py_FileSystemDefaultEncoding is NULL
* redecode_filenames() functions and _Py_code_object_list (issue #9630 )
are no more needed: remove them
2010-10-15 12:04:23 +00:00
Florent Xicluna
d9f57630fe
Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409 )
2010-10-14 20:56:20 +00:00
Alexander Belopolsky
1bcbaab15a
Issue 9183: Intern UTC timezone.
2010-10-14 17:03:51 +00:00
Matthias Klose
3fbfea1fae
- Issue #10094 : Use versioned .so files on GNU/kfreeBSD and the GNU Hurd.
2010-10-14 15:24:22 +00:00
Antoine Pitrou
b1c5496738
Issue #7523 : Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
...
where supported by the system. Patch by Nikita Vetoshkin.
2010-10-14 15:05:38 +00:00
Victor Stinner
22a351aabf
Issue #10095 : fp_setreadl() doesn't reopen the file, reuse instead the file
...
descriptor.
2010-10-14 12:04:34 +00:00
Senthil Kumaran
383c32dd38
Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol
2010-10-14 11:57:35 +00:00
Georg Brandl
66c221e993
#9418 : first step of moving private string methods to _string module.
2010-10-14 07:04:07 +00:00
Georg Brandl
268e4d4cf3
#1710703 : write zipfile structures also in the case of closing a new, but empty, archive.
2010-10-14 06:59:45 +00:00
Victor Stinner
052a04d34a
Revert r85435 (and r85440): decode command line arguments from utf-8
...
Python exits with a fatal error if the command line contains an undecodable
argument. PyUnicode_FromString() fails at the first undecodable byte because it
calls the error handler, but error handlers are not ready before Python
initialization.
2010-10-13 23:24:06 +00:00
Victor Stinner
90bbaa57f9
Issue #9992 : On Mac OS X, decode command line arguments from utf-8 instead of
...
the locale encoding.
2010-10-13 22:15:06 +00:00
Victor Stinner
8f6b6b0cc3
Issue #9992 : Remove PYTHONFSENCODING environment variable.
2010-10-13 22:02:27 +00:00
Benjamin Peterson
aa96592a59
remove obselete import implementation #7287
2010-10-13 21:59:36 +00:00
Antoine Pitrou
834bd81c51
Issue #10041 : The signature of optional arguments in socket.makefile()
...
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode. Patch by Kai Zhu.
2010-10-13 16:17:14 +00:00
Antoine Pitrou
803e6d670c
Issue #9003 : http.client.HTTPSConnection, urllib.request.HTTPSHandler and
...
urllib.request.urlopen now take optional arguments to allow for
server certificate checking, as recommended in public uses of HTTPS.
2010-10-13 10:36:15 +00:00
Benjamin Peterson
5c4bfc4af0
prefer clearing global objects to obscure module.__dict__ bugs #10068
2010-10-12 22:57:59 +00:00
Victor Stinner
11b1f3dac1
NEWS: Move #6612 to Library section
2010-10-12 22:42:37 +00:00
Victor Stinner
06bca9a24b
#6612 : add the author of the patch (W. Trevor King)
2010-10-12 22:26:08 +00:00
Victor Stinner
b103a937ea
Issue #6612 : Fix site and sysconfig to catch os.getcwd() error, eg. if the
...
current directory was deleted.
2010-10-12 22:23:23 +00:00
Antoine Pitrou
04248a8d99
Issue #3873 : Speed up unpickling from file objects which have a peek()
...
method.
2010-10-12 20:51:21 +00:00
Antoine Pitrou
b0182c8ca5
Issue #10075 : Add a session_stats() method to SSLContext objects.
2010-10-12 20:09:02 +00:00
Georg Brandl
8349031934
Post-release bumps.
2010-10-12 12:38:48 +00:00
Martin v. Löwis
44270f1c65
Add entry for r85371.
2010-10-11 22:50:33 +00:00
Martin v. Löwis
e8930228c7
Add 3.2b1.
2010-10-11 22:38:01 +00:00
Vinay Sajip
1c71b2af1a
Issue #9948 : logging: fixed problem of losing filename case information.
2010-10-10 20:36:04 +00:00
Georg Brandl
27a28589c5
Rewrap.
2010-10-10 09:49:21 +00:00
Georg Brandl
002fa2de90
Bump to 3.2a3.
2010-10-10 09:40:34 +00:00
Antoine Pitrou
dbec780a0b
Issue #9437 : Fix building C extensions with non-default LDFLAGS.
2010-10-10 09:37:12 +00:00
Antoine Pitrou
19f8edc39d
Issue #10062 : Allow building on platforms which do not have sem_timedwait.
2010-10-10 08:37:22 +00:00
Antoine Pitrou
1bf29b7da7
Some platforms provide uintptr_t in inttypes.h. Patch by
...
Akira Kitada.
2010-10-10 08:10:16 +00:00
Antoine Pitrou
5b0e9e84e9
Issue #10055 : Make json C89-compliant in UCS4 mode.
2010-10-09 15:24:28 +00:00
Victor Stinner
257d38ffdd
Issue #9738 : Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename()
...
encodings
2010-10-09 10:12:11 +00:00
Antoine Pitrou
81564093a1
Issue #1051 : Add a script (Lib/test/make_ssl_certs.py) to generate the
...
custom certificate and private key files used by SSL-related certs.
2010-10-08 23:06:24 +00:00
R. David Murray
96fd54eaec
#4661 : add bytes parsing and generation to email (email version bump to 5.1.0)
...
The work on this is not 100% complete, but everything is present to
allow real-world testing of the code. The only remaining major todo
item is to (hopefully!) enhance the handling of non-ASCII bytes in headers
converted to unicode by RFC2047 encoding them rather than replacing them with
'?'s.
2010-10-08 15:55:28 +00:00
Antoine Pitrou
59fdd6736b
Issue #1589 : Add ssl.match_hostname(), to help implement server identity
...
verification for higher-level protocols.
2010-10-08 10:37:08 +00:00
Hirokazu Yamamoto
54c950f6b4
Issue #9978 : Wait until subprocess completes initialization. (Win32KillTests in test_os)
2010-10-08 08:38:15 +00:00
Raymond Hettinger
bc95973b51
Fix handling on negative numbers in ast.literal_eval().
2010-10-08 00:47:45 +00:00
Antoine Pitrou
7980eaa98d
Issue #9759 : GzipFile now raises ValueError when an operation is attempted
...
after the file is closed. Patch by Jeffrey Finkelstein.
2010-10-06 21:21:18 +00:00
Éric Araujo
ef777bd3d3
Fix news entry formatting nits
2010-10-05 00:04:20 +00:00
Éric Araujo
6108bf5ed0
Fix interaction of custom translation classes and caching ( #9042 )
2010-10-04 23:52:37 +00:00
Giampaolo Rodolà
977c707b42
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
2010-10-04 21:08:36 +00:00
Lars Gustäbel
331b8002f0
Issue #9065 : no longer use "root" as the default for the
...
uname and gname field.
If tarfile creates a new archive and adds a file with a
uid/gid that doesn't have a corresponding name on the
system (e.g. because the user/group account was deleted) it
uses the empty string in the uname/gname field now instead
of "root". Using "root" as the default was a bad idea
because on extraction the uname/gname fields are supposed
to override the uid/gid fields. So, all archive members
with nameless uids/gids belonged to the root user after
extraction.
2010-10-04 15:18:47 +00:00
Tarek Ziadé
388f956c35
typo in Arfrever name
2010-10-03 14:45:06 +00:00
Tarek Ziadé
4bcceef5a1
Fixed #8980 : distutils.command.check was failing w/ docutils installed
2010-10-03 14:18:09 +00:00
Benjamin Peterson
970d1887c5
add a test and a note about metaclasses now being abcs
2010-10-02 17:55:47 +00:00
R. David Murray
5397e862e2
#1050268 : make parseaddr 'quote' the contents of quoted strings in addresses.
...
Also made the doc string for email._parseaddr's 'quote' function more
accurate; I'd love to make the function match the old docstring instead,
but other code uses it according the existing semantics.
2010-10-02 15:58:26 +00:00
Victor Stinner
aef57e3969
Update changelog for r85174
2010-10-02 11:50:49 +00:00
Victor Stinner
5593d8aeb4
Issue #8670 : PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace
...
UTF-16 surrogate pairs by single non-BMP characters for 16 bits Py_UNICODE
and 32 bits wchar_t (eg. Linux in narrow build).
2010-10-02 11:11:27 +00:00
Benjamin Peterson
aec5fd1397
type.__abstractmethods__ should raise an AttributeError #10006
2010-10-02 00:03:31 +00:00
R. David Murray
31e984c39c
#10004 : in Q encoded word ignore '=xx' when xx is not valid hex.
...
Bug report and fix by Thomas Guettler.
2010-10-01 15:40:20 +00:00
Brian Curtin
9e88b5aeee
Fix #10003 . Add SIGBREAK to the set of valid signals on Windows.
...
This fixes a regression noticed by bzr, introduced by issue #9324 .
2010-10-01 14:49:24 +00:00
Alexander Belopolsky
38e2996152
Issue #6608 : time.asctime is now checking struct tm fields its input
...
before passing it to the system asctime. Patch by MunSic Jeong.
2010-10-01 14:18:49 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Antoine Pitrou
69ab95105f
Issue #9360 : Cleanup and improvements to the nntplib module. The API
...
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.
2010-09-29 15:03:40 +00:00
Antoine Pitrou
c3ed2e7f83
Issue #9962 : GzipFile now has the peek() method.
2010-09-29 10:49:46 +00:00
Victor Stinner
137c34c027
Issue #9979 : Create function PyUnicode_AsWideCharString().
2010-09-29 10:25:54 +00:00
R. David Murray
11cabcf73d
#7110 : have regrtest print test failures and tracebacks to stderr not stdout.
...
Patch by Sandro Tosi.
2010-09-29 01:08:05 +00:00
R. David Murray
b78b4893a9
#9628 : fix runtests.sh -x option so more than one test can be excluded.
2010-09-28 22:25:18 +00:00
Antoine Pitrou
3e1fd27b74
Issue #9090 : When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,
...
retry the select() loop instead of bailing out. This is because select()
can incorrectly report a socket as ready for reading (for example, if it
received some data with an invalid checksum).
2010-09-28 21:23:11 +00:00
Hirokazu Yamamoto
cc868d430b
Issue #3612 : Added new types to ctypes.wintypes. (CHAR and pointers)
2010-09-28 21:08:38 +00:00
Ronald Oussoren
01c428999a
Fix for issue #9568 .
2010-09-28 14:38:31 +00:00
Ronald Oussoren
9af738022e
Add support for the ZSH shell to the "Update Shell Profile" script
...
on MacOSX.
Patch by Sylvain Mora, issue #9701 .
2010-09-28 13:57:58 +00:00
Mark Dickinson
fa41e60c9d
Issue #9599 : Tweak loghelper algorithm to return slightly improved results for powers of 2.
2010-09-28 07:22:27 +00:00
Brett Cannon
5305a998d5
Since __import__ is not designed for general use, have its docstring point
...
people towards importlib.import_module().
Closes issue #7397 .
2010-09-27 21:08:38 +00:00
Brian Curtin
1771b54bed
Implement #8521 . Added named argument handling to winreg's CreateKeyEx,
...
DeleteKeyEx, and OpenKeyEx.
Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.
2010-09-27 17:56:36 +00:00
Antoine Pitrou
6d7df63837
Issue #9950 : Fix socket.sendall() crash or misbehaviour when a signal is
...
received. Now sendall() properly calls signal handlers if necessary,
and retries sending if these returned successfully, including on sockets
with a timeout.
2010-09-27 17:52:25 +00:00
Vinay Sajip
9fdd11b3b6
Issue #9947 : logging: Fixed locking bug in stopListening.
2010-09-25 17:48:25 +00:00
Vinay Sajip
32fb6a81f9
Issue #9945 : logging: Fixed locking bugs in addHandler/removeHandler.
2010-09-25 17:42:36 +00:00
Benjamin Peterson
aa7fbd9564
revert r85003, poorly considered; breaks tests
2010-09-25 03:25:42 +00:00
Benjamin Peterson
81437c9025
don't count keyword arguments as positional #9943
2010-09-25 03:14:33 +00:00
Alexander Belopolsky
ff09ce211f
Issue #9936 : Fixed executable lines' search in the trace module.
2010-09-24 18:03:12 +00:00
Brian Curtin
0dac808b3e
Fix #9790 : Rework the imports necessary for ntpath.samefile and
...
ntpath.sameopenfile.
2010-09-23 20:38:14 +00:00
Mark Dickinson
b09a3d69a6
Issue #9930 : Remove an unnecessary type check in wrap_binaryfunc_r;
...
this was causing reversed method calls like float.__radd__(3.0, 1) to
return NotImplemented instead of the expected numeric value.
2010-09-23 20:11:19 +00:00
Brian Curtin
e8e4b3bfd6
#9808 . Implement os.getlogin for Windows, completed by Jon Anglin.
...
The test is semi-dumb, it just makes sure something comes back since we
don't have a solid source to validate the returned login. We can't be 100%
sure that the USERNAME env var will always match what os.getlogin() returns,
so we don't make any specific assertion there.
2010-09-23 20:04:14 +00:00
Antoine Pitrou
70c6044913
Issue #9928 : Properly initialize the types exported by the bz2 module.
2010-09-23 19:51:39 +00:00
Antoine Pitrou
7b9698435d
Issue #1675951 : Allow GzipFile to work with unseekable file objects.
...
Patch by Florian Festi.
2010-09-23 16:22:51 +00:00
Vinay Sajip
0637d493e9
logging: added QueueListener and documentation.
2010-09-23 08:15:54 +00:00
Barry Warsaw
31c604d3a7
Issue 9916: Add some missing errno symbols.
2010-09-22 20:58:04 +00:00
Benjamin Peterson
0dc97ed18d
fix news
2010-09-21 21:28:47 +00:00
Hirokazu Yamamoto
2f816e6a10
Issue #9552 : Avoid unnecessary rebuild of OpenSSL. (Windows)
2010-09-21 18:23:05 +00:00
Antoine Pitrou
38425292fb
Issue #9908 : Fix os.stat() on bytes paths under Windows 7.
2010-09-21 18:19:07 +00:00
Antoine Pitrou
b3bfc3d88b
Issue #9899 : Fix test_tkinter.test_font on various platforms. Patch by
...
Ned Deily.
2010-09-21 16:26:09 +00:00
Antoine Pitrou
52d42503d5
Issue #2643 : msync() is not called anymore when deallocating an open mmap
...
object, only munmap().
2010-09-21 16:08:27 +00:00
Hirokazu Yamamoto
e31f7d9e2e
Revert r84902 before committing better solution.
2010-09-21 16:05:47 +00:00
Antoine Pitrou
f6350d2654
Issue #1633863 : Don't ignore $CC under AIX.
2010-09-21 15:19:14 +00:00
Brian Quinlan
af38dc5b0c
Add an entry for the concurrent.futures package
2010-09-21 12:28:43 +00:00
Vinay Sajip
212b590e11
logging: Updated LoggerAdapter implementation.
2010-09-21 11:31:32 +00:00
Vinay Sajip
c84f016988
Added some methods to LoggerAdapter, and updated documentation.
2010-09-21 11:25:39 +00:00
Benjamin Peterson
d4efd9eb15
add column offset to all syntax errors
2010-09-20 23:02:10 +00:00
Benjamin Peterson
2bc5c0be01
add news note
2010-09-20 23:01:33 +00:00
Antoine Pitrou
b0b384b7c0
Issue #9901 : Destroying the GIL in Py_Finalize() can fail if some other
...
threads are still running. Instead, reinitialize the GIL on a second
call to Py_Initialize().
2010-09-20 20:13:48 +00:00
Barry Warsaw
ebbef6fef2
Issue 9877: expose sysconfig.get_makefile_filename() in the public API.
2010-09-20 15:29:53 +00:00
Vinay Sajip
83eadd1488
logging: hasHandlers additions documented.
2010-09-20 10:31:18 +00:00
Brett Cannon
bc2eff3112
PyImport_Import was using the old import hack of sticking a dummy value into
...
fromlist to get __import__ to return the module desired. Now it uses the proper
approach of fetching the module from sys.modules.
Closes issue #9252 . Thanks to Alexander Belopolsky for the bug report.
2010-09-19 21:39:02 +00:00
Hirokazu Yamamoto
ba45c2b6a7
Issue #9552 : Avoid unnecessary rebuild of OpenSSL. (Windows)
2010-09-19 09:24:20 +00:00
Florent Xicluna
eb19dce085
Issue #1686 : Fix string.Template when overriding the pattern attribute.
2010-09-18 23:34:07 +00:00
Antoine Pitrou
98b46702d2
Issue #9854 : SocketIO objects now observe the RawIOBase interface in
...
non-blocking mode: they return None when an operation would block (instead
of raising an exception).
2010-09-18 22:59:00 +00:00
Antoine Pitrou
679e0f2328
Issue #9894 : Do not hardcode ENOENT in test_subprocess.
...
(GNU/Hurd is not dead)
2010-09-18 17:56:02 +00:00
Victor Stinner
e797c16f84
Issue #767645 : Set os.path.supports_unicode_filenames to True in posixpath
...
Previous commit changed macpath but macpath is not used anymore as os.path
2010-09-17 23:34:26 +00:00
Amaury Forgeot d'Arc
d61d077bf5
#1730136 : Fix comparison between a tk Font object and an object of a different type.
2010-09-17 23:27:09 +00:00
Vinay Sajip
19ec67acf6
Issue #9441 : logging: Improved test coverage for rotating file handlers.
2010-09-17 18:57:36 +00:00
Raymond Hettinger
35c87f2b8e
Issue 9865: add __sizeof__ to OrderedDict.
2010-09-16 19:10:17 +00:00
Hirokazu Yamamoto
234f88dc73
Issue #9810 : Compile bzip2 source files in python's project file
...
directly. It used to be built with bzip2's makefile.
2010-09-16 17:50:57 +00:00
Brett Cannon
b82489dd7f
setup.py was trying to build _weakref which is redundant as it's a built-in
...
module.
Closes issue #9848 . Thanks to Arfrever Frehtes Taifersar Arahesis for the bug
report.
2010-09-14 19:41:23 +00:00
Antoine Pitrou
328ec7455f
Issue #9854 : The default read() implementation in io.RawIOBase now
...
handles non-blocking readinto() returning None correctly.
2010-09-14 18:37:24 +00:00
Antoine Pitrou
9e0b864ac0
Issue #1552 : socket.socketpair() now returns regular socket.socket
...
objects supporting the whole socket API (rather than the "raw"
_socket.socket objects).
2010-09-14 18:00:02 +00:00
Antoine Pitrou
a468adc76d
Issue #9853 : Fix the signature of SSLSocket.recvfrom() and
...
SSLSocket.sendto() to match the corresponding socket methods.
2010-09-14 14:43:44 +00:00
Raymond Hettinger
98a5f3f838
Issue 9840: Add reprlib.recursive_repr(), a decorator for handling recursive calls to __repr__ methods.
2010-09-13 21:36:00 +00:00
Daniel Stutzbach
9f0cbf1c72
Issue #9213 : Add index and count methods to range objects, needed to
...
meet the API of the collections.Sequence ABC.
2010-09-13 21:16:29 +00:00
Eric Smith
e4d6317c87
Issue 7994: Make object.__format__() raise a PendingDeprecationWarning
...
if the format string is not empty. Manually merge r79596 and r84772
from 2.x.
Also, apparently test_format() from test_builtin never made it into
3.x. I've added it as well. It tests the basic format()
infrastructure.
2010-09-13 20:48:43 +00:00
Vinay Sajip
af9d10aa30
logging: enhanced HTTPHandler
2010-09-13 20:40:30 +00:00
Victor Stinner
ccb706cf0a
Issue #767645 : Set os.path.supports_unicode_filenames to True on Mac OS X
...
(macpath module).
2010-09-13 19:41:36 +00:00
Alexander Belopolsky
4d7701729c
Issue #9315 : Fix for the trace module to record correct class name
...
when tracing methods. Unit tests. Patch by Eli Bendersky.
2010-09-13 18:14:34 +00:00
Florent Xicluna
dc69e7217a
Make test.regrtest.__file__ absolute, this was not always the case when running profile or trace, for example. (issue #9323 )
2010-09-13 16:35:02 +00:00
Antoine Pitrou
1df1536fb9
Issue #9828 : Destroy the GIL in Py_Finalize(), so that it gets properly
...
re-created on a subsequent call to Py_Initialize(). The problem (a crash)
wouldn't appear in 3.1 or 2.7 where the GIL's structure is more trivial.
2010-09-13 14:16:46 +00:00
Amaury Forgeot d'Arc
feb7307db4
#9210 : remove --with-wctype-functions configure option.
...
The internal unicode database is now always used.
(after 5 years: see
http://mail.python.org/pipermail/python-dev/2004-December/050193.html
)
2010-09-12 22:42:57 +00:00
Georg Brandl
b084b48cec
9806: add --extension-suffix option to python-config.
2010-09-12 17:14:26 +00:00
Matthias Klose
62d52fd966
- Issue #9817 : Add expat COPYING file; add expat, libffi and expat licenses
...
to Doc/license.rst.
2010-09-12 16:31:58 +00:00
Antoine Pitrou
6464d5ffdc
Issue #9837 : The read() method of ZipExtFile objects (as returned by
...
ZipFile.open()) could return more bytes than requested.
2010-09-12 14:51:20 +00:00
Raymond Hettinger
dc08a143e0
Issue #9826 : Handle recursive repr in collections.OrderedDict.
2010-09-12 05:15:22 +00:00
Raymond Hettinger
fa11db0a02
Issue #9825 : Replace OrderedDict.__del__() with weakrefs.
2010-09-12 04:12:42 +00:00
Benjamin Peterson
568867a6f2
check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834
2010-09-11 16:02:03 +00:00
Victor Stinner
1205f2774e
Issue #9738 : PyUnicode_FromFormat() and PyErr_Format() raise an error on
...
a non-ASCII byte in the format string.
Document also the encoding.
2010-09-11 00:54:47 +00:00
Victor Stinner
6f7b783cde
Issue #9579 , #9580 : Oops, add the author of the patch
2010-09-10 23:50:31 +00:00
Victor Stinner
cb04352e8c
Issue #9579 , #9580 : Fix os.confstr() for value longer than 255 bytes and encode
...
the value with filesystem encoding and surrogateescape (instead of utf-8 in
strict mode).
2010-09-10 23:49:04 +00:00
Victor Stinner
5b519e0201
Issue #9632 : Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING
...
environment variable to set the filesystem encoding at Python startup.
sys.setfilesystemencoding() creates inconsistencies because it is unable to
reencode all filenames in all objects.
2010-09-10 21:57:59 +00:00
Amaury Forgeot d'Arc
ba117ef7e9
#4617 : Previously it was illegal to delete a name from the local
...
namespace if it occurs as a free variable in a nested block. This limitation
of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF).
This sample was valid in 2.6, but fails to compile in 3.x without this change::
>>> def f():
... def print_error():
... print(e)
... try:
... something
... except Exception as e:
... print_error()
... # implicit "del e" here
This sample has always been invalid in Python, and now works::
>>> def outer(x):
... def inner():
... return x
... inner()
... del x
There is no need to bump the PYC magic number: the new opcode is used
for code that did not compile before.
2010-09-10 21:39:53 +00:00
Antoine Pitrou
8e6b407d6f
Issue #941346 : Improve the build process under AIX and allow Python to
...
be built as a shared library. Patch by Sébastien Sablé.
2010-09-10 19:44:44 +00:00
Antoine Pitrou
e4a189274f
Issue #9804 : ascii() now always represents unicode surrogate pairs as
...
a single `\UXXXXXXXX`, regardless of whether the character is printable
or not. Also, the "backslashreplace" error handler now joins surrogate
pairs into a single character on UCS-2 builds.
2010-09-09 20:30:23 +00:00
Antoine Pitrou
ea99c5c949
Issue #9410 : Various optimizations to the pickle module, leading to
...
speedups up to 4x (depending on the benchmark). Mostly ported from
Unladen Swallow; initial patch by Alexandre Vassalotti.
2010-09-09 18:33:21 +00:00
Antoine Pitrou
6e6cc830c4
Issue #9757 : memoryview objects get a release() method to release the
...
underlying buffer (previously this was only done when deallocating the
memoryview), and gain support for the context management protocol.
2010-09-09 12:59:39 +00:00
Raymond Hettinger
bad3c88094
Have pprint() respect the order in an OrderedDict.
2010-09-09 12:31:00 +00:00
Antoine Pitrou
b41e128fe1
Issue #9188 : The gdb extension now handles correctly narrow (UCS2) as well
...
as wide (UCS4) unicode builds for both the host interpreter (embedded
inside gdb) and the interpreter under test.
2010-09-08 20:57:48 +00:00
Antoine Pitrou
079ce54efe
Issue #9797 : pystate.c wrongly assumed that zero couldn't be a valid
...
thread-local storage key.
2010-09-08 12:37:10 +00:00
Vinay Sajip
121a1c4e11
logging: Added QueueHandler.
2010-09-08 10:46:15 +00:00
Antoine Pitrou
783eea722b
Issue #9707 : Rewritten reference implementation of threading.local which
...
is friendlier towards reference cycles. This change is not normally
visible since an optimized C implementation (_thread._local) is used
instead.
2010-09-07 22:06:17 +00:00
Amaury Forgeot d'Arc
4b6fdf3852
#6394 : Add os.getppid() support for Windows.
2010-09-07 21:31:17 +00:00
Antoine Pitrou
4b92b5fad3
Issue #9792 : In case of connection failure, socket.create_connection()
...
would swallow the exception and raise a new one, making it impossible
to fetch the original errno, or to filter timeout errors. Now the
original error is re-raised.
2010-09-07 21:05:49 +00:00
Antoine Pitrou
5e38aae91b
Issue #9758 : When fcntl.ioctl() was called with mutable_flag set to True,
...
and the passed buffer was exactly 1024 bytes long, the buffer wouldn't
be updated back after the system call. Original patch by Brian Brazil.
2010-09-07 16:30:09 +00:00
Antoine Pitrou
a300007c6e
Issue #4026 : Make the fcntl extension build under AIX.
...
Patch by Sébastien Sablé.
2010-09-07 14:52:42 +00:00
Raymond Hettinger
0515661314
Issues #7889 , #9025 and #9379 : Improvements to the random module.
2010-09-07 04:44:52 +00:00
Raymond Hettinger
f763a728ad
Document which part of the random module module are guaranteed.
2010-09-07 00:38:15 +00:00
Raymond Hettinger
435cb0f233
Document which part of the random module module are guaranteed.
2010-09-06 23:36:31 +00:00
Raymond Hettinger
f45abc97bf
Add method to OrderedDict for repositioning keys to the ends.
2010-09-06 21:26:09 +00:00
Antoine Pitrou
4bc12ef47d
Issue #9754 : Similarly to assertRaises and assertRaisesRegexp, unittest
...
test cases now also have assertWarns and assertWarnsRegexp methods to
check that a given warning type was triggered by the code under test.
2010-09-06 19:25:46 +00:00
Antoine Pitrou
972ee13e03
Issue #5506 : BytesIO objects now have a getbuffer() method exporting a
...
view of their contents without duplicating them. The view is both readable
and writable.
2010-09-06 18:48:21 +00:00
Brian Curtin
6285774f06
Implement #7566 - os.path.sameopenfile for Windows.
...
This uses the GetFileInformationByHandle function to return a tuple of values
to identify a file, then ntpath.sameopenfile compares file tuples, which
is exposed as os.path.sameopenfile.
2010-09-06 17:07:27 +00:00
Gregory P. Smith
13b55291ac
hashlib has two new constant attributes: algorithms_guaranteed and
...
algorithms_avaiable that respectively list the names of hash algorithms
guaranteed to exist in all Python implementations and the names of hash
algorithms available in the current process.
Renames the attribute new in 3.2a0 'algorithms' to 'algorithms_guaranteed'.
2010-09-06 08:30:23 +00:00
Antoine Pitrou
0d739d7047
Issue #9293 : I/O streams now raise `io.UnsupportedOperation` when an
...
unsupported operation is attempted (for example, writing to a file open
only for reading).
2010-09-05 23:01:12 +00:00
Georg Brandl
bad092556e
Post-release update.
2010-09-05 21:29:17 +00:00
Georg Brandl
65ce6ada7f
Fix reST in NEWS, and remove NEWS.help (all committers should now know reST anyway, and for those who do not, there is Documenting Python.)
2010-09-05 17:32:31 +00:00
Georg Brandl
649971e63b
Rewrap.
2010-09-05 17:06:50 +00:00
Georg Brandl
58a7b46075
Bump to 3.2a2.
2010-09-05 08:30:40 +00:00
Raymond Hettinger
4c7c9af542
Clean-up functools.total_ordering().
2010-09-05 05:57:35 +00:00
Raymond Hettinger
46462f3fb3
Typo
2010-09-05 00:36:26 +00:00
Antoine Pitrou
0049249d63
Issue #8734 : Avoid crash in msvcrt.get_osfhandle() when an invalid file
...
descriptor is provided. Patch by Pascal Chambon.
2010-09-04 20:53:29 +00:00
Antoine Pitrou
7d6e076f6d
Issue #7451 : Improve decoding performance of JSON objects, and reduce
...
the memory consumption of said decoded objects when they use the same
strings as keys.
2010-09-04 20:16:53 +00:00
Antoine Pitrou
74a69fa662
Issue #9225 : Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
...
by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but
our bytecode is a bit simplified. Patch by Demur Rumed.
2010-09-04 18:43:52 +00:00
Brett Cannon
ef0e6c3b04
_warnings exposed two variables with the name 'default_action' and
...
'once_registry'. This is bad as the warnings module had variables named
'defaultaction' and 'onceregistry' which are what people should be looking at
(technically those variables shouldn't be mucked with as they are undocumented,
but we all know better than to believe that isn't happening). So the variables
from _warnings have been renamed to come off as private and to avoid confusion
over what variable should be used.
Closes issue #9766 . Thanks to Antoine Pitrou for the discovery.
2010-09-04 18:24:04 +00:00
Antoine Pitrou
3941a8fece
Issue #1100562 : Fix deep-copying of objects derived from the list and dict types.
...
Patch by Michele Orrù and Björn Lindqvist.
2010-09-04 17:40:21 +00:00
Antoine Pitrou
d3ccde8a21
Issue #7736 : Release the GIL around calls to opendir() and closedir()
...
in the posix module. Patch by Marcin Bachry.
2010-09-04 17:21:57 +00:00
Martin v. Löwis
a5e3109154
Issue #1303434 : Include PDBs in release.
...
Patch by James Lee and Daniel Stutzbach.
2010-09-04 14:38:09 +00:00
Fred Drake
cc645b9a59
add consistent support for the vars and default arguments on all
...
configuration parser classes
(http://bugs.python.org/issue9421 )
2010-09-04 04:35:34 +00:00
Barry Warsaw
aa44b2b5ca
NEWS for PEP 3149, and clean up a few other entries.
2010-09-03 18:36:11 +00:00
Antoine Pitrou
8b358e55db
Fix NEWS entry.
2010-09-03 16:12:14 +00:00
Daniel Stutzbach
6c765284a3
Fix Issue9753: socket.dup() does not always work right on Windows
2010-09-03 12:38:33 +00:00
Fred Drake
8844441ae6
fix output from RawConfigParser.write and ConfigParser.write for None
...
values (http://bugs.python.org/issue7005 )
(merged r84443 from the release27-mmaint branch, with changes to reflect
changes in Python 3)
2010-09-03 04:22:36 +00:00
Daniel Stutzbach
19e5a6fb4a
Credit where credit is due
2010-09-02 15:13:35 +00:00
Daniel Stutzbach
045b3ba184
Issue #9212 : Added the missing isdisjoint method to the dict_keys and
...
dict_items views. The method is required by the collections.Set ABC,
which the views register as supporting.
2010-09-02 15:06:06 +00:00
Antoine Pitrou
e0793ba992
Issue #9737 : Fix a crash when trying to delete a slice or an item from
...
a memoryview object.
2010-09-01 21:14:16 +00:00
Antoine Pitrou
1ce3eb5c5b
Issue #8990 : array.fromstring() and array.tostring() get renamed to
...
frombytes() and tobytes(), respectively, to avoid confusion. Furthermore,
array.frombytes(), array.extend() as well as the array.array()
constructor now accept bytearray objects. Patch by Thomas Jollans.
2010-09-01 20:29:34 +00:00
Antoine Pitrou
fce7fd6426
Issue #9549 : sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
...
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
2010-09-01 18:54:56 +00:00
Antoine Pitrou
b0fa831d1e
Issue #7415 : PyUnicode_FromEncodedObject() now uses the new buffer API
...
properly. Patch by Stefan Behnel.
2010-09-01 15:10:12 +00:00
Antoine Pitrou
f68c2a701b
Issue #3101 : Helper functions _add_one_to_C() and _add_one_to_F() become
...
_Py_add_one_to_C() and _Py_add_one_to_F(), respectively.
2010-09-01 12:58:21 +00:00
Daniel Stutzbach
19d6a4fd49
Issue #808164 : Fixed socket.close to avoid references to globals, to
...
avoid issues when socket.close is called from a __del__ method.
2010-08-31 20:08:07 +00:00
Daniel Stutzbach
a606faa491
Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers other than MSC
2010-08-31 19:51:07 +00:00
Antoine Pitrou
33a299428d
Issue #9700 : define HAVE_BROKEN_POSIX_SEMAPHORES under AIX 6.x. Patch by
...
Sébastien Sablé.
2010-08-30 14:52:00 +00:00
Benjamin Peterson
33856de84d
handle names starting with non-ascii characters correctly #9712
2010-08-30 14:41:20 +00:00
Giampaolo Rodolà
51078b1e5d
update Misc/NEWS to include issue #9706 changes
2010-08-29 19:31:49 +00:00
Antoine Pitrou
67c7ce4bef
Issue #4835 : make PyLong_FromSocket_t() and PyLong_AsSocket_t() private
...
to the socket module, and fix the width of socket descriptors to be
correctly detected under 64-bit Windows.
2010-08-28 20:42:55 +00:00
Antoine Pitrou
1a9a9d5433
Issue #1868 : Eliminate subtle timing issues in thread-local objects by
...
getting rid of the cached copy of thread-local attribute dictionary.
2010-08-28 18:17:03 +00:00
Mark Dickinson
64a38c0eb5
Issue #1512791 : In setframerate method of Wave_write, round non-integral
...
inputs to the nearest integer. Thanks Neil Tallim for the patch.
2010-08-28 17:22:16 +00:00
Senthil Kumaran
4bb5c273c6
Fix Issue8797 - Reset the basic auth retry count when response code is not 401.
2010-08-26 06:16:22 +00:00
Benjamin Peterson
0e10206f2c
basicsize and itemsize are Py_ssize_t #9688
2010-08-25 23:13:17 +00:00
Daniel Stutzbach
864078a5dd
Issue 8781: Define SIZEOF_WCHAR_T on Windows
2010-08-25 19:18:59 +00:00
Martin v. Löwis
112c0f3411
Issue #1027206 : getnameinfo is now restricted to numeric addresses as input.
2010-08-25 07:38:15 +00:00
R. David Murray
219d1c8ae3
#1194222 : make parsedate always return RFC2822 four character years.
...
Two character years are now converted to four character years using
the Posix standard rule (<68 == 2000, >=68==1900). This makes the
parsed date RFC2822 compliant even if the input is not.
Patch and test by Jeffrey Finkelstein.
2010-08-25 00:45:55 +00:00
Benjamin Peterson
f52c2c63cd
further clarify
2010-08-24 21:03:37 +00:00
Daniel Stutzbach
31da5b2f69
Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x
2010-08-24 20:49:57 +00:00
Benjamin Peterson
17689991e6
only catch AttributeError in hasattr() #9666
2010-08-24 03:26:23 +00:00
Giampaolo Rodolà
9cf5ef4cc0
fix issue 9129: adds proper error handling on accept() when smtpd accepts new incoming connections.
2010-08-23 22:28:13 +00:00
Giampaolo Rodolà
bbc4782d77
fix issue 9601: ftplib now provides a workaround for invalid response code returned on MKD and PWD by non-compliant FTPserver implementations such as ISS shipped with Windows server 2003
2010-08-23 22:10:32 +00:00
Giampaolo Rodolà
76fc8c7098
fix issue 658749: correctly interprets asyncore's windows errors on connect()
2010-08-23 21:53:41 +00:00
Vinay Sajip
de6e9d615d
Issue #9501 : Fixed logging regressions in cleanup code.
2010-08-23 17:50:30 +00:00
Benjamin Peterson
06b8b10090
news note for last change
2010-08-23 17:47:43 +00:00
Brett Cannon
ee6d64773b
One of the joys of having test_multiprocessing occasionally execute after
...
test_importlib is that it discovers special little race conditions. For
instance, it turns out that importlib would throw an exception if two different
Python processes both tried to create the __pycache__ directory as one process
would succeed, causing the other process to fail as it didn't expect to get any
"help". So now importlib simply stays calm and just accepts someone else did
the work of creating the __pycache__ directory for it, moving on with life.
Closes issue #9572 .
2010-08-22 22:19:11 +00:00
Martin v. Löwis
56773cf0d2
Mention that gethostbyaddr now also supports IDNA.
2010-08-22 19:38:04 +00:00
Martin v. Löwis
fc0275a14a
Issue #1027206 : Support IDNA in gethostbyname, gethostbyname_ex and
...
getaddrinfo. Patch by David Watson.
2010-08-22 19:33:47 +00:00
Raymond Hettinger
9117c75148
Issue #9214 : Fix set operations on KeysView and ItemsView.
2010-08-22 07:44:24 +00:00
Antoine Pitrou
b46b9d59ef
Issue #9617 : Signals received during a low-level write operation aren't
...
ignored by the buffered IO layer anymore.
2010-08-21 19:09:32 +00:00
Giampaolo Rodolà
5fe9cd53b2
revert changes made in r84236 committed by accident
2010-08-21 18:47:59 +00:00
Giampaolo Rodolà
5c8c9a2c33
fix issue #9129 : added proper error handling when accepting new connections in SMTPServer.handle_accept
2010-08-21 18:35:05 +00:00
Benjamin Peterson
23110e7361
alias macintosh to mac_roman #843590
2010-08-21 02:54:44 +00:00
Martin v. Löwis
5ea823cf55
Decode NIS data to fs encoding, using the surrogate error handler.
2010-08-19 09:11:51 +00:00
Victor Stinner
e8d5145e18
Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
...
error handler, or strict error handler on Windows.
* Rewrite os.fsencode() documentation
* Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING
environment variable
2010-08-19 01:05:19 +00:00
Andrew M. Kuchling
4ea04a306f
#7647 : add ST_RDONLY, ST_NOSUID constants to os module.
...
(Also fix a name ordering in the ACKS file.)
2010-08-18 22:30:34 +00:00
Victor Stinner
94908bbc15
Issue #8622 : Add PYTHONFSENCODING environment variable to override the
...
filesystem encoding.
initfsencoding() displays also a better error message if get_codeset() failed.
2010-08-18 21:23:25 +00:00
Antoine Pitrou
b85e165635
Issue #5737 : Add Solaris-specific mnemonics in the errno module. Patch by
...
Matthew Ahrens.
2010-08-18 21:05:19 +00:00
Amaury Forgeot d'Arc
324ac65ceb
#5127 : Even on narrow unicode builds, the C functions that access the Unicode
...
Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept
and return characters from the full Unicode range (Py_UCS4).
The differences from Python code are few:
- unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit()
now return the correct value for large code points
- repr() may consider more characters as printable.
2010-08-18 20:44:58 +00:00
Martin v. Löwis
dfaf9ec93a
Restore GIL in nis_cat in case of error.
2010-08-18 16:12:23 +00:00
Victor Stinner
6c00c1464f
Issue #9425 : Create PyModule_GetFilenameObject() function
...
... to get the filename as a unicode object, instead of a byte string. Function
needed to support unencodable filenames. Deprecate PyModule_GetFilename() in
favor on the new function.
2010-08-17 23:37:11 +00:00
Victor Stinner
6961bd690e
Issue #8063 : Call _PyGILState_Init() earlier in Py_InitializeEx().
2010-08-17 22:26:51 +00:00
Antoine Pitrou
79c5ef11d5
Issue #3488 : Provide convenient shorthand functions `gzip.compress`
...
and `gzip.decompress`. Original patch by Anand B. Pillai.
2010-08-17 21:10:05 +00:00
Antoine Pitrou
671b4d948e
Issue #9612 : The set object is now 64-bit clean under Windows.
2010-08-17 17:55:07 +00:00
Giampaolo Rodolà
42382fedcc
fix issue #8807 : adds a context parameter to POP3_SSL class.
2010-08-17 16:09:53 +00:00
Giampaolo Rodolà
ccfb91c89f
fix issue #8866 : parameters passed to socket.getaddrinfo can now be specified as single keyword arguments.
2010-08-17 15:30:23 +00:00
Nick Coghlan
d26c18adcc
Issue #8202 : Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory
2010-08-17 13:06:11 +00:00
Nick Coghlan
09c8123e6f
Address XXX comment in dis.py: inspect.py now attempts to reuse the dis.py compiler flag values before resorting to defining its own
2010-08-17 10:18:16 +00:00
Nick Coghlan
eae2da1da7
Issue 9147: Add dis.code_info()
2010-08-17 08:03:36 +00:00
Nick Coghlan
9887683f74
Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper)
2010-08-17 06:17:18 +00:00
Nick Coghlan
632a0c1476
Remove some lingering remnants of the short-lived functools.lfu_cache
2010-08-17 05:22:50 +00:00
Benjamin Peterson
45c257f193
add support for abstract class and static methods #5867
2010-08-17 00:52:52 +00:00
Alexander Belopolsky
e29e6bffb5
Issue #665761 : functools.reduce() will no longer mask exceptions other
...
than TypeError raised by the iterator argument. Also added a test to
check that zip() already behaves similarly.
2010-08-16 18:55:46 +00:00
Victor Stinner
79766636b6
Issue #9599 : Create PySys_FormatStdout() and PySys_FormatStderr()
...
Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and
sys.stderr.
2010-08-16 17:36:42 +00:00
Martin v. Löwis
907229af87
Don't run pgen twice when using make -j.
2010-08-15 15:47:25 +00:00
Victor Stinner
d17f219759
Oops, fix a typo in NEWS: surrogateespace => surrogateescape
2010-08-15 09:56:07 +00:00
Victor Stinner
e039ffe41d
Issue #9605 : posix.getlogin() decodes the username with file filesystem
...
encoding and surrogateescape error handler. Patch written by David Watson.
Reindent also posix_getlogin(), and fix a typo in the NEWS file.
2010-08-15 09:33:08 +00:00
Victor Stinner
61ec5dca2b
Issue #9604 : posix.initgroups() encodes the username using the fileystem
...
encoding and surrogateescape error handler. Patch written by David Watson.
2010-08-15 09:22:44 +00:00
Victor Stinner
5fe6de8c72
Issue #9603 : posix.ttyname() and posix.ctermid() decode the terminal name
...
using the filesystem encoding and surrogateescape error handler. Patch
written by David Watson.
2010-08-15 09:12:51 +00:00
Florent Xicluna
09245d8682
List Misc/python-config.in in Misc/README. Fix few typos.
2010-08-14 16:56:27 +00:00
Giampaolo Rodolà
419f704d76
fix issue #8857 : provide a test case for socket.getaddrinfo
2010-08-14 16:45:41 +00:00
Georg Brandl
cc5943d36b
Fix format.
2010-08-14 15:57:20 +00:00
Georg Brandl
9427dcfc31
Typo fix.
2010-08-14 15:46:59 +00:00
Éric Araujo
a85e2175bb
Manually merge r83995: Fix version{added,changed} and spacing in NEWS
2010-08-14 03:59:54 +00:00
Éric Araujo
da668ff24f
Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688 .
2010-08-14 02:30:34 +00:00
Victor Stinner
47fcb5b4c3
Issue #9542 : Create PyUnicode_FSDecoder() function
...
It's a ParseTuple converter: decode bytes objects to unicode using
PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.
* Don't specify surrogateescape error handler in the comments nor the
documentation, but PyUnicode_DecodeFSDefaultAndSize() and
PyUnicode_EncodeFSDefault() because these functions use strict error handler
for the mbcs encoding (on Windows).
* Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid
inconsistency with unicodeobject.h.
2010-08-13 23:59:58 +00:00
Antoine Pitrou
042b128f58
Issue #9203 : Computed gotos are now enabled by default on supported
...
compilers (which are detected by the configure script). They can still
be disable selectively by specifying --without-computed-gotos.
2010-08-13 21:15:58 +00:00
Antoine Pitrou
3060c4573f
Reapply r83877.
2010-08-13 16:27:38 +00:00
Victor Stinner
4a2b7a1b14
Issue #9425 : Create PyErr_WarnFormat() function
...
Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning
message.
Strip also some trailing spaces.
2010-08-13 14:03:48 +00:00
Antoine Pitrou
3e2eab19b9
Typo.
2010-08-12 15:15:01 +00:00