[issue8297] AttributeError message text should include module name

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I also like the idea; 3 remarks though: - the patch introduces a new function that returns a PyObject*, but returns NULL when """the attribute is not found, and the caller should raise AttributeError""". This convention is not standard among the Python

[issue9012] Separate compilation of time and datetime modules

2010-07-22 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6975] symlinks incorrectly resolved on Linux

2010-07-22 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6698] IDLE no longer opens only an edit window when configured to do so

2010-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The current behaviour on OSX for IDLE.app is to always open a shell window, and open edit windows for any files that should be opened during launch. IDLE.app does not open an empty edit window, and I agree that this is sane behaviour. One other thing that m

[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: The two example classes are used exactly the same way, and don't show the differences between them. How about a simple change like: Replace: """If the class defines :meth:`next`, then :meth:`__iter__` can just return ``self``""" with """It may be conven

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

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: All patches seems already applied. Should we close this issue? -- status: open -> pending ___ Python tracker ___ __

[issue5131] pprint doesn't know how to print a defaultdict

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Patch looks good to me. (Some day the pprint module should grow some way to register repr for user types, so we can stop adding special cases; but defaultdict() is a builtin) -- nosy: +amaury.forgeotdarc resolution: -> accepted

[issue5673] Add timeout option to subprocess.Popen

2010-07-22 Thread Matthieu Labbé
Changes by Matthieu Labbé : -- nosy: +matthieu.labbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1723038] Curses Menu

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch should be amended for python3, then: - PyType_Ready() should be used instead of "ob_type = &PyType_Type;" - The demo contains "Option choisie :" which should be translated :-) - the call:: PyErr_SetString(PyExc_RuntimeError,

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

2010-07-22 Thread zenyatta
zenyatta added the comment: I work in sidux and my Mercurial currently doesn't work. The python version already contains the fix for this issue (revision 81637) and it crashes Mercurial ("authorization failed") whenever a command involves more than 5 requests to the repository. I fixed it by

[issue3591] elementtree tests do not include bytes handling

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: test_xml_etree.py has some tests about bytes input (check_issue6233) but these are only working cases. Tests with wrong encodings should be added. -- nosy: +amaury.forgeotdarc ___ Python tracker

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

2010-07-22 Thread Mads Kiilerich
Mads Kiilerich added the comment: zenyatta: Which Mercurial version? We thought we had implemented a sufficiently ugly workaround in Mercurial. Please file an issue in http://mercurial.selenic.com/bts/ . -- ___ Python tracker

[issue9320] os.environ is global for threads

2010-07-22 Thread anatoly techtonik
anatoly techtonik added the comment: I have to debug CGIHTTPServer test case that apparently uses threads, and I expected to find at least some pointer about "what exactly a thread in Python is". I hope Python Manual is not only for system programmers. They do not need the manual anyway - the

[issue9320] os.environ is global for threads

2010-07-22 Thread Stefan Krah
Stefan Krah added the comment: I agree with Eric, Konstantin, Amaury and Georg. Closing for the third time. -- nosy: +skrah status: pending -> open ___ Python tracker ___ ___

[issue9320] os.environ is global for threads

2010-07-22 Thread Stefan Krah
Changes by Stefan Krah : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9154] Parser module doesn't understand function annotations.

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The extra space in Grammar was already removed in r82624. The remaining part of the patch looks good to me. The lambda thing is not important, if you get an error when trying to compile the resulting st. -- nosy: +amaury.forgeotdarc

[issue9320] os.environ is global for threads

2010-07-22 Thread Georg Brandl
Georg Brandl added the comment: Anatoly, I don't think it is a good idea to use signatures in tracker comments. -- ___ Python tracker ___

[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

[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

[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

[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 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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 ___ ___

[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.

[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

[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

[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

[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 ___ _

[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 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

[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 ___ ___

[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

[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

[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

[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

[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",

[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

[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 ==

[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 _

[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 ___ ___

[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,

[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

[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
Changes by Mark Dickinson : Added file: http://bugs.python.org/file18129/trailing_commas2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[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

[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',

[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 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

[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

[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/ ---

[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

[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

[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

[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

[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

[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 ___ _

[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 __

[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

[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

[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 ___

[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

[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.

[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

[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

[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
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17913/issue9206a.diff ___ Python tracker ___ ___ Python-bugs-list ma

[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

[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

[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

[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

[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

[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 _

[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

[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

[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

[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

[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

[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

[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.

[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

[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 _

[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. -- __

[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

[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

[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 Greg Brockman
Changes by Greg Brockman : -- nosy: +gdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[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

[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 ___

[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

[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

  1   2   >