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

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger 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, r>n is an error condition that should not pass silently. 2. While it's possible to make definitions of comb/perm

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

2009-01-05 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: Seems that this problem is being taken care of in issue #4751. ___ Python tracker ___ ___ Python-bugs-list m

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

2009-01-05 Thread Lukas Lueg
Lukas Lueg added the comment: please attach 64times01-double.zip if possible -- nosy: +ebfe ___ Python tracker ___ ___ Python-bugs-lis

[issue4845] warnings system and inspect module disagree about

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

[issue1180193] broken pyc files

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone 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 be great to have it

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

2009-01-05 Thread Bill Janssen
New submission from Bill Janssen : 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 which are slated for futur

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

2009-01-05 Thread jaywalker
jaywalker 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 problem. If it is con

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

2009-01-05 Thread STINNER Victor
STINNER Victor 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 sounds strange to have a

[issue4845] warnings system and inspect module disagree about

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone 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 ___ ___

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-01-05 17:09, Atsuo Ishimoto wrote: > New submission from Atsuo Ishimoto : > > When I use Py_UNICODE_ISSPACE() in my C++ extension, I got following error. > > test.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) unsigned cha

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

2009-01-05 Thread Mark Dickinson
Mark Dickinson 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 ___ __

[issue4676] python3 closes + home keys

2009-01-05 Thread STINNER Victor
STINNER Victor 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: +haypo

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

2009-01-05 Thread jaywalker
jaywalker 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 wrong). Thus, \r gets lo

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

2009-01-05 Thread Mark Dickinson
Mark Dickinson 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 >>> cPickle.dump

[issue1180193] broken pyc files

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou 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 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. -- assignee: -> geo

[issue1180193] broken pyc files

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone 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 _

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

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

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

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt 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 whether it is correct t

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

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Strangely enough, it works in py3k. -- nosy: +pitrou priority: -> critical stage: -> needs patch ___ Python tracker ___ __

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Alexander Belopolsky
Alexander Belopolsky 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 to declare API symbols with extern

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

2009-01-05 Thread Mark Dickinson
Mark Dickinson 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. Maybe the simples

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt 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 same idea and think t

[issue4843] copytree improvments

2009-01-05 Thread Tarek Ziadé
New submission from Tarek Ziadé : 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 a concern about distut

[issue3582] thread_nt.c update

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: - Isn't CreateThread even better? - Using TLS functions is a good idea, beware though that the number of TLS slots cannot exceed 1088 on Windows. This should at least be documented. OTOH since there is only one call to PyThread_create_key in the codebase

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

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would call this a bug. Guido, do you concur? -- assignee: -> gvanrossum nosy: +gvanrossum, rhettinger ___ Python tracker ___

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 "#ifdef WITH_THREAD

[issue4843] make distutils use shutil

2009-01-05 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- title: copytree improvments -> make distutils use shutil ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Good points. Any suggestion where to document the new functionality? ___ Python tracker ___ ___ Pytho

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

2009-01-05 Thread Mark Dickinson
Mark Dickinson 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 replacing the call to

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

2009-01-05 Thread Paul Nasrat
Changes by Paul Nasrat : -- nosy: +pnasrat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue3585] pkg-config support

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 be installed only

[issue3582] thread_nt.c update

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt 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 added the comment: Oops, it's not a duplicate /o\ But it may solves #3745 (reject unicode in sha256). ___ Python tracker ___ __

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

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger 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 ___ _

[issue3997] zipfile and winzip

2009-01-05 Thread Martin v. Löwis
Martin v. Löwis 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: -> amaury.forgeotdarc resolutio

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

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

[issue1672332] cPickle cannot unpickle subnormal floats on some machines

2009-01-05 Thread Mark Dickinson
Mark Dickinson 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 tracker

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 hard to read and therefo

[issue4757] reject unicode in zlib

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-01-04 23:51, STINNER Victor wrote: > STINNER Victor 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 migration to Unicode > > I hate this b

[issue4753] Faster opcode dispatch on gcc

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou 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 arbitrary Pytho

[issue4676] python3 closes + home keys

2009-01-05 Thread Somelauw
Somelauw 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. ___ Python tr

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

2009-01-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Jan 5, 2009 at 11:43 AM, Marc-Andre Lemburg wrote: .. >> GCC doesn't appear to do so, but there's no guarantee that other >> C++ compilers won't touch these symbols: >> >> http://en.wikipedia.org/wiki/Name_mangling > > Issue #4846 is a good exampl

[issue4676] python3 closes + home keys

2009-01-05 Thread Guilherme Polo
Changes by Guilherme Polo : -- versions: +Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2009-01-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : 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 shorten this

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

2009-01-05 Thread Christopher Mahan
Christopher Mahan 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 _

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou 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, rather than ad

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Alexander Belopolsky
Alexander Belopolsky 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 more likely to notice when some

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

2009-01-05 Thread STINNER Victor
STINNER Victor 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 success. fileio_close() test

[issue4676] python3 closes + home keys

2009-01-05 Thread STINNER Victor
STINNER Victor 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 strange combinaison related to

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

2009-01-05 Thread darrenr
darrenr 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 deserves an incremental implement

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

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-01-03 04:38, Alexander Belopolsky wrote: > Alexander Belopolsky added the comment: > > On Fri, Jan 2, 2009 at 10:54 AM, Marc-Andre Lemburg > wrote: >> Marc-Andre Lemburg added the comment: >> >> Also note that by removing the extern "C" declarati

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

2009-01-05 Thread STINNER Victor
STINNER Victor 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 ___

[issue4843] copytree improvments

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou 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 callback, if not No

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

2009-01-05 Thread Guido van Rossum
Guido van Rossum 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 tells me it's great

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 least, a short sente

[issue3582] thread_nt.c update

2009-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You are right. (My dream is someday to completely get rid of this msvcrt stuff. Only pure Win32 API) ___ Python tracker ___ __

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

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-01-05 13:03, Marc-Andre Lemburg wrote: > Marc-Andre Lemburg added the comment: > > On 2009-01-03 04:38, Alexander Belopolsky wrote: >> Alexander Belopolsky added the comment: >> >> On Fri, Jan 2, 2009 at 10:54 AM, Marc-Andre Lemburg >> wrote: >>>

[issue4845] warnings system and inspect module disagree about

2009-01-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : 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 exar...@charm:~/warnin

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

2009-01-05 Thread Mark Dickinson
New submission from Mark Dickinson : 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: open title: int('3L

[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 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 submit it as a sep

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

2009-01-05 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt : 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 following few lines: im

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

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt 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 : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ping. Amaury, any thoughts? ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue4676] python3 closes + home keys

2009-01-05 Thread Guilherme Polo
Guilherme Polo 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 starting IDLE on the p

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

2009-01-05 Thread Raymond Hettinger
Raymond Hettinger 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 r>n). The other two pure python equivalents would automatically handle the proposed new

[issue3677] importing from UNC roots doesn't work

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 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

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

2009-01-05 Thread Guido van Rossum
Guido van Rossum 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 can kill int('3L'

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

2009-01-05 Thread Jesús Cea Avión
Jesús Cea Avión 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 is not p

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 cluttering all hea

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : 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) referenced in functi

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Ulrich Eckhardt
Ulrich Eckhardt 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 as it is and then use e

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

2009-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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++ > compilability

[issue4843] make distutils use shutil

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou 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

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

2009-01-05 Thread Adam Olsen
Changes by Adam Olsen : -- nosy: +Rhamphoryncus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4676] python3 closes + home keys

2009-01-05 Thread Guilherme Polo
Guilherme Polo 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 ___ Python tracker

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

2009-01-05 Thread STINNER Victor
STINNER Victor added the comment: This patch is a duplicate of #3745. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mail

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

2009-01-05 Thread Yngve AAdlandsvik
Yngve AAdlandsvik 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 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 error value is negative ins

[issue4845] warnings system and inspect module disagree about

2009-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone 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 : 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 "", line 1, in File "", lin

[issue4676] python3 closes + home keys

2009-01-05 Thread STINNER Victor
Changes by STINNER Victor : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python

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

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

[issue4836] Idle Hangs on exit Button

2009-01-05 Thread Terry Helge
Terry Helge 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 tracker

[issue4836] Idle Hangs on exit Button

2009-01-05 Thread Guilherme Polo
Guilherme Polo added the comment: Can you add some example ? Is the bug new to python 2.6 ? -- nosy: +gpolo ___ Python tracker ___ ___

[issue4840] Compile dbm in Ubuntu

2009-01-05 Thread Guilherme Polo
Changes by Guilherme Polo : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2009-01-05 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : 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 be redefined as Py_ssize_t as we

[issue4836] Idle Hangs on exit Button

2009-01-05 Thread Terry Helge
Terry Helge added the comment: I'm not sure if the bug is in Python(IDLE) or pyGame - I'm pretty new to this . I'm still checking out various things - thanks for your interest! On Mon, Jan 5, 2009 at 2:45 PM, Guilherme Polo wrote: > > Guilherme Polo added the comment: > > Can you add some exa

[issue4843] copytree improvments

2009-01-05 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- components: +Distutils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok, here is a revised, patch. It now contains rudimentary documentation, which probably needs to be proofread by the official documentation lords. Added file: http://bugs.python.org/file12594/xmlrpc.patch ___ Python

[issue4293] Thread Safe Py_AddPendingCall

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would it be possible to rework your code so as not to define two versions of Py_AddPendingCall() and Py_MakePendingCalls(), only putting `#ifdef WITH_THREAD` sections where it's necessary? Or would it make the code too quirky? Also, it would be nice to have a t

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

2009-01-05 Thread Antoine Pitrou
Antoine Pitrou 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

[issue4843] copytree improvments

2009-01-05 Thread Tarek Ziadé
Tarek Ziadé 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. What classifier should

[issue4840] Compile dbm in Ubuntu

2009-01-05 Thread gumpy
gumpy added the comment: I believe this is already fixed. #4483 -- nosy: +gumpy ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2009-01-05 Thread Lukas Lueg
Lukas Lueg added the comment: solved in #4818 and #4821 -- nosy: +ebfe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue1309567] linecache module returns wrong results

2009-01-05 Thread David Zaslavsky
David Zaslavsky 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 the correct filename rel

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

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

  1   2   >