[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread pmoody
pmoody added the comment: > I should think you would seek the opinion of those developers who > actually do have plans to use an IP address library. That's what this has been doing for the last 8 1/2 months. > As far as I can > tell, every developer in that category, outside of Google, that ha

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Tue, Jun 2, 2009 at 2:18 AM, Martin v. Löwis wrote: >> I'd like to see the issues fixed upstream, and the library removed >> from Python until it is satisfactory to the developers who will >> actually use it. To my knowledge, every developer (outside of Googl

[issue6173] Minor typo in socket.py

2009-06-01 Thread Pablo Torres Navarrete
Changes by Pablo Torres Navarrete : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I'd like to see the issues fixed upstream, and the library removed > from Python until it is satisfactory to the developers who will > actually use it. To my knowledge, every developer (outside of Google) > who has commented on the issue has indicated a prefe

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: > Consider applications that need to validate addresses (or networks, > but not both) supplied as user input: > > address = ipaddr.IP(input) > > if isinstance(address, ipaddr.IPv4): >    if address.prefixlen != 32: >        raise TypeError("Expecting IP addres

[issue6174] What's new in 2.6, wrong indentation in code sample

2009-06-01 Thread Joe Amenta
New submission from Joe Amenta : In the final example in the multiprocessing package on http://docs.python.org/3.0/whatsnew/2.6.html#pep-371-the-multiprocessing-package a part of the code is not properly indented. There should be one more level of indentation starting at "#Mark pool as closed".

[issue6173] Minor typo in socket.py

2009-06-01 Thread Pablo Torres Navarrete
New submission from Pablo Torres Navarrete : Index: socket.py === --- socket.py (revision 73134) +++ socket.py (working copy) @@ -16,7 +16,7 @@ gethostbyname() -- map a hostname to its IP number gethostbyaddr() -- map an IP num

[issue6169] Important comparison bug in ipaddr

2009-06-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks! Fixed in trunk r73135 and py3k r73136. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Tue, Jun 2, 2009 at 1:21 AM, Martin v. Löwis wrote: >> I will go ahead and open issues on code.google.com. > > If you want to see them fixed in Python, please report them to this > tracker. I'd like to see the issues fixed upstream, and the library removed f

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I will go ahead and open issues on code.google.com. If you want to see them fixed in Python, please report them to this tracker. -- ___ Python tracker _

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Consider applications that need to validate addresses (or networks, > but not both) supplied as user input: > > address = ipaddr.IP(input) If that is a frequent need, it would be reasonable to add an API address = ipaddr.IP(input, allow_mask=False) which

[issue6081] str.format_from_mapping()

2009-06-01 Thread Evan Behar
Changes by Evan Behar : -- nosy: +ebehar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue6169] Important comparison bug in ipaddr

2009-06-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread pmoody
pmoody added the comment: On Mon, Jun 1, 2009 at 7:38 PM, Clay McClure wrote: > > Clay McClure added the comment: > > On Mon, Jun 1, 2009 at 9:03 PM, pmoody wrote: > >>> ifconfig: 255.255.255.0/32: bad value >>> >>> That's because ipaddr wrongly appends a prefix length to all >>> ipaddr.IPv4

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Mon, Jun 1, 2009 at 9:03 PM, pmoody wrote: >> ifconfig: 255.255.255.0/32: bad value >> >> That's because ipaddr wrongly appends a prefix length to all >> ipaddr.IPv4 objects, even those representing addresses, which do not >> have prefix lengths. > > I'm not

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Jason Gervich
Jason Gervich added the comment: Again, thanks for your prompt explanation. It's odd, but when I went to use Ubuntu's menu modification tool, the command displayed in the dialog didn't show the -n option. But when I added the Python launcher to the panel and viewed the launch command via the p

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Mon, Jun 1, 2009 at 8:05 PM, R. David Murray wrote: > In pre-CIDR days, assuming a prefixlen of 24 for a 192.168.x.x address > made sense.  Nowadays it is better not to make that assumption.  So I > find ipaddr's default of 32 to be "safer" than using a class

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Mon, Jun 1, 2009 at 7:51 PM, pmoody wrote: >> For an example of why 192.168.1.1 != 192.168.1.1/32, look no further >> than ifconfig: >> >> # ifconfig en0 192.168.1.1/32 >> # ifconfig en0 >> en0: flags=8863 mtu 1500 >>        inet 192.168.1.1 netmask 0xfff

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Mon, Jun 1, 2009 at 4:51 PM, pmoody wrote: > ipaddr.IPv4('192.168.1.1') == ipaddr.IPv4('192.168.1.1/32') >> True >> >> ipaddr makes no distinction between two fundamentally different >> concepts -- to my mind, that is a serious flaw. > > I don't see these

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread Lucas Prado Melo
Lucas Prado Melo added the comment: Thanks :) It seems that the error message carried by the ImportError object comes from Python/import.c:1504. What should we do: a) Edit Python/import.c b) Change the ImportError object c) Anything else. -- ___ Pyth

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread pmoody
pmoody added the comment: On Mon, Jun 1, 2009 at 5:47 PM, Clay McClure wrote: > > Clay McClure added the comment: > > On Mon, Jun 1, 2009 at 4:54 PM, Martin v. Löwis > wrote: > >> Do you have an application in mind where this lack of distinction >> would prevent writing the application in a

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Roger Serwy
Roger Serwy added the comment: You'll need to modify the IDLE menu item to remove the "-n" using Ubuntu's menu modification tool, usually found under System->Preferences. Presently, using a subprocess only allows for one instance of IDLE running on a machine, whereas running with no subprocess

[issue6172] 'make framework...' fails on Mac ([...]/bin/pythonw3.1: No such file or directory)

2009-06-01 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : This happens with 3.1rc1 $ make frameworkinstallframework DESTDIR=image1 [...] cc -o pythonw ./Tools/pythonw.c \ -DPYTHONWEXECUTABLE='"/Library/Frameworks/Python.framework/Versions/3.1/Resources/Python.app/Contents/MacOS/Python"' /usr/bin

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Mon, Jun 1, 2009 at 4:54 PM, Martin v. Löwis wrote: > Do you have an application in mind where this lack of distinction > would prevent writing the application in a straight-forward way? > IOW, could you do something if they were distinct that you can't > do

[issue6171] Class Browser selection in Ubuntu

2009-06-01 Thread Jason Gervich
New submission from Jason Gervich : When sing IDLE in Ubuntu (Jaunty) if you open the Class Browser and double click on a class or function name, the corresponding section is highlighted in the code in the Editor Window. If you again double click on another class or function name, the new code

[issue1704474] optparse tests fail under Jython

2009-06-01 Thread Philip Jenvey
Philip Jenvey added the comment: This looks like it was against Jython 2.2? Jython 2.5 passes 2.5's test_optparse with only fixing __builtins__ and disabling the weakref test So uses of __builtins__ should should be importing __builtin__ and use that instead. sys.platform.startswith('java') s

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: also related to issue 5756 -- components: +2to3 (2.x to 3.0 conversion tool), Build ___ Python tracker ___ _

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: I'll try tomorrow asap (sorry it's 2:30 am now here) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue1704474] optparse tests fail under Jython

2009-06-01 Thread Greg Ward
Changes by Greg Ward : -- components: +Library (Lib) -Tests title: test_optparse.py mod. for jython -> optparse tests fail under Jython ___ Python tracker ___ _

[issue1704474] test_optparse.py mod. for jython

2009-06-01 Thread Greg Ward
Greg Ward added the comment: I just took a look at the original patch uploaded by drtimcouper. IMHO it would be cleaner and simpler to modify optparse.py so that it behaves as consistently as possible under Jython and CPython. For example, optparse should catch the ValueError raised when a use

[issue6169] Important comparison bug in ipaddr

2009-06-01 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mail

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: To help with the repro, may I suggest running the following in the same order: make frameworkinstallframework DESTDIR=image make frameworkinstallapps DESTDIR=image make frameworkinstall frameworkinstallextras DESTDIR=image --

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: No, but I am running frameworkinstall right now under Mac to see if I can reproduce the problem -- ___ Python tracker ___ _

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread R. David Murray
R. David Murray added the comment: In pre-CIDR days, assuming a prefixlen of 24 for a 192.168.x.x address made sense. Nowadays it is better not to make that assumption. So I find ipaddr's default of 32 to be "safer" than using a class based default. The larger point, however, is that there _i

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Tarek, are you perchance aware of any change that went into distutils since the last beta release that could have influenced the make behavior? -- ___ Python tracker __

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: To explain further, the following section of script is run *twice* .. and thus explains the error "Too many levels of symbolic links" mv "[...]/image/Library/Frameworks/Python.framework/Versions/3.1/bin/2to3" "[...]]/image/Library/Frameworks/Python.frame

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Removed file: http://bugs.python.org/file14151/apy31-anole.log ___ Python tracker ___ ___ Python-bugs-list mail

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-01 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : $ make frameworkinstall DESTDIR=[...]/py3_1rc1-macosx-apy31-rrun/image running install_scripts [...] copying build/scripts-3.1/2to3 -> //Users/apy/rrun/build/activepython-svn-trunk/build/py3_1rc1-macosx-apy31-rrun/image/Library/Frameworks/Python.framework/

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread pmoody
pmoody added the comment: On Mon, Jun 1, 2009 at 4:41 PM, Clay McClure wrote: > > Clay McClure added the comment: > > On Mon, Jun 1, 2009 at 5:02 PM, R. David Murray > wrote: > >>> >>> ipaddr.IPv4('192.168.1.1') == ipaddr.IPv4('192.168.1.1/32') >>> True >> >> As a network engineer I don't se

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Jason Gervich
Jason Gervich added the comment: Thank you. I tried it from the command line and you are right. IDLE runs with the Shell menu. 1.Do you know why this is being done in Ubuntu? That is, why are they setting up the menu this way? 2. Is it a bug or a "feature?" Should be reported a an Ubuntu bug?

[issue6161] httplib: HTTPResponse not storing response body

2009-06-01 Thread Guthur
Changes by Guthur : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Mon, Jun 1, 2009 at 5:02 PM, R. David Murray wrote: >> >>> ipaddr.IPv4('192.168.1.1') == ipaddr.IPv4('192.168.1.1/32') >> True > > As a network engineer I don't see any inherent problem with that equality. > In fact I make use of that conceptual equality on a

[issue6169] Important comparison bug in ipaddr

2009-06-01 Thread Michael Shields
New submission from Michael Shields : The open source version of ipaddr had an important comparison bug in which it was possible for x > y and x < y. The fix for this should be applied to the Python standard library version as well. http://code.google.com/p/ipaddr-py/source/detail?r=77 -

[issue6137] Pickle migration: Should pickle map "copy_reg" to "copyreg"?

2009-06-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) -None priority: -> critical type: -> behavior ___ Python tracker ___ ___ Py

[issue6137] Pickle migration: Should pickle map "copy_reg" to "copyreg"?

2009-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some comments on the patch: - I don't understand why you create a static "twotuple" object rather than simply using Py_BuildValue("(OO)", ...). Mutating tuples is bad. - I don't think you need to call PyDict_Contains() before PyDict_GetItem(). The latter will si

[issue2489] Patch for bugs in pty.py

2009-06-01 Thread Fergus Henderson
Changes by Fergus Henderson : Added file: http://bugs.python.org/file14149/pty.py.patch2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue2489] Patch for bugs in pty.py

2009-06-01 Thread Fergus Henderson
Fergus Henderson added the comment: The spawn change (the last hunk of the original patch) is a bug fix, not an RFE. It has two parts that fix two bugs: (1) a coding bug: spawn() would not wait for the invoked process to finish. This is fixed by the line that adds the call to os.waitpid().

[issue6132] Implement the GIL with critical sections in Windows

2009-06-01 Thread Mark Hammond
Changes by Mark Hammond : -- nosy: +mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4547] Long jumps with frame_setlineno

2009-06-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Fixed with r73114 (trunk), r73117 (py3k), r73119 (2.6) and r73120 (3.0) -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Roger Serwy
Roger Serwy added the comment: Running IDLE from the Applications menu under Ubuntu will not have the Shell menu. If you bring up a terminal and enter "idle", you will have the Shell menu. IDLE, when selected from the Application menu, is being run with the "-n" command line by default in Ubunt

[issue3022] mailbox module, two small fixes

2009-06-01 Thread R. David Murray
R. David Murray added the comment: The iteritems problem was fixed in r71046 from issue2625. The tests in mailbox.patch all pass at this point, though it doesn't look like the line with blanks issue has been addressed in the code. -- nosy: +r.david.murray versions: +Python 2.7, Python

[issue6109] IDLE rendering issue with oriental characters on OSX

2009-06-01 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue5735] Segfault when loading not recompiled module

2009-06-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Fixed with r73116 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ P

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread R. David Murray
R. David Murray added the comment: > >>> ipaddr.IPv4('192.168.1.1') == ipaddr.IPv4('192.168.1.1/32') > True As a network engineer I don't see any inherent problem with that equality. In fact I make use of that conceptual equality on a regular basis. Further, if you were to add a specifically '

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Jason Gervich
New submission from Jason Gervich : The Shell menu is missing from the menu bar in the Edit Window of Ubuntu Linux IDLE. It is described in the help but is not implemented. It is there is the various windows versions I've seen. Why is this missing and will it be fixed? -- components: ID

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: > ipaddr makes no distinction between two fundamentally different > concepts -- to my mind, that is a serious flaw. Do you have an application in mind where this lack of distinction would prevent writing the application in a straight-forward way? IOW, could yo

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread pmoody
pmoody added the comment: On Mon, Jun 1, 2009 at 1:33 PM, Clay McClure wrote: > > Clay McClure added the comment: > > On Mon, Jun 1, 2009 at 1:09 PM, Martin v. Löwis > wrote: > >>> My hope is that now that a library has been selected, it can be improved >>> before Python 2.7 and 3.1 ship. >>

[issue6166] encoding error for 'setup.py --author' when read via subprocess pipe

2009-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: This is not a bug in distutils, but how print works when executed through subprocess. here's a demo: Create a file called "test.py" with: # -*- coding: utf8 -*- print u'' Now another one called "test2.py" with: import subprocess subprocess.Popen(

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: Strangely, the leading line of my last response was eaten by the bug tracker. It read: >>> 1 == (1,) -- ___ Python tracker ___ _

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: On Mon, Jun 1, 2009 at 1:09 PM, Martin v. Löwis wrote: >> My hope is that now that a library has been selected, it can be improved >> before Python 2.7 and 3.1 ship. > > That is fairly unlikely. The 3.1 release candidate has been produced, > so the only options

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread R. David Murray
R. David Murray added the comment: It should generate: problem in pydoc_badimport2 - : No module named i_dont_exist" If you'd like I can do the final fixup and apply the patch. I'm happy to let you get it working if you want, though, and I appreciate the work you've done so far either way.

[issue2489] Patch for bugs in pty.py

2009-06-01 Thread Petr Splichal
Changes by Petr Splichal : -- nosy: +psss ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2009-06-01 Thread Guilherme Polo
New submission from Guilherme Polo : Hi, I've noticed some minor problems in Tkinter.Scrollbar that would be good to be addressed. The activate method never returns a value and it also doesn't accept to be called without an element -- which is accepted by tcl. When an element is not especified,

[issue967161] pty.spawn() enhancements

2009-06-01 Thread Fergus Henderson
Fergus Henderson added the comment: #1 is a duplicate of issue 2489 , which has a patch attached. According to the other discussion in this thread, #2 was a misunderstanding. So I think we could close this bug as a duplicate. -- nosy: +fergushenderson

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: The only reason I would see to clean .pyc file in distutils clean command is if the build command (or any other command) would generate them in the source tree, which is not the case. That said, build_ext -i *does* create .so files in the source tree, so we should

[issue6156] Error compiling valid regex

2009-06-01 Thread Mykola Kharechko
Mykola Kharechko added the comment: > are you sure there are no valid errors that can be caught there? Sorry, No. See http://svn.python.org/view/python/trunk/Lib/sre_compile.py?r1=17949&r2=17948&pathrev=17949 and http://osdir.com/ml/python.bugs/2000-10/msg00010.html links. -- _

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: Antoine: Okay sorry not a mess then. I just figure that if i'm using the distutils tool for doing all the fun things to my local source directory that I potentially used to do with say a makefile, then would it not be beneficial to have a useful -option- (as included in

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: ps: included is a platform independent version of the code, so that it doesn't depend on os.system() specific commands. HTH, _J -- Added file: http://bugs.python.org/file14146/clean.py.patch ___ Python tracker

[issue6166] encoding error for 'setup.py --author' when read via subprocess pipe

2009-06-01 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : I ran 'python setup.py --author' for the pypi package "ll-orasql-0.6" (whose author name has non-ascii characters) under subprocess.Popen and this is what I get: Traceback (most recent call last): File "/home/sridharr/as/pypm/bin/python", line 39, in

[issue6161] httplib: HTTPResponse not storing response body

2009-06-01 Thread Guthur
Guthur added the comment: But it must be somewhere, you don't make a seperate request to the server for the body, you just make the single HTTP request and the server serves that request. Also this is surely aimed at developers, we can make the decision whether or not it is too large, and si

[issue6156] Error compiling valid regex

2009-06-01 Thread Georg Brandl
Georg Brandl added the comment: Just taking out the "raise" seems questionable to me; are you sure there are no valid errors that can be caught there? -- nosy: +georg.brandl ___ Python tracker _

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
Jonathan added the comment: kludged_zone = ("+" if time.altzone < 0 else '-') + time.strftime("%H%M",time.gmtime(abs(time.altzone))) time_zone_format_string = time_zone_format.replace("%z", kludged_zone) -- ___ Python tracker

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
Jonathan added the comment: Actually, I didn't change the DST flag in the second test, the second commented bug is invalid, only the first one is correct. -- ___ Python tracker _

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
New submission from Jonathan : >>> import time >>> time.strftime("%FT%T%z") '2009-06-01T18:35:42+0100' >>> # Expect to see +0100 >>> time.strftime("%FT%T%z",time.localtime()) '2009-06-01T18:35:42+' >>> time.strftime("%FT%T%Z",time.localtime()) '2009-06-01T18:35:42BST' >>> made_up_time = list(

[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'

2009-06-01 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : This is being successfully used in ActivePython. -- assignee: tarek components: Distutils files: distutils_aix_blibpath.patch keywords: patch messages: 88658 nosy: srid, tarek, trentm severity: normal status: open title: [AIX] Patch to correct the

[issue6163] [HP-UX] ld: Unrecognized argument: +s -L

2009-06-01 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : this is also applicable to 3.1 (albeit the source is slightly changed) Return a *list* of options otherwise these may be improperly interpreted as one option with an embedded space. On /usr/bin/ld on a HP-UX/IA64 box this results in: ld: Unrecognized

[issue6161] httplib: HTTPResponse not storing response body

2009-06-01 Thread Mykola Kharechko
Mykola Kharechko added the comment: HTTPResponse can't store body because it can be huge (some film or something else). -- nosy: +crchemist ___ Python tracker ___ ___

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: > My hope is that now that a library has been selected, it can be improved > before Python 2.7 and 3.1 ship. That is fairly unlikely. The 3.1 release candidate has been produced, so the only options possible at this point are to either go ahead with what is i

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: On Mon, Jun 1, 2009 at 9:39 AM, Clay McClure wrote: > > Since Python 2.7 and 3.1 have not yet shipped, I hope it's not too late > to continue this discussion. I have no vested interest in either ipaddr or > netaddr, but I am interested in seeing a well-design

[issue6161] httplib: HTTPResponse not storing response body

2009-06-01 Thread Guthur
Changes by Guthur : -- title: HTTPResponse not storing response body -> httplib: HTTPResponse not storing response body ___ Python tracker ___ ___

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-01 Thread Clay McClure
Clay McClure added the comment: Since Python 2.7 and 3.1 have not yet shipped, I hope it's not too late to continue this discussion. I have no vested interest in either ipaddr or netaddr, but I am interested in seeing a well-designed and usable IP address library included in the stdlib. >From

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why you call it a "mess". Generating a pyc file is the normal way of operating when importing a Python module from source. It's not just distutils. And the fact that it's "harmless" does not justify adding a distutils option for something which doe

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: I could agree with R. David Murray, and I think that it's fine that this be included under a dist clean command. Ultimately I'm writing an application and I'm trying to use distutils with it. I'll potentially run a: "$ setup.py build_ext -i" or whatever it may be, and th

[issue6162] What should happen to signals when the main thread dies?

2009-06-01 Thread Mark Florisson
New submission from Mark Florisson : As signals are only delivered to the main thread, what should happen when the main thread dies? Currently, the signal mask is not unset in any other thread, so when the main thread dies, all signals set in the mask are simply ignored. Perhaps an other thread c

[issue6156] Error compiling valid regex

2009-06-01 Thread Mykola Kharechko
Mykola Kharechko added the comment: patch that fix this -- Added file: http://bugs.python.org/file14142/sre_compile.py.patch ___ Python tracker ___ __

[issue6161] HTTPResponse not storing response body

2009-06-01 Thread Guthur
New submission from Guthur : HTTPResponse does not store the HTTP response body while it does store the response headers, which in my opinion makes it rather useless as a HTTP response abstraction object. The only way to obtain the response body is to call HTTPResponse.Read ([amt]) and store

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread Lucas Prado Melo
Lucas Prado Melo added the comment: I didn't understand what you mean: what should be shown when pydoc tries to generate documentation for a module with the bad import 'import test.i_dont_exist.neither_do_i'? I am not a native english speaker, so please excuse me if you don't understand somethin

[issue6156] Error compiling valid regex

2009-06-01 Thread Mykola Kharechko
Mykola Kharechko added the comment: tests for this issue. -- keywords: +patch nosy: +crchemist Added file: http://bugs.python.org/file14141/test_re.py.patch ___ Python tracker __

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think distutils should host whetever functionality useful to developers. Distutils is for packaging and distributing Python software. -- nosy: +pitrou ___ Python tracker __

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread R. David Murray
R. David Murray added the comment: It seems to me that this functionality is similar to what a 'distclean' target would do in a typical makefile. Don't know if that perspective helps any :) -- nosy: +r.david.murray ___ Python tracker

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread R. David Murray
R. David Murray added the comment: No need to apologize, and thank you for taking the time to learn this stuff. (Six months ago I didn't know how the python unit test suite worked either...and I keep learning new things.) For me your new test fails...and it isn't quite the one I had in mind. T

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: Hi, the patch only removes them if one adds the --pyc option. I think it is a good idea to have some option or target somewhere to remove the types of files that can be regenerated because often developers want to "get them out of the way". Example: I'll be working on a

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread Lucas Prado Melo
Lucas Prado Melo added the comment: by the way, I was not acquainted with this unit test thing... sorry -- ___ Python tracker ___ ___

[issue6137] Pickle migration: Should pickle map "copy_reg" to "copyreg"?

2009-06-01 Thread Matthias Kievernagel
Matthias Kievernagel added the comment: Applied the patch http://bugs.python.org/file14124/compat_pickle.diff to rev. 73106. Patch applies fine, 'make test' passes and it solves my problem. (which is far from a complete test case though - only 5 small pickles) Thanks, Matthias Kievernagel -

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread Lucas Prado Melo
Changes by Lucas Prado Melo : Removed file: http://bugs.python.org/file14138/pydocs.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread Lucas Prado Melo
Lucas Prado Melo added the comment: Ok. New patch that passes the unit tests and with a new unit test covering inexistant nested modules. -- Added file: http://bugs.python.org/file14140/pydocs.diff ___ Python tracker

[issue6154] Python 3.1 rc1 will not build on OS X 10.5.7

2009-06-01 Thread Brodie Rao
Changes by Brodie Rao : -- nosy: +brodie ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-01 Thread R. David Murray
R. David Murray added the comment: Thanks. The unit tests don't pass, though, at least not when I apply the patch to trunk. I get three failures. So the patch isn't correct as it stands. 'path' is the full module path (test.i_am_not_here in the case of one of the test failures), but what app

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: The clean command cleans up temporary files from 'build' command. Your patch removes files that are not generated by the build command only but by a normal usage of Python modules. Why do you need to remove them precisely ? -- components: +Distutils -Lib