[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-12-27 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Thanks for the patch, Ned. Fixed in the trunk revision 77058. -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5625

[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-12-27 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Merged the fixes in r77059, r77060 and r77061 I fixed the thishost function to return all ips in py3k. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2009-12-27 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: This is happening because ./configure --enable-universalsdk was used in MacPorts. In Python source, /Mac/BuildScript/build-installer.py can be used to drive ./configure with another SDK (via --sdk-path) so maybe macports itself should use it

[issue7451] improve json decoding performance

2009-12-27 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: I applied most of this patch to r206 of simplejson trunk -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7451 ___

[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2009-12-27 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: AFAIK This is already fixed in the repository. I don't have time to verify this right now, but will do so later this week (which is why I'm assigning the issue to myself) -- assignee: tarek - ronaldoussoren

[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2009-12-27 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I forgot to mention the workaround for the 3.1 release: reinstall XCode and make sure that you don't do the default install, but select the 10.4u SDK for installation as well. You may then run into linking issues, they only workaround

[issue7581] incomplete doc of zlib

2009-12-27 Thread WANG Lu
New submission from WANG Lu coolwan...@gmail.com: Python version: 2.6.4 r264:75706 (ubuntu 9.10) I'm working on zlib, and have been busy in finding a way of specify the window size of compression. After wasting minutes in python online doc, I google and find the way: zlib.compressobj(level,

[issue7581] incomplete doc of zlib

2009-12-27 Thread WANG Lu
WANG Lu coolwan...@gmail.com added the comment: Oh I found this is mentioned in msg94409(http://bugs.python.org/issue7191#msg94409) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7581 ___

[issue7451] improve json decoding performance

2009-12-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le dimanche 27 décembre 2009 à 11:10 +, Bob Ippolito a écrit : Bob Ippolito b...@redivi.com added the comment: I applied most of this patch to r206 of simplejson trunk Thank you. Will you port it to CPython yourself or would you prefer

[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2009-12-27 Thread Ben Kaplan
Ben Kaplan benjamin.kap...@case.edu added the comment: The issue here isn't with Macports (which doesn't do a universal build by default). It's with the installer on python.org which is also a universal binary. Macports has the advantage of knowing which OS version it's being compiled on so it

[issue1811] True division of integers could be more accurate

2009-12-27 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in r77062 (trunk), r77063 (py3k). -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7353] cporting docs recommend using Include/intobject.h, which was removed in 3.1?

2009-12-27 Thread Iustin Pop
Iustin Pop iu...@k1024.org added the comment: Hi, Might I suggest that, whatever the outcome of the re-adding intobject.h discussion, the documentation is updated? I think I'm not the only module author which spent time trying to understand why the 3.1 documentation refers to non-existent

[issue7582] [patch] diff.py to use iso timestamp

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: make diff.py produce unified diffs with ISO 8601 timestamps Currently generated timestamps are difficult to separate from filename when parsing if you don't know that the diff was generated by diff.by This patch make diff.py output

[issue3599] test_pydoc after test_urllib2 causes exception in Popen.__del__

2009-12-27 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I dont see the failure on trunk either. Is it either specific to windows or existed back when the bug was raised? -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org

[issue6452] urllib2.Request() will not work with long authorization headers

2009-12-27 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6452 ___ ___ Python-bugs-list

[issue7583] doctest should normalize tabs when comparing output

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Since 2.4 doctest converts all tabs to 8-space sequences in test source. It should do the same with output it receives for comparison. Right now there is no way to write a correct doctest if the output includes tab character. See

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

2009-12-27 Thread Pablo Mouzo
Pablo Mouzo pablomo...@gmail.com added the comment: The problem here is that the headers are not updated if they already exists. The solution is quite simple but breaks the tests because it clobbers the existing headers. You can do this: ... req.add_data(some_data)

[issue6452] urllib2.Request() will not work with long authorization headers

2009-12-27 Thread Nir Aides
Changes by Nir Aides n...@winpdb.org: -- nosy: +nirai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6452 ___ ___ Python-bugs-list mailing list

[issue7544] Fatal error on thread creation in low memory condition

2009-12-27 Thread Nir Aides
Changes by Nir Aides n...@winpdb.org: -- nosy: +nirai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7544 ___ ___ Python-bugs-list mailing list

[issue5727] doctest pdb readline broken

2009-12-27 Thread Sriram
Sriram sriramrathinav...@yahoo.com added the comment: Hi, This is the first bug am working in python, kindly excuse my mistakes, if any. As far as I can understand, the pdb disabled readline when an explicit stdin or stdout is passed, to allow remote debugging. I found this in Python 2.5.4

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: RFC 3339 defines a standard for Date and Time on the Internet. http://www.ietf.org/rfc/rfc3339.txt Given that Python is increasingly popular on the Internet is should include convenience function to generate RFC 3339 timestamps in

[issue7544] Fatal error on thread creation in low memory condition

2009-12-27 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: Memory can be pre-allocated by thread_PyThread_start_new_thread() before thread is spawned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7544

[issue2019] API to clear most free lists

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Indeed, r60797 and r64753 removed sys._compact_freelists, in favor of an automatic call to all PyXxx_ClearFreelist() during the collection of the highest generation. -- nosy: +amaury.forgeotdarc resolution: - out of date

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

2009-12-27 Thread Till Maas
Till Maas opensou...@till.name added the comment: I do not need to reuse a request object, but I did in a script when only the data was different for each request. If this is not meant to be done, then any not meant to be done modification should somehow create an error, when it is done, instead

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread Carwyn Edwards
Carwyn Edwards car...@carwyn.com added the comment: This prevents numerous packages from installing correctly including the current 0.6c11 version of setuptools. When the installer runs it reports that it can't find the version of python installed from python-2.6.4.amd64.msi. It seems to be

[issue7582] [patch] diff.py to use iso timestamp

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Using ISO format certainly makes sense, but it seems to me that after dt=datetime.fromtimestamp(mtime), dt.tzinfo is always None, so the test is not necessary. -- nosy: +amaury.forgeotdarc

[issue7581] incomplete doc of zlib

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Closing as duplicate of issue7191 -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - Odd behaviour with zlib.decompressobj optional parameter wbits ___

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___ ___ Python-bugs-list

[issue7585] [patch] difflib should separate filename from timestamp with tab

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: The patch inserts \t character between filename and timestamp in unified and context diff headers. According to specification by Guido Van Rossum =) http://www.artima.com/weblogs/viewpost.jsp?thread=164293 And de-facto output from

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Carwyn: those packages just need to create two versions of their installers - one for 32-bit Python, and one for 64-bit Python. Please report that to the respective packages. -- ___ Python tracker

[issue7578] Behavior of operations on a closed file object is not documented correctly

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Should all these ValueErrors be turned into IOErrors? -- nosy: +amaury.forgeotdarc, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7578

[issue7578] Behavior of operations on a closed file object is not documented correctly

2009-12-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think we raise ValueError because that's already what 2.x does with plain file objects. Also, it's true that it's a programming error (using a closed file) and not really an IO error. Simplest would be to fix the docs for the io module, IMHO.

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: It is possible to create combined x86 and x64 msi files and in fact it would be a good idea to have only one instead of two. -- nosy: +sorin ___ Python tracker rep...@bugs.python.org

[issue7582] [patch] diff.py to use iso timestamp

2009-12-27 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: That's true. Is there any way to get current TZ offset in Python? I can't find anything better than datetime.datetime.now() - datetime.datetime.utcnow() and then rounding to a nearest minute. --

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: sorin: can you provide a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- versions: +Python 2.7, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___

[issue7586] Typo in collections documentation

2009-12-27 Thread Robert Xiao
New submission from Robert Xiao nneon...@gmail.com: In the documentation for the namedtuple (http://docs.python.org/3.1/library/collections.html), the following phrase is incorrect: The subclass shown above sets __slots__ to an empty tuple. This keeps keep memory requirements low by preventing

[issue7579] Patch to add docstrings to msvcrt

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is a good idea. I have some comments though: - the second docstring says heapmin when it should describe locking. - there are strange characters around pushed back. Please use only ascii characters. - The body of the docstrings

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread Phillip J. Eby
Phillip J. Eby p...@telecommunity.com added the comment: ISTM there may be two ways to fix this problem; one was to change the .exe header produced by bdist_wininst, but in retrospect, it can't fix this because it's likely Windows' 64-to-32 bit conversion (Wow6432Node) that's changing the

[issue3745] _sha256 et al. encode to UTF-8 by default

2009-12-27 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: lemburg - see which issue #? Anyways perhaps the right thing to do instead of trunk r65961 would have been to change the s# to an s*. Undoing it will be more painful now as several changes have gone in since that require undoing and

[issue3745] _sha256 et al. encode to UTF-8 by default

2009-12-27 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: rpetrov - I couldn't really understand your message so I'm not sure if I'm answering the right things: yes both the openssl and non-openssl modules need to behave identically. the reason openssl is used when possible is that its optimized

[issue3745] _sha256 et al. encode to UTF-8 by default

2009-12-27 Thread Karen Tracey
Karen Tracey kmtra...@gmail.com added the comment: I think the missing issue reference is to this thread on python-dev: http://mail.python.org/pipermail/python-dev/2009-December/094574.html -- ___ Python tracker rep...@bugs.python.org

[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2009-12-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I have trouble understanding what the patch does. I would expect it to cache the original URL - redirected URL mapping, but it seems to cache the final HTTP response instead. Also, it's not obvious in which situations the default for `cacheable`

[issue7577] documention buglet for PyBuffer

2009-12-27 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r77081, r77082. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7577 ___