Brett Cannon
da78043237
Latin-1 source code was not being properly decoded when passed through
...
compile(). This was due to left-over special-casing before UTF-8 became the
default source encoding.
Closes issue #3574 . Thanks to Victor Stinner for help with the patch.
2008-10-17 03:38:50 +00:00
Barry Warsaw
e94a37f3a1
Benjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults.
2008-10-17 01:29:56 +00:00
Barry Warsaw
460ce2abf7
Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
...
OpenBSD 4.4.
2008-10-17 01:15:29 +00:00
Amaury Forgeot d'Arc
cf8016a8d6
Issues #2384 and #3975 : Tracebacks were not correctly printed when the source file
...
contains a ``coding:`` header: the wrong line was displayed, and the encoding was not respected.
Patch by Victor Stinner.
2008-10-09 23:37:48 +00:00
Amaury Forgeot d'Arc
d0ca955d9f
#4004 : Missing newline in some startup error messages.
...
Patch by Victor.
2008-10-07 21:06:18 +00:00
Martin v. Löwis
04dc25c537
Issue #3187 : Add sys.setfilesystemencoding.
2008-10-03 16:09:28 +00:00
Christian Heimes
1a8501c648
Merged revisions 66748 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66748 | christian.heimes | 2008-10-02 21:47:50 +0200 (Thu, 02 Oct 2008) | 1 line
Fixed a couple more C99 comments and one occurence of inline.
........
+ another // comment in bytesobject
2008-10-02 19:56:01 +00:00
Andrew MacIntyre
4561257c34
Merged revisions 66552-66553 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66552 | andrew.macintyre | 2008-09-23 00:10:54 +1000 (Tue, 23 Sep 2008) | 5 lines
should use macro'ed symbols not direct
Part of source_os2emx.patch in issue 3868
Reviewed by Amaury Forgeot d'Arc
........
r66553 | andrew.macintyre | 2008-09-23 00:11:41 +1000 (Tue, 23 Sep 2008) | 5 lines
any platform without HAVE_LOG1P should have DBL_EPSILON in <float.h>
Part of source_os2emx.patch in issue 3868
Reviewed by Amaury Forgeot d'Arc
........
2008-09-22 14:49:01 +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
Amaury Forgeot d'Arc
245c70b12c
Merged revisions 66377 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66377 | amaury.forgeotdarc | 2008-09-11 00:04:45 +0200 (jeu., 11 sept. 2008) | 8 lines
#3743 : PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for
PyString_FromFormat which has an independent implementation, and uses "%zd".
This makes a difference on win64, where printf needs "%Id" to display
64bit values. For example, queue.__repr__ was incorrect.
Reviewed by Martin von Loewis.
........
2008-09-10 22:24:24 +00:00
Amaury Forgeot d'Arc
8530e8590f
Revert r33661, which broke all buildbots.
2008-09-09 07:28:22 +00:00
Amaury Forgeot d'Arc
14b785192b
#3705 : Fix crash when given a non-ascii value on the command line for the "-c" and "-m" parameters
...
Second part, for Windows.
Reviewed by Antoine Pitrou
2008-09-09 07:04:36 +00:00
Gregory P. Smith
0a608fdaac
fixes deferred/release blocker issue #3797 : Fixed the dbm, marshal, mmap,
...
ossaudiodev, & winreg modules to return bytes objects instead of bytearray
objects.
2008-09-06 21:34:51 +00:00
Benjamin Peterson
791dc2f32c
compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279
...
Reviewer: Alexandre Vassalotti
2008-09-05 23:27:15 +00:00
Amaury Forgeot d'Arc
1b933ed50a
#3773 : Check for errors around the use of PyTokenizer_FindEncoding().
...
reviewed by Brett Cannon.
2008-09-04 22:34:09 +00:00
Benjamin Peterson
ad9565338c
Fix a memory leak in reloading extension modules #3667
...
Reviewer: Barry Warsaw
2008-09-04 02:28:15 +00:00
Antoine Pitrou
fff953048f
Issue #3696 : Error parsing arguments on OpenBSD <= 4.4 and Cygwin.
...
Patch by Amaury Forgeot d'Arc, reviewed by me.
2008-09-03 18:58:51 +00:00
Antoine Pitrou
658fad8aae
Issue #3697 : "Fatal Python error: Cannot recover from stack overflow"
...
could be easily encountered under Windows in debug mode when exercising
the recursion limit checking code, due to bogus handling of recursion
limit when USE_STACKCHEK was enabled.
Reviewed by Amaury Forgeot d'Arc on IRC.
2008-09-03 18:34:34 +00:00
Brett Cannon
54bd41d81b
The _warnings module did not properly handle cases where strings were not being
...
passed in as the message to use for a warning. Fixed along with making the code
more robust against other errors where return values were not checked.
Closes issue 3639.
Code review by Benjamin Peterson.
2008-09-02 04:01:42 +00:00
Brett Cannon
ec92e181fb
Merge in r66135. Doing also required removing a stale DeprecationWarning along
...
with moving warnings.catch_warnings() over to keyword-only parameters for its
constructor (as documented in the 2.6 docs).
2008-09-02 02:46:59 +00:00
Benjamin Peterson
3e4f055602
Merged revisions 66045,66048-66049,66053,66060,66062-66063,66065,66067,66071-66074,66080,66082-66083,66090-66093,66097-66099,66103,66105,66110,66118 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66045 | andrew.kuchling | 2008-08-26 19:27:18 -0500 (Tue, 26 Aug 2008) | 1 line
Trim whitespace; add a few updates
........
r66048 | andrew.kuchling | 2008-08-26 19:45:02 -0500 (Tue, 26 Aug 2008) | 1 line
Add an item and a note
........
r66049 | andrew.kuchling | 2008-08-26 21:12:18 -0500 (Tue, 26 Aug 2008) | 1 line
Add various items
........
r66053 | georg.brandl | 2008-08-28 04:40:18 -0500 (Thu, 28 Aug 2008) | 2 lines
#3711 : .dll isn't a valid Python extension anymore.
........
r66060 | armin.rigo | 2008-08-29 16:21:52 -0500 (Fri, 29 Aug 2008) | 3 lines
A collection of crashers, all variants of the idea
of issue #3720 .
........
r66062 | georg.brandl | 2008-08-30 04:49:36 -0500 (Sat, 30 Aug 2008) | 2 lines
#3730 : mention "server" attribute explicitly.
........
r66063 | georg.brandl | 2008-08-30 04:52:44 -0500 (Sat, 30 Aug 2008) | 2 lines
#3716 : fix typo.
........
r66065 | georg.brandl | 2008-08-30 05:03:09 -0500 (Sat, 30 Aug 2008) | 2 lines
#3569 : eval() also accepts "exec"able code objects.
........
r66067 | georg.brandl | 2008-08-30 08:17:39 -0500 (Sat, 30 Aug 2008) | 2 lines
super() actually returns a super object.
........
r66071 | andrew.kuchling | 2008-08-30 10:19:57 -0500 (Sat, 30 Aug 2008) | 1 line
Partial edits from revision and tidying pass
........
r66072 | andrew.kuchling | 2008-08-30 10:21:23 -0500 (Sat, 30 Aug 2008) | 1 line
Tidy up some sentences
........
r66073 | andrew.kuchling | 2008-08-30 10:25:47 -0500 (Sat, 30 Aug 2008) | 1 line
Correction from Antoine Pitrou: BufferedWriter and Reader support seek()
........
r66074 | andrew.kuchling | 2008-08-30 11:44:54 -0500 (Sat, 30 Aug 2008) | 1 line
Edit four more sections
........
r66080 | georg.brandl | 2008-08-30 17:00:28 -0500 (Sat, 30 Aug 2008) | 2 lines
Fix markup.
........
r66082 | andrew.kuchling | 2008-08-30 17:56:54 -0500 (Sat, 30 Aug 2008) | 1 line
More edits; markup fixes
........
r66083 | andrew.kuchling | 2008-08-30 21:24:08 -0500 (Sat, 30 Aug 2008) | 1 line
More edits
........
r66090 | andrew.kuchling | 2008-08-31 09:29:31 -0500 (Sun, 31 Aug 2008) | 1 line
Edit the library section, rearranging items to flow better and making lots of edits
........
r66091 | andrew.kuchling | 2008-08-31 10:41:48 -0500 (Sun, 31 Aug 2008) | 1 line
Last batch of edits; remove the 'other changes' section
........
r66092 | andrew.kuchling | 2008-08-31 10:48:44 -0500 (Sun, 31 Aug 2008) | 1 line
Update patch/bug count
........
r66093 | gregory.p.smith | 2008-08-31 11:34:18 -0500 (Sun, 31 Aug 2008) | 3 lines
issue3715: docstring representation of hex escaped string needs to be double
escaped.
........
r66097 | benjamin.peterson | 2008-09-01 09:13:43 -0500 (Mon, 01 Sep 2008) | 4 lines
#3703 unhelpful _fileio.FileIO error message when trying to open a directory
Reviewer: Gregory P. Smith
........
r66098 | georg.brandl | 2008-09-01 09:15:55 -0500 (Mon, 01 Sep 2008) | 2 lines
#3749 : fix c'n'p errors.
........
r66099 | benjamin.peterson | 2008-09-01 09:18:30 -0500 (Mon, 01 Sep 2008) | 4 lines
Fix compilation when --without-threads is given #3683
Reviewer: Georg Brandl, Benjamin Peterson
........
r66103 | vinay.sajip | 2008-09-01 09:30:10 -0500 (Mon, 01 Sep 2008) | 1 line
logging: fixed lack of use of encoding attribute specified on a stream.
........
r66105 | vinay.sajip | 2008-09-01 09:33:59 -0500 (Mon, 01 Sep 2008) | 1 line
logging: fixed lack of use of encoding attribute specified on a stream.
........
r66110 | vinay.sajip | 2008-09-01 10:08:07 -0500 (Mon, 01 Sep 2008) | 1 line
Added section about configuring logging in a library. Thanks to Thomas Heller for the idea.
........
r66118 | vinay.sajip | 2008-09-01 12:44:14 -0500 (Mon, 01 Sep 2008) | 1 line
Bug #3738 : Documentation is now more accurate in describing handler close methods.
........
2008-09-02 00:31:15 +00:00
Antoine Pitrou
f7199578be
#3668 : When PyArg_ParseTuple correctly parses a s* format, but raises an
...
exception afterwards (for a subsequent parameter), the user code will
not call PyBuffer_Release() and memory will leak.
Reviewed by Amaury Forgeot d'Arc.
2008-08-29 18:37:05 +00:00
Amaury Forgeot d'Arc
db26f7c137
Issue 3611: in some cases (a __del__ re-raising an exception, when called from inside
...
an 'except' clause), the exception __context__ would be reset to None.
This crases the interpreter if this precisely happens inside PyErr_SetObject.
- now the __context__ is properly preserved
- in any case, PyErr_SetObject now saves the current exc_value in a local variable, to
avoid such crashes in the future.
Reviewer: Antoine Pitrou.
2008-08-29 07:13:32 +00:00
Georg Brandl
2cabc56296
#3706 : fix error message for wrong exec() argument type. R=Guido.
2008-08-28 07:57:16 +00:00
Benjamin Peterson
9edd2bd35c
Fix #3651 various memory leaks when using the buffer interface
...
by Amaury Forgeot d'Arc
Reviewer: Antoine Pitrou
2008-08-27 00:31:37 +00:00