[issue9277] test_struct failure on ARM
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Stefan! Fixed (I hope) in r82941 (py3k). Now I'm puzzled about why the test passes for '?'. But let's see what the buildbots do. -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9277] test_struct failure on ARM
Mark Dickinson dicki...@gmail.com added the comment: Merged to release31-maint in r82942, release27-maint in r82945, release26-maint in r82946. (And added missing Misc/NEWS entries for this change in r82943, r82944.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9277] test_struct failure on ARM
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - pending versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9288] Disambiguate :option: and :cmdoption:
Georg Brandl ge...@python.org added the comment: This patch is not really accurate; cmdoption *is* the directive where the link goes to. option is the role to link to them (or not). -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9279] get rid of pdb.doc
Georg Brandl ge...@python.org added the comment: Done in r82949. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2053] IDLE - standardize dialogs
Mark Lawrence breamore...@yahoo.co.uk added the comment: For the record there has been a sizeable thread on python-dev in the last few days regarding IDLE. As a result it is extremely likely that IDLE outstanding issues will be picked up, so please leave this issue open. -- nosy: +BreamoreBoy, tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4047] test_run_abort triggers CrashReporter on MacOS X
Martina Oefelein mart...@oefelein.de added the comment: Yes, a warning at the start of the test would at least let the user know that the crash is expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9277] test_struct failure on ARM
Stefan Krah stefan-use...@bytereef.org added the comment: Now I'm puzzled about why the test passes for '?'. Somewhere along the way native_table is used instead of lilendian_table, so np_bool is called. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError
Mark Lawrence breamore...@yahoo.co.uk added the comment: I applied the patch to test_smtplib.py only and all tests passed, surely that's not correct. Removing the explicit test for a non-numeric port in smtplib.py seems strange to me, could someone please explain the rationale behind this. I also noticed this line in the patch. if self.debuglevel 0: printstderr, connect:, msg And this comment in set_debuglevel in smtplib.py A non-false value results in debug messages for connection and for all messages sent to and received from the server. IIRC if a string was passed into set_debuglevel the comparison would fail in py3k, am I correct? The print statement would not work in py3k. Given that the debuglevel code obviously doesn't get tested perhaps it should simply be stripped from the code? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2118 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2796] Build issues in DragonFly BSD
Mark Lawrence breamore...@yahoo.co.uk added the comment: I suggest that this is closed if we do not get an answer to Brian's question. -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2813] No float formatting in PyString_FromFormat
Mark Lawrence breamore...@yahoo.co.uk added the comment: Jean, do you intend taking this issue any further or can it be closed? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2813] No float formatting in PyString_FromFormat
Mark Dickinson dicki...@gmail.com added the comment: I'll take a look at this. -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9277] test_struct failure on ARM
Mark Dickinson dicki...@gmail.com added the comment: Somewhere along the way native_table is used instead of lilendian_table, so np_bool is called. Hmm. This doesn't alleviate my confusion. :) The relevant part of test_struct looks like: for prefix in tuple(!=)+('',): # other tests try: struct.pack(prefix + '?', ExplodingBool()) except IOError: pass else: self.fail(Expected IOError: struct.pack(%r, ExplodingBool()) % (prefix + '?')) So the '?' test should happen directly before the '?' test. But the '?' test was apparently passing, while the '?' one was failing. I don't see how native_table is relevant here, but am probably missing something. On the other hand, with the pre-patch code, we end up with a method that sets a Python error but then returns a return value that indicates no error happened, and all sorts of unpredictable things can happen at that point... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2927] expose html.parser.unescape
Mark Lawrence breamore...@yahoo.co.uk added the comment: Trying to run the test and I get:- c:\py3k\Lib..\PCbuild\python_d.exe test\test_htmlparser.py File test\test_htmlparser.py, line 326 escaped = upThere#146;s the Cocirc;te/p ^ SyntaxError: invalid syntax -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry
New submission from Dmitry Jemerov intelliy...@gmail.com: On Windows, mimetypes initialization reads the list of MIME types from the Windows registry. It assumes that all characters are Latin-1 encoded, and fails when it's not the case, with the following exception: Traceback (most recent call last): File mttest.py, line 3, in module mimetypes.init() File c:\Python27\lib\mimetypes.py, line 355, in init db.read_windows_registry() File c:\Python27\lib\mimetypes.py, line 260, in read_windows_registry for ctype in enum_types(mimedb): File c:\Python27\lib\mimetypes.py, line 250, in enum_types ctype = ctype.encode(default_encoding) # omit in 3.x! UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128) This can be reproduced, for example, on a Russian Windows XP installation which has QuickTime installed (QuickTime creates the non-Latin entries in the registry). The following line causes the exception to happen: import mimetypes; mimetypes.init() -- components: Library (Lib), Windows messages: 110637 nosy: Dmitry.Jemerov priority: normal severity: normal status: open title: mimetypes initialization fails on Windows because of non-Latin characters in registry versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2931] optparse: various problems with unicode and gettext
Mark Lawrence breamore...@yahoo.co.uk added the comment: Alexy, there would be a much better chance of getting this accepted if you could supply a patch file that also included unit tests. -- nosy: +BreamoreBoy, aronacher versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3022] mailbox module, two small fixes
Mark Lawrence breamore...@yahoo.co.uk added the comment: Anyone interested in taking this forward? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3022 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3068] IDLE - Add an extension configuration dialog
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +tjreedy versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3068 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3073] Cookie.Morsel breaks in parsing cookie values with whitespace
Mark Lawrence breamore...@yahoo.co.uk added the comment: Anyone with knowledge of cookies and/or regexes who could review this? The patch isn't that big and includes unit tests. Note also Trent's offer to check it in and patch py3k. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9277] test_struct failure on ARM
Stefan Krah stefan-use...@bytereef.org added the comment: Mark Dickinson rep...@bugs.python.org wrote: Somewhere along the way native_table is used instead of lilendian_table, so np_bool is called. Hmm. This doesn't alleviate my confusion. :) I suppose I sounded a bit like the Oracle of Delphi here. :) I compiled with OPT=-O0 -g -funsigned-char and stepped through the code (pre-patch). With '', np_bool is substituted for bp_bool (apparently in PyInit__struct). np_bool correctly returns -1, so the problem does not occur. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3119] pickle.py is limited by python's call stack
Mark Lawrence breamore...@yahoo.co.uk added the comment: Sean has stated that the patch seems fine, what needs to be done to take this forward? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3119 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9110] contextlib.ContextDecorator
Michael Foord mich...@voidspace.org.uk added the comment: I've uploaded a new patch with additions to the docs. Let me know if it is ok or if you have any suggested amendments. -- Added file: http://bugs.python.org/file18049/contextlib_docs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9277] test_struct failure on ARM
Mark Dickinson dicki...@gmail.com added the comment: Ah yes; I missed that bit of PyInit__struct; thank you! Setting to pending; I'll close once the buildbots have reported back (it might take some days for the ARM buildbots to catch up). Many thanks for the diagnosis. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9110] contextlib.ContextDecorator
Georg Brandl ge...@python.org added the comment: Applied, with small changes, in r82951. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9292] Dead code in Modules/pyexpat.c
New submission from Antoine Pitrou pit...@free.fr: There's some dead code in xmlparse_ParseFile() in Modules/pyexpat.c: the file pointer fp is always NULL, and as such the following code can never get entered into: if (fp) { bytes_read = fread(buf, sizeof(char), BUF_SIZE, fp); if (bytes_read 0) { PyErr_SetFromErrno(PyExc_IOError); return NULL; } } There might be similar situations in other methods. -- components: Extension Modules messages: 110646 nosy: akuchling, christian.heimes, pitrou priority: low severity: normal stage: needs patch status: open title: Dead code in Modules/pyexpat.c versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7511] msvc9compiler.py: ValueError: [u'path']
ipatrol ipatrol6...@yahoo.com added the comment: I noticed that the directions from mathworks are no longer correct. The only optional feature is a 64 bit SQL server. Yet I still can't get it to work correctly. Does MS no longer provide the compiler in their free editions? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9293] Unsupported IO operations should raise UnsupportedOperation
New submission from Antoine Pitrou pit...@free.fr: Some of them currently raise IOError. Fortunately, UnsupportedOperation inherits from IOError, which means compatibility can be preserved. Contrast: open(LICENSE).write(bar) Traceback (most recent call last): File stdin, line 1, in module IOError: not writable With: open(LICENSE, rb).write(b) Traceback (most recent call last): File stdin, line 1, in module io.UnsupportedOperation: write Or: io.StringIO().fileno() Traceback (most recent call last): File stdin, line 1, in module io.UnsupportedOperation: fileno Or, unfortunately: open(LICENSE, rb, buffering=0).write(b) Traceback (most recent call last): File stdin, line 1, in module ValueError: File not open for writing -- components: IO, Library (Lib) keywords: easy messages: 110648 nosy: amaury.forgeotdarc, benjamin.peterson, haypo, pitrou priority: normal severity: normal status: open title: Unsupported IO operations should raise UnsupportedOperation type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7511] msvc9compiler.py: ValueError: [u'path']
ipatrol ipatrol6...@yahoo.com added the comment: HAHA DISREGARD THAT, WRONG DOWNLOAD. However, the C++ compiler `is` now installed by default. P.S: that second ValueError? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9293] Unsupported IO operations should raise UnsupportedOperation
Antoine Pitrou pit...@free.fr added the comment: Another kind of unsupported operation is non-absolute seeking on a TextIOWrapper: open(LICENSE).seek(1, 1) Traceback (most recent call last): File stdin, line 1, in module IOError: can't do nonzero cur-relative seeks -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6643] Throw away more radioactive locks that could be held across a fork in threading.py
Changes by Reid Kleckner r...@mit.edu: -- assignee: - rnk keywords: +needs review -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6643 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6642] returning after forking a child thread doesn't call Py_Finalize
Changes by Reid Kleckner r...@mit.edu: -- assignee: - rnk dependencies: +Throw away more radioactive locks that could be held across a fork in threading.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6642 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9294] Dead code in Objects/object.c
New submission from Antoine Pitrou pit...@free.fr: internal_print() is called from only one place, with the `nesting` argument wired to 0, therefore the following chunk of code in internal_print() never gets a chance to be executed: if (nesting 10) { PyErr_SetString(PyExc_RuntimeError, print recursion); return -1; } -- components: Interpreter Core messages: 110651 nosy: pitrou priority: low severity: normal stage: needs patch status: open title: Dead code in Objects/object.c versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I noticed test_close_open_print_buffered(test_file) sometimes crashes on release26-maint branch. This is most problamatic part in my python2.6 test survey on VC6 + Win2K. Here is stacktrace. _write_lk(int 6, const void * 0x00b49240, unsigned int 11) line 155 + 3 bytes _write(int 6, const void * 0x00b49240, unsigned int 11) line 79 + 17 bytes _flush(_iobuf * 0x102618e8) line 162 + 23 bytes _fclose_lk(_iobuf * 0x102618e8) line 130 + 9 bytes fclose(_iobuf * 0x102618e8) line 67 + 9 bytes close_the_file(PyFileObject * 0x00a9e6b8) line 370 + 7 bytes file_close(PyFileObject * 0x00a9e6b8) line 570 + 9 bytes call_function(_object * * * 0x00fdf350, int 11134648) line 3734 + 204 bytes PyEval_EvalFrameEx(_frame * 0x00b33d50, int 131) line 2414 (snip) Python crashes when MSVCRT touches internal buffer of file object via flush() in close(). I think this is multi-threading bug related to internal buffer of file object. I'll post more. -- components: Interpreter Core messages: 110652 nosy: ocean-city priority: normal severity: normal stage: needs patch status: open title: test_close_open_print_buffered(test_file) sometimes crashes type: crash versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8844] Condition.wait() doesn't raise KeyboardInterrupt
Reid Kleckner r...@mit.edu added the comment: Waiting until the portability hacks for gettimeofday make it into core Python. -- dependencies: +Make gettimeofday available in time module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8844 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9294] Dead code in Objects/object.c
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I saw value of local variable *thread* was 5384 and internal buffer's address was 0x102618c8 (sorry, this is another stacktrace which differs from previous one) thread(5384) func(file_close): enter thread(5384) func(close_the_file): enter thread(5384) func(close_the_file): file(00A1FB18) address(00B18FD0): local_close enter... thread(5376) func(file_close): enter thread(5376) func(close_the_file): enter thread(5376) func(close_the_file): leave thread(5376) func(file_close): file(00A1FB18) address(00B18FD0): PyMem_Free thread(5376) func(file_close): leave Thread 5384 entered close_the_file() and ran local_close() and allowed another thread to run. Before this, fp-f_fp was set to NULL. Thread 5376 entered close_the_file() and see fp-f_fp is NULL, and returned immediately and freed fp-f_setbuf. Interesting point is, thread 5384 was still running close(2), so flush(2) called by this function touched this buffer and crashed. -- keywords: +patch Added file: http://bugs.python.org/file18050/py26_debug_threaded_close.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I saw value of local variable *thread* was 5384 and internal buffer's address was 0x102618c8 (sorry, this is another stacktrace which differs from previous one) thread(5384) func(file_close): enter thread(5384) func(close_the_file): enter thread(5384) func(close_the_file): file(00A1FB18) address(00B18FD0): local_close enter... thread(5376) func(file_close): enter thread(5376) func(close_the_file): enter thread(5376) func(close_the_file): leave thread(5376) func(file_close): file(00A1FB18) address(00B18FD0): PyMem_Free thread(5376) func(file_close): leave Thread 5384 entered close_the_file() and ran local_close() and allowed another thread to run. Before this, fp-f_fp was set to NULL. Thread 5376 entered close_the_file() and see fp-f_fp is NULL, and returned immediately and freed fp-f_setbuf. Interesting point is, thread 5384 was still running close(2), so flush(2) called by this function touched this buffer and crashed. -- Added file: http://bugs.python.org/file18051/py26_debug_threaded_close.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file18051/py26_debug_threaded_close.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I created a patch to workaround this crash. But I saw another problamatic phenomenon Error without exception set. I confirmed PyErr_Occurred() returns TRUE when leaving file_close() on error, but I gave up. test_close_open_print_buffered (__main__.FileThreadingTests) ... close failed in file object destructor: IOError: [Errno 0] Error Exception in thread Thread-1: Traceback (most recent call last): File e:\python-dev\release26-maint\lib\threading.py, line 532, in __bootstra p_inner self.run() File e:\python-dev\release26-maint\lib\threading.py, line 484, in run self.__target(*self.__args, **self.__kwargs) File test_custom.py, line 94, in worker f() File test_custom.py, line 88, in lambda lambda: self._close_and_reopen_file(), File test_custom.py, line 54, in _close_and_reopen_file self._close_file() File test_custom.py, line 49, in _close_file self.f.close() SystemError: error return without exception set Qclose failed in file object destructor: IOError: [Errno 0] Error Exception in thread Thread-4: Traceback (most recent call last): File e:\python-dev\release26-maint\lib\threading.py, line 532, in __bootstra p_inner self.run() File e:\python-dev\release26-maint\lib\threading.py, line 484, in run self.__target(*self.__args, **self.__kwargs) File test_custom.py, line 94, in worker f() File test_custom.py, line 88, in lambda lambda: self._close_and_reopen_file(), File test_custom.py, line 54, in _close_and_reopen_file self._close_file() File test_custom.py, line 49, in _close_file self.f.close() SystemError: error return without exception set 4271 88.3166 ok -- Ran 1 test in 6.579s OK -- Added file: http://bugs.python.org/file18052/py26_experimental_patch_on_fileobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2927] expose html.parser.unescape
Reid Kleckner r...@mit.edu added the comment: It's using the old Python 2 unicode string literal syntax. It also doesn't keep to 80 cols. I'd also rather continue using a lazily initialized dict instead of catching a KeyError for apos;. I also feel that with the changes to Unicode in py3k, the cp1252 stuff won't work as desired and should be cut. === Is anyone still interested in html.unescape or html.escape anyway? Every web framework seems to have their own support routines already. Otherwise I'd recommend close - wontfix. -- nosy: +rnk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8265] test_float fails on ARM Linux EABI with soft floating point
Mark Dickinson dicki...@gmail.com added the comment: The test_float failure is still extant. Here's the output of gcc -v on this buildbot, for use in any gcc bug report: Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.4-6' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi Thread model: posix gcc version 4.4.4 (Debian 4.4.4-6) and the relevant compilation line: gcc -pthread -c -g -O2 -g -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Objects/floatobject.o Objects/floatobject.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Antoine Pitrou pit...@free.fr added the comment: The proposed resolution is wrong. As the comment says, there is a specific reason why f-fp is NULLed at this point. It appears that maybe MSVCRT is not entirely thread-safe with respect to buffered file I/O. Perhaps the test can simply be disabled under Windows. Is test_close_open_print_buffered the only test that fails? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9296] json module skipkeys handling changed exception types in 2.7
New submission from Doug Hellmann doug.hellm...@gmail.com: Under Python 2.6 the json encoder raised a TypeError when it encountered dictionary keys that were not strings. Under 2.7, that exception has changed to a ValueError, but the documentation still says it raises TypeError. I'm not sure which is right, but TypeError seems like the correct exception. -- components: Library (Lib) messages: 110660 nosy: doughellmann priority: normal severity: normal status: open title: json module skipkeys handling changed exception types in 2.7 type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9296] json module skipkeys handling changed exception types in 2.7
Doug Hellmann doug.hellm...@gmail.com added the comment: The attached file json_skipkeys.py illustrates the problem. -- Added file: http://bugs.python.org/file18053/json_skipkeys.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8265] test_float fails on ARM Linux EABI with soft floating point
Mark Dickinson dicki...@gmail.com added the comment: Added some test code to the configure script in r82957; if the corresponding configure test fails, this snippet can be used in the gcc bug report. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9296] json module skipkeys handling changed exception types in 2.7
Doug Hellmann doug.hellm...@gmail.com added the comment: Looking into the code, I see in _json.c that a ValueError is raised by encoder_listencode_dict() on line 2150, but in the pure-Python implementation in json/encoder.py a TypeError is raised by _make_iterencode() on line 376. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1902] Test
Martin v. Löwis mar...@v.loewis.de added the comment: This is a link: (http://www.python.org) -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1902] Test
Martin v. Löwis mar...@v.loewis.de added the comment: And another think: http://www.microsoft.com/VS(1234.foo).aspx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Maybe I am wrong, but when another thread calls File.close(), there is no system call on the code path, so I think still crash can happen nevertheless system call is thread safe. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Antoine Pitrou pit...@free.fr added the comment: Maybe I am wrong, but when another thread calls File.close(), there is no system call on the code path, There is, and that's precisely what's the various tests test for. (closing a file from a thread while it's being used from another thread) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2813] No float formatting in PyString_FromFormat
Jean Brouwers mrje...@gmail.com added the comment: Mark L, No, I do not intend to take this issue further. Rather the opposite, it should probably be paired down based on the recent comments. Specifically, use PyOS_double_to_string, remove support for long double and perhaps more. Also, the patches I created are more than 2 years old and will need to be updated against the current stringobject.c code. There are quite a few changes in the 2.7 version of that file since early 2.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Hmm, correct me if following understanding is wrong somewhere... 1. File.close() is actually file_close(), and is calling close_the_file(). 2. Returns immediately because local_fp == f-f_fp is already NULL. The return value is None. 3. sts is non-NULL, so PyMem_Free(f-f_setbuf) happens. 4. There is no system call for FILE object, so thread won't wait for close(2) completion. Maybe can we fix this issue by the patch like this? I moved PyMem_Free into close_the_file(), and called it only when close operation succeeded. Index: Objects/fileobject.c === --- Objects/fileobject.c(revision 82910) +++ Objects/fileobject.c(working copy) @@ -371,9 +371,14 @@ Py_END_ALLOW_THREADS if (sts == EOF) return PyErr_SetFromErrno(PyExc_IOError); -if (sts != 0) +if (sts != 0) { +PyMem_Free(f-f_setbuf); +f-f_setbuf = NULL; return PyInt_FromLong((long)sts); +} } +PyMem_Free(f-f_setbuf); +f-f_setbuf = NULL; } Py_RETURN_NONE; } @@ -567,12 +572,7 @@ static PyObject * file_close(PyFileObject *f) { -PyObject *sts = close_the_file(f); -if (sts) { -PyMem_Free(f-f_setbuf); -f-f_setbuf = NULL; -} -return sts; +return close_the_file(f); } -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I forgot to mention that I didn't see any Error without exception set by my last patch. I agree f-f_fp = NULL; is needed there. ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5872] New C API for declaring Python types
Changes by Reid Kleckner r...@mit.edu: -- nosy: +rnk versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5872 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2053] IDLE - standardize dialogs
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file10140/IDLE_standardize_dialogs.080429.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2053] IDLE - standardize dialogs
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file10556/IDLE_standardize_dialogs.080609.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4938] Pdb cannot access doctest source in postmortem
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky stage: - needs patch type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4938 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Antoine Pitrou pit...@free.fr added the comment: Hmm, correct me if following understanding is wrong somewhere... 1. File.close() is actually file_close(), and is calling close_the_file(). 2. Returns immediately because local_fp == f-f_fp is already NULL. The return value is None. I don't understand why you say that. Why is f-f_fp already NULL while close() still hasn't been called? By the way, is it 2.6-specific or does it also happen on 2.7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Antoine Pitrou pit...@free.fr added the comment: Does the following patch solve your issue? Index: Python/ceval.c === --- Python/ceval.c (révision 82959) +++ Python/ceval.c (copie de travail) @@ -1763,6 +1763,8 @@ If __getattr__ raises an exception, w will be freed, so we need to prevent that temporarily. */ Py_XINCREF(w); +if (PyFile_Check(w)) +PyFile_IncUseCount((PyFileObject *) w); if (w != NULL PyFile_SoftSpace(w, 0)) err = PyFile_WriteString( , w); if (err == 0) @@ -1790,6 +1792,8 @@ else PyFile_SoftSpace(w, 1); } +if (PyFile_Check(w)) +PyFile_DecUseCount((PyFileObject *) w); Py_XDECREF(w); Py_DECREF(v); Py_XDECREF(stream); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2813] No float formatting in PyString_FromFormat
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closing as Jean has no interest in keeping it open. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3130] In some UCS4 builds, sizeof(Py_UNICODE) could end up being more than 4.
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Mark Dickinson you've shown some interest, could you run with this? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3243] Support iterable bodies in httplib
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone with knowledge of httplib please move this forward, all the comments I see are positive. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9265] Incorrect name passed as arg[0] when shell=True and executable specified
Narnie Harshoe signupli...@gmail.com added the comment: Hello, I am impressed by the activity here. I am a new programmer and cutting my teeth with python. I wish I knew how to do a patch and write unit tests, but I'm just not there yet. I can show a test case in this fashion where it fails. First I prove that /bin/sh is /bin/sh (er, dash) and /bin/bash is /bin/bash. Then it can be seen that when executable is set as /bin/bash and there is a shell error, that it returns a shell error from /bin/sh, not from /bin/bash. I see there are patches here that should fix it, but for those wanting to see the buggy code in action, here it is using the fact that echo was mistyped as echos to raise a shell error (but shell=True so it doesn't raise an OSError exception). _ in shell terminal: $ file /bin/bash /bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped $ file /bin/sh /bin/sh: symbolic link to `dash' $ file /bin/dash /bin/dash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped in python interactive interpreter shell = Popen('echos', shell=True, executable=/bin/bash, stdin=PIPE, stderr=PIPE, stdout=PIPE) shell.communicate() ('', '/bin/sh: echos: command not found\n') shell = Popen('echos', shell=True, executable=/bin/bash, stdin=PIPE, stderr=PIPE, stdout=PIPE) shell.communicate() ('', '/bin/bash: echos: command not found\n') Thank you for working on this so quickly. This is truly an amazing community. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug
Mark Lawrence breamore...@yahoo.co.uk added the comment: Loads of comments about backports, can this be closed or are there still any outstanding issues? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9265] Incorrect name passed as arg[0] when shell=True and executable specified
Narnie Harshoe signupli...@gmail.com added the comment: I'm sorry, but the last lines in the interpreter reflect my code changes which seemed to not be sufficient, but it shows that just for this case at least, it corrects it and allows it to be run in /bin/bash shells (much of my shell code is bash since I'm linux only and this is usually available and I make use of c-like math or incrementors like $(( x++ )) in the shell code (I know, I know, I should make my code more portable such that it can run on /bin/sh, but I'm lazy). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3445] Ignore missing attributes in functools.update_wrapper
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is there anyone who can provide this issue with a bit of TLC as it's almost the 2nd birthday? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.5, Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3488] Provide compress/uncompress functions on the gzip module
Mark Lawrence breamore...@yahoo.co.uk added the comment: This appears to have slipped under the radar, msg94432 seems to sum it up. Could someone please take this forward. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3488 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3532] bytes.tohex method
Mark Lawrence breamore...@yahoo.co.uk added the comment: This should be closed unless someone can provide a good reason for keeping it open. -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))
Mark Lawrence breamore...@yahoo.co.uk added the comment: Please refer to msg89022. -- nosy: +BreamoreBoy, tjreedy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3573 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3615] Expect methods for testing.
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can't see this going anywhere, might as well close unless someone is really interested. -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3615 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3704] cookielib doesn't handle URLs with / in parameters
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could we please have an update from people who have been involved on this issue as to whether it can be taken forward, closed as to no longer relevant, or whatever. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone with knowledge of the Python build systems please comment on this, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone with knowledge of the Python build systems please comment on this, thanks. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9110] contextlib.ContextDecorator
Changes by Nick Coghlan ncogh...@gmail.com: -- stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
Mark Lawrence breamore...@yahoo.co.uk added the comment: Has this slipped under the radar? I believe that one way or the other any performance issue should be resolved if at all possible. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug
Nick Coghlan ncogh...@gmail.com added the comment: I believe the two attached patches still need to be checked. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3985] removed string module from distutils [patch]
Mark Lawrence breamore...@yahoo.co.uk added the comment: Tarek, has this move to distutils2 taken place so we can close this, or do you wish to leave this issue open? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3985 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4037] doctest.py should include method descriptors when looking inside a class __dict__
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone please respond to Georg's comment msg104300, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3445] Ignore missing attributes in functools.update_wrapper
Nick Coghlan ncogh...@gmail.com added the comment: That would be me :) In line with the 'consenting adults' philosophy and with the current behaviour causing real world problems, I'll accept this RFE and check it in soon. -- assignee: - ncoghlan resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4080] pyunit - display time of each test case - patch
Mark Lawrence breamore...@yahoo.co.uk added the comment: Pawel, could you please provide an update wrt Ezio's comment on msg109448, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add Systemtap/DTrace probes
Mark Lawrence breamore...@yahoo.co.uk added the comment: Comments suggest this is wanted, can our build experts get this into 3.2? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4199] add shorthand global and nonlocal statements
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'm not sure as to the status of this. Could it go back to (say) 3.3, is it still a candidate for 3.2(.x), or what? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4199 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4254] _cursesmodule.c callable update_lines_cols()
Mark Lawrence breamore...@yahoo.co.uk added the comment: msg82783 states code portion of patch looks ok, what do we need to take this forward? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4254 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4335] inspect.getsourcelines ignores last line in module
Mark Lawrence breamore...@yahoo.co.uk added the comment: Ok so we missed the opportunity to backport this to 2.5.3, could we please get it into modern versions of Python, or what? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4335] inspect.getsourcelines ignores last line in module
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Martin, Was there a reason for not accepting this patch for the trunk? -- assignee: - belopolsky keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4199] add shorthand global and nonlocal statements
Benjamin Peterson benja...@python.org added the comment: 2010/7/18 Mark Lawrence rep...@bugs.python.org: Mark Lawrence breamore...@yahoo.co.uk added the comment: I'm not sure as to the status of this. Could it go back to (say) 3.3, is it still a candidate for 3.2(.x), or what? It can't do anything until 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4199 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add Systemtap/DTrace probes
Jesús Cea Avión j...@jcea.es added the comment: +1! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add Systemtap/DTrace probes
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: If any RedHat/Fedora people are tuned in, can you give us an update on Systemtap/DTrace support in RedHat/Fedora python? I understand that one of the main problems with bringing this upstream was the lack of uniformity between Apple and Sun approaches. These days Apple and Sun(Oracle) are increasingly unfriendly to open source, so with a third solution available from RedHat, the choice seems obvious. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20100719.zip is a new version of the regex module. Just a few more tweaks for speed. -- Added file: http://bugs.python.org/file18054/issue2636-20100719.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1712522] urllib.quote throws exception on Unicode URL
Matt Giuca matt.gi...@gmail.com added the comment: Thanks for doing that, Senthil. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1712522 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7962] Demo and Tools need to be tested and pruned
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +Single-line option to pygettext.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7962 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1098749] Single-line option to pygettext.py
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: A rare example of a 5-year old patch that still applies with only a minor tweak. This is probably a sign that pygettext itself has not been kept up to date. In any case, I am attaching an updated patch which I did not test beyond running pygettext.py -h. There was no response from OP to the patch review and from a brief look at the patch, it is not commit ready. I am adding this as a dependency to meta-issue #7962 so that the fate of this patch and pygettext itself can be decided. -- nosy: +belopolsky stage: - patch review type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1098749 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1098749] Single-line option to pygettext.py
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file18055/issue1098749.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1098749 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Vlastimil Brom vlastimil.b...@gmail.com added the comment: Thanks for the update; Just a small observation regarding some character ranges and ignorecase, probably irrelevant, but a difference to the current re anyway: zero2z = u0123456789:;=?...@abcdefghijklmnopqrstuvwxyz[\]^_`abcdefghijklmnopqrstuvwxyz re.findall((?i)[X-d], zero2z) [] regex.findall((?i)[X-d], zero2z) [u'A', u'B', u'C', u'D', u'X', u'Y', u'Z', u'[', u'\\', u']', u'^', u'_', u'`', u'a', u'b', u'c', u'd', u'x', u'y', u'z'] re.findall((?i)[B-d], zero2z) [u'B', u'C', u'D', u'b', u'c', u'd'] regex.findall((?i)[B-d], zero2z) [u'A', u'B', u'C', u'D', u'E', u'F', u'G', u'H', u'I', u'J', u'K', u'L', u'M', u'N', u'O', u'P', u'Q', u'R', u'S', u'T', u'U', u'V', u'W', u'X', u'Y', u'Z', u'[', u'\\', u']', u'^', u'_', u'`', u'a', u'b', u'c', u'd', u'e', u'f', u'g', u'h', u'i', u'j', u'k', u'l', u'm', u'n', u'o', u'p', u'q', u'r', u's', u't', u'u', u'v', u'w', u'x', u'y', u'z'] It seems, that the re module is building the character set using a case insensitive alphabet in some way. I guess, the behaviour of re is buggy here, while regex is ok (tested on py 2.7, Win XPp). vbr -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9295] test_close_open_print_buffered(test_file) sometimes crashes
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Does the following patch solve your issue? I tried, but it still crashed. I could reproduce the crash by following script. It crashed also on Python2.7, but it doesn't crash on Python3. And when I used io.open() instead of builtin open(), it doesn't crash even on Python2.x. (Probably because io.open implements buffer protocol by itself) // import threading import sys if sys.version_info.major == 3: xrange = range def main(): size = 1024 * 1024 # large enough f = open(__temp__.tmp, w, size) for _ in xrange(size): f.write(c) t1 = threading.Thread(target=f.close) t2 = threading.Thread(target=f.close) t1.start() t2.start() t1.join() t2.join() if __name__ == '__main__': main() // I lied a bit on msg110655. close(2) is not used, that is actually fclose(). I didn't notice the variable *close* was declared as the parameter of fill_file_fields(). -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1812] doctest _load_testfile function -- newline handling seems incorrect
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Mark L, This could use some shaking. Please take a look. -- nosy: +BreamoreBoy, belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9297] SMTP with Sqlite3 file attachment
New submission from Murilo da Silva muril...@gmail.com: I'm sending e-mail using SMTP. This e-mail is sent with an Sqlite3 database attached. When I send the e-mail in the same domain the attachment arrives OK, but if I send it to a different domain it comes crashed!! The file is added with some base64 code...I don't have any ideia why! The code mail.py: import smtplib import os import mimetypes import base64 from email import encoders from email.message import Message from email.mime.base import MIMEBase from email.mime.nonmultipart import MIMENonMultipart from email.mime.multipart import MIMEMultipart from email.mime.application import MIMEApplication from email.mime.audio import MIMEAudio from email.mime.image import MIMEImage from email.mime.message import MIMEMessage from email.mime.text import MIMEText class SendMail: def __init__(self): self.body = [] self.attachments = [] def add_body(self, _text, _subtype='plain', _charset='us-ascii'): part = MIMEText(_text+\n, _subtype, _charset) self.body.append(part) def add_attach(self, _file_path, _subtype='octet-stream', _encoder=encoders.encode_base64, **_params): path = _file_path ctype, encoding = mimetypes.guess_type(path) if ctype is None or encoding is not None: ctype = 'application/octet-stream' maintype, subtype = ctype.split('/', 1) if maintype == 'text': fp = open(path) part = MIMEText(fp.read(), _subtype=subtype) fp.close() elif maintype == 'image': fp = open(path, 'rb') part = MIMEImage(fp.read(), _subtype=subtype) fp.close() elif maintype == 'audio': fp = open(path, 'rb') part = MIMEAudio(fp.read(), _subtype=subtype) fp.close() else: fp = open(path, 'rb') part = MIMEBase(maintype, subtype) part.set_payload(fp.read()) fp.close() # Encode the payload using Base64 encoders.encode_base64(part) part.set_payload(part.get_payload().decode()) part.add_header('Content-Disposition', 'attachment', filename = path.split(os.sep)[-1]) self.attachments.append(part) def send_now(self, mail_from, mail_to, subject, multipart_subtype='mixed', host=None, port=25, auth=False, user=, passw=): msg = MIMEMultipart(multipart_subtype) msg['Subject'] = subject msg['From'] = mail_from if type(mail_to) is list: msg['To'] = , .join(mail_to) else: msg['To'] = mail_to for b in self.body: msg.attach(b) for att in self.attachments: msg.attach(att) try: mailserver = smtplib.SMTP(host, port) #mailserver.set_debuglevel(1) mailserver.ehlo() mailserver.starttls() mailserver.ehlo() if auth: mailserver.login(user, passw) mailserver.sendmail(mail_from, mail_to, msg.as_string()) mailserver.close() return True except Exception as e: print(e) return False The database to attach is in the final. The example: s = SendMail() s.add_body(test) s.add_attach(os.path.abspath(test.db)) s.send_now(t...@domain1.com, t...@domain2.com, test, host=smtp.domain1.com, port=25, auth=True, user=user, passw=pass) -- components: Library (Lib) files: test.db messages: 110707 nosy: murilobr priority: normal severity: normal status: open title: SMTP with Sqlite3 file attachment type: behavior versions: Python 3.1 Added file: http://bugs.python.org/file18056/test.db ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com