[issue9502] Bus error on OS X while unittest'ing QT app
Ronald Oussoren ronaldousso...@mac.com added the comment: And more importantly: your report contains to little information to determine what's going on. Even a full crashreporter log is fairly useless unless you have access to the original binary and debugging symbols. Therefore: * Try to reproduce the crash in a smaller program * Ask on PyQt forums what's going wrong * If they determine that this is likely a Python bug file a bug here with the information needed to reproduce the problem -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2651] Strings passed to KeyError do not round trip
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file18356/issue2651.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2651] Strings passed to KeyError do not round trip
Łukasz Langa luk...@langa.pl added the comment: Corrected patch attached. You're right, I left in ReST doc changes for configparser. Sorry for that. -- Added file: http://bugs.python.org/file18371/issue2651.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1759845] subprocess.call fails with unicode strings in command line
Kuang-che Wu k...@csie.org added the comment: I fail to see why subprocess.call(cmd.encode('whatever')) is not a general solution. Because 'whatever' encoding doesn't exist. Assume cmd contains Japanese characters and my system is Chinese windows. subprocess.call expect the argument is encoded in mbcs, which is cp950. However, cp950 encoding doesn't contain Japanese characters. subprocess.call(cmd.encode('cp950')) will fail because cp950 doesn't contain Japanese characters. subprocess.call(cmd.encode('cp932')) will fail because subprocess.call will decode fail or incorrectly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1759845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6040] bdist_msi does not deal with pre-release version
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9503] print statement hangs Windows service
New submission from rgpitts richard.pi...@cdl.co.uk: OS: Windows 2003 Server R2 x64 Standard Edition Python: 2.6.5 MSVC: 9.0 Application Description: Windows service calling Python C API to run algorithm written in Python. I've been encountering a random application hang when calling the Python C API function PyObject_CallMethod to call a function on a class instance. I've discovered that the C function fwrite in string_print in stringobject.c is blocking after being called multiple times due to print statements in Python code. My application as a Windows service does not have a stdout and fwrite is buffering data before attempting to write it to a non-existent stdout, thus blocking and hanging the service. This isn't an issue when the application has a console window because stdout is available. We are in the process changing the print statements to write to file. Ideally a Python exception needs raising if print cannot write to stdout. -- components: Interpreter Core messages: 112768 nosy: rgpitts priority: normal severity: normal status: open title: print statement hangs Windows service type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8757] Race condition when checking for set in set
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8757 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7186] Document specialness of __doc__, and possibly other special attributes
Florent Xicluna florent.xicl...@gmail.com added the comment: This is similar with #9438, about __debug__ being read-only. -- nosy: +flox stage: - needs patch versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7186] Document specialness of __doc__, and possibly other special attributes
Changes by Florent Xicluna florent.xicl...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4493] urllib2 doesn't always supply / where URI path component is empty
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4453] MSI installer shows error message if Compile .py files to bytecode option is selected
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7110] Output test failures on stderr in regrtest.py
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Extension Modules, XML -Library (Lib) nosy: +effbot, flox type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9402] pyexpat: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Extension Modules, XML -Library (Lib) nosy: +effbot, flox stage: - patch review type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9402 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4453] MSI installer shows error message if Compile .py files to bytecode option is selected
Martin v. Löwis mar...@v.loewis.de added the comment: This bug comes and goes. It means that compileall failed, and it will fail when there are files that it can't compile. People keep adding such files to the tree, and I keep excluding them from compileall then at some release. The original report may be a duplicate of issue6716, which was fixed in r78991 and r78994. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9504] signal.signal/signal.alarm not working as expected
New submission from Alan Wilter alanwil...@gmail.com: I have this example code to illustrate a problem I am having with python3. It works fine with python 2.6 and 2.7 but does not with python 3.1. from __future__ import print_function import os, subprocess, signal def signal_handler( signum, frame ): print( PID: %s % pid ) print( Timed out! Process %s killed, max exec time (%ss) exceeded % (pid, timeTol ) ) os.kill( int( pid ), 15 ) raise Exception( Taking too long to finish... aborting! ) if __name__ == '__main__': timeTol = 5 cmd = 'find /' signal.signal(signal.SIGALRM, signal_handler) signal.alarm(timeTol) p = subprocess.Popen(cmd, shell=True, stderr = subprocess.STDOUT, stdout = subprocess.PIPE) pid = p.pid out = str( p.communicate()[0].decode() ) print(out) Executing it: time python3.1 timout.py PID: 27687 Timed out! Process 27687 killed, max exec time (5s) exceeded Traceback (most recent call last): File timout.py, line 23, in module out = str( p.communicate()[0].decode() ) File /sw/lib/python3.1/subprocess.py, line 719, in communicate stdout = self.stdout.read() File timout.py, line 9, in signal_handler raise Exception( Taking too long to finish... aborting! ) Exception: Taking too long to finish... aborting! python3.1 timout.py 0.52s user 3.88s system 19% cpu 22.841 total It prints essentially the same thing with a *very* *big* difference it takes 22 seconds and actually the alarm only works when the whole task ('find /') is finished. -- messages: 112771 nosy: alanwilter priority: normal severity: normal status: open title: signal.signal/signal.alarm not working as expected type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9503] print statement hangs Windows service
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2178] Problems with Belarusian Latin locale
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: Not sure, never got around to dig into it. But we did have some locale fixes, including better picking up default encodings and whatnot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1100562] deepcopying listlike and dictlike objects
Michele Orrù maker...@gmail.com added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9348] Calling argparse's add_argument with the wrong number of metavars causes delayed error message
Steven Bethard steven.beth...@gmail.com added the comment: You can specify either 1 or N. So for n=3, you can specify metavar=X or metavar=(X, Y, Z) but not metavar=(X, Y). The special nargs value ? always takes only one, while * and + always take two. (This makes sense if you think about how they're formatted, e.g. X [X ...].) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9348 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2944] asyncore doesn't handle connection refused correctly
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fixed in r83703 (2.7), r83704 (2.6), r83705 (3.2) and r83706 (3.1). Thanks for the patch. -- resolution: - fixed status: open - closed versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode
Antoine Pitrou pit...@free.fr added the comment: Looks reasonable. Are there any tests that could be easily added to the test suite? -- nosy: +pitrou versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9396] Standardise (and publish?) cache handling in standard library
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9396 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8687] sched.py module doesn't have a test suite
Giampaolo Rodola' g.rod...@gmail.com added the comment: Committed as r83707 without including the mock time tests for now. I'll see whether I can manage to write them at a later time. -- resolution: - fixed status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8687 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9273] 2to3 to simultaneously do code AND doctests
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +benjamin.peterson title: 2to to simultaneously do code AND doctests - 2to3 to simultaneously do code AND doctests type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8684] improvements to sched.py
Giampaolo Rodola' g.rod...@gmail.com added the comment: sched.py tests have been checked in. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8684 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294032] Distutils writes keywords comma-separated
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 2.5, Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9364] some problems with the documentation of pydoc
Changes by Florent Xicluna florent.xicl...@gmail.com: -- keywords: +easy nosy: +flox stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9364 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9503] print statement hangs Windows service
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2651] Strings passed to KeyError do not round trip
Antoine Pitrou pit...@free.fr added the comment: In KeyError_str, I think the following code shouldn't be deleted: -if (PyTuple_GET_SIZE(self-args) == 1) { -return PyObject_Repr(PyTuple_GET_ITEM(self-args, 0)); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8834] Define order of Misc/ACKS entries
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8834 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9396] Standardise (and publish?) cache handling in standard library
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9396 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4690] asyncore calls handle_write() on closed sockets when use_poll=True
Giampaolo Rodola' g.rod...@gmail.com added the comment: This problem must have been solved at some point because this is what I get now on Linux by using python 2.7: writable() - asyncore asked if we have data to write handle_read() - asyncore asked us to read handle_close() - asyncore said the remote host closed connection close() - we are closing our end of the connection handle_close() - asyncore said the remote host closed connection close() - we are closing our end of the connection Closing out as outdated. -- resolution: - out of date status: open - closed versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4690 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2651] Strings passed to KeyError do not round trip
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file18371/issue2651.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2651] Strings passed to KeyError do not round trip
Łukasz Langa luk...@langa.pl added the comment: Patch updated to include a roundtrip test in test_exceptions. -- Added file: http://bugs.python.org/file18372/issue2651.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2651] Strings passed to KeyError do not round trip
Łukasz Langa luk...@langa.pl added the comment: FTR regarding for Antoine's comment above: that code should in fact be removed :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Antoine Pitrou pit...@free.fr added the comment: Displaying the full list may be unwieldy if it's very large. Instead, we could by default display the following kind of message: Python warning: 5 uncollectable objects remaining at interpreter shutdown. Use gc.DEBUG_UNCOLLECTABLE to list them. And list gc.garbage only if gc.DEBUG_UNCOLLECTABLE is defined. -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9503] print statement hangs Windows service
rgpitts richard.pi...@cdl.co.uk added the comment: I've created a test service that demostrates the problem. The example service calls PyRun_SimpleString in loop that evaluates the Python statement print 'String'. The number of iteration in the loop depends on the length of the string used in the print statement. The longer the string the fewer iteration. Attached is a Visual Studio 2008 project and readme. -- Added file: http://bugs.python.org/file18373/PythonService.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9505] User code should not be able to rebind gc.garbage
New submission from Antoine Pitrou pit...@free.fr: User code is currently allowed to rebind the gc.garbage attribute, while the real garbage list in the GC module actually remains the same. This is counter-intuitive and allows to write apparently correct code such as: gc.garbage = [] while it should really be: gc.garbage[:] = [] -- components: Library (Lib) messages: 112785 nosy: pitrou, tim_one priority: normal severity: normal stage: needs patch status: open title: User code should not be able to rebind gc.garbage type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9505] User code should not be able to rebind gc.garbage
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6822] Error calling .storlines from ftplib
Antoine Pitrou pit...@free.fr added the comment: To me this isn't a bug, and the patch introduces incorrect behaviour. If you want to store data on an FTP server, you have to provide binary data, not text data. The FTP class is not supposed to guess in which charset your data should be encoded. (the encoding argument on the FTP class is meant for protocol commands (such as file names), not for file contents) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6822 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1573931] WSGI, cgi.FieldStorage incompatibility
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1573931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6860] Inconsistent naming of custom command in setup.py help output
Changes by Éric Araujo mer...@netwok.org: -- stage: - needs patch versions: +Python 2.5, Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1635217] Add example of distutils setup() with requires argument
Éric Araujo mer...@netwok.org added the comment: This report is made obsolete by PEP 345. Be certain that distutils2 docs and tests will contain examples of Requires-Dist and Provides-Dist. -- nosy: +merwok resolution: - out of date stage: - committed/rejected status: open - closed versions: -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1635217 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. Perhaps I should add tests too. -- keywords: +patch Added file: http://bugs.python.org/file18374/gc_fini.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file18374/gc_fini.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review Added file: http://bugs.python.org/file18375/gc_fini.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5587] vars() no longer has a useful __repr__
David Stanek dsta...@dstanek.com added the comment: A possible fix is to add a __repr__ implementation to proxydict. I've attached a patch and also posted it to: http://codereview.appspot.com/1908043. -- keywords: +patch nosy: +dstanek Added file: http://bugs.python.org/file18376/5587.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5587 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9506] sqlite3 mogrify - return query string
New submission from Kurt Schwehr schw...@ccom.unh.edu: Psycopg2 has a mogrify method on the cursor that returns the string that would be sent to the database for an execute. Any chance that could be added to pysqlite? It's definitely helpful for debugging and is a fantastic tool when teaching people databases. -- components: Extension Modules messages: 112790 nosy: goatbar priority: normal severity: normal status: open title: sqlite3 mogrify - return query string type: feature request versions: Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6412] Titlecase as defined in Unicode Case Mappings not followed
Christoph Burgmer cburg...@ira.uka.de added the comment: @Terry How is the behavior changed? To me it seems the same to as initially reported. The results are consistent but nonetheless wrong. It's not about whether your agree with the result, but rather about following the Unicode standard. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6412 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9507] namedtuple should not hardcode the class name in __repr__
New submission from Paul Giannaros p...@giannaros.org: collections.namedtuple hardcodes the class name which is reported in the new type's __repr__. This is irritating when subclassing a namedtuple: A = collections.namedtuple('A', '') class B(A): pass print B() # shows 'A()' It might not be often that they're subclassed, but it can be a useful way to add extra methods, properties, and documentation. Other classes often use the current instance's class name in the repr (e.g. collections.OrderedDict). The attached patch changes namedtuple to do this, includes a testcase, and updates the documentation. -- components: Library (Lib) files: collections-namedtuple-repr.diff keywords: patch messages: 112792 nosy: PAG priority: normal severity: normal status: open title: namedtuple should not hardcode the class name in __repr__ type: behavior versions: Python 2.6, Python 2.7, Python 3.3 Added file: http://bugs.python.org/file18377/collections-namedtuple-repr.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9507 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Antoine Pitrou pit...@free.fr added the comment: New patch with tests. -- Added file: http://bugs.python.org/file18378/gc_fini.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file18375/gc_fini.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2651] Strings passed to KeyError do not round trip
Antoine Pitrou pit...@free.fr added the comment: Latest patch looks good. Note that you could use PyUnicode_FromFormat() instead of building the format string manually. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Antoine Pitrou pit...@free.fr added the comment: More thorough tests. -- Added file: http://bugs.python.org/file18379/gc_fini2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gvanrossum, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9500] urllib2: Content-Encoding
guest a4596...@bofthew.com added the comment: Nah sorry, I've just been bothered to report it. As I don't run py3 can't write a patch anyway. And it wouldn't help for my current python 2.x setups also. I guess it's sufficient if this is googleable, and per-application workarounds are very much ok, as Python2 isn't that widely used for webapps. Also, httplib2 supports Content-Encoding. They still have that raw deflate vs. zlib bug, but that can be fixed. And as externally distributed lib will remedy the situation for all apps and Python 2.8. However, it might be a better idea to add a note to the urllib/2 documentation instead. No default handler for Content-Encoding... because many people stumbled on this before (see google/stackoverflow). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9500 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9508] python3.2 reversal of distutils reintrocud macos9 support
New submission from Ronald Oussoren ronaldousso...@mac.com: Distutils in the py3k trunk was reverted to the version in the 31-maint branch a couple of weeks back. This reintroduced some macos9 support code that was removed in the trunk but not the maint branches. All code reverting to sys.platform == 'mac' should be removed again. -- assignee: tarek components: Distutils, Macintosh messages: 112797 nosy: ronaldoussoren, tarek priority: normal severity: normal status: open title: python3.2 reversal of distutils reintrocud macos9 support type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9509] argparse FileType raises ugly exception for missing file
New submission from Doug Hellmann doug.hellm...@gmail.com: Most of the argparse type converters handle exceptions with a single line error message explaining the problem. For example, if an argument -i is declared as an int, but the value given ('a') cannot be converted to an int, the message is something like argument -i: invalid int value: 'a'. On the other hand, FileType raises an IOError, which isn't being caught and converted to the simpler error message. Instead, a full traceback is printed. To be consistent, the IOError should be trapped and a single error message printed. -- components: Library (Lib) files: argparse_filetype_error.py messages: 112798 nosy: doughellmann priority: normal severity: normal status: open title: argparse FileType raises ugly exception for missing file versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file18380/argparse_filetype_error.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9452] configparser support for reading from strings and dictionaries
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file18341/issue9452.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9509] argparse FileType raises ugly exception for missing file
Changes by Doug Hellmann doug.hellm...@gmail.com: Added file: http://bugs.python.org/file18381/argparse_int_error.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9452] configparser support for reading from strings and dictionaries
Łukasz Langa luk...@langa.pl added the comment: Patch updated after review by Ezio Melotti and Éric Araujo. Thanks guys. -- Added file: http://bugs.python.org/file18382/issue9452.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
New submission from Nick Craig-Wood n...@craig-wood.com: sqlite3.Warning isnt a subclass of exceptions.Warning This causes this problem when trying to filter warnings import sqlite3 as DB from warnings import filterwarnings filterwarnings(always, category=DB.Warning) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.6/warnings.py, line 56, in filterwarnings assert issubclass(category, Warning), category must be a Warning subclass AssertionError: category must be a Warning subclass Other databases do this correctly, eg import MySQLdb as DB from warnings import filterwarnings filterwarnings(always, category=DB.Warning) -- components: Library (Lib) files: sqlite3-warning-fix.patch keywords: patch messages: 112800 nosy: ncw priority: normal severity: normal status: open title: sqlite3.Warning isnt a subclass of exceptions.Warning type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file18383/sqlite3-warning-fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Nick Craig-Wood n...@craig-wood.com added the comment: I've attached a patch to fix the issue along with a revised test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6786] readline and zero based indexing
James purplei...@gmail.com added the comment: It's an incompatible change; it would definitely break my code, however I think it should be wishlisted for an API-break release like 3.5 or 4.0 or something like that. IMHO, the bindings should be pythonic, even if the underlying library isn't. In addition, maybe we could add a readline.set_zero_based_indexing() function? I could write a patch for this perhaps... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Éric Araujo mer...@netwok.org added the comment: I agree this is a bug, and the patch looks good. This breaks compatibility though, so I’m not sure it can make it before 3.2 or 3.3. -- nosy: +merwok stage: - commit review versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Antoine Pitrou pit...@free.fr added the comment: I don't really think it breaks compatibility. The patch is bad, though. The exceptions module doesn't exist anymore in 3.x, the Warning class should be referenced directly instead. -- nosy: +ghaering, pitrou stage: commit review - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Éric Araujo mer...@netwok.org added the comment: I mean that sqlite3.Warning used to be a subclass of StandardError, and there may be code relying on that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Antoine Pitrou pit...@free.fr added the comment: Ah, I see. Well I don't think we can change inheritance in bugfix branches anyway. In 3.x, though, StandardError has disappeared and sqlite3.Warning inherits directly from Exception: import sqlite3 sqlite3.Warning.__bases__ (class 'Exception',) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6720] multiprocessing logging
Jesse Noller jnol...@gmail.com added the comment: The backport of multiprocessing is currently stale; and there are a few bugs in the tracker assigned to christian or myself in regards to it. If it's not too much trouble, I'd leave this one alone until the exact future of the backport can be resolved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6720 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Éric Araujo mer...@netwok.org added the comment: Warning is a subclass of Exception, so perfect. Please add 2.7 and 3.1 if you agree this bugfix should go there too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5798] test_asynchat fails on Mac OSX
Mark Dickinson dicki...@gmail.com added the comment: Josiah's fix in r73182 applies cleanly to the release26-maint branch, and fixes (for me, at least) the current OS X failures in test_asynchat and test_smtplib. I've attached a patch with the backport of this fix, and a Misc/NEWS entry. Barry, can this go in before 2.6.6 final? -- assignee: - barry nosy: +barry resolution: fixed - status: closed - open versions: -Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file18384/issue5798_release26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe
New submission from Peter Boström peterbost...@gmail.com: When reading from piped stdin, python has trouble decoding some special characters. To reproduce, run the following command from cmd.exe: echo ü | C:\Python31\python.exe pycat.py UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 0: character maps to undefined I've been able to reproduce this in a German version of Windows Vista, which I use at work. I detected this error when trying to pipe (and parse) output from the ping command, which contains non-simple characters. If I don't pipe and just type into the program, it works just fine, even with strange characters. -- components: Windows files: pycat.py messages: 112810 nosy: pbos priority: normal severity: normal status: open title: CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe versions: Python 3.1 Added file: http://bugs.python.org/file18385/pycat.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5798] test_asynchat fails on Mac OSX
Barry A. Warsaw ba...@python.org added the comment: Thanks Mark, go ahead and apply this, then close this issue. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2333] Backport set and dict comprehensions
METAL XXX metal...@gmail.com added the comment: How about fixing set.__repr__ ? -- nosy: +metal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3665] Support \u and \U escapes in regexes
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3665 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2333] Backport set and dict comprehensions
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5798] test_asynchat fails on Mac OSX
Mark Dickinson dicki...@gmail.com added the comment: Applied in r83718. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5798] test_asynchat fails on Mac OSX
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: accepted - fixed stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5713] smtplib gets out of sync if server returns a 421 status
Barry A. Warsaw ba...@python.org added the comment: The latest relevant RFC is 5321: http://www.faqs.org/rfcs/rfc5321.html smtplib should be reviewed for compliance with this updated spec. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9506] sqlite3 mogrify - return query string
R. David Murray rdmur...@bitdance.com added the comment: Can you propose a patch? -- nosy: +r.david.murray stage: - unit test needed versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9507] namedtuple should not hardcode the class name in __repr__
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9507 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9507] namedtuple should not hardcode the class name in __repr__
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - patch review versions: +Python 3.1, Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9507 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Paul Moore p.f.mo...@gmail.com added the comment: I'm not sure what needs to be done to move this forward, but as it's a problem with the test rather than with any actual code, could something be done to avoid masking real issues? I agree with Thomas that in the absence of any other solution, the assertFalse call should be removed pending a better answer. I can produce a patch, but it's pretty trivial and I'm away from my development PC for a few days, so it'll be a while before I get to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Changes by Antoine Pitrou pit...@free.fr: -- components: +Windows nosy: +brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Nick Craig-Wood n...@craig-wood.com added the comment: I re-worked the patch for python 3.x (py3k branch) - the other was for 2.x (trunk) Basically the same patch and fixes the issue according to my testing -- Added file: http://bugs.python.org/file18386/sqlite3-warning-fix-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9507] namedtuple should not hardcode the class name in __repr__
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9507 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9505] User code should not be able to rebind gc.garbage
Antoine Pitrou pit...@free.fr added the comment: Hmm, I was under the impression that C extensions could set properties (or special members) on modules, but they can't. This makes this issue too hard to solve compared to the expected benefit. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Éric Araujo mer...@netwok.org added the comment: Nitpick: s/built in/built-in/ (don’t update your patch for that, the person who will commit can do it) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning
Antoine Pitrou pit...@free.fr added the comment: On the other hand, the sqlite3 source code uses PyErr_Set*() rather than PyErr_Warn*(), so there's any point in trying to filter the warnings out (it won't work). Looking at the kind of problems that it is meant to reflect, Warning is actually a misnomer, since they are genuine errors (PYSQLITE_TOO_MUCH_SQL, PYSQLITE_SQL_WRONG_TYPE) which you cannot simply ignore. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected
New submission from Friðrik Már Jónsson frid...@pyth.net: It seems to me that the ``mode`` keyword argument of ``logging.handlers.RotatingFileHandler`` is not respected. Here is an example of opening a nonexistent file:: Python 2.7 (r27:82500, Aug 4 2010, 15:10:49) [GCC 4.3.2] on linux2 Type help, copyright, credits or license for more information. import logging.handlers handler = logging.handlers.RotatingFileHandler('nonexistent.log', ... mode='a+', maxBytes=1000, backupCount=2) handler.mode 'a' handler.stream open file '/home/fridrik/nonexistent.log', mode 'a' at 0x2aefbca796f0 The docs do not mention any deviations from the behavior I expected (``handler.stream`` having the mode specified as an argument to ``RotatingFileHandler``); only that If mode is not specified, 'a' is used. I've confirmed the same behavior on 2.5.2 and 2.6.2. This happens regardless of whether the file is being created or already exists. -- components: Library (Lib) messages: 112821 nosy: fridrik priority: normal severity: normal status: open title: logging.handlers.RotatingFileHandler - mode argument not respected type: behavior versions: Python 2.5, Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9513] test_multiprocessing skipped on Windows
New submission from Brian Curtin cur...@acm.org: I just realized test_multiprocessing is being skipped on Windows because a few relative imports of _multiprocessing are failing in win32 specific code blocks. Attached is a trivial patch to remove the relative import, enabling the tests to run and succeed on both dev and installed environments. Jesse: There don't appear to be any side effects here, but I get the feeling I might be overlooking some reason this might have been done. -- assignee: brian.curtin components: Library (Lib), Windows files: test_mp.diff keywords: patch messages: 112822 nosy: brian.curtin, jnoller priority: high severity: normal stage: patch review status: open title: test_multiprocessing skipped on Windows type: behavior versions: Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file18387/test_mp.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9513] test_multiprocessing skipped on Windows
Jesse Noller jnol...@gmail.com added the comment: The relative imports have been more of a pain then they've helped. I'm fine with nuking them so long as the test suite passes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8241] py2_test_grammar.py contains invalid syntax for 2.6
Martin v. Löwis mar...@v.loewis.de added the comment: I have now fixed this with r83721, by excluding the file from compileall. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1759845] subprocess.call fails with unicode strings in command line
Terry J. Reedy tjre...@udel.edu added the comment: Thanks for the simple explanation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1759845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9496] Unittests for Lib/rlcompleter.py
Antoine Pitrou pit...@free.fr added the comment: Thank you! I've committed your patch in py3k (r83719) and backported it to 3.1 (r83723) and 2.7 (r83725) since it's always nice to have better tests. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2178] Problems with Belarusian Latin locale
Terry J. Reedy tjre...@udel.edu added the comment: Then I will close this as possibly fixed until the OP reports this as not fixed on a current Python version (2.7, 3.1). -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4453] MSI installer shows error message if Compile .py files to bytecode option is selected
Terry J. Reedy tjre...@udel.edu added the comment: I marked this for the version Aaron verified. It seems to me that the following switch is backwards: if quiet: print('*** Error compiling', fullname, '...') else: print('*** ', end='') Quiet True should print less, not more. -- versions: +Python 3.1 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue818201] distutils: clean does not use build_base option from build
Éric Araujo mer...@netwok.org added the comment: This is actually already fixed. Thanks for the report nonetheless! -- components: +Distutils resolution: accepted - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue818201 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com