[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: Well, this is for Raymond to decide. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Eli Bendersky
Eli Bendersky added the comment: What about at least documenting it? Since a real user ran into this and reported it as a problem, I think it would make sense to make the discrepancy explicit. Alternatively a generalized note can be added to the documentation of itertools stating that the "e

[issue13000] unhandled exception at install

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: Thanks! -- assignee: -> brian.curtin nosy: +brian.curtin, loewis ___ Python tracker ___ ___ Python-b

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: I had forwarded this to Raymond, and he replied: The itertools module code is correct. The "equivalent" is only approximately correct I don't consider it to be a bug -- it is an implementation detail in an illustration. -- nosy: +georg.brandl resolutio

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Eli Bendersky
New submission from Eli Bendersky : Regarding the sample code in: http://docs.python.org/library/itertools#itertools.izip_longest If an IndexError is raised inside an iterator in the "equivalent" code from the docs, the generator stops and the error is swallowed. If an IndexError is raised ins

[issue12972] Color prompt + readline

2011-09-17 Thread Damian
Damian added the comment: Retested with Python 3.1.1 and this issue doesn't manifest. This can be resolved - sorry about the noise. :) -- nosy: +atagar ___ Python tracker ___ _

[issue12961] itertools: unlabelled balls in boxes

2011-09-17 Thread Phillip Feldman
Phillip Feldman added the comment: "The itertools module should only have a few of the most generally useful, especially in combination with other tools." Balls-in-boxes _is_ one of the most basic of the canonical combinatorial problems. You can verify this by opening any text on combinatori

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-17 Thread poq
poq added the comment: Nope. $ sqlite3 SQLite version 3.7.4 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> pragma foreign_keys; 0 sqlite> $ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or

[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert
jorge.seifert added the comment: 'msiexec.exe': Loaded 'C:\WINDOWS\system32\msiexec.exe', Cannot find or open the PDB file 'msiexec.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file 'msiexec.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the

[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert
jorge.seifert added the comment: Version 2,7,2 file python 2.7.2.msi downloaded from this website -- ___ Python tracker ___ ___ Pytho

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-17 Thread Mark Bucciarelli
Mark Bucciarelli added the comment: huh. is it already on in your sqlite install? $ sqlite3 SQLite version 3.7.7.1 2011-06-28 17:39:05 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> pragma foreign_keys; 0 sqlite> is what i get (it's off). --

[issue12993] prepared statements in sqlite3 module

2011-09-17 Thread poq
poq added the comment: The sqlite3 module already uses prepared statements. Quoting from the documentation: "The sqlite3 module internally uses a statement cache to avoid SQL parsing overhead. If you want to explicitly set the number of statements that are cached for the connection, you can

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-17 Thread poq
poq added the comment: Works for me? $ python2.7 t.py Traceback (most recent call last): File "t.py", line 13, in con.execute("insert into track (artist_id) values (1)") sqlite3.IntegrityError: foreign key constraint failed $ python3.2 t.py Traceback (most recent call last): File "t.py

[issue11780] email.encoders are broken

2011-09-17 Thread R. David Murray
R. David Murray added the comment: I may have, but I'd prefer to check before closing the issue. (I'm deep in another project right now, but I'll review all these open bugs this fall some time). -- status: closed -> open ___ Python tracker

[issue11686] Update of some email/ __all__ lists

2011-09-17 Thread R. David Murray
R. David Murray added the comment: Why? The bug hasn't been fixed yet. -- assignee: -> r.david.murray stage: -> patch review status: closed -> open versions: +Python 3.2 ___ Python tracker _

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-09-17 Thread Florian Loitsch
Florian Loitsch added the comment: FYI: the double-conversion library at http://code.google.com/p/double-conversion already contains code for the fallback case. It would not be necessary to keep Python's existing code just for the 0.5%. The library is now used by Firefox, Chrome, and Webkit,

[issue12977] socket.socket.setblocking does not raise exception if no data available

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: I think you're mistaking a closed connection with "no data available". Small demo that this works as intended: >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> s.connect(('localhost', 1234)) >>> s.recv(10) ^CTraceback (most recent call last): File

[issue12961] itertools: unlabelled balls in boxes

2011-09-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue12960] threading.Condition is not a class

2011-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend just closing this. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue12956] builds fail when installing to --prefix with space in path name

2011-09-17 Thread LMO
LMO added the comment: I don't see supporting spaces as being important, either. Since the failure is not obviously related to the presence of spaces, I would like to see the limitation documented. > > Éric Araujo added the comment: > >> While I'm sympathetic to supporting arbitrary path

[issue12943] tokenize: add python -m tokenize support back

2011-09-17 Thread Meador Inge
Meador Inge added the comment: > Did you get commit rights already? I have not. I still need to submit a contributor agreement as well. I plan to fax that today. -- ___ Python tracker __

[issue12960] threading.Condition is not a class

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: I don't think this is important enough. It's now a class anyway in 3.3+. -- nosy: +georg.brandl ___ Python tracker ___ __

[issue12943] tokenize: add python -m tokenize support back

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: Looks good to me. Did you get commit rights already? -- nosy: +georg.brandl ___ Python tracker ___ __

[issue12943] tokenize: add python -m tokenize support back

2011-09-17 Thread Meador Inge
Meador Inge added the comment: v2 patch which addresses comments made by merwok via rietveld. -- Added file: http://bugs.python.org/file23184/issue12943-2.patch ___ Python tracker _

[issue12987] Demo/scripts/newslist.py has non-free licensing terms

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: The only resonable fix to make would be removal from the distribution. -- nosy: +georg.brandl ___ Python tracker ___

[issue12961] itertools: unlabelled balls in boxes

2011-09-17 Thread Georg Brandl
Changes by Georg Brandl : -- title: unlabelled balls in boxes -> itertools: unlabelled balls in boxes ___ Python tracker ___ ___ Pytho

[issue12508] Codecs Anomaly

2011-09-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4153] Unicode HOWTO up to date?

2011-09-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13000] unhandled exception at install

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: And which version, exactly? Which file, downloaded from where? -- ___ Python tracker ___ ___ Python-

[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2011-09-17 Thread Ezio Melotti
Ezio Melotti added the comment: I think string methods (and other parts of the stdlib) assume NFC and leave normalization to NFC up to the user. Before fixing str.title() we should take a more general decision about handling strings that use other normalization forms. -- __

[issue11466] getpass.getpass doesn't close tty file

2011-09-17 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- nosy: -sdaoden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-09-17 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Right, and that is considered to be a non-issue due to that close() is allowed multiple times without causing harm. -- status: open -> closed ___ Python tracker __

[issue11780] email.encoders are broken

2011-09-17 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I think this is historic either? As far as i remember you solved it as part of another issue... -- status: open -> closed ___ Python tracker __

[issue11686] Update of some email/ __all__ lists

2011-09-17 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Closing this... -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue11935] MMDF/MBOX mailbox need utime

2011-09-17 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Let me close this! I've just recently removed the real patch from my postman's "next" branch, because even that real implementation doesn't work reliable. I.e., please forget msg135791. It was true, but on the long run mutt(1) sometimes sees all, someti

[issue1170] shlex have problems with parsing unicode

2011-09-17 Thread Ezio Melotti
Ezio Melotti added the comment: I haven't looked at the shlex code (yet), my comment was just about the idea of adding constants with chars that belong to different Unicode categories. -- ___ Python tracker __

[issue1170] shlex have problems with parsing unicode

2011-09-17 Thread R. David Murray
R. David Murray added the comment: Ezio, I don't see any indication in this ticket that this bug was actually *fixed* in 3.x. Unicode doesn't cause immediate errors in 3.x, but it isn't recognized as wordchars, etc. Am I missing something? -- ___

[issue12931] xmlrpclib confuses unicode and string

2011-09-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13002] peephole.c: unused parameter

2011-09-17 Thread Meador Inge
Meador Inge added the comment: Looks like it was checked in that way (http://hg.python.org/cpython/rev/14205d0fee45). Patch looks good to me. -- nosy: +meadori ___ Python tracker

[issue12987] Demo/scripts/newslist.py has non-free licensing terms

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: It’s a problem for free software distribution, regardless of the commercial status, like the profiler used to be. The Demo directory is gone in 3.2 and higher; I’m not sure any effort to fix this in 2.7 is worth it. -- nosy: +eric.araujo title: Demo/scr

[issue12961] unlabelled balls in boxes

2011-09-17 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file23134/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12961] unlabelled balls in boxes

2011-09-17 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file23132/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12982] .pyo file can't be imported unless -O is given

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: I would not suggest to rename a .pyo to .pyc, they have different promises (if I can even say that, as they’re implementation details). -- nosy: +eric.araujo stage: -> needs patch title: .pyo file cannot be imported -> .pyo file can't be imported unless

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-09-17 Thread Mark Bucciarelli
Mark Bucciarelli added the comment: Opened http://bugs.python.org/issue12997 in case there is a way to solve the foreign_key PRAGMA issue with a less disruptive fix. -- nosy: +Mark.Bucciarelli ___ Python tracker

[issue12964] Two improvements for the locale aliasing engine

2011-09-17 Thread Éric Araujo
Changes by Éric Araujo : -- type: behavior -> feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs

[issue12956] builds fail when installing to --prefix with space in path name

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: > While I'm sympathetic to supporting arbitrary path names, I'm not sure > if it is worth the effort. My sentiment too. Supporting non-ASCII characters seems clearly important to me, as it’s a reasonable and common thing to run or install Python from a patch th

[issue12955] urllib.request example should use "with ... as:"

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: [Terry] > But when I add 'http:www.python.org' as an argument, I get > urllib.error.URLError: Your URI lacks a host (netloc, in RFC parlance) component: >>> urllib.parse.urlparse('http:python.org') ParseResult(scheme='http', netloc='', path='python.org', params='

[issue12785] list_distinfo_file is wrong

2011-09-17 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12678] test_packaging and test_distutils failures under Windows

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: Distutils and packaging tests now pass on the three builbots. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue1170] shlex have problems with parsing unicode

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: Andrew: Ezio means http://docs.python.org/2.7/library/unicodedata > For the purposes of patching shlex Sorry, but we are not talking about patching shlex. > I just posted here because this page currently gets the top hit > when searching for "shlex unicode". It’s

[issue12765] test_packaging failure under Snow Leopard

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: test_packaging now passes on the buildbot, thanks! (The current failure is test_socket.) -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue1222585] C++ compilation support for distutils

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: Well, there’s no rush, Python 3.3b1 is not next week. I’m willing to apply the patch to packaging and distutils2 (in a week or two when I’ve finished a massive cleanup and caught up with packaging), but I’d like tests for detect_language, and if possible tests f

[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo
Éric Araujo added the comment: > I'm not suggesting that python does not test the applications. just reporting > what I experience. I was joking :) What I meant was: I can’t agree with the statement “it could be raised on any other usage as sys.stdout does not have an 'error' attribute” becau

[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file23170/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file23181/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file23136/log.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue13002] peephole.c: unused parameter

2011-09-17 Thread Stefan Krah
New submission from Stefan Krah : peephole.c: CONST_STACK_TOP(x) has an unused parameter. -- components: Interpreter Core files: peephole_unused_parameter.diff keywords: patch messages: 144189 nosy: skrah priority: normal severity: normal stage: patch review status: open title: peephole.

[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-09-17 Thread Charles-François Natali
New submission from Charles-François Natali : http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2 3.x/builds/2129/steps/test/logs/stdio """ == FAIL: testRecvmsgTrunc (test.test_socket.RecvmsgUDPTest) ---

[issue12967] AttributeError distutils\log.py

2011-09-17 Thread ben
ben added the comment: Hi Ned,   Not sure if I fully understand the IDLE issue, I'm still learning Python (abt. 6 months). Nevertheless I've installed the distributes through the command line.   if you want to reassign this issue to IDLE, please do so.   Best regards,   Ben Thelen     From: Ne

[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert
jorge.seifert added the comment: The message I get after it is: undandled win32 exception occurred in msiexec [2376] I am tryin to install on windows server 2003 -- ___ Python tracker ___

[issue12999] _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris

2011-09-17 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Some rational in issue1759169. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue12999] _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris

2011-09-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- title: _XOPEN_SOURCE usage on Solaris -> _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris ___ Python tracker ___ ___

[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: See too http://bugs.python.org/issue6755#msg143798 -- ___ Python tracker ___ ___ Python-bugs-list

[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13000] unhandled exception at install

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: Can you please give ANY information on what exactly you were installing, and what the exception was? Otherwise this report is useless. -- nosy: +georg.brandl ___ Python tracker ___

[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert
New submission from jorge.seifert : Unhandled exception just at when start to install on windows 2003 -- components: Installation messages: 144182 nosy: jorge.seifert priority: normal severity: normal status: open title: unhandled exception at install type: crash versions: Python 2.7 _

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23166/multiprocessing_fd-1.diff ___ Python tracker ___ ___ Pytho

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch taking into account the fact that multiprocessing.reduction might not be available and importing it can raise an ImportError (which is already the case with the C implementation, but multiprocessing.reduction tests have been added recentl

[issue11694] xdrlib raises ConversionError in inconsistent way

2011-09-17 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Patch with tests. -- keywords: +patch Added file: http://bugs.python.org/file23178/11694.patch ___ Python tracker ___ _

[issue12998] Memory leak with CTypes Structure

2011-09-17 Thread Stefan Krah
Stefan Krah added the comment: I can reproduce the leak with Python 2.5.4, but not with Python 2.6.5 or Python 3.2. Python 2.5.4 is an ancient version. Please upgrade to Python 2.7 or Python 3.2. If the leak still exists, just respond to this issue and it will be opened again automatically. --

[issue12998] Memory leak with CTypes Structure

2011-09-17 Thread Sebastian Wiesner
Sebastian Wiesner added the comment: Why should it? After all, you're sort of abusing ctypes by repeatedly creating Struture types over and over again. C structures that you might want to wrap with these types are fixed and known at the time of programming, so there is never a need to creat

[issue12976] add support for MirBSD platform

2011-09-17 Thread Charles-François Natali
Charles-François Natali added the comment: Hello Benny, > As requested, here is the full patch for MirBSD support. The diff was taken > against version 2.7.2. It is really quite easy, you just need to handle > MirBSD like OpenBSD. > With this patch, I can successfully compile and run Python o

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali
Charles-François Natali added the comment: > Did you try it on Linux, FreeBSD and/or Windows? It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see issue #12999. -- dependencies: +_XOPEN_SOURCE usage on Solaris ___ Python track

[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Charles-François Natali
New submission from Charles-François Natali : While testing issue #12981, I stumbled on a problem on OpenIndiana buildbot: """ test test_multiprocessing crashed -- Traceback (most recent call last): File "/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/test/regrtest.py", line

[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: haypo, neologix priority: normal severity: normal stage: needs patch status: open title: _XOPEN_SOURCE usage on Solaris type: behavior versions: Python 3.3 ___ Python tracker