[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Will spend a while mulling this over and taking it under advisement. Initially, I am disinclined for several reasons. 1. For many use cases, rn is an error condition that should not pass silently. 2. While it's possible

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

2009-01-05 Thread Hagen Fürstenau
Hagen Fürstenau hfuerste...@gmx.net added the comment: Seems that this problem is being taken care of in issue #4751. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3745 ___

[issue4844] ZipFile doesn't range check in _EndRecData()

2009-01-05 Thread Lukas Lueg
Lukas Lueg knabberknusperh...@yahoo.de added the comment: please attach 64times01-double.zip if possible -- nosy: +ebfe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4844 ___

[issue4845] warnings system and inspect module disagree about

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is a duplicate of issue1180193. Does the patch there correct your problem? -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - broken pyc files ___

[issue1180193] broken pyc files

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: This is causing problems for me as well. The attached patch no longer applies cleanly to trunk. I've attached an updated version which addresses the conflicts. The new behavior fixes the issues I have with the current behavior. It'd

[issue4848] MacPython build script uses Carbon and MacOS modules slated for removal

2009-01-05 Thread Bill Janssen
New submission from Bill Janssen bill.jans...@gmail.com: The build script for a Mac OS installer, in Mac/BuildScript/build-installer.py, currently requires OS 10.4 and Python 2.3. At some point it will have to be ported to a newer version of Python (and Mac OS). It uses a number of modules

[issue4847] csv fails when file is opened in binary mode

2009-01-05 Thread jaywalker
jaywalker jaywal...@yahoo.com added the comment: In an unlikely scenario: say one of the fields has an embedded \r. For instance blahblah\r is the value of the first column. Now open this file in text mode. What happens to this '\r' even before csv.reader sees it? If it remains intact, no

[issue4847] csv fails when file is opened in binary mode

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: say one of the fields has an embedded \r. For instance blahblah\r is the value of the first column. Now open this file in text mode. What happens to this '\r' even before csv.reader sees it? I used rarely the CSV format, but it

[issue4845] warnings system and inspect module disagree about

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: After updating the patch there so that it can be applied, it does seem to address my issue. I added a comment there. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4845

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-01-05 17:09, Atsuo Ishimoto wrote: New submission from Atsuo Ishimoto ishim...@gembook.org: When I use Py_UNICODE_ISSPACE() in my C++ extension, I got following error. test.obj : error LNK2019: unresolved external symbol

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This patch currently causes test_pickle to fail (and test_random, but that failure is also pickle related). Am investigating. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4842

[issue4676] python3 closes + home keys

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Somelauw: Are you running Windows, Linux, other? The bug may be related to a special key with no binding: no mapping in the kernel, in your Windows/Xorg configuration or in python Tk module. The key is not shift+ -- nosy:

[issue4847] csv fails when file is opened in binary mode

2009-01-05 Thread jaywalker
jaywalker jaywal...@yahoo.com added the comment: make it '\r\n', if you want. Such files can be easily generated on windows text editors, or even linux ones nowadays. Upon reading, if the file is opened in text mode, this will probably be converted to \n even on linux by python (I may be

[issue1672332] cPickle can pickle, but cannot unpickle on 64bit machines

2009-01-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm seeing this too on OS X, with Python 2.6. Python 2.6.1+ (release26-maint:68182M, Jan 2 2009, 23:13:43) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type help, copyright, credits or license for more information. import cPickle

[issue1180193] broken pyc files

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As Armin said, I think it's safer and simpler not to rewrite the pyc file when the filenames have been changed. (if you thing changing the filenames can have a significant performance impact, you may want to benchmark it)

[issue4847] csv fails when file is opened in binary mode

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You can avoid the newline translation problem by using the newline parameter in open(). Set it to '' (the empty string) and any CR and LF characters should remain intact. As for the original problem, IMHO it is a documentation bug. --

[issue1180193] broken pyc files

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: New version of the patch which doesn't rewrite pyc files attached. Added file: http://bugs.python.org/file12599/update_co_filename.diff ___ Python tracker rep...@bugs.python.org

[issue4847] csv fails when file is opened in binary mode

2009-01-05 Thread jaywalker
jaywalker jaywal...@yahoo.com added the comment: I think what you suggest makes most sense. Thanks. - Original Message From: Antoine Pitrou rep...@bugs.python.org To: jaywal...@yahoo.com Sent: Monday, January 5, 2009 12:47:21 PM Subject: [issue4847] csv fails when file is opened in

[issue4841] io's close() not handling errors correctly

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: I have a patch here which passes the proposed change to the tests in trunk. A few notes up front though, since the patch isn't good yet: 1. The handling of the error in internal_close() isn't really good. What I'm also not sure about is

[issue4841] io's close() not handling errors correctly

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Strangely enough, it works in py3k. -- nosy: +pitrou priority: - critical stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4841

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I believe attached issue4846.diff should fix the problem, but I don't have access to the affected platform (Windows?), so I did not test it. I also wonder whether it would be more appropriate to redefine PyAPI_* macros

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's the issue with pickle: with this patch, the pickle of a long using pickle protocol 0 under 2.x can't be read by Python 3.x, because (1) the pickled long includes a trailing L, and (2) unpickling goes via a call to PyLong_FromString.

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: You beat me by 10 minutes, Alexander, otherwise I'd have had a similar patch, except moving the declaration. I agree with your rationale though, so yours is even better. Concerning including the extern C in the PyAPI_* macros, I had the

[issue4843] copytree improvments

2009-01-05 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: In one sentence: Let's enhance shutil.copytree so we can drop distutils.[dir_util/file_util] In details: I am currently studying what could be removed from Distutils in order to rely on what is available in the standard library. I have

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I would call this a bug. Guido, do you concur? -- assignee: - gvanrossum nosy: +gvanrossum, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4842

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: - The things_to_do static variable should be declared as volatile: it is read by the main loop without any lock. (by the way, could you rename it to something like pendingcalls_to_do?) - in the old Py_MakePendingCalls function, the

[issue4843] make distutils use shutil

2009-01-05 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- title: copytree improvments - make distutils use shutil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4843 ___

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Good points. Any suggestion where to document the new functionality? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4293 ___

[issue1672332] cPickle can pickle, but cannot unpickle on 64bit machines

2009-01-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The problem comes down to the platform strtod: on some systems, strtod sets errno to ERANGE on underflow. The load_float function in Modules/cPickle.c calls PyOS_ascii_strtod and then raises ValueError if that call sets errno. I suggest

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

2009-01-05 Thread Paul Nasrat
Changes by Paul Nasrat pnas...@googlemail.com: -- nosy: +pnasrat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3959 ___ ___ Python-bugs-list

[issue3585] pkg-config support

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The patch looks fine to me. I have however some questions to ask to someone more used to pkgconfig: - Do all unix-like system support pkg-config? - Is $(LIBDIR)/pkgconfig the only choice for installing this file? - Shouldn't this file

[issue3582] thread_nt.c update

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: No, CreateThread() is not a suitable replacement, because it lacks some initialisations of the C library, as explained in the MSDN: http://msdn.microsoft.com/en-us/library/ms682453(VS.85).aspx -- nosy: +eckhardt

[issue4821] Patches for thread-support in built-in SHA modules

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, it's not a duplicate /o\ But it may solves #3745 (reject unicode in sha256). ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4821

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Consider marking the 'L' code as deprecated and removing it in 3.1; otherwise, this artifact may hang around forever. ___ Python tracker rep...@bugs.python.org

[issue3997] zipfile and winzip

2009-01-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch looks nearly fine. AFAICT, care must be taken to always write a ZIP64 end-of-cd record whenever an end-of-cd field overflows; I think this patch is missing the condition centDirSize ZIP64_LIMIT. -- assignee: -

[issue4844] ZipFile doesn't range check in _EndRecData()

2009-01-05 Thread Yngve AAdlandsvik
New submission from Yngve AAdlandsvik ym...@start.no: If you have a .zip file with an incomplete End of Central Directory record, _EndRecData() will throw a struct.error: D:\c64workdir\Ultimate_Mag_Archivee:ziptest.py old - Ultimate_Mag_Archive Handling A-z\0\64times01-double.zip Traceback

[issue1672332] cPickle cannot unpickle subnormal floats on some machines

2009-01-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Change title; this has nothing to do with 64 bit. -- title: cPickle can pickle, but cannot unpickle on 64bit machines - cPickle cannot unpickle subnormal floats on some machines ___ Python

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ah, I forgot the test code in my patch. I submit a separate patch to add that code. Also, reworking things to have single function definitions is in my opinion too messy. I started doing things that way, but the code becomes

[issue4757] reject unicode in zlib

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-01-04 23:51, STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: The fact that Python 2.x also accepts Unicode ASCII strings where strings are normally expected is intended to help with the

[issue4753] Faster opcode dispatch on gcc

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le lundi 05 janvier 2009 à 02:39 +, Paolo 'Blaisorblade' Giarrusso a écrit : About f-last_i, when I have time I want to try optimizing it. Somewhere you can be sure it's not going to be used. There are lots of places which can call into

[issue4676] python3 closes + home keys

2009-01-05 Thread Somelauw
Somelauw somel...@yahoo.com added the comment: I'm using windows XP home edition SP2 Yes, my error message is similair to the one of ajaksu2 when I run the IDLE on the commandline. (when opened from windows explorer, it justs closes) Also problem 2 is similair.

[issue4805] Make python code compilable with a C++ compiler

2009-01-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 5, 2009 at 11:43 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. GCC doesn't appear to do so, but there's no guarantee that other C++ compilers won't touch these symbols:

[issue4676] python3 closes + home keys

2009-01-05 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- versions: +Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4676 ___

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4846 ___ ___

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2009-01-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: In order to create an element with an attribute and a child, this is necessary: e = Element(foo) e.setAttribute(bar, baz) e.appendChild(quux) It would be preferable if Element.__init__ accepted two additional parameters to

[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib (python3.0)

2009-01-05 Thread Christopher Mahan
Christopher Mahan chris.ma...@gmail.com added the comment: Update: I requested a test ftp account from edgecast. The tech's response was that he would file a request for it. Will update. ___ Python tracker rep...@bugs.python.org

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: A few comments about the test: - it should be a method of TestCAPI; we try to unittest everywhere, although there is some old code which predates that - the implementation would be stressed better if each callback was added from a separate thread,

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Not that it would matter on a two-line patch, but I find it useful to add myself to the nosy list without any comments as so as I find the issue interesting even if I have nothing to contribute at the moment. This way I am

[issue4841] io's close() not handling errors correctly

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In Python 3.x, internal_close() returns -1 on error (close() returns a negative value) and 0 on success. It tests if close() returns a negative In Python 2.x, internal_closes() returns the errno value of close() on error, or 0 on

[issue4676] python3 closes + home keys

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Somelauw: Are you running Windows, Linux, other? The bug may be related to a special key with no binding: no mapping in the kernel, in your Windows/Xorg configuration or in python Tk module. The key is maybe not shift+home but

[issue4794] garbage collector blocks and takes worst-case linear time wrt number of objects

2009-01-05 Thread darrenr
darrenr python-roun...@dranalli.com added the comment: I ask because in my opinion a three-second pause on a modern machine is significant for any program with any sort of interactivity--significant enough to warrant a warning in the documentation. Python is a great language and I think it

[issue4805] Make python code compilable with a C++ compiler

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-01-03 04:38, Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Jan 2, 2009 at 10:54 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: Marc-Andre Lemburg

[issue4847] csv fails when file is opened in binary mode

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Do you expect to be able to read CSV as bytes or just to fix the documentation example? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4847

[issue4843] copytree improvments

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I suggest a more generic and powerful API change: copytree(src, dst, symlinks=False, ignore=None) - None becomes: copytree(src, dst, symlinks=False, ignore=None, callback=None) - None where

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

2009-01-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I've been on vacation and unable to follow this, and won't have time to catch up now. Note that I have no vested interest in Google's module except knowing it has many happy users (I have never used it myself -- but Collin Winter has and he

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Well, I could not find these functions documented anywhere :-( If you want to start to write some, a good place could be in http://docs.python.org/c-api/init.html (Doc/c-api/init.rst, maybe after the PyGILState_ functions) At the very

[issue3582] thread_nt.c update

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: You are right. (My dream is someday to completely get rid of this msvcrt stuff. Only pure Win32 API) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3582

[issue4805] Make python code compilable with a C++ compiler

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-01-05 13:03, Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-01-03 04:38, Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Jan

[issue4845] warnings system and inspect module disagree about

2009-01-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: Here's a transcript demonstrating the disagreement: exar...@charm:~$ mkdir warningexample exar...@charm:~$ cd warningexample/ exar...@charm:~/warningexample$ mkdir foo exar...@charm:~/warningexample$ touch foo/__init__.py

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: int('3L') is still valid in Python 3.x. Presumably this is unintentional. Is there any possibility of changing this for 3.0.1 or 3.1? -- components: Interpreter Core messages: 79121 nosy: marketdickinson severity: normal status:

[issue4794] garbage collector blocks and takes worst-case linear time wrt number of objects

2009-01-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Python is a great language and I think it deserves an incremental implementation of garbage collection. Python's cyclic garbage collector is incremental. If you can provide a specific patch to replace it with something better, please

[issue4841] io's close() not handling errors correctly

2009-01-05 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt eckha...@satorlaser.com: In _fileio.c, there is the following comment: Returns 0 on success, errno (which is 0) on failure. The problem here is the claim that errno ever was less than zero, which is simply wrong. You can see this being a problem with the

[issue4841] io's close() not handling errors correctly

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: This adds a test that the close() correctly fails with an IOError. -- keywords: +patch Added file: http://bugs.python.org/file12593/python-2.7-fileio-close-test.0.patch ___ Python tracker

[issue4841] io's close() not handling errors correctly

2009-01-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4841 ___ ___ Python-bugs-list mailing list

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ping. Amaury, any thoughts? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4293 ___ ___

[issue4676] python3 closes + home keys

2009-01-05 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: It would be nice if the OP could confirm that the bug described by Daniel is the same one as he gets. I can reproduce it on linux on all the versions I marked, but didn't have time to fix it yet. To the OP: If you are running Windows, try

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Quick notes so I don't forget: The two main pure python equivalents in the docs would need to be updated with the new special cases (currently they raise IndexError for rn). The other two pure python equivalents would

[issue3677] importing from UNC roots doesn't work

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Okay, I've tested the patch and made some beauty fixes. Can we have this in, please? Added file: http://bugs.python.org/file12591/not_use_stat_in_import_on_windows.patch ___ Python tracker

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Fixed in r68344 on trunk. Backport and forward-port candidate. -- keywords: +26backport -patch status: open - closed versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: After reading all that I still think we should fix this now, and fix pickle so that it can read (and write?) 2.x pickles. This is much less visible than cmp() still being present in 3.0, and we've already decided to kill that in 3.0.1, so we

[issue4774] threding, bsddb and double free or corruption (fasttop)

2009-01-05 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Alain, I can not reproduce this issue in current bsddb code (as running under Python 2.6.1 and Berkeley DB 4.7.25). Since Python 2.5 branch has been marked as security fixes only, this bug would be an out of date one. Please, confirm that this bug

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-01-05 18:54, Alexander Belopolsky wrote: I also wonder whether it would be more appropriate to redefine PyAPI_* macros to declare API symbols with extern C when compiled under C++? This seems to be a better approach than

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto ishim...@gembook.org: When I use Py_UNICODE_ISSPACE() in my C++ extension, I got following error. test.obj : error LNK2019: unresolved external symbol __declspec(dllimport) unsigned char const * const _Py_ascii_whitespace (__imp_?_Py_ascii_whitespace@@3QBEB)

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Actually, providing the patch for PyAPI_Data/PyAPI_Func wouldn't be so hard, but there are lots of headers that need to be changed, i.e. all their existing extern C clauses removed. What I would do is build the Python shared library

[issue4805] Make python code compilable with a C++ compiler

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-01-05 19:55, Alexander Belopolsky wrote: The allocs counters (tuple_zero_allocs, fast_tuple_allocs, quick_int_allocs, quick_neg_int_allocs) present a case where it is really hard to justify a change that is only motivated by C++

[issue4843] make distutils use shutil

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't know, perhaps resource usage - although it's probably meant for runtime resources rather than source code resources. Not a big deal anyway. ___ Python tracker rep...@bugs.python.org

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

2009-01-05 Thread Adam Olsen
Changes by Adam Olsen rha...@gmail.com: -- nosy: +Rhamphoryncus ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3959 ___ ___ Python-bugs-list

[issue4676] python3 closes + home keys

2009-01-05 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Patch against trunk attached. It fixes only the first problem reported, and I can't reproduce the second one. -- keywords: +patch Added file: http://bugs.python.org/file12601/issue_4676.diff ___

[issue4821] Patches for thread-support in built-in SHA modules

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This patch is a duplicate of #3745. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4821 ___

[issue4844] ZipFile doesn't range check in _EndRecData()

2009-01-05 Thread Yngve AAdlandsvik
Yngve AAdlandsvik ym...@start.no added the comment: Here is the file. Note that this can be reproduced with any zip file if you delete the last byte of the file. Added file: http://bugs.python.org/file12597/64times01-double.zip ___ Python tracker

[issue4841] io's close() not handling errors correctly

2009-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In Python 3.x, internal_close() returns -1 on error (if close() returns a negative value) and 0 on success. In Python 2.x, internal_closes() returns the errno value of close() on error, or 0 on success. fileio_close() tests if the

[issue4845] warnings system and inspect module disagree about

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Perhaps even more disconcerting is the disagreement between inspect.getabsfile(f) and inspect.getabsfile(inspect.getmodule(f)). The latter agrees with the warnings system, unlike the former which just looks at the filename in the .pyc.

[issue4847] csv fails when file is opened in binary mode

2009-01-05 Thread jaywalker
New submission from jaywalker jaywal...@yahoo.com: The following code from the documentation fails: # import csv reader = csv.reader(open(eggs.csv, rb)) for row in reader: print(row) # The output is: Traceback (most recent call last): File stdin, line 1,

[issue4676] python3 closes + home keys

2009-01-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4676 ___ ___ Python-bugs-list mailing list

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file12592/issue4842.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4842

[issue4836] Idle Hangs on exit Button

2009-01-05 Thread Terry Helge
Terry Helge skillyb...@gmail.com added the comment: Additional testing - tried programs on a different computer with a fresh copy of Python and pyGame - same results Program will not close(hangs) in IDLE - but will close with drPython Go Figure. ___ Python

[issue4836] Idle Hangs on exit Button

2009-01-05 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Can you add some example ? Is the bug new to python 2.6 ? -- nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4836 ___

[issue4840] Compile dbm in Ubuntu

2009-01-05 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4840 ___

[issue4850] Change type and add _Py_ prefix to COUNT_ALLOCS variables

2009-01-05 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: quick_int_allocs, quick_neg_int_allocs, tuple_zero_allocs, and fast_tuple_allocs are exported in -DCOUNT_ALLOCS builds. They should get a conventional _Py_ prefix. Also since tp_allocs is now Py_ssize_t, these should

[issue4843] copytree improvments

2009-01-05 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- components: +Distutils ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4843 ___ ___

[issue4842] int('3L') still valid in Python 3.0

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If it breaks pickle it may also break user-defined data formats. I think it is fine to continue support it. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4842

[issue4843] copytree improvments

2009-01-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Thanks for the tip Antoine, That made me realize that 'ignore' is sufficient to address all cases in distutils ! (it's a callable that does what you described in callback) So I am transforming this ticket into a refactoring for distutils.

[issue4840] Compile dbm in Ubuntu

2009-01-05 Thread gumpy
gumpy gumpy...@gmail.com added the comment: I believe this is already fixed. #4483 -- nosy: +gumpy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4840 ___

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

2009-01-05 Thread Lukas Lueg
Lukas Lueg knabberknusperh...@yahoo.de added the comment: solved in #4818 and #4821 -- nosy: +ebfe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3745 ___

[issue1309567] linecache module returns wrong results

2009-01-05 Thread David Zaslavsky
David Zaslavsky diazona...@ellipsix.net added the comment: I just had the same problem in a call to inspect.findsource() (actually my code calls inspect.stack() which calls ... which calls findsource()). The code object passed to findsource() had a filename of database/__init__.py which is

[issue4844] ZipFile doesn't range check in _EndRecData()

2009-01-05 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file12603/issue4844.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4844 ___

[issue4805] Make python code compilable with a C++ compiler

2009-01-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 5, 2009 at 2:58 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. For completeness, all exported symbols in Python should have a _Py_ prefix, even if they only get exported in certain debug builds. I

[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib (python3.0)

2009-01-05 Thread Christopher Mahan
Christopher Mahan chris.ma...@gmail.com added the comment: Edgecast.com support created a test ftp account for the purpose of troubleshooting this issue. Please email me (chris.ma...@gmail.com) and I'll forward you the login info. ___ Python tracker

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2009-01-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: It seems impossible to clone an Element created without a document: Element('foo').cloneNode(False) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.5/xml/dom/minidom.py, line 211, in

[issue4710] [PATCH] zipfile.ZipFile does not extract directories properly

2009-01-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Here is a version of the patch that rationalizes usage of os.sep, fixes a few bugs with r2, and adds a test case. -- keywords: +needs review nosy: +loewis Added file: http://bugs.python.org/file12604/dir.diff

  1   2   >