Victor Stinner
306f0100f3
Issue #6697 : Fix a crash if sys.stdin or sys.stdout encoding contain a surrogate
...
This is *very* unlikely :-)
2010-05-19 01:06:22 +00:00
Victor Stinner
b744ba1d14
Issue #8610 : Load file system codec at startup, and display a fatal error on
...
failure. Set the file system encoding to utf-8 (instead of None) if getting
the locale encoding failed, or if nl_langinfo(CODESET) function is missing.
2010-05-15 12:27:16 +00:00
Antoine Pitrou
f95a1b3c53
Recorded merge of revisions 81029 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
2010-05-09 15:52:27 +00:00
Victor Stinner
120c21227a
Issue #8226 : sys.setfilesystemencoding() raises a LookupError if the encoding
...
is unknown.
2010-03-25 00:30:28 +00:00
Benjamin Peterson
09259e2043
check PyDict_New() for error
2010-02-27 17:41:13 +00:00
Benjamin Peterson
23e018ab98
only accept AttributeError as indicating no __prepare__ attribute on a metaclass, allowing lookup errors to propogate
2010-02-27 17:40:01 +00:00
Mark Dickinson
480e8e38a0
Fix typo (reported by terlop on IRC)
2009-12-19 21:19:35 +00:00
Benjamin Peterson
97dd987ae2
Merged revisions 76534,76538,76628,76701,76774 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76534 | martin.v.loewis | 2009-11-26 02:42:05 -0600 (Thu, 26 Nov 2009) | 2 lines
Fix typo.
........
r76538 | georg.brandl | 2009-11-26 14:48:25 -0600 (Thu, 26 Nov 2009) | 1 line
#7400 : typo.
........
r76628 | andrew.kuchling | 2009-12-02 08:27:11 -0600 (Wed, 02 Dec 2009) | 1 line
Markup fixes
........
r76701 | andrew.kuchling | 2009-12-07 20:37:05 -0600 (Mon, 07 Dec 2009) | 1 line
Typo fix; grammar fix
........
r76774 | benjamin.peterson | 2009-12-12 18:54:15 -0600 (Sat, 12 Dec 2009) | 1 line
account for PyObject_IsInstance's new ability to fail
........
2009-12-13 01:23:39 +00:00
Mark Dickinson
9acadc54e0
Merged revisions 75714 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75714 | mark.dickinson | 2009-10-26 14:18:44 +0000 (Mon, 26 Oct 2009) | 1 line
Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum
........
2009-10-26 14:19:42 +00:00
Skip Montanaro
ba1e0f46ab
Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway)
2009-10-18 14:25:35 +00:00
Benjamin Peterson
c963731bb6
refactor logic a little when no sep or end is passed
2009-07-02 18:25:26 +00:00
Benjamin Peterson
8bc5b68159
these builtins have to be initialized
2009-05-09 18:10:51 +00:00
Benjamin Peterson
f5b52246ed
ignore the coding cookie in compile(), exec(), and eval() if the source is a string #4626
2009-03-02 23:31:26 +00:00
Mark Dickinson
e94c679df0
Issue #1717 : rename tp_compare to tp_reserved. I'll change the
...
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
2009-02-02 20:36:42 +00:00
Mark Dickinson
f02e0aaafd
Issue #1717 : remove the cmp builtin function, the C-API functions
...
PyObject_Cmp, PyObject_Compare, and various support functions.
2009-02-01 12:13:56 +00:00
Mark Dickinson
1124e71368
Issue #4707 : round(x, n) now returns an integer when x is an integer.
...
Previously it returned a float.
2009-01-28 21:25:58 +00:00
Amaury Forgeot d'Arc
f343e01c17
Merged revisions 68560 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68560 | amaury.forgeotdarc | 2009-01-13 00:36:55 +0100 (mar., 13 janv. 2009) | 6 lines
#3720 : Interpreter crashes when an evil iterator removes its own next function.
Now the slot is filled with a function that always raises.
Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
........
2009-01-12 23:58:21 +00:00
Raymond Hettinger
5d1ff00bc0
Mini-optimization: use pack/unpack functions for argument tuples.
2009-01-06 09:37:13 +00:00
Benjamin Peterson
3809026a72
#4826 exec() doesn't take a file object anymore
2009-01-04 15:30:39 +00:00
Georg Brandl
ced51db8cf
#4513 : remove traces of zip() docstring from when it was izip().
2008-12-04 18:28:38 +00:00
Christian Heimes
6a27efa2d3
Issue 3723: Fixed initialization of subinterpreters
...
The patch fixes several issues with Py_NewInterpreter as well as the demo for multiple subinterpreters.
Most of the patch was written by MvL with help from Benjamin, Amaury and me. Graham Dumpleton has verified that this patch fixes an issue with mod_wsgi.
2008-10-30 21:48:26 +00:00
Martin v. Löwis
04dc25c537
Issue #3187 : Add sys.setfilesystemencoding.
2008-10-03 16:09:28 +00:00
Amaury Forgeot d'Arc
d0db98fcd8
#1688 : On Windows, the input() prompt was not correctly displayed if it
...
contains non-ascii characters.
Reviewed by Benjamin Peterson.
2008-09-21 21:49:01 +00:00
Georg Brandl
2cabc56296
#3706 : fix error message for wrong exec() argument type. R=Guido.
2008-08-28 07:57:16 +00:00
Marc-André Lemburg
4cc0f24857
Rename PyUnicode_AsString -> _PyUnicode_AsString and
...
PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark
them for interpreter internal use only.
We'll have to rework these APIs or create new ones for the
purpose of accessing the UTF-8 representation of Unicode objects
for 3.1.
2008-08-07 18:54:33 +00:00