[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-06 Thread Mark Dickinson
Mark Dickinson added the comment: I'm confused: are you talking about producing underscores when formatting an integer for hexadecimal output, or allowing numeric literals to contain underscores? Your perl example produces: 305441741 with not an underscore in sight. I'm failing to underst

[issue7319] Silence DeprecationWarning by default

2010-03-06 Thread Florent Xicluna
Florent Xicluna added the comment: The -Qwarn/-Qwarnall options are unexpectedly silenced in 2.7. -- nosy: +flox stage: -> commit review versions: +Python 2.7 ___ Python tracker ___

[issue1731717] race condition in subprocess module

2010-03-06 Thread Florent Xicluna
Florent Xicluna added the comment: Sometimes IA64 Ubuntu bot fails on this one. http://www.python.org/dev/buildbot/all/builders/ia64%20Ubuntu%20trunk/builds/571 -- keywords: +buildbot ___ Python tracker

[issue6906] Tkinter sets an unicode environment variable on win32

2010-03-06 Thread Florent Xicluna
Florent Xicluna added the comment: confirmed on Win7 buildbot, when the tcl or tk test is run before test_wsgiref: == FAIL: test_simple_validation_error (test.test_wsgiref.IntegrationTests) -

[issue4180] warnings.simplefilter("always") does not make warnings always show up

2010-03-06 Thread Mark Dickinson
Mark Dickinson added the comment: +1 for Benjamin's patch, having just been bitten by this exact problem. I'm trying to do unit testing, checking both that a piece of code produces a DeprecationWarning and that it gives the correct result, with something like: with warnings.catch_warnings

[issue4180] warnings.simplefilter("always") does not make warnings always show up

2010-03-06 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Interpreter Core nosy: +flox stage: -> patch review versions: +Python 2.7 -Python 2.4, Python 2.5 ___ Python tracker ___

[issue7849] Improve "test_support.check_warnings()"

2010-03-06 Thread Mark Dickinson
Mark Dickinson added the comment: This is somewhat orthogonal, but it might also be nice to have some way to tell check_warnings not to touch __warningregistry__. See also issue 4180. -- nosy: +mark.dickinson ___ Python tracker

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-06 Thread STINNER Victor
STINNER Victor added the comment: > I think the latest (v3) patch is in pretty good shape. (...) > I'll break up the patch into multiple files as well. > It will make it easier to deal with if I cause a regression. I'm already doing that (apply the patch file by file). The patch v3 is not perf

[issue5604] imp.find_module() mixes UTF8 and MBCS

2010-03-06 Thread Florent Xicluna
Florent Xicluna added the comment: Thanks for fixing this. Now Win7 buildbot is green on trunk. -- stage: needs patch -> committed/rejected ___ Python tracker ___ ___

[issue5604] imp.find_module() mixes UTF8 and MBCS

2010-03-06 Thread Ezio Melotti
Ezio Melotti added the comment: The Linux buildbots were running the tests using ./python ./Lib/test/regrtest.py instead of ./python -m test.regrtest and '' was missing from sys.path, so imp.find_module couldn't find the module. This is now fixed in r78711 and backported r78716. Thanks to Flor

[issue6906] Tkinter sets an unicode environment variable on win32

2010-03-06 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed with r78722 on trunk. Pending backport to 2.6. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker _

[issue8080] os.uname failing in windows

2010-03-06 Thread Stuart Axon
New submission from Stuart Axon : I'm not sure why this is happening, but os.uname() is failing on my computer in XP Home 32bit. Tested in the normal shell and MSys The code in platform.py looks like it should work to me. [C:\usr\Python26\Lib]python Python 2.6.4 (r264:75708, Oct 26 2009, 08:

[issue8080] os.uname failing in windows

2010-03-06 Thread Brian Curtin
Brian Curtin added the comment: As documented, this is not supported on Windows. http://docs.python.org/dev/library/os#os.uname os.uname is generated in Modules/posixmodule.c, not in platform.py -- nosy: +brian.curtin resolution: -> invalid status: open -> closed

[issue8080] os.uname failing in windows

2010-03-06 Thread Florent Xicluna
Florent Xicluna added the comment: Use platform.uname(), it is available on all platforms. -- nosy: +flox priority: -> normal ___ Python tracker ___

[issue1054943] Python may contain NFC/NFKC bug per Unicode PRI #29

2010-03-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti resolution: -> remind stage: test needed -> committed/rejected status: open -> pending versions: +Python 2.7, Python 3.2 ___ Python tracker __

[issue6509] re.py - encounter unexpected str-object

2010-03-06 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r78729 (py3k) and r78730 (release31-maint). I also added a test for callbacks. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue6815] UnicodeDecodeError in os.path.expandvars

2010-03-06 Thread Ezio Melotti
Ezio Melotti added the comment: This is a shorter snippet to reproduce the issue: import os os.environ['TEST'] = u'äö'.encode('iso-8859-1') os.path.expandvars(u'%TEST%a') If the var is a non-ASCII byte string, and the string passed to expandvars() is Unicode, the var is decoded implicitly usin

[issue1054943] Python may contain NFC/NFKC bug per Unicode PRI #29

2010-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue6815] UnicodeDecodeError in os.path.expandvars

2010-03-06 Thread Brian Curtin
Brian Curtin added the comment: FWIW, _winreg.ExpandEnvironmentStrings does the right thing. D:\python-dev\trunk>PCbuild\amd64\python.exe Python 2.7a3+ (trunk, Feb 23 2010, 20:22:24) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: Maybe I'm using it incorrectly, but my first attempt to use it failed: gdb) b PyEval_EvalCodeEx Breakpoint 1 at 0x80fc51d: file Python/ceval.c, line 3020. (gdb) c Continuing. 1+2 Breakpoint 1, PyEval_EvalCodeEx (co=0xb7d86928, globals=Traceback (most recent

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: Attribution question: would it be ok if all mentioning of your name in the patch was removed accept for the one in Misc/ACKS? I'm concerned that statements of authorship may become incorrect over time (if people start contributing to it), yet nobody will dar

[issue6815] UnicodeDecodeError in os.path.expandvars

2010-03-06 Thread Brian Curtin
Brian Curtin added the comment: Here is a patch for trunk. It works for me, but my Unicode knowledge isn't the strongest. I believe sys.getfilesystemencoding() is what we want here. Can anyone confirm? -- keywords: +patch nosy: +loewis Added file: http://bugs.python.org/file16469/issue

[issue6953] readline documenation needs work

2010-03-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +Alexander.Belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6815] UnicodeDecodeError in os.path.expandvars

2010-03-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think the patch is incorrect. It shouldn't do any encoding conversion, but perform the expanding completely in Unicode strings. For 2.x, I recommend to close this as "won't fix". Expanding a Unicode strings is just not supported. If it was supported, it sh

[issue6815] UnicodeDecodeError in os.path.expandvars

2010-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7319] Silence DeprecationWarning by default

2010-03-06 Thread Brett Cannon
Brett Cannon added the comment: So it isn't really unexpected as -Q uses DeprecationWarning which is being silenced by default. So either -Q has to turn DeprecationWarning back on or a new subclass of DeprecationWarning (say IntegerDivisionWarning) needs to be introduced that -Q uses and add

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-03-06 Thread Ilya Sandler
Ilya Sandler added the comment: Another version of the patch is attached ( I think, I fixed all the remaining style issues). I'll answer the testing question in a separate post -- Added file: http://bugs.python.org/file16470/sig.patch.v3 ___ Python

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-03-06 Thread Ilya Sandler
Ilya Sandler added the comment: new version of the patch is uploaded to bugs.python.org http://codereview.appspot.com/216067/diff/2001/2002 File Lib/pdb.py (right): http://codereview.appspot.com/216067/diff/2001/2002#newcode63 Lib/pdb.py:63: def sigint_handler(self, signum, frame): On 2010/02/

[issue7670] _sqlite3: Block *all* operations on a closed Connection object

2010-03-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7319] Silence DeprecationWarning by default

2010-03-06 Thread Brett Cannon
Brett Cannon added the comment: Posted to python-dev to solicit feedback on how to handle this. -- stage: commit review -> needs patch versions: -Python 3.2 ___ Python tracker _

[issue6953] readline documenation needs work

2010-03-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-03-06 Thread Éric Araujo
Éric Araujo added the comment: Hello One advice against using __file__: http://lists.debian.org/debian-python/2010/01/msg00172.html Regards -- nosy: +merwok ___ Python tracker ___

[issue8045] test_tcl aborts on OS X 10.6 with "The application with bundle ID org.python.python is running setugid(), which is not allowed."

2010-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Ported Gregory's fix to py3k and 3.1. -- nosy: +benjamin.peterson versions: -Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue8078] add more baud constants to termios

2010-03-06 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Library (Lib) priority: -> normal stage: -> needs patch versions: +Python 2.7, Python 3.2 ___ Python tracker ___ __

[issue8045] test_tcl aborts on OS X 10.6 with "The application with bundle ID org.python.python is running setugid(), which is not allowed."

2010-03-06 Thread Ned Deily
Ned Deily added the comment: Moving the test to a child process does avoid the problem. (BTW, so far I've only seen the failure when Tkinter is linked with the Apple-supplied Tk 8.5 in 10.6, not with Tk 8.4.) -- ___ Python tracker

[issue8081] a.append appends reference , causing unexpected behaviour

2010-03-06 Thread hamish farrant
New submission from hamish farrant : Causes modification of an list object to change the values of the object already inside the list. Example code : import random a =[] b = [1 , 2 , 3 , 4] for i in range (15): random.shuffle(b) a.append(b) for j in a: print j Expected Behaviour

[issue8081] a.append appends reference , causing unexpected behaviour

2010-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Sorry, this is the expected behavior. Copy the list if you want a different one. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker __

[issue1685453] email package should work better with unicode

2010-03-06 Thread Peter Kleiweg
Peter Kleiweg added the comment: In Python 3.1.1, email.mime.text.MIMEText accepts an 8-bit charset, but not utf-8. I think you should not have to specify a charset. All strings are unicode now, so I think the package should choose an appropriate charset based on the characters in the text,

[issue8082] Misleading exception when raising an object

2010-03-06 Thread Daniel Eloff
New submission from Daniel Eloff : >>> class Foo(object): ... pass ... >>> raise Foo() Traceback (most recent call last): File "", line 1, in TypeError: exceptions must be classes or instances, not Foo >>> class Foo(Exception): ... pass ... >>> raise Foo() Traceback (most rec

[issue8059] @unittest.skip on a test method should prevent setUp from running

2010-03-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-06 Thread steven Michalske
steven Michalske added the comment: Sorry my request is for output, I am not requesting input. The examples were for showing the use in other contexts of using an underscore as a word (4 hex digits) seperaror. My assertions are from another area aside from computer languages, but from doc

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-03-06 Thread Ilya Sandler
Ilya Sandler added the comment: > Also, can you take a look at how the pdb unittests work and see if you can come up with a way to unittest the KeyboardInterrupt behavior? Yes, this is doable. In fact, I already have such tests written (unix only though). The tests are assert based but it shou

[issue7849] Improve "test_support.check_warnings()"

2010-03-06 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16120/issue7849_check_warnings_v2.diff ___ Python tracker ___ ___ Python-

[issue7849] Improve "test_support.check_warnings()"

2010-03-06 Thread Florent Xicluna
Florent Xicluna added the comment: Patch updated. -- assignee: -> flox resolution: -> accepted versions: +Python 3.2 Added file: http://bugs.python.org/file16471/issue7849_check_warnings_v3.diff ___ Python tracker

[issue8065] Memory leak in readline.get_current_history_length

2010-03-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It appears that the tests that I attached fail when libedit is used. This is clearly due to bugs in libedits readline emulation: 1. read_history does not update history_length 2. history_truncate_file does not preserver the history cookie ("_HiStOrY_V2

[issue8082] Misleading exception when raising an object

2010-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Done in r78746. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7564] test_ioctl may fail when run in background

2010-03-06 Thread Florent Xicluna
Changes by Florent Xicluna : -- assignee: -> flox priority: low -> normal versions: -Python 2.6, Python 3.1 ___ Python tracker ___ __

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-06 Thread Vilnis Termanis
Changes by Vilnis Termanis : Removed file: http://bugs.python.org/file16473/queues.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-06 Thread Vilnis Termanis
Vilnis Termanis added the comment: Updated patch to include new test (now against release26-maint branch). Verified test_multiprocessing suite passes before (apart from new test) & after change. (Tested under Ubuntu 9.10 64-bit) -- Added file: http://bugs.python.org/file16473/queues.d

[issue5341] A selection of spelling errors and typos throughout source

2010-03-06 Thread Éric Araujo
Éric Araujo added the comment: Hello again And now for something completely different: more builtin/built-in/built in fixes. I hope it’s okay to edit Misc/HISTORY and old Misc/NEWS entries. Note that I fixed two unrelated typos that I noticed near “builtin” uses. Some day I’ll do something m

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-06 Thread Vilnis Termanis
Changes by Vilnis Termanis : Removed file: http://bugs.python.org/file16415/pickle_suggestion_v2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-06 Thread Vilnis Termanis
Vilnis Termanis added the comment: Updated patch to include new test (now against release26-maint branch). Verified test_multiprocessing suite passes before (apart from new test) & after change. (Tested under Ubuntu 9.10 64-bit) -- Added file: http://bugs.python.org/file16472/queues.d

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-06 Thread Vilnis Termanis
Changes by Vilnis Termanis : Removed file: http://bugs.python.org/file16472/queues.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-03-06 Thread Vilnis Termanis
Changes by Vilnis Termanis : Added file: http://bugs.python.org/file16475/queues.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1530559] struct.pack raises TypeError where it used to convert

2010-03-06 Thread Meador Inge
Meador Inge added the comment: > If anyone's interested in submitting a patch, it would be welcome. Sure. I saw where this was partly addressed in r78690. The attached patch adds support for the '__index__' conversion that Mark suggested. At first glance, the patch may seem more than what

[issue1410680] Add 'surgical editing' to ConfigParser

2010-03-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7540] urllib2 request does not update content length after new add_data

2010-03-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: Change is reverted from other branches too. Discussed in IRC, that changes made to an existing API like add_data,may break some existing applications, even if its done to prevent unsupported usage. Specifically, in mechanize's case, it was not reusing req o

[issue5341] A selection of spelling errors and typos throughout source

2010-03-06 Thread Éric Araujo
Éric Araujo added the comment: Here is the path that rewraps lines longer than 80 characters. Note that it is possible than some lines were unnecessarily rewrapped; I’m not really sure whether my editor displays the characters count or the index of the next character. Sorry about that. I’ve

[issue5341] A selection of spelling errors and typos throughout source

2010-03-06 Thread Éric Araujo
Éric Araujo added the comment: I grepped for “built-in” in Doc and found very few misuses. Patch attached. Some lines needed rewrapping, I made another patch for this to ease reviewing. Cheers -- Added file: http://bugs.python.org/file16478/doc.diff __

[issue8045] test_tcl aborts on OS X 10.6 with "The application with bundle ID org.python.python is running setugid(), which is not allowed."

2010-03-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: merged into release26-maint r78754. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8039] precedence rules for ternary operator

2010-03-06 Thread Meador Inge
Meador Inge added the comment: It seems to me from the grammar (http://docs.python.org/reference/expressions.html#grammar-token-conditional_expression) that the precedence for conditional expressions fall in between that of 'lambda' and 'or' expressions. -- keywords: +patch nosy: +mi

[issue8065] Memory leak in readline.get_current_history_length

2010-03-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 7 Mar, 2010, at 1:02, Alexander Belopolsky wrote: > > > Does anyone know where libedit bugs should be reported? Apple's bugreporter. (bugreport.apple.com, you need an ADC account to report bugs). -- Added file: http://bugs.python.org/file16480/s