[issue4347] Circular dependency causes SystemError when adding new syntax

2008-12-01 Thread Thomas Lee
Thomas Lee <[EMAIL PROTECTED]> added the comment: okay, so it turns out that putting rules in Grammar/Grammar before the top-level non-terminals breaks things in a different way. Attached is another (hopefully final and working) patch. Added file: http://bugs.python.org/file12185/build-evilness

[issue4347] Circular dependency causes SystemError when adding new syntax

2008-12-01 Thread Thomas Lee
Thomas Lee <[EMAIL PROTECTED]> added the comment: I mean pgen's dependency on graminit.h, not the parser's. :) ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4347] Circular dependency causes SystemError when adding new syntax

2008-12-01 Thread Thomas Lee
Thomas Lee <[EMAIL PROTECTED]> added the comment: Here's a new patch that I believe should fix this issue. It modifies Makefile.pre.in to include a few additional dependency declarations for source files that depend on Include/graminit.h and Include/Python-ast.h, as well as moving encoding_decl

[issue4347] Dependencies of graminit.h are not rebuilt when the file is regenerated

2008-12-01 Thread Thomas Lee
Thomas Lee <[EMAIL PROTECTED]> added the comment: A deeper issue here is that Parser/parsetok.c has a dependency on graminit.h. The problem is that Parser/parsetok.c is a part of the Parser/pgen program which is actually being used to *generate* graminit.h in the first place. This breaks Python

[issue4484] struct: per item endianess specification

2008-12-01 Thread Shaddy Baddah
New submission from Shaddy Baddah <[EMAIL PROTECTED]>: I note that using the struct module, a user can specify if number items of the format are to be interpreted as either big or small endian. However the format specifier can only accept one indicator character at its first character to apply fo

[issue4449] AssertionError in Doc/includes/mp_benchmarks.py

2008-12-01 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: This is a documentation bug, not a library bug, right? (unless someone claims that the documentation is right and the library is wrong) So: a) this seems to be a duplicate of issue 3256, and b) it's "just" a documention bug. Not sure why thi

[issue4387] binascii b2a functions accept strings (unicode) as data

2008-12-01 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Committed as r67472. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2008-12-01 Thread Chris Palmer
Changes by Chris Palmer <[EMAIL PROTECTED]>: -- type: -> behavior ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mai

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2008-12-01 Thread Chris Palmer
Chris Palmer <[EMAIL PROTECTED]> added the comment: Here is an additional test case. I have a super simple HTML "minifier" that burps when given this test file: $ cat test.html 'foo ' The explosion is: $ ./minify.py test.html Warning: malformed start tag 'foo Trace

[issue4483] Error to build _dbm module during make

2008-12-01 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Here's a similarly untested patch for Python 2.x. Can you try it as well? Added file: http://bugs.python.org/file12182/dbm2.diff ___ Python tracker <[EMAIL PROTECTED]> _

[issue4483] Error to build _dbm module during make

2008-12-01 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Can you try the attached patch and let us know if it works for you? -- assignee: -> skip.montanaro keywords: +easy, patch Added file: http://bugs.python.org/file12181/dbm.diff ___ Python tracker <

[issue4483] Error to build _dbm module during make

2008-12-01 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Patching _dbmmodule.c alone isn't sufficient. At minimum setup.py would have to be adjusted to detect the presence of the odd ndbm.h file. -- nosy: +skip.montanaro ___ Python tracker <[EMAIL PROTE

[issue4473] POP3 missing support for starttls

2008-12-01 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: > As for the shutdown before close, it's needed to let the server know > we are leaving, instead of waiting until socket timeout. Extracts of an UNIX FAQ [1]: "Generally the difference between close() and shutdown() is: close() closes the so

[issue4471] IMAP4 missing support for starttls

2008-12-01 Thread Lorenzo M. Catucci
Lorenzo M. Catucci <[EMAIL PROTECTED]> added the comment: As in #4473: if needed, I'll redo the patch into a small series. I've cut and pasted the following. As for the shutdown before close, it's needed to let the server know we are leaving, instead of waiting until socket timeout. This is the

[issue4473] POP3 missing support for starttls

2008-12-01 Thread Lorenzo M. Catucci
Lorenzo M. Catucci <[EMAIL PROTECTED]> added the comment: I understand the need to keep things simple, but this time the split seemed a bit overkill. If needed, I'll redo the patch into a small series. Thinking of it... I was unsure if it really made sense to split out smtp/pop/imap patches inste

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2008-12-01 Thread Weeble
Weeble <[EMAIL PROTECTED]> added the comment: Okay, I've uploaded a patch. As suggested, it passes 0 for the port number and the port is automatically assigned. It then extracts the port from the socket and passes it to the subprocess. Note that this means the subprocess inherits the listening

[issue2306] Update What's new in 3.0

2008-12-01 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Working on it! Woo hoo! Thanks Victor for the detailed feedback. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2008-12-01 Thread Weeble
Changes by Weeble <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12180/IDLE_automatic_ports.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2008-12-01 Thread STINNER Victor
Changes by STINNER Victor <[EMAIL PROTECTED]>: -- nosy: +haypo ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing l

[issue4471] IMAP4 missing support for starttls

2008-12-01 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: Same comments than issue #4473: - you might split your patch into smaller patches - Do you really need to keep a reference to the "raw" socket? - I don't understand what is sock.shutdown(SHUT_RDWR). When is it needed? Does it change the behav

[issue4473] POP3 missing support for starttls

2008-12-01 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: You might split your patch into smaller patches, example: * patch 1: implement CAPA method * patch 2: POP3_SSL refatoring * patch 3: stls() method Comments: - Do you really need to keep a reference to the "raw" socket (self._sock) for

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > So you are saying you won't create the icons for bdist_msi and > bdist_wininst even for future versions (2.7 and 3.1) of the Python > interpreter? Yes, exactly so. I'm -1 on using the Python icon for that by default, I'm +0 on giving the p

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.

2008-12-01 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: +1 on the patch. It makes good sense to me. -- nosy: +rhettinger ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.

2008-12-01 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Before it is accepted, I'd like to see some independent analysis (which I might have to carry out myself). It would also be good if some deeper understanding of the effect could be provided - I'm fairly skeptical that such a minor change shou

[issue4483] Error to build _dbm module during make

2008-12-01 Thread Leger
New submission from Leger <[EMAIL PROTECTED]>: Under Debian/Lenny/i486, I install python3.0rc3. After untar the Python3.0rc3 package, I replace in the configure "/usr/local" by "/usr". After I do : "configure --with-pydebug --with-doc-strings --enable-shared --enable-profiling --enable-ipv6 --wit

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2008-12-01 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Marc-Andre explain all. For the protocol my version is from trunk, python is build with default options. Since system tcl limit UTF-8 to 3 bytes, python is build for UCS-2. In the report output from python is with character 010d(UCS-2). May

[issue4470] smtplib SMTP_SSL not working.

2008-12-01 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue4473] POP3 missing support for starttls

2008-12-01 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue4471] IMAP4 missing support for starttls

2008-12-01 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue858809] Use directories from configure rather than hardcoded

2008-12-01 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: The complete patch require redesign of python-distutils ;) -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Retro
Retro <[EMAIL PROTECTED]> added the comment: So you are saying you won't create the icons for bdist_msi and bdist_wininst even for future versions (2.7 and 3.1) of the Python interpreter? -- versions: -Python 3.0 ___ Python tracker <[EMAIL PROTECTED]

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.

2008-12-01 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think it should stay out of the trunk until 3.0 is released only because that simplifies merging and 3.0 is only 3 days away. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]>

[issue4482] 10e667.__format__('+') should return 'inf'

2008-12-01 Thread Eric Smith
Changes by Eric Smith <[EMAIL PROTECTED]>: -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4426] UTF7 decoding is far too strict

2008-12-01 Thread Nick Barnes
Nick Barnes <[EMAIL PROTECTED]> added the comment: Here is my patch. This is a rewrite of the UTF7 encoder and decoder. It now handles surrogate pairs correctly, so non-BMP characters work with this codec. And my motivating example ('/'.decode('utf7')) works OK. I'm not totally confident of t

[issue4482] 10e667.__format__('+') should return 'inf'

2008-12-01 Thread Dino Viehland
Changes by Dino Viehland <[EMAIL PROTECTED]>: -- components: +Interpreter Core type: -> behavior ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4482] 10e667.__format__('+') should return 'inf'

2008-12-01 Thread Dino Viehland
New submission from Dino Viehland <[EMAIL PROTECTED]>: 10e667.__format__('+') returns '+1.0#INF' vs: 10e667.__format__('') which returns 'inf' The docs say 'inf' is right. -- messages: 76703 nosy: DinoV severity: normal status: open title: 10e667.__format__('+') should return 'inf' v

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Retro: please don't add people to the nosy list. I don't plan to do anything about this issue in the near future, except perhaps to review patches that get contributed (and even that may take many months). ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-12-01 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Some more clarifications about this bug: Tcl shouldn't be giving us a UTF-8 string with a 0xC0 byte, since that is not valid UTF-8. I'm aware that Tcl uses the sequence 0xC0 0x80 for special purposes but it is also said that such sequences sh

[issue858809] Use directories from configure rather than hardcoded

2008-12-01 Thread Akira Kitada
Changes by Akira Kitada <[EMAIL PROTECTED]>: -- versions: +Python 2.5.3, Python 2.6, Python 2.7, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.

2008-12-01 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: Martin, does your comment mean you think this should stay out of the trunk(s) until 3.0 is released? That's fine. How about after that: should it go in the 2.6.x and 3.0.x branches too? ___ Python tracker

[issue3871] cross building python for mingw32 with distutils

2008-12-01 Thread Zooko O'Whielacronx
Zooko O'Whielacronx <[EMAIL PROTECTED]> added the comment: I'm interested in this patch so I'm adding myself to the Nosy list. -- nosy: +zooko ___ Python tracker <[EMAIL PROTECTED]> __

[issue4481] Windows installer crash

2008-12-01 Thread Konam
New submission from Konam <[EMAIL PROTECTED]>: Tried downloading the "Python 2.6 Windows Installer" for Windows Vista 64bit and when I tried installing it, it simply made my Windows Installer stop working. I've tried "Just for me" and the "For everyone" options and it still crashes. I'm wonde

[issue4336] Fix performance issues in xmlrpclib

2008-12-01 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: I submitted r67442, which combines the headers and body in a single send() call. We should look at the buffering issue now, although I probably won't have any time to check on it until Friday. ___ Python tr

[issue4426] UTF7 decoding is far too strict

2008-12-01 Thread Nick Barnes
Nick Barnes <[EMAIL PROTECTED]> added the comment: My original defect report here was incorrect, or possibly only relates to a particular older Python installation. It is still the case that UTF-7 decoding is fussier than it need be (decoding should be permissive), and is broken specifically for

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Retro
Retro <[EMAIL PROTECTED]> added the comment: Oh, Python 3.0 is in feature freeze. I see. Too bad. Well, at least we'll have those icons in the next release. When do you think that'll be released? Talking about Python 3.1 of course. ___ Python tracker <[EMAIL P

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Retro
Retro <[EMAIL PROTECTED]> added the comment: Martin, I hope you have the time to fix this. I would very much appreciate this fix. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: On 2008-12-01 14:52, Retro wrote: > Retro <[EMAIL PROTECTED]> added the comment: > > Marc-Andre, why haven't you selected the version 'Python 3.0' as well? I > think it's still time to fix this for the much-anticipated Python 3.0. > The f

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Retro
Changes by Retro <[EMAIL PROTECTED]>: -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsu

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Retro
Changes by Retro <[EMAIL PROTECTED]>: -- versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing l

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Retro
Retro <[EMAIL PROTECTED]> added the comment: Marc-Andre, why haven't you selected the version 'Python 3.0' as well? I think it's still time to fix this for the much-anticipated Python 3.0. The final release is coming soon, but I think it's still time. Martin v. Löwis, please fix this bug for Pyth

[issue4479] True division is not smart -> proposing smart True division

2008-12-01 Thread Hatem
Hatem <[EMAIL PROTECTED]> added the comment: On Mon, Dec 1, 2008 at 8:01 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > > Le lundi 01 décembre 2008 à 11:15 +, Mark Dickinson a écrit : >> My initial reaction to this was negative, but I

[issue4479] True division is not smart -> proposing smart True division

2008-12-01 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le lundi 01 décembre 2008 à 11:15 +, Mark Dickinson a écrit : > My initial reaction to this was negative, but I'm struggling to think of > situations where it would be bad. Consider someone who writes: z = y / x return my_list[z] In al

[issue4479] True division is not smart -> proposing smart True division

2008-12-01 Thread Hatem
Hatem <[EMAIL PROTECTED]> added the comment: On Mon, Dec 1, 2008 at 7:43 AM, Hatem Nassrat <[EMAIL PROTECTED]> wrote: > On Mon, Dec 1, 2008 at 7:15 AM, Mark Dickinson <[EMAIL PROTECTED]> wrote: >> Well, there are precedents: >> > type(2**3) >> > type(2**-3) >> >> >> My initial reaction

[issue4479] True division is not smart -> proposing smart True division

2008-12-01 Thread Hatem
Hatem <[EMAIL PROTECTED]> added the comment: On Mon, Dec 1, 2008 at 7:15 AM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > Well, there are precedents: > type(2**3) > type(2**-3) > > > My initial reaction to this was negative, but I'm struggling to think of > situations where it would be

[issue4479] True division is not smart -> proposing smart True division

2008-12-01 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > Having different result types based on the input > values would not be "smart" in my book, rather "incredibly fragile". Well, there are precedents: >>> type(2**3) >>> type(2**-3) My initial reaction to this was negative, but I'm struggl

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2008-12-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: This is due to the function downcasting the wchar_t values to Py_UNICODE, which is a 2-byte value if you build Python as UCS2 version on Unix. Most Unixes ship with UCS4 builds, so you don't see the problem there. Mac OS X ships with a UC

[issue4479] True division is not smart -> proposing smart True division

2008-12-01 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: This is by design. Having different result types based on the input values would not be "smart" in my book, rather "incredibly fragile". -- nosy: +pitrou resolution: -> invalid status: open -> closed

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2008-12-01 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Just to be clear, the defect in PyUnicode_FromWideChar is present both in Python 2.x and Python 3.x. The problem with command-line arguments only occurs in Python 3.x, since 2.x doesn't use PyUnicode_FromWideChar in converting arguments. I

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-12-01 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: > Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > > Reopening: I reproduce the problem consistently with both 2.6 and trunk > versions (not with python 3.0), on Windows XP. > I think this bug is ONLY with respect to Windows Systems.

[issue4336] Fix performance issues in xmlrpclib

2008-12-01 Thread Simon Cross
Changes by Simon Cross <[EMAIL PROTECTED]>: -- nosy: +hodgestar ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.

2008-12-01 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: -- nosy: +skip.montanaro ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue4336] Fix performance issues in xmlrpclib

2008-12-01 Thread Kristján Valur Jónsson
Kristján Valur Jónsson <[EMAIL PROTECTED]> added the comment: Really? Works for me. Here is a simple patch where we leave the read buffering. passes test_xmlrpclib.py and test_httplib.py Added file: http://bugs.python.org/file12178/xmlrpc_1.patch ___ Pytho

[issue4407] Windows Installer Error 1722 when opting for compilation at install time

2008-12-01 Thread Eric Devolder
Changes by Eric Devolder <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12176/unnamed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4389] Uninstaller Lacks an Icon

2008-12-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: I opened #4480 for the distutils commands. ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg <[EMAIL PROTECTED]>: -- type: -> feature request ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bu

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2008-12-01 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg <[EMAIL PROTECTED]>: Now that #4389 is fixed, it would be nice if the bdist_msi and bdist_wininst created installers could use the same Python icon for their uninstallers. Note that both commands create installers that are prefixed with the Python version,

[issue4479] True division is not smart -> proposing smart True division

2008-12-01 Thread Hatem
New submission from Hatem <[EMAIL PROTECTED]>: A division which results in int, does not produce int ?!? Here is the test case. from __future__ import division assert(isinstance(2 / 1, int)) -- components: Interpreter Core messages: 76679 nosy: nassrat severity: normal status: open tit