[issue11129] logging: allow multiple entries in qualname config

2011-02-08 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: And how do you intend to parse the dictionary stored in external file? Evaluating this script is unsafe. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11129

[issue11129] logging: allow multiple entries in qualname config

2011-02-08 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- type: - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11129 ___ ___

[issue11144] int(float) may return a long for no reason

2011-02-08 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'd call this a bug, albeit a minor one. The documentation for 'int' says: If the argument is outside the integer range a long object will be returned instead. ... which certainly suggests (without actually formally implying) that an int

[issue11148] Crash and error message from Python VM

2011-02-08 Thread Pham Cong Dinh
New submission from Pham Cong Dinh pcd...@gmail.com: Quite often, I got the following message printed out the console while I run my Python script pthread_cond_signal: Undefined error: 0 Or it crashed https://gist.github.com/799841 Tested with Python 2.6.1 and 2.6.6 (Mac) What I am trying

[issue11129] logging: allow multiple entries in qualname config

2011-02-08 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: The logging package will not parse any external file to get a dictionary. It's up to the application developer to provide a dictionary which will be used for configuration, so there's no security issue in the stdlib. -- type:

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Ismail Donmez
New submission from Ismail Donmez ism...@namtrac.org: clang (as with gcc 4.x) assumes signed integer overflow is undefined. But Python depends on the fact that signed integer overflow wraps. Currently configure script adds -fwrapv flag for GCC (added by me back in the day), same should be

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You should maybe add a test into _testcapi for this issue. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11149

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Currently test_overflow inside test_list fails without this patch. Is that good enough or should we create a specific test? -- ___ Python tracker rep...@bugs.python.org

[issue11150] SVN credentials can't be provided to easy_install

2011-02-08 Thread Yegor Bugayenko
New submission from Yegor Bugayenko t...@fazend.com: I'm trying to install Python EGG with `easy_install`, providing a URL of Subversion repository, where sources are hosted: $ easy_install svn://user:sec...@svn.example.com/repo/trunk/my-egg Authentication realm:

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ah, there is already a test for that: ok, it's fine and enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11149 ___

[issue8978] tarfile.ReadError: file could not be opened successfully if compiled without zlib

2011-02-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8978 ___

[issue11151] Arguments to various types not specified in types module

2011-02-08 Thread Noufal
New submission from Noufal nou...@nibrahim.net.in: The documentation for the types module seems to have an obvious bug. The arguments to create the various types are not mentioned in the docs page on http://docs.python.org/library/types.html This came to my attention from a stack overflow

[issue11151] Arguments to various types not specified in types module

2011-02-08 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Care to provide a patch Noufal? -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11151 ___

[issue11148] Crash and error message from Python VM

2011-02-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - ronaldoussoren components: +Macintosh nosy: +ned.deily, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11148 ___

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-02-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Interpreter Core nosy: +jyasskin versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11147 ___

[issue11148] Crash and error message from Python VM

2011-02-08 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Can you provide a script that shows the problem? Without such a script it will be hard to reproduce, and fix, this problem. -- ___ Python tracker rep...@bugs.python.org

[issue11150] SVN credentials can't be provided to easy_install

2011-02-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: easy_install is not part of python. Please report this to the easy_install bug tracker instead. -- nosy: +r.david.murray, tarek resolution: - later stage: - committed/rejected status: open - closed

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-02-08 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Without guessing which args are options, I don't see how it's possible to implement parse_known_args(). I'd propose raising an exception if it's called and dont_assume_everything_that_looks_like_a_flag_is_intended_to_be_one (or whatever it

[issue11152] pb in zipfile module

2011-02-08 Thread labem
New submission from labem la...@e-i.com: Detected in Python version: Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] on win32 Error in zipfile module: Zip files with no compressed files may contain only [end of central directory record] bloc without anything

Win 7 64 bit Idle editing errors

2011-02-08 Thread johnckint
I have 2 new work pc's, one desktop and one laptop and both have Win7 64 bit. I get very frequent editing errors in Idle editor on these systems. The most frequent error is pasting text into two locations, the one targeted and the other one randomly somewhere else in the file. This happens on

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2011-02-08 Thread Don Dwiggins
Don Dwiggins ddwigg...@advpubtech.com added the comment: I have no pressing need for it. I'm happy enough with Martin's idea of single-use instances, as long as they're clearly documented as such, and don't pretend to work for a subsequent connect. I'd also be happy with instances that

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-02-08 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Updated patch that applies cleanly. -- Added file: http://bugs.python.org/file20718/issue10990.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-02-08 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20620/issue_10990.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990 ___

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I am using LLVM/Clang 2.8 and test_list passes fine for me as-is. Does it only fail under 32 or 64-bit conditions? Configure compiles under 32-bits for me even though I have -arch x86_64 set. -- nosy: +brett.cannon

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: This is only reproducable with clang 2.9 trunk builds due to new optimizations. Also note that clang commits confirm that -fwrapv must be provided if you assume signed integer overflow wraps. This was also the case with a spec test. I tested

[issue10951] gcc 4.6 warnings

2011-02-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I can see how a comment like /* spam = eggs + ham */ could be useful, but and isolated /* foo = 0 */ where 'foo' appears nowhere else in the file seems more like confusing noise. -- ___ Python

[issue10951] gcc 4.6 warnings

2011-02-08 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: You're right, Terry. It's a judgment call as to what should be simply deleted compared to commented out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10951

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-02-08 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: There is a bug with the patch. The first argument to the `start` command, if a quoted string, becomes the Window title, not the command to execute. Hence, idle.pyw is directly executed by Windows. Here's the correct command line:

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-02-08 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: We're only a few days away from 3.2 final so it's too late. Once it goes out I'll make the adjustment and it'll be in 3.2.1. -- resolution: fixed - stage: committed/rejected - patch review status: pending - open

[issue11144] int(float) may return a long for no reason

2011-02-08 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'd call this a bug, albeit a minor one. The documentation for 'int' says: If the argument is outside the integer range a long object will be returned instead. Ah ok. I agree it's a bug, then. --

[issue11153] urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header

2011-02-08 Thread Matthew M. Boedicker
New submission from Matthew M. Boedicker matth...@boedicker.org: I am working with a web server that does not quote the realm in the WWW-Authenticate header. This patch will make the realm parsing handle unquoted realm as well as some other invalid variations. I tried doing it by modifying

[issue11153] urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header

2011-02-08 Thread Matthew M. Boedicker
Changes by Matthew M. Boedicker matth...@boedicker.org: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11153 ___ ___

[issue2889] curses for windows (alternative patch)

2011-02-08 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: Curses binaries for Python 2.5, 2.6, 2.7, 3.1 and 3.2, win32 and win-amd64, are available at http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses. -- ___ Python tracker rep...@bugs.python.org

[issue10800] libffi build failure on HP-UX 11/PA

2011-02-08 Thread Oren Held
Oren Held o...@held.org.il added the comment: quick update: libffi (upstream) has this fixed now in git commit dc411e8f991 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10800 ___

[issue7719] distutils: ignore .nfsXXXX files

2011-02-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report and patch (I think SilentGhost’s version is better). Do you have any pointer about those .nfs* files? Are there other (build) tools that ignore them? Is it always safe to skip .nfs* files, or only .nfs? (i.e. six

[issue11154] Alternate name for __pycache__

2011-02-08 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: It would be great if the __pycache__ name could be set by an environment variable. I would like to rename it to .pycache so that it doesn't pollute my directory listings. -- assignee: barry messages: 128194 nosy:

[issue7719] distutils: ignore .nfsXXXX files

2011-02-08 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: On Tue, Feb 8, 2011 at 23:40, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: Do you have any pointer about those .nfs* files?  Are there other (build) tools that ignore them?  Is it always safe

[issue11145] '%o' % user-defined instance

2011-02-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The doc for %o only says it returns the “signed octal value”; __oct__ is not a magic method (i.e. it’s not a name with special meaning), converting with oct() actually uses __index__. -- nosy: +eric.araujo

[issue11151] Arguments to various types not specified in types module

2011-02-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Remember that the types module is mostly obsolete now: a type like IntType is described as alias for the builtin int, with a link to the comprehensive document of said int. (On an unrelated note, the types module may encourage type-checking,

[issue11152] pb in zipfile module

2011-02-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +alanmcintyre ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11152 ___ ___ Python-bugs-list

[issue11152] pb in zipfile module

2011-02-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - test needed type: crash - behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11152

[issue6005] Bug in socket example

2011-02-08 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi all, I was looking at this issue and thought: ok the module documentation uses send() not correctly, so we should fix that; the fastest solution is using sendall(). But then searching fro some examples in the code on internet, I found

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2011-02-08 Thread Kevin Le
Kevin Le solno...@gmail.com added the comment: confirmed, I'll take a closer look -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue940286 ___ ___

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-02-08 Thread Erik Cederstrand
New submission from Erik Cederstrand e...@1calendar.dk: In Python 2.6.6 on OSX: import inspect from multiprocessing import Queue q = Queue() print(inspect.getargspec(q.put)) ArgSpec(args=['self', 'obj', 'block', 'timeout'], varargs=None, keywords=None, defaults=(True, None)) from Queue

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-02-08 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: I've gone through Lib/multiproccing/queues.py and have replaced obj with item. Here's the patch. -- keywords: +patch nosy: +anikom15 Added file: http://bugs.python.org/file20720/multiprocessing-11155.diff

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-08 Thread Jonathan Beezley
Changes by Jonathan Beezley jon.beez...@gmail.com: -- nosy: +jbeezley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4681 ___ ___ Python-bugs-list

[issue11156] email.encoders.encode_base64 create a single long line

2011-02-08 Thread Yves Dorfsman
New submission from Yves Dorfsman y...@zioup.com: email.encoders.encode_base64 returns a str of a single long line instead of breaking it up into 76 chars line as per RFC 2045, and as implemented by email.base64mime. Solution: In /usr/lib/python3.1/email/encoders.py, use encodebytes instead

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-02-08 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Here's a revised version of bz2-v3.diff, with docstrings that are more consistent with the updated documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5863

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-02-08 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Weird, the patch didn't upload... -- Added file: http://bugs.python.org/file20721/bz2-v3b.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5863

[issue11157] Use socket.accept4 syscall under linux

2011-02-08 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: socket.accept() should have optional argument flags. see 'man accept4' It should use fcntl() if accept4() not supported. This is performance issue. -- components: IO, Library (Lib) messages: 128205 nosy: mmarkk priority: normal