[issue1079] decode_header does not follow RFC 2047

2009-04-08 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: +1 for Tony's patch. This patch reverts fix for Issue1582282 filed by tkikuchi. I cannot understand the rationale for solution proposed in Issue1582282. How does the fix make easier to read mails from Entourage? -- nosy: +ishimoto, tkikuchi _

[issue5717] os.defpath includes unix /bin on windows

2009-04-08 Thread anatoly techtonik
Changes by anatoly techtonik : -- keywords: +patch Added file: http://bugs.python.org/file13651/issue5717.py25.patch ___ Python tracker ___ ___

[issue5717] os.defpath includes unix /bin on windows

2009-04-08 Thread anatoly techtonik
anatoly techtonik added the comment: On the second try it was much easier. For py3k I saw a post about removing defpath and some of its friends, with which I partially agree. http://groups.google.com/group/comp.lang.python/browse_thread/thread/e8072370bfbef398/a0215b5820f76c0e -- Adde

[issue5722] settimer / gettimer functionality on FreeBSD 6.3 (not 7.x)

2009-04-08 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: This issue is a follow-up to Issue 2240 (now closed). http://bugs.python.org/issue2240 -- ___ Python tracker ___

[issue2240] setitimer, getitimer wrapper

2009-04-08 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: Closing this issue as the main functionality is committed. See issue 5722 for follow-up regarding FreeBSD functionality. -- nosy: +tleeuwenb...@gmail.com status: open -> closed ___ Python tracker

[issue5722] settimer / gettimer functionality on FreeBSD 6.3 (not 7.x)

2009-04-08 Thread Tennessee Leeuwenburg
New submission from Tennessee Leeuwenburg : Tests fail on FreeBSD 6.3 http://www.python.org/dev/buildbot/trunk/x86%20FreeBSD%203%20trunk/build s/77/step-test/0 Relevant extract from parent issue, post by Guilherme Polo: --- Trent Nelson

[issue2706] datetime: define division timedelta/timedelta

2009-04-08 Thread Tennessee Leeuwenburg
Changes by Tennessee Leeuwenburg : -- assignee: -> tleeuwenb...@gmail.com ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5721] msi.py still tries to copy non-existent test/README

2009-04-08 Thread Tim Golden
New submission from Tim Golden : tools/msi/msi.py is still trying to copy the README file from the lib/test directory. This file was removed in r70872. Patch attached against r71393 of msi.py. -- components: Build, Demos and Tools, Windows files: msi.r71393.patch keywords: patch messages

[issue5466] Tix.Balloon causes TCLError: unknown color name "{#ffff60}" in Python 2.6.1

2009-04-08 Thread Andrew Gregory
Andrew Gregory added the comment: This has been fixed in the 2.6.2c1 release candidate. Thank you for updating Tix. Andrew. -- status: open -> closed ___ Python tracker ___ ___

[issue5723] Incomplete json tests

2009-04-08 Thread Antoine Pitrou
New submission from Antoine Pitrou : Looking at the tests it seems that the pure-Python paths of json are partly untested. In particular, py_make_scanner (as oppose to c_make_scanner). -- assignee: bob.ippolito components: Tests messages: 85770 nosy: benjamin.peterson, bob.ippolito, pitr

[issue5723] Incomplete json tests

2009-04-08 Thread Bob Ippolito
Bob Ippolito added the comment: Is this high priority? The pure-Python code paths don't even run in cpython. I test them manually with simplejson by just deleting the extension and then running the tests again. There doesn't seem to be a very good way to do this sort of thing -- ___

[issue5723] Incomplete json tests

2009-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is this high priority? The pure-Python code paths don't even run in > cpython. I test them manually with simplejson by just deleting the > extension and then running the tests again. There doesn't seem to be a > very good way to do this sort of thing The m

[issue5723] Incomplete json tests

2009-04-08 Thread Walter Dörwald
Walter Dörwald added the comment: test_quopri has a decorator that calls a test using both the C and Python version of the tested function. This decorator looks like this: def withpythonimplementation(testfunc): def newtest(self): # Test default implementation testfunc(self)

[issue5723] Incomplete json tests

2009-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: It is a priority because we need solid test coverage in order to successfully port 2.7 to 3.1 without breaking code or changing semantics. The original 3.0 port was done badly. -- nosy: +rhettinger ___ Python tra

[issue4136] merge json library with latest simplejson 2.0.x

2009-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch, completely removing the `encoding` parameter and fixing docs. -- Added file: http://bugs.python.org/file13653/json_py3k-3.patch ___ Python tracker ___

[issue4136] merge json library with latest simplejson 2.0.x

2009-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: (by the way, all tests pass) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue4136] merge json library with latest simplejson 2.0.x

2009-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: It would be better to have a patch that diff's from the current 2.7 version than to start with the 3.0 version; otherwise, the two will never be fully synchronized and some of the choices made in 2.6-to-3.0 will live on forever. The 2.7 version reflects more

[issue4136] merge json library with latest simplejson 2.0.x

2009-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It would be better to have a patch that diff's from the current 2.7 > version than to start with the 3.0 version; otherwise, the two will > never be fully synchronized and some of the choices made in 2.6-to-3.0 > will live on forever. How am I supposed to pro

[issue4136] merge json library with latest simplejson 2.0.x

2009-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: The idea is to ignore the current 3.0 version and just redo the 2-to-3 conversion from 2.7 and do it well this time. Compute the 3.1 patch as if the current 3.0 version was blown away (reverted). -- ___ Python tr

[issue3873] Unpickling is really slow

2009-04-08 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Victor, Unpickler shouldn't raise an error if the given file object does support seek(); it should gracefully fall back to using only read() and readline(). Also, I think you could get a greater performance improvement by using peek() and avoiding backward

[issue4136] merge json library with latest simplejson 2.0.x

2009-04-08 Thread Christian Heimes
Christian Heimes added the comment: +1 for Raymond's suggestion The 3.0 version of json was more like a last minute patch work than thorough work. You might wanna svn rm the 3.0 code, svn cp the 2.7 code to the py3k branch and start all over. -- ___

[issue5721] msi.py still tries to copy non-existent test/README

2009-04-08 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: -> loewis priority: -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue1744752] Newline skipped in "for line in file"

2009-04-08 Thread Matthew Barnett
Matthew Barnett added the comment: What do you mean "towards the end of the file"? What are the offsets of the two lines? (I'm thinking it might be something to do with the \r\n lying across a boundary, such as the 4GB boundary.) -- nosy: +mrabarnett ___

[issue5665] Add more pickling tests

2009-04-08 Thread Collin Winter
Collin Winter added the comment: If no-one has any objections to the xpickle resource included in the latest version of the patch, I'd like to commit this soon so that we can be more confident in the other changes I have queued up. If I no-one objects, I'll commit this sometime early tomorrow mo

[issue5724] 2.6.2c1 fails to pass test_cmath on Solaris10

2009-04-08 Thread Skip Montanaro
New submission from Skip Montanaro : I configured and built Python 2.6.2c1 on Solaris 10 using gcc 4.2. All tests pass except cmath: % LD_LIBRARY_PATH=. ./python Lib/test/regrtest.py -v test_cmath test_cmath test_abs (test.test_cmath.CMathTests) ... ok test_cmath_matches_math (test.t

[issue5724] 2.6.2c1 fails to pass test_cmath on Solaris10

2009-04-08 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1590] "make altinstall" installs pydoc, idle, smtpd.py

2009-04-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Refixed in r71400. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue3119] pickle.py is limited by python's call stack

2009-04-08 Thread Aaron Gallagher
Aaron Gallagher added the comment: Okay, here's a new version for the py3k trunk. I'm assuming that this is not going to make it into 2.x at all, because of the API changes. This patch only touches the python version of the code and adds a unit test for testing whether pickle works with arbit

[issue5665] Add more pickling tests

2009-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If no-one has any objections to the xpickle resource included in the > latest version of the patch, I'd like to commit this soon so that we can > be more confident in the other changes I have queued up. If I no-one > objects, I'll commit this sometime early to

[issue5665] Add more pickling tests

2009-04-08 Thread Collin Winter
Collin Winter added the comment: > Ok if it doesn't take too long to run the tests (which may imply > implementing something like Raymond's suggestion of randomizing test > order, if you haven't already done so). I did something similar: if you don't pass the -uxpickle flag to regrtest, only a

[issue5724] 2.6.2c1 fails to pass test_cmath on Solaris10

2009-04-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll mark this as a release blocker for 2.6.2 for now, until Mark weighs in. -- priority: -> release blocker ___ Python tracker ___ __

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2009-04-08 Thread Andy Sk
Andy Sk added the comment: Thank you Henrik. The workaround in the first comment caused some cookies to be handled incorrectly due to ignoring version on all cookies, but your workaround is nice. It seems that the patch jjlee supplied should really be applied, however, to save others from ha

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
New submission from jvdias : Please could we have an API in the Python Core for PROCESS as opposed to THREAD Semaphores , to enable facilities such as I have done in the attached example "psempy.so" compiled "C" python module. ie. I'd like to be able to : ' import sys.semget sys.semop sys.semct

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
jvdias added the comment: To Build: $ gcc -fPIC -shared -o psempy.c psempy.so -I/usr/include/python2.6 -L/usr/lib/python2.6 -lpython2.6 && mv psempy.so psem.so $ dd if=/dev/urandom of=app1_20090407.01.log bs=100 count=1 $ python >>> import sys, os, re, datetime, psem, psem_example >>> psem_

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
Changes by jvdias : Removed file: http://bugs.python.org/file13656/psem_example.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5725] process SysV-Semaphore support

2009-04-08 Thread jvdias
jvdias added the comment: Example Python use of psem.so Parallel ForEach : Log Compressor Usage: $ gcc -o psem.so -fPIC -shared psempy.c -I/usr/include/python2.6 -L/usr/lib/python2.6 -lpython2.6 $ dd if=/dev/urandom bs=100 count=1 of=app1_20090407.01.log $ python Python 2.6 (r26:66714, Oc