[issue7577] documention buglet for PyBuffer

2009-12-27 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r77081, r77082. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2009-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have trouble understanding what the patch does. I would expect it to cache the -> mapping, but it seems to cache the final HTTP response instead. Also, it's not obvious in which situations the default for `cacheable` would be overriden. Aren't http_error_30

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

2009-12-27 Thread Karen Tracey
Karen Tracey 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

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

2009-12-27 Thread Gregory P. Smith
Gregory P. Smith 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 hash functions a

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

2009-12-27 Thread Gregory P. Smith
Gregory P. Smith 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 possibly redoing differ

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

2009-12-27 Thread Phillip J. Eby
Phillip J. Eby 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 registry path used, rather th

[issue7579] Patch to add docstrings to msvcrt

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 should be split

[issue7586] Typo in collections documentation

2009-12-27 Thread Robert Xiao
New submission from Robert Xiao : 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 the creation of ins

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

2009-12-27 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- versions: +Python 2.7, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2009-12-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: sorin: can you provide a patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2009-12-27 Thread anatoly techtonik
anatoly techtonik 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. -- ___ Python track

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

2009-12-27 Thread sorin
sorin 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 _

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

2009-12-27 Thread Antoine Pitrou
Antoine Pitrou 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. -- _

[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 added the comment: Should all these ValueErrors be turned into IOErrors? -- nosy: +amaury.forgeotdarc, pitrou ___ Python tracker ___

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

2009-12-27 Thread Martin v . Löwis
Martin v. Löwis 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

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

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik : 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 various tools http://c

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

2009-12-27 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7581] incomplete doc of zlib

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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" ___ Python tracke

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

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 ___ Python tracker

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

2009-12-27 Thread Carwyn Edwards
Carwyn Edwards 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 looking for it in: [

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

2009-12-27 Thread Till Maas
Till Maas 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 of silently performi

[issue2019] API to clear most free lists

2009-12-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 status: open -> closed

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

2009-12-27 Thread Nir Aides
Nir Aides added the comment: Memory can be pre-allocated by thread_PyThread_start_new_thread() before thread is spawned. -- ___ Python tracker ___ __

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

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik : 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 standard library. It i

[issue5727] doctest pdb readline broken

2009-12-27 Thread Sriram
Sriram 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 Release log. """ Patch #721

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

2009-12-27 Thread Nir Aides
Changes by Nir Aides : -- nosy: +nirai ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

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

2009-12-27 Thread Nir Aides
Changes by Nir Aides : -- nosy: +nirai ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

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

2009-12-27 Thread Pablo Mouzo
Pablo Mouzo 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) req.add_unredirected_header('Content-Length',

[issue7583] doctest should normalize tabs when comparing output

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik : 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 attached doctabtest.py

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

2009-12-27 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2009-12-27 Thread Senthil Kumaran
Senthil Kumaran 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 _

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

2009-12-27 Thread anatoly techtonik
New submission from anatoly techtonik : 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 more standard compliant

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

2009-12-27 Thread Iustin Pop
Iustin Pop 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 header before finally

[issue1811] True division of integers could be more accurate

2009-12-27 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r77062 (trunk), r77063 (py3k). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

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

2009-12-27 Thread Ben Kaplan
Ben Kaplan 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 should just require a pat

[issue7451] improve json decoding performance

2009-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le dimanche 27 décembre 2009 à 11:10 +, Bob Ippolito a écrit : > Bob Ippolito 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 someone else to do it? -

[issue7581] incomplete doc of zlib

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

[issue7581] incomplete doc of zlib

2009-12-27 Thread WANG Lu
New submission from WANG Lu : 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, method, window_size, m

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

2009-12-27 Thread Ronald Oussoren
Ronald Oussoren 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 for that is to patch t

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

2009-12-27 Thread Ronald Oussoren
Ronald Oussoren 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 ___

[issue7451] improve json decoding performance

2009-12-27 Thread Bob Ippolito
Bob Ippolito added the comment: I applied most of this patch to r206 of simplejson trunk -- ___ Python tracker ___ ___ Python-bugs-lis

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

2009-12-27 Thread Tarek Ziadé
Tarek Ziadé 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 as a pre-built ste

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

2009-12-27 Thread Senthil Kumaran
Senthil Kumaran 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 ___

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

2009-12-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the patch, Ned. Fixed in the trunk revision 77058. -- resolution: -> fixed ___ Python tracker ___ _