[issue13153] IDLE crash with unicode bigger than 0xFFFF
Ned Deily n...@acm.org added the comment: Thanks for the additional investigation. You don't see more in the traceback because the exception is occurring in the _tkinter C glue layer. I am able to reproduce the problem on some other platforms as well (e.g. Python 3.x on OS X with Carbon Tk 8.4). More later. -- components: +Tkinter -Unicode, Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7317] Display full tracebacks when an error occurs asynchronously
alon horev alo...@gmail.com added the comment: Submitting a patch proposing this format: -BEGIN UNRAISABLE EXCEPTION- Class: AttributeError Instance: 'NoneType' object has no attribute 'someattr' Function: bound method A.__del__ of __main__.A object at 0x1007671d0 Traceback (most recent call last): File /tmp/bla.py, line 4, in __del__ None.someattr -END UNRAISABLE EXCEPTION- I've wrapped the exception information with header/footer differentiating it from a user's error handling code that also prints tracebacks (is it too much?). I've considered using the warnings module, But I dislike the suppression of already warned messages. (2 instances will raise exception in __del__ but only one message will be printed) This is my first patch submission so feel free giving me a hard time. -- keywords: +patch nosy: +alonho Added file: http://bugs.python.org/file23413/7317.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4431] Distutils MSVC doesn't create manifest file
Martin v. Löwis mar...@v.loewis.de added the comment: Corey, Sebastian: VS 2010 is not supported. So failure to work correctly is not a bug in Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13185] Why does Python interpreter care about curvy quotes in comments?
Martin v. Löwis mar...@v.loewis.de added the comment: The error message told you exactly what the problem is. Your source file does not conform to PEP 263. The PEP also explains why this applies to comments as well: because the entire file gets decoded according to the source encoding, and parsing (including determining what comments are) only starts afterwards. Closing the report as invalid. -- nosy: +loewis resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13185 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7317] Display full tracebacks when an error occurs asynchronously
Julian python_...@somethinkodd.com added the comment: The formatting isn't very conventional for Python. Why not use the normal format? i.e. Traceback (most recent call last): File /tmp/bla.py, line 4, in __del__ None.someattr AttributeError: 'NoneType' object has no attribute 'someattr' Why is this more likely to get confused with user input than other unhandled exceptions? If you ARE going to deviate, it may be helpful to have it explain why this exception wasn't caught through the normal channels. Maybe the last line could be: Failed to raise this exception in __del__/finalizer method. or similar. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13186] instance_ass_item() broken in classobject.c (Py2.7)
New submission from Stefan Behnel sco...@users.sourceforge.net: Starting at line 1223 in classobject.c, you can find this code: if (item == NULL) arg = PyInt_FromSsize_t(i); else arg = Py_BuildValue((nO), i, item); if (arg == NULL) { Py_DECREF(func); return -1; } res = PyEval_CallObject(func, arg); If item is NULL, arg will be assigned an int object. Otherwise, it will receive a tuple. Only the second case works in the subsequent call to PyEval_CallObject(), i.e. arg must always be assigned an argument tuple. A quick fix would be to call Py_BuildValue((n), i) in the first case. The code just did a getattr(), so this is not performance critical anymore. I found this bug because the test_class.py test suite was failing in Cython. -- components: Interpreter Core messages: 145590 nosy: scoder priority: normal severity: normal status: open title: instance_ass_item() broken in classobject.c (Py2.7) type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13186 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13088] Add Py_hexdigits constant: use one unique constant to format a digit to hexadecimal
Antoine Pitrou pit...@free.fr added the comment: You broke compilation under Windows. -- assignee: - haypo nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13088 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13139] multiprocessing.map skips finally blocks
Antoine Pitrou pit...@free.fr added the comment: As mentioned in http://docs.python.org/dev/library/multiprocessing#multiprocessing.pool.AsyncResult.get “If the remote call raised an exception then that exception will be reraised by get().” map() is just map_async() followed by a get() call on the result. Also, worker processes are called in daemon mode, which explains that children get killed as soon as the parent exits. If you rephrase your example as: try: Pool(3).map(Process, ['1','2','3']) finally: sleep(1) then all the children's finally clauses get a chance to be executed before the parent exits. I would therefore call it not a bug, although you might add a sentence in the map() documentation stating that an exception is raised as soon as one of the worker fails. -- assignee: - docs@python components: +Documentation nosy: +docs@python, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7317] Display full tracebacks when an error occurs asynchronously
alon horev alo...@gmail.com added the comment: Here's the next attempt (took your advice about the convention): Exception ignored in: bound method A.__del__ of __main__.A object at 0x1007671d0 Traceback (most recent call last): File /tmp/bla.py, line 4, in __del__ None.someattr AttributeError: 'NoneType' object has no attribute 'someattr' reminder of the current format for comparison: Exception AttributeError: 'NoneType' object has no attribute 'someattr' in bound method A.__del__ of __main__.A object at 0x1007671d0 ignored I thought about a more elaborate explanation than Exception ignored but grepping this function through the code shows it can be called from various places making it too generic. The reason I wanted to add a header/footer is for stating the message and the traceback go together (I print tracebacks to screen all the time), but it might be TMI.. -- Added file: http://bugs.python.org/file23414/7317.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13182] pysetup run bdist_wininst does not work (tries to use install command)
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Closing as a duplicate of #13151, which also identifies other problems with this command. -- components: +Library (Lib) nosy: +vinay.sajip resolution: - duplicate status: open - closed superseder: - pysetup3 run bdist_wininst fails ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13182 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13175] packaging uses wrong line endings in RECORD files on Windows
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I'm trying to reproduce this too, but have failed so far. Which version(s) of Windows did the problems appear on? -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10653] test_time test_strptime fails on windows
Antoine Pitrou pit...@free.fr added the comment: Crashes on the Windows buildbots: f:\dd\vctools\crt_bld\self_x86\crt\src\strftime.c(832) : Assertion failed: ( Invalid format directive , 0 ) f:\dd\vctools\crt_bld\self_x86\crt\src\strftime.c(484) : Assertion failed: FALSE -- assignee: - haypo nosy: +pitrou status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13175] packaging uses wrong line endings in RECORD files on Windows
Paul Moore p.f.mo...@gmail.com added the comment: Windows 7, 32 bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13172] pysetup run --list-commands fails with a traceback
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: so I guess that handling the issue gracefully isn't really important. Then should this issue be closed? -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13172] pysetup run --list-commands fails with a traceback
Paul Moore p.f.mo...@gmail.com added the comment: I suppose so, yes. But it feels symptomatic of a general lack of clean error handling, which I think should be fixed :-( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12406] msi.py needs updating for Python 3.3
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Another problem in creating the MSI is that Lib\test\keycert.passwd.pem and Lib\test\keycert.pem both lead to a short name of 'KEYCERT.PEM', which is causing an assertion failure in msilib.Directory.make_short(). The other clashing pair is Lib\test\ssl_key.passwd.pem and Lib\test\ssl_key.pem, at least at the moment, both of which map to 'SSL_KEY.PEM'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12406 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13179] IDLE uses common tkinter variables across all editor windows
Roger Serwy roger.se...@gmail.com added the comment: For Code Context, the behavior is a bug since the menu item check can be changed independently of the actual status of Code Context. As far as I can tell, flist.vars mostly contains variables created by EditorWindow.py's get_var_obj. A quick grep for .vars in idlelib can confirm that. It also contains variables created by PyShell.py, particularly 'toggle-jit-stack-viewer' and 'toggle-debugger'. Since the shell can only have one instance, its tkinter variables can be held local to the EditorWindow instance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13179 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13186] instance_ass_item() broken in classobject.c (Py2.7)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 418fbf1af875 by Benjamin Peterson in branch '2.7': PyEval_CallObject requires a tuple of args (closes #13186) http://hg.python.org/cpython/rev/418fbf1af875 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13186 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13139] multiprocessing.map skips finally blocks
Jesse Noller jnol...@gmail.com added the comment: Antoine is correct, as he usually is. This is more of a documentation issue than bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work
Mark Bucciarelli m...@crosscutmedia.com added the comment: Something strange is going on. I just built pysql 2.6.3 from source, and now my unit test gives the expected IntegrityError: foreign key constraint failed message. poq, what do you get when you run this script: import sqlite3 print sqlite3.version_info =, sqlite3.version_info print sqlite3.sqlite_version_info =, sqlite3.sqlite_version_info from pysqlite2 import dbapi2 as sqlite3 print pysqlite2.version_info =, sqlite3.version_info print pysqlite2.sqlite_version_info =, sqlite3.sqlite_version_info I get the following: sqlite3.version_info = (2, 6, 0) sqlite3.sqlite_version_info = (3, 6, 12) pysqlite2.version_info = (2, 6, 3) pysqlite2.sqlite_version_info = (3, 7, 8) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7317] Display full tracebacks when an error occurs asynchronously
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13153] IDLE crash with unicode bigger than 0xFFFF
Ezio Melotti ezio.melo...@gmail.com added the comment: Ezio, do you know anything about these speculations? Assuming that the non-BMP character is represented with two surrogates (\ud801\udca2) and that _tkinter tries to decode them independently, the error message (invalid continuation byte) would be correct. Python 2 UTF-8 codec is more permissive and allows encoding/decoding of surrogates (this might also explain why it works on Python 2): u'\ud801'.encode('utf-8') '\xed\xa0\x81' '\xed\xa0\x81'.decode('utf-8') u'\ud801' But on Python 3, trying to decode that results in an error: b'\xed\xa0\x81'.decode('utf-8') Traceback (most recent call last): File stdin, line 1, in module UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: invalid continuation byte But then the problem should be the initial byte, not the continuation bytes, which are the same for all chars and which all have 10 for their two high order bits. While it's true that all continuation bytes have the first two bits equal to '10', the opposite is not always true. Some start bytes have additional restrictions on the continuation bytes. For example, even if the first two bits of 0xA0 (0b1010) are '10', the valid continuation bytes for a sequence starting with 0xED are restricted to the range 80..9F. The fact that '\U000104a2' 'Ң' works is because the input is all ASCII, so the decoding doesn't fail. [...] This should catch any miscellaneous crashes which are not otherwise caught and maybe turn the crash issues into bug reports -- the same way that running from the command line did. Having some safe net to catch all the unhandled exceptions seems like a good idea. This won't work in case of segfaults, but it's still better than nothing. I'm not sure what you mean with turn them into bug reports though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13187] relative imports don't work when circular
New submission from Antoine Pitrou pit...@free.fr: This is, to say the least, annoying. $ mkdir mypackage $ touch mypackage/__init__.py $ echo from . import b mypackage/a.py $ echo from . import a mypackage/b.py $ ./python -c import mypackage.a Traceback (most recent call last): File string, line 1, in module File mypackage/a.py, line 1, in module from . import b File mypackage/b.py, line 1, in module from . import a ImportError: cannot import name a -- components: Interpreter Core messages: 145606 nosy: ncoghlan, pitrou priority: normal severity: normal status: open title: relative imports don't work when circular type: behavior versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13187 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13187] relative imports don't work when circular
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13187 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13187] relative imports don't work when circular
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13187 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13153] IDLE crash with unicode bigger than 0xFFFF
Ezio Melotti ezio.melo...@gmail.com added the comment: This can also be reproduced by doing: print('\U000104a2'[0]) � and then copy/pasting the lone surrogate. The traceback is: [...] File C:\Programs\Python32\Lib\tkinter\__init__.py, line 1009, in mainloop self.tk.mainloop(n) UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: invalid continuation byte -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13187] relative imports don't work when circular
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13187 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13184] Multi-layered symlinks to python cause runtime error. sys.path is malformed.
Jason Howlett jagua...@gmail.com added the comment: Here is a proposed patch that solves the problem I described. Hopefully someone more familiar with Module/gethpath.c can make sure that it is ok and make improvements if needed. -- keywords: +patch title: Multi-layered symlinks cause runtime error. sys.path is malformed. - Multi-layered symlinks to python cause runtime error. sys.path is malformed. Added file: http://bugs.python.org/file23415/symlink_path_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13184 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13187] relative imports don't work when circular
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13187 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13188] generator.throw() ignores __traceback__ of exception
New submission from Antoine Pitrou pit...@free.fr: In the following code, the original traceback attached to the exception thrown into the generator is ignored: def gen(): try: yield except: raise g = gen() try: 1/0 except ZeroDivisionError as v: g.throw(v) But if you replace the last line with: g.throw(type(v), v, v.__traceback__) then the original traceback gets appended. g.throw() should have fetched the __traceback__ attribute by itself. -- components: Interpreter Core messages: 145609 nosy: ncoghlan, pitrou priority: normal severity: normal status: open title: generator.throw() ignores __traceback__ of exception type: behavior versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13188 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11457] os.stat(): add new fields to get timestamps as Decimal objects with nanosecond resolution
Changes by Eric G. Barron e...@ericography.com: -- nosy: +ericography ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11457 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7317] Display full tracebacks when an error occurs asynchronously
Julian python_...@somethinkodd.com added the comment: I wish there was a less instrusive of saying +1. I'm happy. Thanks. than posting a whole comment, but until then: +1. I'm happy. Thanks. (I haven't inspected the code - just based on the description.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13153] IDLE crash with unicode bigger than 0xFFFF
Terry J. Reedy tjre...@udel.edu added the comment: I'm not sure what you mean with turn them into bug reports though. In about the last month, there have been, I think, 4 reports about IDLE crashing (quitting unexpectedly with no error traceback). I would consider it preferable if it quit with an error traceback that gave as much info as available, or if there is none, just said IDLE has met an unexpected problem., perhaps followed by something like Pleaee note the circumstances and make a report of the tracker is there is none already. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com