summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
Commit message (Collapse)AuthorAgeFilesLines
* Issue 6507: accept source strings directly in dis.dis(). Original patch by ↵Nick Coghlan2010-07-031-0/+2
| | | | Daniel Urban
* Some people have mistaken Python bytecode as being stable and unchanging. InBrett Cannon2010-07-021-0/+3
| | | | | | | | reality it's simply an implementation detail for CPython. This point is now clearly documented in both the docs for dis and the glossary. Closes issue #7829. Thanks to Terry Reedy for some initial suggestions on wording.
* fix lookup of __ceil__Benjamin Peterson2010-07-021-2/+2
|
* correctly lookup __trunc__ and __floor__Benjamin Peterson2010-07-011-0/+3
|
* Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.Ezio Melotti2010-07-011-0/+8
| | | | | | | | | | | | | 1) #8271: when a byte sequence is invalid, only the start byte and all the valid continuation bytes are now replaced by U+FFFD, instead of replacing the number of bytes specified by the start byte. See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (pages 94-95); 2) 5- and 6-bytes-long UTF-8 sequences are now considered invalid (no changes in behavior); 3) Change the error messages "unexpected code byte" to "invalid start byte" and "invalid data" to "invalid continuation byte"; 4) Add an extensive set of tests in test_unicode; 5) Fix test_codeccallbacks because it was failing after this change.
* Merged revisions 82404 via svnmerge fromGiampaolo Rodolà2010-06-301-0/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82404 | giampaolo.rodola | 2010-06-30 19:38:28 +0200 (mer, 30 giu 2010) | 1 line fix issue #6589: cleanup asyncore.socket_map if smtpd.SMTPServer constructor raises an exception ........
* Issue 9110. Adding ContextDecorator to contextlib. This enables the creation ↵Michael Foord2010-06-301-0/+4
| | | | of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator.
* Issue #9011: Tests for Python 3.2's treatment of negated imaginary literals.Mark Dickinson2010-06-301-0/+4
|
* Implement importlib.abc.SourceLoader and deprecate PyLoader and PyPycLoader.Brett Cannon2010-06-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | SourceLoader is a simplification of both PyLoader and PyPycLoader. If one only wants to use source, then they need to only implement get_data and get_filename. To also use bytecode -- sourceless loading is not supported -- then two abstract methods -- path_mtime and set_data -- need to be implemented. Compared to PyLoader and PyPycLoader, there are less abstract methods introduced and bytecode files become an optimization controlled by the ABC and hidden from the user (this need came about as PEP 3147 showed that not treating bytecode as an optimization can cause problems for compatibility). PyLoader is deprecated in favor of SourceLoader. To be compatible from Python 3.1 onwards, a subclass need only use simple methods for source_path and is_package. Otherwise conditional subclassing based on whether Python 3.1 or Python 3.2 is being is the only change. The documentation and docstring for PyLoader explain what is exactly needed. PyPycLoader is deprecated also in favor of SourceLoader. Because PEP 3147 shifted bytecode path details so much, there is no foolproof way to provide backwards-compatibility with SourceLoader. Because of this the class is simply deprecated and users should move to SourceLoader (and optionally PyLoader for Python 3.1). This does lead to a loss of support for sourceless loading unfortunately. At some point before Python 3.2 is released, SourceLoader will be moved over to importlib._bootstrap so that the core code of importlib relies on the new code instead of the old PyPycLoader code. This commit is being done now so that there is no issue in having the API in Python 3.1a1.
* Revert r82259; still no good way to override instead of replace OPT, but ↵Brett Cannon2010-06-271-2/+0
| | | | changing order alters pydebug optimization flags.
* #9064: accept number of frames for "up" and "down" commands in pdb.Georg Brandl2010-06-271-0/+2
|
* Having CFLAGS come before OPT prevents silencing certain classes of warningsBrett Cannon2010-06-261-0/+2
| | | | | | | from the fact that OPT contains -Wall be default. This is annoying when compilers like clang have thorough debugging information about things that Python does extensively (e.g. -Wunused-value for unused return values caused by a macro use).
* only take into account positional arguments count in related error messagesBenjamin Peterson2010-06-251-0/+2
|
* #9018: os.path.normcase() now raises a TypeError if the argument is not str ↵Ezio Melotti2010-06-251-0/+3
| | | | or bytes.
* Merged revisions 82210 via svnmerge fromAntoine Pitrou2010-06-251-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82210 | antoine.pitrou | 2010-06-25 02:03:21 +0200 (ven., 25 juin 2010) | 4 lines Issue #9075: In the ssl module, remove the setting of a `debug` flag on an OpenSSL structure. ........
* Issue #8850: Remove "w" and "w#" formats from PyArg_Parse*() functions, useVictor Stinner2010-06-251-0/+3
| | | | "w*" format instead. Add tests for "w*" format.
* Issue #8682: The ssl module now temporary increments the reference count ofAntoine Pitrou2010-06-241-0/+4
| | | | | a socket object got through `PyWeakref_GetObject`, so as to avoid possible deallocation while the object is still being used.
* Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytesVictor Stinner2010-06-241-0/+3
| | | | objects, as described in the documentation.
* Merged revisions 82157 via svnmerge fromBenjamin Peterson2010-06-221-0/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82157 | benjamin.peterson | 2010-06-22 14:16:37 -0500 (Tue, 22 Jun 2010) | 1 line remove INT_MAX assertions; they can fail with large Py_ssize_t #9058 ........
* Merged revisions 82130 via svnmerge fromBenjamin Peterson2010-06-211-0/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82130 | benjamin.peterson | 2010-06-21 10:27:46 -0500 (Mon, 21 Jun 2010) | 1 line fix finding visual studio 2008 on 64 bit #8854 ........
* Issue #9005: Prevent utctimetuple() from producing year 0 or year 10,000.Alexander Belopolsky2010-06-211-0/+5
|
* Revert r82089. Commit was intended for a branch.Jean-Paul Calderone2010-06-191-5/+0
|
* merge forward from the python 2.x branchJean-Paul Calderone2010-06-191-0/+5
|
* Fix Issue1368368 - prompt_user_passwd() in FancyURLopener masks 401 ↵Senthil Kumaran2010-06-181-0/+4
| | | | Unauthorized error page
* Issue #6543: Mention the author of the patch, Amaury Forgeot d'ArcVictor Stinner2010-06-171-1/+2
|
* Issue #6543: Write the traceback in the terminal encoding instead of utf-8.Victor Stinner2010-06-171-0/+3
| | | | | | Fix the encoding of the modules filename. Reindent also traceback.h, just because I hate tabs :-)
* Issue #8203: Fix IDLE Credits dialog: view_file() uses its encoding argument.Victor Stinner2010-06-171-0/+2
|
* Issue #6641: The datetime.strptime method now supports the %z directive.Alexander Belopolsky2010-06-171-0/+8
|
* Issue #9011: Remove buggy and unnecessary ST->AST compilation codeMark Dickinson2010-06-171-0/+5
| | | | | | | dealing with unary minus applied to a constant. The removed code was mutating the ST, causing a second compilation to fail. (The peephole optimizer already takes care of optimizing this case, so there's no lost optimization opportunity here.)
* Merged revisions 82039 via svnmerge fromR. David Murray2010-06-171-0/+3
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82039 | r.david.murray | 2010-06-16 21:36:52 -0400 (Wed, 16 Jun 2010) | 10 lines #8720: fix inspect regression by teaching getsourcefile about linecache. The fix for issue 4050 caused a regression: before that fix, source lines in the linecache would eventually be found by inspect. After the fix inspect reports an error earlier, and the source isn't found. The fix for the fix is to have getsourcefile look in the linecache for the file and return the psuedo-filename if the source is there, just as it already returns it if there is a PEP 302 loader. ........
* Issue #850997: Oops, I forgot the author of the patch: Mark HammondVictor Stinner2010-06-161-1/+1
|
* Issue #850997: mbcs encoding (Windows only) handles errors argument: strictVictor Stinner2010-06-161-0/+5
| | | | | mode raises unicode errors. The encoder only supports "strict" and "replace" error handlers, the decoder only supports "strict" and "ignore" error handlers.
* Merged revisions 81675 via svnmerge fromR. David Murray2010-06-161-0/+3
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81675 | r.david.murray | 2010-06-03 11:43:20 -0400 (Thu, 03 Jun 2010) | 10 lines #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n. If a body part ended with \r\n, feedparser, using '$' to terminate its search for the newline, would match on the \r\n, and think that it needed to strip two characters in order to account for the line end before the boundary. That made it chop one too many characters off the end of the body part. Using \Z makes the match correct. Patch and test by Tony Nelson. ........
* Issue #5094: The ``datetime`` module now has a simple concrete classAlexander Belopolsky2010-06-141-0/+8
| | | | implementing ``datetime.tzinfo`` interface.
* Issue #8592: PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z"Victor Stinner2010-06-131-0/+4
| | | | | formats if the string contains a null byte/character. Write unit tests for string formats.
* Merged revisions 81967 via svnmerge fromMark Dickinson2010-06-131-0/+3
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81967 | mark.dickinson | 2010-06-13 11:50:29 +0100 (Sun, 13 Jun 2010) | 4 lines Issue #8986: erfc was raising OverflowError on Linux for arguments in the (approximate) range (-27.3, 30.0), as a result of an escaped errno value. ........
* Added acknowlegement for Issue #3129Alexander Belopolsky2010-06-121-2/+2
|
* Issue #8973: Add __all__ to struct module, so that help(struct) correctlyMark Dickinson2010-06-121-0/+3
| | | | displays information for the struct.Struct class.
* Merged revisions 80578 via svnmerge fromNick Coghlan2010-06-121-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80578 | nick.coghlan | 2010-04-29 00:29:06 +1000 (Thu, 29 Apr 2010) | 1 line Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro) ........
* Issue #8969: On Windows, use mbcs codec in strict mode to encode and decodeVictor Stinner2010-06-111-0/+3
| | | | filenames and enable os.fsencode().
* Issue #8784: Set tarfile default encoding to 'utf-8' on Windows.Victor Stinner2010-06-111-0/+2
| | | | Note: file system encoding cannot be None anymore (since r81190, issue #8610).
* Issue #8966: If a ctypes structure field is an array of c_char, convert itsVictor Stinner2010-06-111-1/+4
| | | | value to bytes instead of str (as done for c_char and c_char_p).
* Merged revisions 81907 via svnmerge fromAntoine Pitrou2010-06-111-0/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81907 | antoine.pitrou | 2010-06-11 23:42:26 +0200 (ven., 11 juin 2010) | 5 lines Issue #8941: decoding big endian UTF-32 data in UCS-2 builds could crash the interpreter with characters outside the Basic Multilingual Plane (higher than 0x10000). ........
* Issue #3129: Trailing digits in format string are no longer ignored.Alexander Belopolsky2010-06-111-0/+4
|
* Fix issue number typo.Mark Dickinson2010-06-111-2/+2
|
* Issue #8188: Comparisons between Decimal objects and other numericMark Dickinson2010-06-111-1/+9
| | | | objects (Fraction, float, complex, int) now all function as expected.
* Issue #8950: Make PyArg_Parse* with 'L' code raise for float inputs,Mark Dickinson2010-06-101-0/+5
| | | | | instead of warning. This makes it consistent with the other integer codes.
* Issue #8922: Normalize the encoding name in PyUnicode_AsEncodedString() toVictor Stinner2010-06-101-0/+4
| | | | | enable shortcuts for upper case encoding name. Add also a shortcut for "iso-8859-1" in PyUnicode_AsEncodedString() and PyUnicode_Decode().
* Issue #8838, #8339: Remove codecs.charbuffer_encode() and "t#" parsing formatVictor Stinner2010-06-081-0/+7
| | | | | Remove last references to the "char buffer" of the buffer protocol from Python3.
* Merged revisions 81834 via svnmerge fromBenjamin Peterson2010-06-081-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81834 | benjamin.peterson | 2010-06-08 09:53:29 -0500 (Tue, 08 Jun 2010) | 1 line kill extra word ........