[issue5287] logging package on IronPython

2009-02-18 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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 -

[issue1785] inspect gets broken by some descriptors

2009-02-18 Thread Floris Bruynooghe
Changes by Floris Bruynooghe floris.bruynoo...@gmail.com: -- nosy: +flub ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1785 ___ ___

[issue5302] Allow package_data globs match directories

2009-02-18 Thread George Sakkis
George Sakkis george.sak...@gmail.com 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

[issue4191] urlparse normalize URL path

2009-02-18 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Thanks Senthil! -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4191 ___

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

2009-02-18 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Thanks Viktor! -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1001150 ___

[issue1047540] Turtle.py hangs Idle

2009-02-18 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com 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

[issue991266] Cookie.py does not correctly quote Morsels

2009-02-18 Thread Zan Dobersek
Zan Dobersek zandober...@gmail.com 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

[issue991266] Cookie.py does not correctly quote Morsels

2009-02-18 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com 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 rep...@bugs.python.org

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

2009-02-18 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Hirokazu Yamamoto wrote: Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

[issue5300] Distutils ignores file permissions

2009-02-18 Thread George Sakkis
George Sakkis george.sak...@gmail.com 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

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

2009-02-18 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file13131/mmapmodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2733 ___

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

2009-02-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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.

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

2009-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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

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

2009-02-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-02-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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 rep...@bugs.python.org

[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 mar...@v.loewis.de: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5291 ___

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

2009-02-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-02-18 Thread Laszlo (Laca) Peter
Changes by Laszlo (Laca) Peter l...@sun.com: -- nosy: +laca ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5289 ___ ___ Python-bugs-list mailing

[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 mar...@v.loewis.de 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 :

[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 mar...@v.loewis.de 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

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

2009-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-02-18 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: 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

[issue5307] Python-3.0.1 install fails on Solaris

2009-02-18 Thread Peter Rowat
New submission from Peter Rowat pe...@pelican.ucsd.edu: 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.

[issue5259] gmail smtp

2009-02-18 Thread bill
Changes by bill toastedro...@gmail.com: -- title: smtplib is broken in Python3 - gmail smtp type: crash - versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5259 ___

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

2009-02-18 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: 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

[issue5259] smtplib is broken in Python3

2009-02-18 Thread bill
bill toastedro...@gmail.com 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

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

2009-02-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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:

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

2009-02-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Given that marshal is primarily about supporting pyc files, do we care? -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308

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

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't feel responsible for VS2005 support. Unassigning myself. -- assignee: loewis - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5306

[issue5307] Python-3.0.1 install fails on Solaris

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: No ideas. This is not a help forum. -- nosy: +loewis resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5307

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

2009-02-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Kristan, I think this is yours. -- assignee: - krisvale nosy: +krisvale ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5306

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

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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 longdigit14

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

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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

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

2009-02-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: On Wed, Feb 18, 2009 at 4:51 PM, Amaury Forgeot d'Arc rep...@bugs.python.org wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I carefully looked at all places that store -ob_type or Py_TYPE() in a local variable, and

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

2009-02-18 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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

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

2009-02-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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

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

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

[issue4565] Rewrite the IO stack in C

2009-02-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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. -

[issue5310] operator precedence table is wrong

2009-02-18 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: The operator precedence table is wrong. http://docs.python.org/reference/ expressions.html#summary 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

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

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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)

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

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: And I think r69268 should be merged too. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5306 ___

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

2009-02-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Benjamin, please use this patch to complete the merge. -- assignee: krisvale - benjamin.peterson nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Steven Bethard
New submission from Steven Bethard steven.beth...@gmail.com: 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

[issue5312] errno not being set

2009-02-18 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: 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

[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 graham.dumple...@gmail.com: In multiprocessing.process it contains the code: def _bootstrap(self): if sys.stdin is not None: try: os.close(sys.stdin.fileno()) except (OSError,

[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 mar...@v.loewis.de 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 rep...@bugs.python.org

[issue5310] operator precedence table is wrong

2009-02-18 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- keywords: +patch Added file: http://bugs.python.org/file13135/expressions.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5310 ___

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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 mar...@v.loewis.de 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

[issue5311] bdist_msi generates version number for pure Python packages

2009-02-18 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

[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 amaur...@gmail.com: -- assignee: - amaury.forgeotdarc keywords: -needs review resolution: - accepted stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5283

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

2009-02-18 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: high - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5306 ___