[issue7551] SystemError/MemoryError/OverflowErrors on encode() a unicode string

2009-12-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: All string length calculations in Python 2.4 are done using ints which are 32-bit, even on 64-bit platforms. Since UTF-8 can use up to 4 bytes per Unicode code point, the encoder overallocates the needed chunk of memory to len*4 bytes. This

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread Leo Spidian
New submission from Leo Spidian zhangdongying1...@gmail.com: isinstance() function returns False while surpposed to return True tt.py = import ss class tt: def __init__(self, s): if not isinstance(s, ss.ss): raise Exception(s is not an

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread Leo Spidian
Changes by Leo Spidian zhangdongying1...@gmail.com: Removed file: http://bugs.python.org/file15641/ss.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7555 ___

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread Leo Spidian
Changes by Leo Spidian zhangdongying1...@gmail.com: Added file: http://bugs.python.org/file15642/ss.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7555 ___

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread Leo Spidian
Changes by Leo Spidian zhangdongying1...@gmail.com: Added file: http://bugs.python.org/file15643/tt.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7555 ___

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: While I agree it's confusing, I think this is working as designed. The problem is coming from the circular import. If you add a print id(ss) between the definition of class ss and the if __name__ == '__main__' you'll see that ss ends up

[issue7482] Improve ZeroDivisionError message for float and complex object

2009-12-21 Thread Retro
Retro vinet...@gmail.com added the comment: The patch is *almost* okay. errno = 0; div = c_quot(v-cval,w-cval); /* The raw divisor value. */ if (errno == EDOM) { - PyErr_SetString(PyExc_ZeroDivisionError, complex remainder); +

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread Leo Spidian
Leo Spidian zhangdongying1...@gmail.com added the comment: Thank you very much! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7555 ___ ___

[issue7528] Provide PyLong_AsLongAndOverflow compatibility to Python 2.x

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Perfect---thank you! Applied to trunk in r76963. I tweaked the main comment and docstring, wrapped a long line, and replaced two instances of '*overflow = Py_SIZE(v) 0 ? 1 : -1' with simply '*overflow = sign'. I also expanded the test a

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Updated patch with optimization for: * rfind * rindex * rsplit * rpartition And an optimization was implemented in r46398 but never used because #define USE_FAST was removed 2 hours before: r46366. == I changed this to activate optimization

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Actually, the USE_FLAG macro was removed in r46367 (not 46366). « needforspeed: remove remaining USE_FAST macros; if fastsearch was broken, someone would have noticed by now ;-) » -- ___ Python

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15507/fastsearch_rfind.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7033] C/API - Document exceptions

2009-12-21 Thread lekma
lekma lekma...@gmail.com added the comment: patch against trunk: - fix tabs issue (I hope) - add test -- Added file: http://bugs.python.org/file15645/issue7033_trunk_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7033

[issue7033] C/API - Document exceptions

2009-12-21 Thread lekma
lekma lekma...@gmail.com added the comment: The same with a simpler test. I leave it up to you guys to choose which one is the best. -- Added file: http://bugs.python.org/file15646/issue7033_trunk_3_alt_test.diff ___ Python tracker

[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I created a comprehensive set of tests to check all the possibilities that I listed in msg96319 and updated the patch for Object/exceptions.c. Great! Small thing: in tests, you should use setUp() to initialize test data rather than __init__().

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15644/fastsearch_rfind_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: I reupload the patch fixed (sorry). -- Added file: http://bugs.python.org/file15647/issue7462_fastsearch_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Just to be clear, this isn't a case of circular imports, but of the class being defined twice (as two different objects, as Mark said), once when the module is created as main when ss.py is run, and the other when ss is imported for the

[issue7555] Wrong return value of isinstance() function

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Much better explanation! Thanks, David. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7555 ___

[issue7528] Provide PyLong_AsLongAndOverflow compatibility to Python 2.x

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I fixed up py3k to be in sync with trunk, and added your tests (slightly expanded) to py3k in r76971. Thanks! -- resolution: - accepted status: open - closed ___ Python tracker

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Some things: - is STRINGLIB_CMP still used? if not, it should be removed (use grep :-)) - please don't use #if 1 - if USE_FAST isn't used anymore, it should be remove as well - did you check that rpartition, split and friends were sped up by the

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Actually I see different macros which do the same thing: I will consider reusing STRINGLIB_CMP to re-define PyUNICODE_MATCH and PySTRING_MATCH (or create aliases if they have the same signature). I can prepare a all-in-one patch which fixes all

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Removing slow parts and unnused macros STRINGLIB_CMP and USE_FAST. -- Added file: http://bugs.python.org/file15648/issue7462_fastsearch_v3.diff ___ Python tracker rep...@bugs.python.org

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15647/issue7462_fastsearch_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch that makes the DeprecationWarning a TypeError, and adds a new DeprecationWarning for the 'L' format. -- keywords: +patch Added file: http://bugs.python.org/file15649/issue5080.patch

[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This seems to be fixed; I think I must have had a stale semaphore lying around, from while I was experimenting with the original problem. -- status: open - closed ___ Python tracker

[issue7550] PyLong_As* methods should not call nb_int.

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It turns out this is intimately bound up with the behaviour of PyArg_ParseTuple* for integer format codes. Since this behaviour can't change until Python 3.3 (because of the moratorium), I'm closing this for now. -- resolution: -

[issue7518] Some functions in pymath.c should be moved elsewhere.

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Moved atanh, asinh, acosh, log1p from pymath.c to Modules/_math.c in r76978 (trunk), r76980 (py3k). -- assignee: - mark.dickinson priority: - normal resolution: - fixed status: open - closed

[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-12-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I updated the patch and moved the helper class outside the __init__. -- Added file: http://bugs.python.org/file15650/issue6108-5.patch ___ Python tracker rep...@bugs.python.org

[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This looks fine, module the slight style issue mentioned on IRC. Please commit after you fix it. (this is assuming all tests pass, of course!) -- resolution: - accepted stage: patch review - commit review

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I haven't reviewed the algorithm (I don't know if I will, honestly), but at least on the principle this looks good. Fredrik, do you want to take a look? -- nosy: +effbot ___ Python tracker

[issue6058] Add cp65001 to encodings/aliases.py

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (I tried running your script under IronPython 2.6 with Mono but I got a bunch of errors; since I don't know IronPython at all I can't really investigate) -- nosy: +pitrou ___ Python tracker

[issue7553] test_long_future is faulty

2009-12-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied in r76984. Thanks! -- nosy: +mark.dickinson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7553

[issue7544] multiprocessing.Pool(): Fatal Python error: PyEval_AcquireThread: NULL new thread state

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: We just had this error on one of the buildbots: [...] test_threadsignals sem_wait: Unknown error 512 test_docxmlrpc Fatal Python error: Invalid thread state for this thread Fatal Python error: PyEval_AcquireThread: non-NULL old thread state make:

[issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

2009-12-21 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7534 ___ ___

[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-12-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This should be the final patch (issue6108-6.patch). I update the comments, checked that (some of) the tests fail without the patch, that they (all) pass with it and that there are no leaks. I plan to backport this on 2.6 and possibly port

[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's ok for me. -- resolution: - accepted stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6108 ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15637/stringbench_rfind_rindex.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Added file: http://bugs.python.org/file15652/stringbench_fixes_and_additions.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15652/stringbench_fixes_and_additions.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: While building pywin32 with Py3k trunk (not release version), I get this traceback: Creating library build\temp.win32- 3.1\Release\win32\src\pywintypes31.lib and object buil d\temp.win32-3.1\Release\win32\src\pywintypes31.exp

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Uh, cmd.exe seemed to have stripped some chars. Here's the full traceback: http://gist.github.com/261153 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7556

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Correction: I found this in branches/release3.1-maint (not trunk - which I never tried) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7556

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I also raised this issue at the end of issue 4120 (which is closed). I'll post the diff here, too. -- keywords: +patch nosy: +skrah versions: +Python 3.1 Added file: http://bugs.python.org/file15653/3.1-byte-string.diff

[issue7557] Imprecise description for the fire.read() method

2009-12-21 Thread Jacques Lemire
New submission from Jacques Lemire jaclem...@gmail.com: see this web page: http://docs.python.org/3.1/library/stdtypes.html? highlight=read#file.read The description should say: for Python 3.1 the method reads characters, for instance utf-8 characters. if the mode is 'rb', then it reads bytes

[issue7558] Python 3.1.1 installer botches upgrade when installation is not on C drive.

2009-12-21 Thread John Nagle
New submission from John Nagle na...@users.sourceforge.net: I just installed python3.1.1.msi on a system that had python3.1.msi installed in D:/python31. In this situation, the installer does not ask the user for a destination directory. The installer found the old installation in D:/python31,

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2009-12-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: See issue 7556 for the can't use a string pattern on a bytes-like object error. -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4120

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Added file: http://bugs.python.org/file15654/stringbench_fixes_and_additions_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-21 Thread Robert Collins
New submission from Robert Collins robe...@robertcollins.net: Say I have a test module test_foo, which fails to import with ImportError. A reason for this might be a misspelt import in that module. TestLoader().loadTestsFromName swallows the import error and instead crashes with: File

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15654/stringbench_fixes_and_additions_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Added file: http://bugs.python.org/file15655/stringbench_fixes_and_additions_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: New benchmarks (and patch for the benchmark tool). Best improvement is reached with such expression: s=ABC*33; (s+E+(D+s)*500).rfind(s+E) (*100) String (classic): 93.14 ms String (fast): 8.78 ms Unicode (classic): 78.62 ms Unicode

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15638/bench_rfind_algorithms_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7462 ___

[issue7557] Imprecise description for the file.read() method

2009-12-21 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: This section is obsolete and is removed from the documentation in r76893 an r76894. See issue #7508. -- nosy: +flox resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Update 'file object' doc

[issue7558] Python 3.1.1 installer botches upgrade when installation is not on C drive.

2009-12-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I can't reproduce this; the 3.1.1 installer will most certainly ask for a target directory even if there is a 3.1 installation already; see the attached screenshot. I'm slightly puzzled by the file names you report, as the files on python.org

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Could you provide a more complete recipe for reproducing the problem, please? I created a test_foo.py containing 'import blert', and running python -m unittest test_foo does not mask the import error for blert in loadTestsFromName: ...

[issue7514] doc: documentation for sys.flags is obsolete.

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- priority: - low stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7514 ___

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Stefan's patch will do the trick. I am adding a test to make sure this part is covered before I apply the patch -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue7537] test_format fails with -j combined with -v

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7537 ___ ___

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'd rather prefer if the manifest was opened in text mode. It should be UTF-8 encoded (although ASCII would work as well). -- ___ Python tracker rep...@bugs.python.org

[issue7455] cPickle: stack underflow in load_pop()

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- priority: - normal stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7455 ___

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-21 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: mkdir thing touch thing/__init__.py echo import blert thing/test_foo.py python -m unittest thing.test_fooTraceback (most recent call last): File /usr/lib/python2.6/runpy.py, line 122, in _run_module_as_main __main__, fname,

[issue7544] multiprocessing.Pool(): Fatal Python error: PyEval_AcquireThread: NULL new thread state

2009-12-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: No, I don't think that this issue is related, because it starts with another message: Invalid thread state for this thread. -- ___ Python tracker rep...@bugs.python.org

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: sure, that's even simpler. I am adding a test and this simple fix. Notice that this code could be replaced with some code that uses an xml parser. I find the regexp patterns a bit inappropriate here because it removes

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As for using proper XML processing: that would be fine as well. As for leaving an empty dependency element: in the original report, MAL says that this is conforming. I found a schema file (from MS) which agrees, and a textual documentation

[issue7557] Imprecise description for the file.read() method

2009-12-21 Thread Jacques Lemire
Jacques Lemire jaclem...@gmail.com added the comment: Merci Florent Mais alors où se cache la documentation 3.1 officiel sur la classe file. Jacques 2009/12/21 Florent Xicluna rep...@bugs.python.org Florent Xicluna la...@yahoo.fr added the comment: This section is obsolete and is removed

[issue7557] Imprecise description for the file.read() method

2009-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's in the io module: http://docs.python.org/dev/py3k/library/io.html -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7557

[issue7557] Imprecise description for the file.read() method

2009-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Merci Florent Mais alors où se cache la documentation 3.1 officiel sur la classe file. Even though we seem to have a disturbing accumulation of French developers here, please keep to English on the tracker :) --

[issue7556] msvc9compiler.py: TypeError: can't use a string pattern on a bytes-like object

2009-12-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Ok thanks for the detailed info, Martin I guess we could refactor it to an xml reader/writer if we need to do more things in the future with these files. I'll close this issue, as the mentioned problem is now fixed by using a text mode. The

[issue6900] Sub-optimal Locate button behaviour in Windows CHM file

2009-12-21 Thread Adal Chiriliuc
Adal Chiriliuc adal.chiril...@gmail.com added the comment: This seem to have been broken when the help file style was changed (from 2.5 to 2.6). I'm also bothered by this issue, since you cannot locate easily now related modules. For example, in the old help version I would go in the index to

[issue7558] Python 3.1.1 installer botches upgrade when installation is not on C drive.

2009-12-21 Thread John Nagle
John Nagle na...@users.sourceforge.net added the comment: Cancel bug report. It was my error. The installer says it is replacing the existing installation, but by default installs it in C:. But that can be overridden in the directory entry field below the big empty white entry box. --

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thank you. I can reproduce this on trunk as well. I'm leaving stage set to test needed because we need to turn this into a unit test. -- keywords: +easy versions: +Python 2.7, Python 3.1, Python 3.2

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note: this problem is similar in some ways to issue 5230, and a similar solution might be appropriate (or might not :). -- ___ Python tracker rep...@bugs.python.org

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'll try and look at both these issues in the next few days unless one of you beats me to it. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559

[issue7558] Python 3.1.1 installer botches upgrade when installation is not on C drive.

2009-12-21 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7558 ___

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-21 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: I'm scratching an itch at the moment, I just noted this in passing ;) I'm partial to the 'turn it into a fake test case' approach, its what I would do if I get to it first. -- ___ Python

[issue1673007] urllib2 requests history + HEAD support

2009-12-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Here is a discussion and explanation from the submitter on what is meant by history of requests. http://mail.python.org/pipermail/python-dev/2007-March/072069.html -- ___ Python tracker

[issue7560] Various filename-taking posix methods don't like bytes / buffer objects.

2009-12-21 Thread Sebastian Hagen
New submission from Sebastian Hagen sh_pyb...@memespace.net: Most of the functions in Python's stdlib that take filename parameters allow for those parameters to be buffer (such as bytes, bytearray, memoryview) objects. This is useful for various reasons, among them that on Posix-likes, file-

[issue7560] Various filename-taking posix methods don't like bytes / buffer objects.

2009-12-21 Thread Sebastian Hagen
Changes by Sebastian Hagen sh_pyb...@memespace.net: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7560 ___ ___

[issue7560] Various filename-taking posix methods don't like bytes / buffer objects.

2009-12-21 Thread Sebastian Hagen
Changes by Sebastian Hagen sh_pyb...@memespace.net: Removed file: http://bugs.python.org/file15659/posix_fn_bytes_01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7560 ___

[issue7560] Various filename-taking posix methods don't like bytes / buffer objects.

2009-12-21 Thread Sebastian Hagen
Sebastian Hagen sh_pyb...@memespace.net added the comment: I'm taking that patch back. More testing would have been in order before posting; sorry for that, will repost once I've got the obvious problems worked out. -- ___ Python tracker

[issue7560] Various filename-taking posix methods don't like bytes / buffer objects.

2009-12-21 Thread Sebastian Hagen
Sebastian Hagen sh_pyb...@memespace.net added the comment: And further testing reveals that all of this has in fact already been fixed in trunk. I assumed it hadn't been, because the code for at least some of the relevant functions in Modules/_posixmodule.c is the same as in 3.1.1; I didn't know

[issue7560] Various filename-taking posix methods don't like bytes / buffer objects.

2009-12-21 Thread Sebastian Hagen
Changes by Sebastian Hagen sh_pyb...@memespace.net: -- status: open - closed versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7560 ___

[issue7561] Filename-taking functions in posix segfault when called with a bytearray arg.

2009-12-21 Thread Sebastian Hagen
New submission from Sebastian Hagen sh_pyb...@memespace.net: Various functions in the 'posix' module that take filename arguments accept bytearray values for those arguments, and mishandle those objects in a way that leads to segfaults. Python 3.1 (r31:73572, Jul 23 2009, 23:41:26) [GCC 4.3.3]