[issue3657] pickle can pickle the wrong function

2008-08-25 Thread Neal Norwitz
Neal Norwitz [EMAIL PROTECTED] added the comment: It seems that if the tests are run in this order: ./python -E -tt ./Lib/test/regrtest.py -u all test_xmlrpc test_ctypes test_json test_bsddb3 test_pickletools The error will trigger consistently. That is in 2.6 with a debug build on a dual cpu

[issue3651] eval() leaks 1 reference every time

2008-08-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Updated patch with the additional PyBuffer_Release mentioned by Neal, plus a proposition of entry for the NEWS file. There is no doc about the new interface, so no update is needed :-( See issue2619. Added file:

[issue3160] Building a Win32 binary installer crashes

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Viktor? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3160 ___ ___ Python-bugs-list mailing list

[issue3160] Building a Win32 binary installer crashes

2008-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- keywords: +needs review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3160 ___ ___ Python-bugs-list

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- nosy: +pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3668 ___ ___ Python-bugs-list mailing list

[issue3279] import of site.py fails on startup

2008-08-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Attached patch writes the 'import site' failed message to libc stderr instead of sys.stderr, which does not exist at this point. The initial problem still remains: site.py cannot use the open builtin. -- keywords: +patch Added

[issue3663] Extra DECREF on syntax errors

2008-08-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Agreed. PyErr_ExceptionMatches returns owned references, so the tb variable has to remain an owned reference. Patch attached, please review. -- keywords: +needs review, patch Added file:

[issue600362] relocate cgi.parse_qs() into urlparse

2008-08-25 Thread Matt Giuca
Matt Giuca [EMAIL PROTECTED] added the comment: It seems like parse_multipart and parse_header are very strongly related to parse_qs. (eg. if you want to process HTTP requests you'll want to call parse_qs for x-www-form-urlencoded and parse_multipart for multipart/form-data). Should these be

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- assignee: - pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3668 ___ ___ Python-bugs-list mailing

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2008-08-25 Thread Hagen Fürstenau
New submission from Hagen Fürstenau [EMAIL PROTECTED]: After pickling a set of ints with Python 3.0 and pickle protocol 2: [EMAIL PROTECTED] ~]$ python3.0 Python 3.0b3 (r30b3:65927, Aug 21 2008, 11:48:29) [GCC 4.1.0 20060304 (Red Hat 4.1.0-3)] on linux2 Type help, copyright, credits or license

[issue1220212] os.kill on windows

2008-08-25 Thread Anders J. Munch
Changes by Anders J. Munch [EMAIL PROTECTED]: -- nosy: +andersjm ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1220212 ___ ___ Python-bugs-list mailing

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is a patch. Please review. -- keywords: +needs review, patch type: - resource usage Added file: http://bugs.python.org/file11243/argleak.patch ___ Python tracker [EMAIL PROTECTED]

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This patch elegantly reuses the existing cleanup list. Only two remarks: - there are a few tabs/spaces inconsistencies. - I would make the cleanup_ptr explicit: intead of addcleanup(*buffer, freelist, NULL); I'd prefer

[issue1462525] URI parsing library

2008-08-25 Thread Senthil
Senthil [EMAIL PROTECTED] added the comment: Hello Paul, Have you beeing keeping track of urlparse changes in Python2.6? I anaylzed your patch and read through the RFC3986 and have the following comments: 1) The usage of this module is very diffirent from the current urlparse module's

[issue3663] Extra DECREF on syntax errors

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: The patch looks fine to me. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3663 ___

[issue3676] Obsolete references to PEP 291 in py3k lib

2008-08-25 Thread Oren Tirosh
New submission from Oren Tirosh [EMAIL PROTECTED]: The comments in the following modules contain references to PEP 291 or to remaining compatible with version 2.x. However, they all include non backward compatible python 3 syntax like except x as y. decimal.py modulefinder.py pkgutil.py

[issue3279] import of site.py fails on startup

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: We could: 1. Use _fileio._FileIO directly. 2. Use os.open. 3. Initialize the stdio streams before importing site. This seems like the best option, although I haven't run all the tests yet. -- nosy: +benjamin.peterson

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Ok, here is a new patch addressing Amaury's comments. Added file: http://bugs.python.org/file11244/argleak2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3668

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: By the way, this bug affects 2.6 as well, although not in binascii since it has not been converted to use s*: codecs.latin_1_decode(b, 0) Traceback (most recent call last): File stdin, line 1, in module TypeError: latin_1_decode() argument

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is a patch for 2.6. Added file: http://bugs.python.org/file11245/argleak-2.6.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3668 ___

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Both patches look good to me. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3668 ___ ___

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Actually, here is a better patch for py3k. Added file: http://bugs.python.org/file11246/argleak3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3668

[issue3279] import of site.py fails on startup

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's my patch for the problem. Added file: http://bugs.python.org/file11247/different_order.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3279

[issue3668] s* argument parser marker leaks memory

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: And a similarly better patch for 2.6. -- versions: +Python 2.6 Added file: http://bugs.python.org/file11248/argleak2-2.6.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3668

[issue2127] sqlite3 docs should mention utf8 requirement

2008-08-25 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: Can we close this now? Did you try out a Python2.6 or Python 3.0 beta? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2127 ___

[issue3677] importing from UNC roots doesn't work

2008-08-25 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson [EMAIL PROTECTED]: When executing a script from a UNC path, e.g. //myhost/exports/a.py, r\\myhost\exports gets prepended to sys.path. But it doesn't work. This means that in a.py, import b will fail even though b.py is present in the same

[issue3279] import of site.py fails on startup

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: It was probably done so that importing _bytesio would actually work in io. IMO, it would be better to just compile _bytesio and _stringio into the python binary. ___ Python tracker [EMAIL PROTECTED]

[issue3218] 2to3 Fix_imports optimization

2008-08-25 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3218 ___

[issue3649] IA5 Encoding should be in the default encodings

2008-08-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: I think what you're after is the encoding used in SMS messages: http://en.wikipedia.org/wiki/Short_message_service Here's an old discussion about this codec: http://mail.python.org/pipermail/python-list/2002-October/167267.html

[issue3279] import of site.py fails on startup

2008-08-25 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Benjamin is right. site.py imports the io module before _bytesio and _stringio are available for import. Thus the python version of BytesIO and StringIO is always used. There is an old thread about the issue at

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2008-08-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: Is this still an issue in 2.6 ? AFAIK, there have been a few changes both to setuptools and PyPI that make it easy to just use Unicode objects in the setup() call for non-ASCII values. ___ Python

[issue2534] Restore isinstance and issubclass speed in 2.6

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: By the way, py3k suffers from this problem too, so a similar patch should be applied if possible. -- nosy: +pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2534

[issue2534] Restore isinstance and issubclass speed in 2.6

2008-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2534 ___ ___ Python-bugs-list

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-08-25 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Oh, that's nasty. Recalling __init__ with bad arguments breaks the internal invariants as it clears the Pickler's content before parsing the arguments. I suspect that Unpickler is vulnerable too. Adding a NULL check in pickler_write will

[issue3649] IA5 Encoding should be in the default encodings

2008-08-25 Thread Pascal Bach
Pascal Bach [EMAIL PROTECTED] added the comment: I currently use the codec in my ucplib already and this is not a problem. I just thought that it might be useful for somebody else. But maybe it is to use case specific. If this codec is not of general interest I think this report can be closed.

[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2008-08-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-08-23 10:08, Hye-Shik Chang wrote: Hye-Shik Chang [EMAIL PROTECTED] added the comment: Committed patch cjkmactemporary.diff as r65988 in the py3k branch. I'll open another issue for cjkcodecs implementation of Mac codecs.

[issue3677] importing from UNC roots doesn't work

2008-08-25 Thread Kristján Valur Jónsson
Kristján Valur Jónsson [EMAIL PROTECTED] added the comment: Correction: The workaround is to _append_ a backslash. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3677 ___

[issue2534] Restore isinstance and issubclass speed in 2.6

2008-08-25 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- keywords: +needs review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2534 ___ ___ Python-bugs-list

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2008-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- nosy: +alexandre.vassalotti priority: - critical type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3675 ___

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-08-25 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Unpickler looks safe as Unpickler_load() checks if Unpickler was properly initialized. And only Pickler_dump is vulnerable right now (new methods, if any, exposed for issue3385 will have to take into account this vulnerability).

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2008-08-25 Thread Tarek Ziadé
Tarek Ziadé [EMAIL PROTECTED] added the comment: The problem is in distutils code, not in setuptools or PyPI. As long as I can see, the problem remains in the trunk. It is dead simple to reproduce : put an unicode name for the author in a plain setup.py with a non ascii character. (for example

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2008-08-25 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9961/unicode.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2562 ___

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2008-08-25 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10065/distutils.unicode.simplified.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2562 ___

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2008-08-25 Thread Tarek Ziadé
Changes by Tarek Ziadé [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9967/unicode.metadata.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2562 ___

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2008-08-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: Here's an updated patch that applies the same logic to all meta-data fields, instead of just a few. This simplifies the code somewhat. I've tested it with the test you provided and also with eGenix packages using Unicode author names (ie.

[issue3382] Make '%F' and float.__format__('F') convert results to upper case.

2008-08-25 Thread Eric Smith
Eric Smith [EMAIL PROTECTED] added the comment: Unfortunately, I missed the window to get these into 3.0 and 2.6. Better luck for 3.1 and 2.7! -- versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0 ___ Python tracker [EMAIL PROTECTED]

[issue3279] import of site.py fails on startup

2008-08-25 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Mon, Aug 25, 2008 at 6:40 AM, Benjamin Peterson [EMAIL PROTECTED] wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: We could: 1. Use _fileio._FileIO directly. 2. Use os.open. 3. Initialize the stdio streams before importing

[issue3279] import of site.py fails on startup

2008-08-25 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Mon, Aug 25, 2008 at 10:49 AM, Benjamin Peterson [EMAIL PROTECTED] wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: On Mon, Aug 25, 2008 at 12:48 PM, Brett Cannon [EMAIL PROTECTED] wrote: Brett Cannon [EMAIL PROTECTED] added

[issue2350] 'exceptions' import fixer

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's my 2to3 fixer for the job. It cleanly removes the imports and changes the usage. -- assignee: - collinwinter components: +2to3 (2.x to 3.0 conversion tool) keywords: +patch nosy: +collinwinter title: Warn against importing

[issue2350] 'exceptions' import fixer

2008-08-25 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- keywords: +needs review -26backport ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2350 ___ ___

[issue2534] Restore isinstance and issubclass speed in 2.6

2008-08-25 Thread djc
Changes by djc [EMAIL PROTECTED]: -- nosy: +djc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2534 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2356] fixer for sys.exitfunc - atexit

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's my 2to3 fixer for the cause. It always changes assignment to sys.exitfunc to atexit.register. It then inserts a import atexit after the module's sys import. If it can't find a sys import (that should be rare obviously :) ), it emits a

[issue2534] Restore isinstance and issubclass speed in 2.6

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I'm currently doing the port to py3k. It makes me find interesting flaws in the current isinstance/issubclass implementation :-)) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2534

[issue3678] Ignored LDFLAGS during linking libpython$(VERSION).so

2008-08-25 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis [EMAIL PROTECTED]: LDFLAGS are ignored during linking libpython$(VERSION).so. (LDFLAGS are respected during linking $(BUILDPYTHON) and $(PGEN).) -- components: Build files: python-respect_LDFLAGS.patch keywords: patch messages:

[issue3679] pressing HOME key in IDLE editor ends IDLE

2008-08-25 Thread Toby Donaldson
New submission from Toby Donaldson [EMAIL PROTECTED]: In IDLE 3.0b2, whenever I press the Home key in an IDLE editor window, IDLE ends and all windows disappear. -- components: IDLE messages: 71953 nosy: tjd severity: normal status: open title: pressing HOME key in IDLE editor ends IDLE

[issue3679] pressing HOME key in IDLE editor ends IDLE

2008-08-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Well, 3.0b3 is out and many bugs may have been corrected. Can you try with this newer version? -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED]

[issue3680] Cycles with some iterator are leaking.

2008-08-25 Thread Robert Schuppenies
New submission from Robert Schuppenies [EMAIL PROTECTED]: The dict, set, and deque iterators do not implement tp_traverse although they reference container objects. This can lead to reference cycles which will not be collected. The attached cycle.py script from Amaury demonstrates the problem

[issue3680] Cycles with some iterator are leaking.

2008-08-25 Thread Robert Schuppenies
Changes by Robert Schuppenies [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11255/tp_traverse.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3680 ___

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: The py3k warnings look good to me. -- keywords: +needs review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2370 ___

[issue3681] Cannot read saved csv file in a single run

2008-08-25 Thread Rahul Ghosh
New submission from Rahul Ghosh [EMAIL PROTECTED]: I am trying to save a csv file from a scope and then open it to post process the data. The file is getting created currectly, but when it tries to open the csv file it complains about file not found. I am trying to do this in a single run. If

[issue3681] Cannot read saved csv file in a single run

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Are you closing the file before trying to read it? -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3681 ___

[issue2534] Restore isinstance and issubclass speed in 2.6

2008-08-25 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: New patch with a couple of tiny fixes. Added file: http://bugs.python.org/file11257/isinstance3k-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2534

[issue3681] Cannot read saved csv file in a single run

2008-08-25 Thread Rahul Ghosh
Rahul Ghosh [EMAIL PROTECTED] added the comment: I wrote a python GPIB command to the scope to export the waveform as a csv file. Then in another function I try to read this file that I just saved and it cannot find the file till I rerun. ___ Python tracker

[issue3681] Cannot read saved csv file in a single run

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Mon, Aug 25, 2008 at 4:45 PM, Rahul Ghosh [EMAIL PROTECTED] wrote: Rahul Ghosh [EMAIL PROTECTED] added the comment: I wrote a python GPIB command to the scope to export the waveform as a csv file. Then in another function I try to

[issue3682] test_math: math.log(-ninf) fails to raise exception on OpenBSD

2008-08-25 Thread Damien Miller
New submission from Damien Miller [EMAIL PROTECTED]: Hi, On OpenBSD 4.4, the test_math.py regression test fails with the following: Traceback (most recent call last): File Lib/test/test_math.py, line 419, in testLog self.assertRaises(ValueError, math.log, NINF) AssertionError: ValueError

[issue3638] tkinter.mainloop() is meanling less and crash: remove it

2008-08-25 Thread Daniel Diniz
Changes by Daniel Diniz [EMAIL PROTECTED]: -- nosy: +ajaksu2 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3638 ___ ___ Python-bugs-list mailing list

[issue3634] invalid result value of _weakref.__init__()

2008-08-25 Thread Daniel Diniz
Changes by Daniel Diniz [EMAIL PROTECTED]: -- nosy: +ajaksu2 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3634 ___ ___ Python-bugs-list mailing list

[issue1081824] Rewrite of docs for compiler.visitor

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: The patch no longer applies cleanly. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1081824 ___

[issue3683] compilation --without-threads fails

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: The patch looks good to me. Next time, please a a .patch or .diff extension to your patch, so it isn't marked as binary data. Thanks! -- keywords: +needs review nosy: +benjamin.peterson priority: - release blocker

[issue3684] traceback.format_exception_only() misplaces the caret for certain SyntaxErrors

2008-08-25 Thread Brodie Rao
New submission from Brodie Rao [EMAIL PROTECTED]: + File stdin, line 1 + ^ SyntaxError: invalid syntax import sys import traceback traceback.print_exception(sys.last_type, sys.last_value, None) File stdin, line 1 + ^ SyntaxError: invalid syntax sys.last_value