[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In 3.x, it is different: >>> locale.nl_langinfo(locale.CODESET) 'UTF-8' Victor, This looks like your cup of tee. -- nosy: +haypo ___ Python tracker __

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Anthony Long
Anthony Long added the comment: A bit more info: Python 2.6.4 (r264:75706, Mar 18 2010, 14:58:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.nl_langinfo(locale.CODESET) 'US-ASCII' >>> along-mb

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Anthony Long
Anthony Long added the comment: After import _tkinter, I would up getting this, which is totally different than before: >>> letters 'abcdefghijklmnopqrstuvwxyz\xaa\xb5\xba\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xf

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: ronaldoussoren -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is clearly a Tkinter rather than Mac issue, so I am unassigning this from Ronald. This appears to be the same problem as the one Mark described in msg102301. >>> import locale >>> locale.nl_langinfo(locale.CODESET) 'US-ASCII' >>> import _tkinter >

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Anthony Long
Anthony Long added the comment: Python 2.6.4, Mac 10.5: >>> from string import letters >>> letters 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\xaa\xb5\xba\xc0\xc1\xc2\xc 3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd 8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Anthony Long
Anthony Long added the comment: Mac 10.5.6: py 2.6.4 - broken Python 2.6.4 (r264:75706, Mar 18 2010, 14:58:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> '\xff'.isalpha() False >>> import Tkinter >>> '\xff'.isalpha()

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Anthony Long
Anthony Long added the comment: Windows 64 bit, python 2.7: >>> '\xff'.isalpha() >>> False >>> import idlelib.run >>> '\xff'.isalpha() >>> False and- Windows 32 bit, python 2.6: Both False. -- ___ Python tracker _

[issue2734] 2to3 converts long(itude) argument to int

2010-07-22 Thread Eric Talevich
Eric Talevich added the comment: This issue still occurs when the name "long" is a function argument: def double(long): return long * 2 2to3 converts it to: def double(long): return int * 2 Should I file a new bug, or can someone reopen this? -- nosy: +eric-talevich versio

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Or even simpler: $ python2.6 Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import Tkinter >>> '\xff'.isalpha() True -- c

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a way to reproduce this from command line: $ python2.6 Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> '\xff'.isalpha() Fal

[issue9336] string.letters should display locale based equivalent of a-Z

2010-07-22 Thread Anthony Long
New submission from Anthony Long : string.letters should display the locale based equivalent of a-Z. In enUS this would be a-z A-Z, in total a len of 52, whereas in spain it would be a-z (with ñ), and A-Z (Ñ). Each locale should change the returned letters. http://en.wikipedia.org/wiki/Keybo

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a simpler test: in idle2.6, >>> '\xff'.isalpha() True but in idle2.7 and plain python prompt, it is False. -- ___ Python tracker ___

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Jeremy Kloth
Jeremy Kloth added the comment: Note that this behavior is only present when running IDLE. Python command-line does not show this oddity. -- nosy: +jkloth ___ Python tracker __

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Anthony Long
Anthony Long added the comment: Also: windows 64x, python 2.7 1. Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 2. Type "copyright", "credits" or "license()" for more information. 3. >>> import string 4. >>> string.letters

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I can reproduce this in Apple's idle, but not in trunk or 2.7 versions. I'll leave it open in case Ronald is interested. Antlong also reports that this happens on windows, but I cannot verify that. Here is my session copied from idle: Python 2.5.3c1

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-22 Thread Anthony Long
New submission from Anthony Long : On mac 10.5, python 2.6.4 (via mac ports) performing len(string.letters) will produce 117 instead of 52. from terminal: along-mb:~ along$ locale LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF

[issue8297] AttributeError message text should include module name

2010-07-22 Thread Ray.Allen
Ray.Allen added the comment: Thanks! durban. Here is the updated patch fixing such problem. -- ___ Python tracker ___ ___ Python-bugs

[issue9329] freeze tool cannot handle JSON module properly

2010-07-22 Thread Sam Saint-Pettersen
Sam Saint-Pettersen added the comment: Problem occurs with "frozen" programs if: from encodings import hex_codec ...is not explicitly written in the script. -- status: open -> pending ___ Python tracker ___

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-22 Thread R. David Murray
R. David Murray added the comment: Well, even if you call it a bug, it would be an argparse design bug, and design bug fixes are feature requests from a procedural point of view. -- ___ Python tracker

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-22 Thread Greg Brockman
Changes by Greg Brockman : -- nosy: +gdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Patch looks good, but needs a test. -- keywords: +easy nosy: +fdrake ___ Python tracker ___ ___

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-22 Thread Anders Kaseorg
Anders Kaseorg added the comment: > Though in general I find argparse's default behavior more useful. I’m not sure I understand. Why is it useful for an option parsing library to heuristically decide, by default, that I didn’t actually want to pass in the valid option that I passed in? Shou

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-22 Thread Nelson Elhage
Nelson Elhage added the comment: For what it's worth, I have trouble seeing this as anything but a bug. I understand the motivation of trying to catch user errors, but in doing so, you're breaking with the behavior of every other option parsing library that I'm aware of, in favor of an arbitr

[issue9333] Expose a way to enable os.symlink on Windows

2010-07-22 Thread Eric Smith
Eric Smith added the comment: Wouldn't you have to set this, then restore it? This would then open a non thread-safe race condition, assuming this is a per-process setting, not a thread-local setting. Not that I'm necessarily opposed, but it's an issue. -- __

[issue9333] Expose a way to enable os.symlink on Windows

2010-07-22 Thread Brian Curtin
Brian Curtin added the comment: That's a way better idea. It would also cut down some of the code in Lib/test/symlink_support.py. I'll take a whack at that and see how it looks. -- ___ Python tracker _

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-22 Thread R. David Murray
R. David Murray added the comment: It seems like reasonable request to me to be able to allow such arguments, especially since optparse did and we want people to be able to use argparse as a replacement. Though in general I find argparse's default behavior more useful. Since argparse has bee

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-22 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9193] Versioned .so files

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Should the change also apply to Windows? on Windows, there is no "configure" phase, but the file PC/pyconfig.h is maintained manually. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue9333] Expose a way to enable os.symlink on Windows

2010-07-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: I think we should consider simply calling this function before running os.symlink. It would be nice if the API were as compatible as possible on both unix and Windows. My worry is that where code that works on unix systems is simply: os.symlink(...) Bu

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-22 Thread Anders Kaseorg
New submission from Anders Kaseorg : Porting the a2x program to argparse from the now-deprecated optparse subtly breaks it when certain options are passed: $ a2x --asciidoc-opts --safe gitcli.txt $ ./a2x.argparse --asciidoc-opts --safe gitcli.txt usage: a2x [-h] [--version] [-a ATTRIBUTE] [--as

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-22 Thread Nick Coghlan
Nick Coghlan added the comment: On Fri, Jul 23, 2010 at 3:54 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> Personally, I think that this functionality should be built into >> Python's readlines. That's where a typical person would expect it to >> be, and this is somethin

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2010-07-22 Thread Stefan Krah
Stefan Krah added the comment: This thread contains a feature request for __int128_t support in icc and a workaround: http://software.intel.com/en-us/forums/showthread.php?t=56652 -- nosy: +skrah ___ Python tracker

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-22 Thread Peter Donis
Peter Donis added the comment: Uploaded revised diff against py3k branch, doctest-fixes6-py3k.diff, with same improvements as doctest-fixes6.diff. Tests still pass on my Linux box. -- Added file: http://bugs.python.org/file18134/doctest-fixes6-py3k.diff

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Brian Curtin
Brian Curtin added the comment: I knew there was a reason I was thinking my whole idea was slightly ridiculous...duh. -- resolution: -> rejected status: open -> closed ___ Python tracker _

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Michael Foord
Michael Foord added the comment: No, assertIn is for testing for membership in a container. If you pass it something that isn't a container then it indicates an error in the test (or misuse of the assert!). -- ___ Python tracker

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-22 Thread Peter Donis
Peter Donis added the comment: I don't normally run Windows, so it will take a little time for me to set up a Windows build environment. However, I've made a number of other improvements as a result of further testing on Linux, and I've uploaded the improved patch as doctest-fixes6.diff. When I

[issue5673] Add timeout option to subprocess.Popen

2010-07-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +gd2shoe, ragnar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1396825] subprocess: wait for a period of time

2010-07-22 Thread Stefan Krah
Stefan Krah added the comment: This is now being addressed in issue 5673, so closing this as a duplicate. astrand, please let me know if I'm wrong about this. -- nosy: +skrah resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Add timeout opti

[issue9333] Expose a way to enable os.symlink on Windows

2010-07-22 Thread Brian Curtin
New submission from Brian Curtin : As it currently stands, the possibility exists that some users might not have the SeCreateSymbolicLinkPrivilege privilege enabled (depending on security settings, corporate policy, etc). There should be some method of enabling that privilege outside of the wa

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17913/issue9206a.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue5135] Expose simplegeneric function in functools module

2010-07-22 Thread Ryan Freckleton
Ryan Freckleton added the comment: An elaborate PEP for generic functions already exists, PEP 3124 [ http://www.python.org/dev/peps/pep-3124/]. Also note the reasons for deferment. I'd be interested in creating a "more limited" generic function implementation based on this PEP, minus func_code r

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: s/strictly necessary/not strictly necessary/ -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > [datetime.c] needs to be renamed in Modules/Setup.dist, and most > importantly in PC/config.c Fixed in issue7989d.diff, thanks. In order to commit this patch I need an SVN advise. I would like to copy datetime.py from sandbox to py3k in a way that wi

[issue9332] Document requirements for os.symlink usage on Windows

2010-07-22 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-07-22 Thread Stefan Krah
Stefan Krah added the comment: I'm not sure this should be changed: 1) Why is .cshrc sourced? It should only get sourced for a login shell. 2) If the user sets a PATH that excludes the compiler, then `which` will also not find the compiler on other systems (like Linux). Why

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-07-22 Thread Brian Curtin
Brian Curtin added the comment: Closed. I created #9332 for the remaining side issues. -- status: pending -> closed ___ Python tracker ___

[issue9332] Document requirements for os.symlink usage on Windows

2010-07-22 Thread Brian Curtin
New submission from Brian Curtin : #1578269 introduced os.symlink support for Windows 6.0, but it requires the SeCreateSymbolicLinkPrivilege privilege to be enabled for the calling user, which is not always the case. Documentation needs to be added on the specific details here, possibly includ

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-07-22 Thread Robert Cronk
Changes by Robert Cronk : -- nosy: +rcronk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue2920] Patch to print symbolic value or errno in EnvironmentError.__str__()

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This looks like something that can become part of PEP 3151. -- assignee: belopolsky -> nosy: -Alexander.Belopolsky stage: -> patch review ___ Python tracker __

[issue9005] Year range in timetuple

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Mark, Do you agree that conditions mentioned in msg109329 and msg109340 are never triggered? -- ___ Python tracker ___ _

[issue1738] filecmp.dircmp does exact match only

2010-07-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: belopolsky -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue3196] Option in pydoc to show docs from private methods

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like OP has lost interest and I don't have time to move it forward. -- assignee: belopolsky -> priority: normal -> low stage: needs patch -> patch review ___ Python tracker

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is anyone interested in reviewing this patch before it is committed? Since there are no user-visible changes and the only non-trivial change simply adds new tests, I think this can go in. Any refinements can be done later. -- components: +Test

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Personally, I think that this functionality should be built into > Python's readlines. That's where a typical person would expect it to > be, and this is something that is supported by most other scripting > language I've used. Adding it to readline() and/or

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-07-22 Thread Anders Kaseorg
Anders Kaseorg added the comment: Antoine: That’s true. Amaury: See my original bug description (“This is reasonable advice for writing an iterator class, but terrible advice for writing a container class…”), and my other comments. There is nothing wrong with explaining how to write an itera

[issue8297] AttributeError message text should include module name

2010-07-22 Thread Daniel Urban
Daniel Urban added the comment: According to PEP 7 [1], all declarations must be at the top of a block. So you probably should move the "char *mod_name_str" and "PyModuleObject *module" declarations to the beginning of the function's body. [1] http://www.python.org/dev/peps/pep-0007/ ---

[issue9331] sys.setprofile is not described as CPython implementation detail

2010-07-22 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Unlike sys.settrace, sys.setprofile is not described as CPython implementation detail in Doc/library/sys.rst. -- assignee: d...@python components: Documentation messages: 99 nosy: belopolsky, d...@python priority: normal severity: normal st

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Why do you call this "dangerous"? because the object can be iterated only once? But reversed() does the same thing. And all iterators objects must also implement the __iter__ method that return themselves, otherwise they cannot be used in a for loop. Bet

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: At least equally useful would be the mention that __iter__ can be a generator, eliminating the need for intermediate objects: >>> class C: ... def __iter__(self): ... yield 1 ... yield 2 ... >>> list(C()) [1, 2] -- nosy: +pitrou

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-07-22 Thread Anders Kaseorg
Anders Kaseorg added the comment: I don’t think that small change is good enough, if it is still the case that the only provided example is the dangerous one. It would be easy to clarify the differences between the classes: >>> rl = test.ReverseList('spam') >>> [c for c in rl] ['m', 'a', 'p',

[issue9232] Allow trailing comma in any function argument list.

2010-07-22 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file18127/trailing_commas2.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue9232] Allow trailing comma in any function argument list.

2010-07-22 Thread Mark Dickinson
Changes by Mark Dickinson : Added file: http://bugs.python.org/file18129/trailing_commas2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-07-22 Thread Daniel Urban
Daniel Urban added the comment: Sorry, the previous patch has a reference leak. I'm attaching the fixed patch as issue9213a.diff (I also added a few tests with really big ranges). -- Added file: http://bugs.python.org/file18128/issue9213a.diff ___ P

[issue9232] Allow trailing comma in any function argument list.

2010-07-22 Thread Mark Dickinson
Mark Dickinson added the comment: There was one place that needed to be changed in ast.c: namely, the check to make sure that there are keyword-only arguments following a bare star. Here's a new patch, that fixes that issue, updates the grammar in the ast.c comment to match that in Grammar/G

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Brian Curtin
New submission from Brian Curtin : A recent sysconfig test which should have been skipped on Windows (now fixed) exposed a bug in the assertIn/assertNotIn methods. If the "container" you are testing doesn't support membership testing or iteration, such as None value when a previous call fails,

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-07-22 Thread Mark Lawrence
Mark Lawrence added the comment: @Michael: do you intend putting in a new patch for review as hinted at in msg98071? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue1718574] build_clib --build-clib/--build-temp option bugs

2010-07-22 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. It is indeed a stupid typo. Can someone produce a patch against current py3k? Confirmed in distutils2 too, I can fix it there. -- components: +Distutils2 nosy: +merwok resolution: -> accepted _

[issue1718574] build_clib --build-clib/--build-temp option bugs

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Confirmed here: "python setup.py build_clib -b/some/dir" returns "error: option -/ not recognized" All other files (build_ext.py, clean.py) have a '=' after these options names. Patch is inlined: Index: Lib/distutils/command/build_clib.py ==

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-22 Thread Douglas Alan
Douglas Alan added the comment: Personally, I think that this functionality should be built into Python's readlines. That's where a typical person would expect it to be, and this is something that is supported by most other scripting language I've used. E.g., awk has the RS variable which let

[issue9329] freeze tool cannot handle JSON module properly

2010-07-22 Thread Sam Saint-Pettersen
New submission from Sam Saint-Pettersen : Freeze tool can generate Makefile and C code for Python programs using the JSON module. The code can be compiled fine, but when a program using the JSON module is run, this is returned: Traceback (most recent call last): 2 File "myProgram.py",

[issue7579] Patch to add docstrings to msvcrt

2010-07-22 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: d...@python -> brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue5673] Add timeout option to subprocess.Popen

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: s/Note that a result Fraction/Note that as a result, Fraction/ -- ___ Python tracker ___ ___ P

[issue5673] Add timeout option to subprocess.Popen

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The documentation should mention somewhere that timeout can be a float. For example, as in time.sleep docstring: """ sleep(seconds) Delay execution for a given number of seconds. The argument may be a floating point number for subsecon

[issue5825] Patch to add "remove" method to tempfile.NamedTemporaryFile

2010-07-22 Thread Mark Lawrence
Mark Lawrence added the comment: Can be closed unless someone can justify this change. -- nosy: +BreamoreBoy status: open -> pending versions: +Python 3.2 -Python 2.7 ___ Python tracker

[issue5609] Create Unit Tests for nturl2path module

2010-07-22 Thread Mark Lawrence
Mark Lawrence added the comment: Maksim could you please respond to the comments on Rietveld, thanks. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > @Antoine could you respond to msg97699, thanks. Well my comments and the patch itself are outdated now that 2.7 is in bugfix mode. The socket implementation in 3.2 is slightly different, which means the patch should be updated (it isn't necessarily difficul

[issue7699] strptime, strftime documentation

2010-07-22 Thread Mark Lawrence
Changes by Mark Lawrence : -- assignee: georg.brandl -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mail

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-07-22 Thread Mark Lawrence
Mark Lawrence added the comment: @Antoine could you respond to msg97699, thanks. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker ___ _

[issue7579] Patch to add docstrings to msvcrt

2010-07-22 Thread Mark Lawrence
Changes by Mark Lawrence : -- assignee: georg.brandl -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mail

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2010-07-22 Thread Mark Lawrence
Mark Lawrence added the comment: Ran new unit test before and after patching subprocess on Windows Vista against 3.1 debug maintenance release, all ok apart from this at end of latter. File "test\test_subprocess.py", line 568, in test_encoded_stderr self.assertEqual(p.stderr.read(), send

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-22 Thread Mark Lawrence
Mark Lawrence added the comment: The py3k stuff is fine on Windows but the 2.7 maintainance branch now fails. 1 items had failures: 1 of 6 in doctest_testfile.txt ***Test Failed*** 1 failures. -- ___ Python tracker

[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2010-07-22 Thread Matt Fleming
Matt Fleming added the comment: I'm not really tracking this anymore but i can certainly try to recreate the issue sometime this week if required? On 17 July 2010 14:37, Stefan Krah wrote: > > Stefan Krah added the comment: > > Matt, if you still follow this: Does this problem exist in 2.6/2.

[issue9193] Versioned .so files

2010-07-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Updated patch. -- Added file: http://bugs.python.org/file18125/diff.txt ___ Python tracker ___ ___

[issue1723038] Curses Menu

2010-07-22 Thread Ray.Allen
Changes by Ray.Allen : -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-22 Thread Ray.Allen
Ray.Allen added the comment: I think it's a good idea adding a keyword argument to specify the separator of readlines(). I believe most people can accept the universal meaning of "line", which has similar meaning of "record", that is a chunk data, maybe from using line separators other than

[issue1506122] Add "compose" function to the functools

2010-07-22 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue1506122] Add "compose" function to the functools

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The proposed code may be useful sometimes, but is not generic enough for the standard library. For example, the f() function can only take one argument, when g() can accept any number. Implementations of this kind are so easy to write, They are better

[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

2010-07-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: +1 on better names, -1 on removing the reserved parameter The parameters of OpenKey mirror those of the underlying RegOpenKey call. If we remove the reserved parameter, then: 1) Any code currently using the sam parameter will break, since it's currently o

[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Please rename "sam" to something readable, "access" for example. And the "reserved" parameter should really go, at least not be documented. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Profiling only works on functions that actually return; maybe we could add something about this fact in the documentation -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-07-22 Thread zenyatta
zenyatta added the comment: See http://mercurial.selenic.com/bts/issue2299 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8297] AttributeError message text should include module name

2010-07-22 Thread Ray.Allen
Ray.Allen added the comment: Amaury: Thanks for reviewing! I quite appreciate your ideas. I was not quite familiar with python source code convention at that time. Here I worked out a new patch based on your ideas. Since py2.7 has released, this feature can only go to py3k. So my new patch

[issue5120] Disabling test_ttk_guionly on mac

2010-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Mark: maybe, why don't you test this? -- assignee: -> ronaldoussoren ___ Python tracker ___ ___ Py

[issue5135] Expose simplegeneric function in functools module

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Generic functions are a lesser-known paradigm than OO, and nowhere do common Python documents (including the official docs) try to teach them. That means the first public appearance of generic functions in the stdlib should really be well thought out if we do

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-22 Thread Nick Coghlan
Nick Coghlan added the comment: A recipe in the comments on a tracker item isn't enough reason to close the RFE, no. An entry on the cookbook with a pointer from the docs might be sufficient, although I'm still not averse to the idea of an actual readrecords method (with appropriate tests).

[issue5135] Expose simplegeneric function in functools module

2010-07-22 Thread Paul Moore
Paul Moore added the comment: I don't propose to raise a PEP myself. The issue with ABCs seems to me to be a fundamental design issue, and I think it's better to leave raising any PEP, and managing the subsequent discussion, to someone with a deeper understanding of, and interest in, generic

[issue6751] Default return value in ConfigParser

2010-07-22 Thread Juan Javier
Changes by Juan Javier : Added file: http://bugs.python.org/file18123/test_cfgparser.py.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue6751] Default return value in ConfigParser

2010-07-22 Thread Juan Javier
Juan Javier added the comment: I've applied the enhancement to the three parsers, actually I've made the change to RawconfigParser with a small change to ConfigParser. I've also created some unit tests. -- keywords: +patch Added file: http://bugs.python.org/file18122/configparser.py.d

  1   2   >