[issue7977] I found Python 3.1 xmlrpc lib use param not properly. and i have fixed it.

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But what if I want to pass a tuple through xmlrpc? The function in the test case: +def execute(server, methodname, *args): +r = getattr(server, methodname)(args) # params become a tuple +return r looks

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

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This fileLineIter function looks like a good recipe to me. Can we close the issue then? -- nosy: +amaury.forgeotdarc resolution: - works for me status: open - pending ___ Python tracker

[issue8297] AttributeError message text should include module name

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue9012] Separate compilation of time and datetime modules

2010-07-22 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9012 ___ ___ Python-bugs-list

[issue6975] symlinks incorrectly resolved on Linux

2010-07-22 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6975 ___ ___ Python-bugs-list

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

2010-07-22 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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.

[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 amaur...@gmail.com 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

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

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: All patches seems already applied. Should we close this issue? -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

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

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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é bugs.python@mattlabbe.com: -- nosy: +matthieu.labbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673 ___ ___

[issue1723038] Curses Menu

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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 j...@journey.sk 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.

[issue3591] elementtree tests do not include bytes handling

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2010-07-22 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com 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 techto...@gmail.com 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

[issue9320] os.environ is global for threads

2010-07-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I agree with Eric, Konstantin, Amaury and Georg. Closing for the third time. -- nosy: +skrah status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320

[issue9320] os.environ is global for threads

2010-07-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320 ___ ___

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

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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:

[issue9320] os.environ is global for threads

2010-07-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Anatoly, I don't think it is a good idea to use signatures in tracker comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320 ___

[issue6751] Default return value in ConfigParser

2010-07-22 Thread Juan Javier
Juan Javier jjdomingu...@gmail.com 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:

[issue6751] Default return value in ConfigParser

2010-07-22 Thread Juan Javier
Changes by Juan Javier jjdomingu...@gmail.com: Added file: http://bugs.python.org/file18123/test_cfgparser.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6751 ___

[issue5135] Expose simplegeneric function in functools module

2010-07-22 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com 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

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

2010-07-22 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue5135] Expose simplegeneric function in functools module

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue5120] Disabling test_ttk_guionly on mac

2010-07-22 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Mark: maybe, why don't you test this? -- assignee: - ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5120 ___

[issue8297] AttributeError message text should include module name

2010-07-22 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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

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

2010-07-22 Thread zenyatta
zenyatta j...@journey.sk added the comment: See http://mercurial.selenic.com/bts/issue2299 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8797 ___

[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 amaur...@gmail.com 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 amaur...@gmail.com 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 dan...@stutzbachenterprises.com 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

[issue1506122] Add compose function to the functools

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue1506122] Add compose function to the functools

2010-07-22 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1506122 ___

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

2010-07-22 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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

[issue1723038] Curses Menu

2010-07-22 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1723038 ___ ___ Python-bugs-list mailing

[issue9193] Versioned .so files

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

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

2010-07-22 Thread Matt Fleming
Matt Fleming mattjflem...@googlemail.com 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 rep...@bugs.python.org wrote: Stefan Krah stefan-use...@bytereef.org added the

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

2010-07-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk 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

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

2010-07-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk 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

[issue7579] Patch to add docstrings to msvcrt

2010-07-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: georg.brandl - d...@python nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7579 ___

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-07-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Antoine could you respond to msg97699, thanks. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7523

[issue7699] strptime, strftime documentation

2010-07-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: georg.brandl - d...@python nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7699 ___

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue5609] Create Unit Tests for nturl2path module

2010-07-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Maksim could you please respond to the comments on Rietveld, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5609

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

2010-07-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk 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 rep...@bugs.python.org

[issue5673] Add timeout option to subprocess.Popen

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue5673] Add timeout option to subprocess.Popen

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: s/Note that a result Fraction/Note that as a result, Fraction/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673

[issue7579] Patch to add docstrings to msvcrt

2010-07-22 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: d...@python - brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7579 ___ ___

[issue9329] freeze tool cannot handle JSON module properly

2010-07-22 Thread Sam Saint-Pettersen
New submission from Sam Saint-Pettersen s.stpetter...@gmail.com: 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

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

2010-07-22 Thread Douglas Alan
Douglas Alan darkwate...@gmail.com 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

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

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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 mer...@netwok.org 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 breamore...@yahoo.co.uk added the comment: @Michael: do you intend putting in a new patch for review as hinted at in msg98071? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7742

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: 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

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

2010-07-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2010-07-22 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com 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

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

2010-07-22 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Added file: http://bugs.python.org/file18129/trailing_commas2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9232 ___

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

2010-07-22 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file18127/trailing_commas2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9232 ___

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

2010-07-22 Thread Anders Kaseorg
Anders Kaseorg ande...@mit.edu 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',

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

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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:

[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 amaur...@gmail.com 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

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

2010-07-22 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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

[issue8297] AttributeError message text should include module name

2010-07-22 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com 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]

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

2010-07-22 Thread Anders Kaseorg
Anders Kaseorg ande...@mit.edu 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

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

2010-07-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue1738] filecmp.dircmp does exact match only

2010-07-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: belopolsky - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1738 ___

[issue9005] Year range in timetuple

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Mark, Do you agree that conditions mentioned in msg109329 and msg109340 are never triggered? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9005

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

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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 cron...@gmail.com: -- nosy: +rcronk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___ ___ Python-bugs-list mailing

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

2010-07-22 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: #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,

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

2010-07-22 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Closed. I created #9332 for the remaining side issues. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

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

2010-07-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

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

2010-07-22 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9332 ___ ___ Python-bugs-list mailing

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

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2010-07-22 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: s/strictly necessary/not strictly necessary/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7989 ___

[issue5135] Expose simplegeneric function in functools module

2010-07-22 Thread Ryan Freckleton
Ryan Freckleton ryan.freckle...@gmail.com 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

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

2010-07-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17913/issue9206a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7989 ___

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

2010-07-22 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: 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

[issue1396825] subprocess: wait for a period of time

2010-07-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

[issue5673] Add timeout option to subprocess.Popen

2010-07-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +gd2shoe, ragnar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673 ___ ___

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

2010-07-22 Thread Peter Donis
Peter Donis peterdo...@alum.mit.edu 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

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Brian Curtin
Brian Curtin cur...@acm.org 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 rep...@bugs.python.org

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

2010-07-22 Thread Peter Donis
Peter Donis peterdo...@alum.mit.edu 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 stefan-use...@bytereef.org 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 ncogh...@gmail.com added the comment: On Fri, Jul 23, 2010 at 3:54 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Personally, I think that this functionality should be built into Python's readlines. That's where a typical

[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 ande...@mit.edu: 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

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

2010-07-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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:

[issue9193] Versioned .so files

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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 e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9334 ___ ___ Python-bugs-list mailing

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

2010-07-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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.

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

2010-07-22 Thread Brian Curtin
Brian Curtin cur...@acm.org 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 rep...@bugs.python.org

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

2010-07-22 Thread Eric Smith
Eric Smith e...@trueblade.com 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 nelh...@nelhage.com 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,

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

2010-07-22 Thread Anders Kaseorg
Anders Kaseorg ande...@mit.edu 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

[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Patch looks good, but needs a test. -- keywords: +easy nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9173 ___

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

2010-07-22 Thread Greg Brockman
Changes by Greg Brockman g...@ksplice.com: -- nosy: +gdb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9334 ___ ___ Python-bugs-list mailing list

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

2010-07-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

[issue9329] freeze tool cannot handle JSON module properly

2010-07-22 Thread Sam Saint-Pettersen
Sam Saint-Pettersen s.stpetter...@gmail.com 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 rep...@bugs.python.org

  1   2   >