[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: high -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5283] setting __class__ in __del__ is bad. mmkay. negative ref count! kaboom!

2009-02-18 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> amaury.forgeotdarc keywords: -needs review resolution: -> accepted stage: -> commit review ___ Python tracker ___ ___

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Steven Bethard
Steven Bethard added the comment: I'm certainly no Windows API expert, but if no one takes a stab at it sooner, maybe I can spend some time looking at this during PyCon. I'm switching the ticket type to a feature request. -- type: behavior -> feature request __

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Mostly out of curiosity, why is that? Primarily because it's not implemented. To implement it, you would need to collect all Python installations on the system from the registry, then create a UI to let the user select a specific installation, then use that.

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Steven Bethard
Steven Bethard added the comment: Mostly out of curiosity, why is that? With bdist_wininst, a pure Python package would generate a version-less installer that could then be used with any Python version. ___ Python tracker _

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: > So, two questions: (1) are the version numbers supposed to be there? Yes. > (2) if so, does that mean a .msi for a pure Python package built by > Python 2.6 won't work on any other version? Yes. -- nosy: +loewis __

[issue5310] operator precedence table is wrong

2009-02-18 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- keywords: +patch Added file: http://bugs.python.org/file13135/expressions.diff ___ Python tracker ___ ___

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Obviously use the optimized version (but fix the configure stuff). Before such a version gets committed, I'd like to see it on Rietveld again. ___ Python tracker ___

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-02-18 Thread Graham Dumpleton
New submission from Graham Dumpleton : In multiprocessing.process it contains the code: def _bootstrap(self): if sys.stdin is not None: try: os.close(sys.stdin.fileno()) except (OSError, ValueError):

[issue5312] errno not being set

2009-02-18 Thread Benjamin Peterson
New submission from Benjamin Peterson : def test_leaking_fds_on_error(self): # see bug #5179: Popen leaks file descriptors to PIPEs if # the child fails to execute; this will eventually exhaust # the maximum number of open fds. 1024 seems a very common # value for

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Steven Bethard
New submission from Steven Bethard : I just ran "setup.py bdist_msi" with NLTK which is a pure Python package. You can see the setup.py here: http://code.google.com/p/nltk/source/browse/trunk/nltk/setup.py. Despite the fact that NLTK is pure Python, the generated .msi's look like nltk-0.9.8.win32

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Benjamin, please use this patch to complete the merge. -- assignee: krisvale -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: And I think r69268 should be merged too. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think change for posixmodule.c is missing from r69495. (I confirmed other merges don't include posixmodule.c modification) Attached patch will fix this. (I don't have VS2005 or later, so I cannot test this on my machine) -- keywords: +patch nosy:

[issue5310] operator precedence table is wrong

2009-02-18 Thread Gabriel Genellina
New submission from Gabriel Genellina : The operator precedence table is wrong. shows "in"/"not in" having less priority than comparisons like "==", but that's not true: py> 2 in (1,2) == True False The .rst file is wrong, as well as

[issue4565] Rewrite the IO stack in C

2009-02-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is basically going to be the killer feature in 3.1 ;). Therefore, these are steps I think we need before we can merge the branch: - Fix the dependencies. (#4967) - Resolve all outstanding issues with the IO lib on the io-c branch. - Rewrite the rest of

[issue5289] ctypes.util.find_library does not work under Solaris

2009-02-18 Thread Ke Wang
Ke Wang added the comment: Above patch failed in a TabError. Attached a new one. Added file: http://bugs.python.org/file13133/util.diff ___ Python tracker ___ ___

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here are the results from 32-bit x86 on core2 duo gcc 4.0.1 using pydigits_bestof.py 4000: 30-bit digits (14): 15719 ms 30-bit digits + optimizations (13+ops): 12490 ms unpatched py3k: 13289 ms (again, i had to

[issue5309] setup.py doesn't parallelize extension module compilation

2009-02-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : When run with "make -jN", the Python compilation process is able to parallelize across N concurrent processes for the interpreter core, but extension modules are still compiled sequentially. -- assignee: tarek components: Distutils messages: 82447 nos

[issue5283] setting __class__ in __del__ is bad. mmkay. negative ref count! kaboom!

2009-02-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Wed, Feb 18, 2009 at 4:51 PM, Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > > I carefully looked at all places that store ->ob_type or Py_TYPE() in a > local variable, and I could not find any exploit. Most places don't > reus

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: attaching an updated pidigits benchmark script that does a warmup run before reporting the best result of 5. Added file: http://bugs.python.org/file13132/pidigits_bestof.py ___ Python tracker

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: new results after fixing my longdigit13 build to use 30 bits instead of 15 (the configure script in longdigit13+optimizations didn't work right, i had to manually add the #define to pyconfig.h) py3k: baseline longdigit14longdigit13+optimizations 3709

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Kristan, I think this is yours. -- assignee: -> krisvale nosy: +krisvale ___ Python tracker ___

[issue5307] Python-3.0.1 install fails on Solaris

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: No ideas. This is not a help forum. -- nosy: +loewis resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: I don't feel responsible for VS2005 support. Unassigning myself. -- assignee: loewis -> ___ Python tracker ___ ___

[issue5308] cannot marshal objects with more than 2**31 elements

2009-02-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Given that marshal is primarily about supporting pyc files, do we care? -- nosy: +rhettinger ___ Python tracker ___ _

[issue5283] setting __class__ in __del__ is bad. mmkay. negative ref count! kaboom!

2009-02-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I carefully looked at all places that store ->ob_type or Py_TYPE() in a local variable, and I could not find any exploit. Most places don't reuse the type once the method or the slot has been called. Two places were harder to analyze: subtype_clear (but

[issue5259] smtplib is broken in Python3

2009-02-18 Thread bill
bill added the comment: sorry, pressed the wrong button. that solution does work. didn't find this until #python helped me get: return encode_base64( ("\0%s\0%s" % (user, password) ).encode('ascii') ) -- nosy: +toastedrobot title: gmail smtp -> smtplib is broken in Python3 type: -> c

[issue5308] cannot marshal objects with more than 2**31 elements

2009-02-18 Thread Mark Dickinson
New submission from Mark Dickinson : Two closely related issues in Python/marshal.c, involving writing and reading of variable-length objects (lists, strings, long integers, ...) (1) The w_object function in marshal contains many instances of code like the following: else if (PyList_CheckExac

[issue5259] gmail smtp

2009-02-18 Thread bill
Changes by bill : -- title: smtplib is broken in Python3 -> gmail smtp type: crash -> versions: +Python 3.1 ___ Python tracker ___ ___

[issue5307] Python-3.0.1 install fails on Solaris

2009-02-18 Thread Peter Rowat
New submission from Peter Rowat : My sysadmin tried to install Python-3.0.1 on Solaris, using Python-3.0.1.tgz, and reports: = can't configure it, got an error, even before the compile... probably buggy and won't work on solaris. == Any ideas? Thanks. -- components: Installat

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Raymond Hettinger
New submission from Raymond Hettinger : This started happening a few days ago, about when Benjamin forward ported r69560 . There is an #ifdef in fileobject.h that makes a header for int _PyVerify_fd(int fd) but does not define it. It is likely related to r69495 . _fileio.obj : error LNK2019: u

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Maybe configure didn't get updated properly? I'm almost sure I found a > case where autoconf and autoheader just reused the stuff in the > autom4te.cache directory even though configure.in had been changed. > I've been doing: rm -fr autom4te.cache; autocon

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Maybe configure didn't get updated properly? I'm almost sure I found a > case where autoconf and autoheader just reused the stuff in the > autom4te.cache directory even though configure.in had been changed. > I've been doing: rm -fr autom4te.cache; autoco

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: On all other follow-ups I agree, so no further comments there. http://codereview.appspot.com/14105/diff/1/2 File Python/marshal.c (right): http://codereview.appspot.com/14105/diff/1/2#newcode160 Line 160: w_long((long)(Py_SIZE(ob) > 0 ? l : -l), p); > Presuma

[issue5289] ctypes.util.find_library does not work under Solaris

2009-02-18 Thread Laszlo (Laca) Peter
Changes by Laszlo (Laca) Peter : -- nosy: +laca ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Mark Dickinson
Mark Dickinson added the comment: > apparently that used 15bit > digits despite --enable-big-digits on configure Maybe configure didn't get updated properly? I'm almost sure I found a case where autoconf and autoheader just reused the stuff in the autom4te.cache directory even though config

[issue5291] Windows upgrade to 2.6.1 requires 2.6 installer to be present

2009-02-18 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: hmm yes, ignore my 13+optimize result. apparently that used 15bit digits despite --enable-big-digits on configure. attempting to fix that now and rerun. ___ Python tracker ___

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Mark Dickinson
Mark Dickinson added the comment: And here are results from 64-bit builds on the same machine as above (OS X 10.5.6/Core 2 Duo, gcc 4.0.1 from Apple). ./python.exe ../pidigits_noprint.py 2000 gives the following timings: 30-bit digits: Time; 1245.9 ms 30-bit digits + optimizat

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Mark Dickinson
Mark Dickinson added the comment: Gregory, are you sure you didn't swap the 30-bit and 30-bit+opt results? On OS X/Core 2 Duo my timings are the other way around: 30bit is significantly slower than unpatched, 30bit+opt is a little faster than unpatched. Here are sample numbers: Macintosh-

[issue5283] setting __class__ in __del__ is bad. mmkay. negative ref count! kaboom!

2009-02-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: The patch looks correct, but are there more places where the type is kept in a local variable while Python code is invoked? -- nosy: +benjamin.peterson ___ Python tracker __

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: On 32-bit x86 (1.4Ghz Efficeon) using gcc 4.3.2-1ubuntu12 I see the following perf with pidigits_noprint 2000: py3k: baseline longdigit14longdigit13+optimizations 3709 ms3664ms 4545ms Those were from the best of five runs after a warmup lo

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 18 février 2009 à 17:06 +, Mark Dickinson a écrit : > Looks like an autoconf 2.63/autoconf 2.61 difference. > Whoever previously ran autoconf and autoheader used 2.63; Sorry, that was me. autoconf seems unable to maintain reasonably similar outp

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-18 Thread Mark Dickinson
Mark Dickinson added the comment: Reviewers: Martin v. Löwis, http://codereview.appspot.com/14105/diff/1/11 File Doc/library/sys.rst (right): http://codereview.appspot.com/14105/diff/1/11#newcode418 Line 418: A struct sequence that holds information about Python's Agreed. All that's important

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-02-18 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file13131/mmapmodule.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5300] Distutils ignores file permissions

2009-02-18 Thread George Sakkis
George Sakkis added the comment: > what is your use case of having executable file here ? > > I'd use the 'scripts' metadata for that ? For one thing they are external binaries, not python scripts, and second they are used internally only (through Subprocess), they are not supposed to be called

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-02-18 Thread Tim Golden
Tim Golden added the comment: Hirokazu Yamamoto wrote: > Hirokazu Yamamoto added the comment: > > I reconsidered this issue. When mmap is anonymous, > self->file_handle == INVALID_HANDLE_VALUE (-1), so we should not call > SetFilePointer and SetEndOfFile for this handle. I'm inclined to agre

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I reconsidered this issue. When mmap is anonymous, self->file_handle == INVALID_HANDLE_VALUE (-1), so we should not call SetFilePointer and SetEndOfFile for this handle. And the behavior of mmap.resize is not documented clearly though, current behavior for

[issue991266] Cookie.py does not correctly quote Morsels

2009-02-18 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks, Zan! All tests pass with both patches applied. Test and fix look correct to me. -- nosy: +ajaksu2 stage: test needed -> patch review ___ Python tracker ___

[issue1047540] Turtle.py hangs Idle

2009-02-18 Thread Daniel Diniz
Daniel Diniz added the comment: Here's Taro message: """ Turtle.py hanging is hardly important, but it's symptomatic of an underlying problem, and I can still reproduce in Python 3... Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32 System is Windows XP The pr

[issue991266] Cookie.py does not correctly quote Morsels

2009-02-18 Thread Zan Dobersek
Zan Dobersek added the comment: This patch properly quotes cookie's comment and successfully passes test_cookie.py with applied patch. Added file: http://bugs.python.org/file13130/991266fix.patch ___ Python tracker _

[issue1001150] hotspot profiler does not work correctly on P4 CPUs with HT

2009-02-18 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks Viktor! -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-02-18 Thread Daniel Diniz
Changes by Daniel Diniz : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4191] urlparse normalize URL path

2009-02-18 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks Senthil! -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5302] Allow package_data globs match directories

2009-02-18 Thread George Sakkis
George Sakkis added the comment: > I am no in favor of MANIFEST.in removal because I find it very > convenient to define what is included in a package and I rarely use > package_data or data_files. AFAIK the MANIFEST is used only by sdist; what's the point of including files in the archive sd

[issue1785] "inspect" gets broken by some descriptors

2009-02-18 Thread Floris Bruynooghe
Changes by Floris Bruynooghe : -- nosy: +flub ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue5287] logging package on IronPython

2009-02-18 Thread Vinay Sajip
Vinay Sajip added the comment: I know - I just thought 2.6 was the priority for Michael, so I checked that in first, then got sidetracked...I'll get on it shortly. I should have left the issue as "Open" to remind me - correcting that now. -- resolution: fixed -> accepted status: closed

[issue5291] Windows upgrade to 2.6.1 requires 2.6 installer to be present

2009-02-18 Thread Michael Kesper
Michael Kesper added the comment: Hi, On Tue, Feb 17, 2009 at 06:22:02PM +, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > How exactly did you install the old installer? It should have been > cached into your Windows folder, so that it is available on uninstallation.

[issue5289] ctypes.util.find_library does not work under Solaris

2009-02-18 Thread Ke Wang
Ke Wang added the comment: On Solaris, we can use crle to find system library path. Attached a patch to get find_library work with Solaris. -- keywords: +patch Added file: http://bugs.python.org/file13129/util.diff ___ Python tracker