[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-07-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21918] Convert test_tools to directory

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e69f037332a6 by Zachary Ware in branch '3.4': Issue #21918: Convert test_tools.py to a sub-package of test. http://hg.python.org/cpython/rev/e69f037332a6 New changeset 1d0ca204c36f by Zachary Ware in branch 'default': Issue #21918: Convert test_tool

[issue21918] Convert test_tools to directory

2014-07-16 Thread Zachary Ware
Zachary Ware added the comment: Committed, thanks for the reviews! I had modeled load_tests after test_json's load_tests. The idiom used in test_email causes a warning from regrtest about sys.path being modified, so I modified the idiom slightly and used that. I have declined to backport the

[issue21044] tarfile does not handle file .name being an int

2014-07-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17391] _cursesmodule Fails to Build on GCC 2.95 (static)

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a review of the one line patch please. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker ___ ___

[issue17924] Deprecate stat.S_IF* integer constants

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Should this have the same nosy list as #11016 ? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Pyth

[issue17480] pyvenv should be installed someplace more obvious on Windows

2014-07-16 Thread Zachary Ware
Zachary Ware added the comment: I think a pyvenv.exe would be overkill, but I think it would be reasonable to install the pyvenv script to \Scripts rather than \Tools\Scripts, possibly as both 'pyvenv.py' and 'pyvenv-X.Y.py'. Personally, I still prefer 'py -3 -m venv', but I understand the ar

[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2014-07-16 Thread Milan Oberkirch
Milan Oberkirch added the comment: Note that in this (and my previous) patch the message is sent to the client (the idea was not to raise an exception). Maybe it would be better to raise an exception with the information you mentioned? -- Added file: http://bugs.python.org/file35975/s

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-07-16 Thread Brendan Moloney
Brendan Moloney added the comment: Here is a script illustrating the issue. -- Added file: http://bugs.python.org/file35976/tarfile_issue.py ___ Python tracker ___ __

[issue13041] argparse: terminal width is not detected properly

2014-07-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag type: behavior -> enhancement versions: +Python 3.5 -Python 3.3 ___ Python tracker ___

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho
Lita Cho added the comment: Okay, sounds good. I will also create a patch in the documentation that explains this, as well as comment on the regex patch. -- ___ Python tracker _

[issue19355] Initial modernization of OpenWatcom support

2014-07-16 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: This patch is so old at this point, it doesn't apply. Obviously its contents are of no interest to anyone. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2014-07-16 Thread R. David Murray
R. David Murray added the comment: No, I think the error return is better. Crashing the server on bad input data (which, worse, could be perfectly valid if the server were standards compliant) is a bad thing, I think. That is, if someone has an application that actually works with decode_dat

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2014-07-16 Thread Zachary Ware
Zachary Ware added the comment: Terry: the difference you saw between using regrtest and using unittest.main from the interactive prompt was because of regrtest.saved_test_environment: tkinter._fix sets environment variables at the beginning of one test which are cleared at the end by saved_te

[issue21992] New AST node Else() should be introduced

2014-07-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Where do we stand with this and #14945 ? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ _

[issue13850] Summary tables for argparse add_argument options

2014-07-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue14945] Setup & Usage documentation for selected stdlib modules

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Where do we stand with this and #11260 ? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker _

[issue18355] Merge super() guide into documentation

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Raymond what is your opinion on this proposal? -- nosy: +BreamoreBoy type: -> enhancement versions: +Python 3.5 ___ Python tracker ___

[issue21059] idle_test.test_warning failure

2014-07-16 Thread Zachary Ware
Zachary Ware added the comment: I believe I eventually figured out the reason for the failure, it had to do with the fact that the Tcl/Tk DLLs were copied into PCbuild to avoid adding ..\tcltk[64]\bin to PATH and the persistent issue that tkinter._fix changes environment variables to make init

[issue13540] Document the Action API in argparse

2014-07-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: That's interesting that there's activity on this again. I had forgotten I'd filed it. It's particularly timely, as I just yesterday had this experience again. I looked at the documentation and found it inadequate for me to understand how to implement a custom

[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2014-07-16 Thread Milan Oberkirch
Milan Oberkirch added the comment: Agreed. It just feels a bit weird to send programming instructions for the server to the client (but it's probably the best we can do here). -- ___ Python tracker ___

[issue21044] tarfile does not handle file .name being an int

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 308f3c1e36d3 by Serhiy Storchaka in branch '2.7': Issue 21044: tarfile.open() now handles fileobj with an integer 'name' http://hg.python.org/cpython/rev/308f3c1e36d3 New changeset d6b71971b228 by Serhiy Storchaka in branch '3.4': Issue 21044: tarfi

[issue21992] New AST node Else() should be introduced

2014-07-16 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18320] idle, pydoc search python on wrong path at make altinstall with different exec- and prefix e.g. $HOME

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Terry is this something you can comment on please? -- nosy: +BreamoreBoy, terry.reedy ___ Python tracker ___ ___

[issue21918] Convert test_tools to directory

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks for your patch. Do you want to correct test_json's and others load_tests? -- ___ Python tracker ___ __

[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2014-07-16 Thread R. David Murray
R. David Murray added the comment: Oh, that's a good point, I hadn't thought of that. Maybe I can come up with a better wording. -- ___ Python tracker ___ _

[issue21918] Convert test_tools to directory

2014-07-16 Thread Zachary Ware
Zachary Ware added the comment: Sure, I'll work on that some time this week. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21044] tarfile does not handle file .name being an int

2014-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with rewritten tests. Thank you for your contribution Martin. > I ran into a related issue with the gettarinfo() method. Would that fall > under the scope of this bug, or should I raise a separate one? Yes, this looks as a separate bug. --

[issue18330] Fix idlelib.PyShell.build_subprocess_arglist use of __import__

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Terry just a reminder for yourself and your band of merry men and women. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue18392] Doc: PyObject_Malloc() is not documented

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Any volunteers to document what appears to be a relatively obscure function :) -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___

[issue21935] Implement AUTH command in smtpd.

2014-07-16 Thread Milan Oberkirch
Milan Oberkirch added the comment: We could solve issue 8503 at the same time by always calling 'accept_recipient(mailfrom, rcptto, user=None)' and providing a default implementation for backwards compatibility. -- ___ Python tracker

[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Wolfgang Maier
New submission from Wolfgang Maier: >>> l = [False, True] >>> l.index(True) 1 >>> l.index(False) 0 good, but: >>> l = ['a', '', {}, 2.7, 1, 0, False, True] >>> l.index(True) 4 >>> l.index(False) 5 Apparently, True and False get converted to int in comparisons to ints. I would expect items to b

[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Ezio Melotti
Ezio Melotti added the comment: It's using __eq__: >>> l = [3, 1.0, 5, True, 7, 1] >>> l.index(1) 1 >>> l.index(True) 1 >>> l.index(1.0) 1 >>> True == 1 == 1.0 True -- nosy: +ezio.melotti resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Wolfgang Maier
Wolfgang Maier added the comment: No, it's not that simple and I don't think this should be closed: In my example: >>> l = ['a', '', {}, 2.7, 1, 0, False, True] >>> l.index(True) 4 >>> l.index(False) 5 if using __eq__ consistently, you'd expect the first call to return 0 and the second 1 (sinc

[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Ezio Melotti
Ezio Melotti added the comment: 'a' evaluates to true, but it's not equal to True: >>> bool('a') True >>> 'a' == True False but 1 and True are equal (for historical reasons): >>> 1 == True True Similarly '' evaluates to false, but it's not equal to False: >>> bool('') False >>>

[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Wolfgang Maier
Wolfgang Maier added the comment: Right, forgot about that. The consequence for the example is still far from satisfying, I think, but you can't change it without breaking compatibility then. Thanks for the quick reply, Wolfgang -- ___ Python track

[issue14285] Traceback wrong on ImportError while executing a package

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: I've no idea what having a file called __main__.py is likely to do so can someone comment please. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue14689] make PYTHONWARNINGS variable work in libpython

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a patch review please, I'm not touching C code at that level within Python. Are people happy with the concept of moving code from main.c to pythonrun.c ? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 _

[issue21994] Syntax error in the ssl module documentation

2014-07-16 Thread Alex Gaynor
New submission from Alex Gaynor: This can be seen at https://docs.python.org/3.4/library/ssl.html#ssl.SSLContext.check_hostname It looks like the colon should be omitted, and the next line un-indented. -- assignee: docs@python components: Documentation keywords: easy messages: 223291 n

[issue21995] Idle: pseudofiles have no buffer attribute.

2014-07-16 Thread Terry J. Reedy
New submission from Terry J. Reedy: sys.stdin on 3.4.1 is also 'missing' (among public names) 'line_buffering' (True) and 'mode' ('r'). It seems that these could be trivially added, so the focus of this issue is 'buffer'. The associated .detach method is a no-op, (It is also a bit dangerous fo

[issue18320] idle, pydoc search python on wrong path at make altinstall with different exec- and prefix e.g. $HOME

2014-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3 only gets security fixes. This looks to be a linux altinstall installation problem rather than an idle problem. Idle and pydoc only start if Python starts first. One way to start idle is to start Python and then enter 'import idlelib.idle'. How did you s

[issue18330] Fix idlelib.PyShell.build_subprocess_arglist use of __import__

2014-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The problem with touching this stuff is that there is not only not an automatec test, there is not even a script for a manual test. -- ___ Python tracker _

[issue21941] Clean up turtle TPen class

2014-07-16 Thread ingrid
ingrid added the comment: Ah, I think I was mistaken about some things when I made the first patch but it looks like TPen have a few methods that don't work as you'd expect. Since _colorstr isn't implemented on TPen fillcolor and pencolor pen don't work as intended when you call them directly

[issue10305] Cleanup up ResourceWarnings in multiprocessing

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: I've looked at managers.py and can't see any evidence that the sockets are ever closed. Please check this out as I can't believe that a technical problem like this could have been around for so long without someone else spotting it during testing, thus meaning

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho
Lita Cho added the comment: Here is a patch for test_imaplib.py, adding the test for brackets. It should fail with the current version of imaplib, but should pass with the imap_regex.patch. -- Added file: http://bugs.python.org/file35977/test_imaplib.patch

[issue13041] argparse: terminal width is not detected properly

2014-07-16 Thread paul j3
paul j3 added the comment: The latest patch, using _shutil.get_terminal_size(), looks fine. It lets environ['COLUMNS'] have priority over the end user's terminal width, as demonstrated by the change to test_argparse. test_argparse doesn't test changing the actual terminal size, but I imagin

[issue9949] os.path.realpath on Windows does not follow symbolic links

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Zach can you do a patch review on this as it's holding up #13837 ? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue15411] os.chmod() does not follow symlinks on Windows

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a patch review on this please as it's holding up #13837. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker _

[issue13837] test_shutil fails with symlinks enabled under Windows

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: I've asked for patch reviews on #9949 and #15411. -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Py

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho
Lita Cho added the comment: Updated the documentation in imaplib.rst to describe the RFC violation. -- versions: -Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35978/imap_doc.patch ___ Python tracker

[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho
Lita Cho added the comment: Updated my regex patch to include a comment about how we are violating the RFC and allowing all characters rather thane excluding the ] character. -- Added file: http://bugs.python.org/file35979/imap_regex.patch ___ Python

[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Thomas Kluyver
Thomas Kluyver added the comment: The module docs do mention "Older SQLite versions had issues with sharing connections between threads." Presumably that means that sharing the connection between threads is safe so long as you're not using 'older versions', but it would be nice to have some mo

[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Thomas Kluyver
Thomas Kluyver added the comment: This page also looks relevant: sqlite can be compiled or used in three different threading modes. Presumably Python compiles/initialises it in the serialised mode, which makes it safe to use a connection from different threads. http://www.sqlite.org/threadsafe

[issue18320] python installation is broken if prefix is overridden on an install target

2014-07-16 Thread Ned Deily
Ned Deily added the comment: The problem you see is being caused by trying to override "prefix" on the "altinstall" or "install" targets. While Makefiles for many products will let you do that successfully, you really can't do that with Python's. Unfortunately, the values for "prefix" and "e

[issue1598] unexpected response in imaplib

2014-07-16 Thread Lita Cho
Lita Cho added the comment: Has this been determine as a server bug or a bug with imaplib? I am not able to reproduce this bug with Gmail. Do I need to use it with Lotus Server to recreate it? -- nosy: +Lita.Cho ___ Python tracker

[issue21994] Syntax error in the ssl module documentation

2014-07-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0045eec1e247 by Berker Peksag in branch '3.4': Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation. http://hg.python.org/cpython/rev/0045eec1e247 New changeset 8039a20b18cc by Berker Peksag in branch 'default': Issue #21994:

[issue21994] Syntax error in the ssl module documentation

2014-07-16 Thread Berker Peksag
Berker Peksag added the comment: Fixed. Thanks for the report. -- assignee: docs@python -> berker.peksag nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue17101] __main__.py Multiprocessing on Windows

2014-07-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue18355] Merge super() guide into documentation

2014-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll translate it into a How-to guide when I get a chance. Right now, the content is in great shape, but the tone is somewhat "blog-posty". For now, the external link will have to suffice. -- priority: normal -> low __

[issue18355] Merge super() guide into documentation

2014-07-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +gvanrossum, rhettinger, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Tim Peters
Tim Peters added the comment: I'm afraid "microoptimizations" aren't worth measuring to begin with, since, well, they're "micro" ;-) Seriously, switch compilers, compilation flags, or move to a new release of a single compiler, and a micro-optimization often turns into a micro-pessimization.

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: I don't see the value in this complication. Please close as won't fix. -- nosy: +Guido.van.Rossum ___ Python tracker ___ _

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: (Had to switch identities to close it.) -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue21868] Tbuffer in turtle allows negative size

2014-07-16 Thread Jessica McKellar
Changes by Jessica McKellar : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue3068] IDLE - Add an extension configuration dialog

2014-07-16 Thread Tal Einat
Tal Einat added the comment: Bah, my original message was truncated! I could use some help figuring out how to test with various Tk versions. I have a Mac with OSX 10.8, and I've found the "IDLE and tkinter with Tcl/Tk on Mac OS X" page[1], but I'm still not sure how to actually go about insta

[issue3068] IDLE - Add an extension configuration dialog

2014-07-16 Thread Ned Deily
Ned Deily added the comment: Tal, I'm working on something to make that easier. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-07-16 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file35980/test2.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-07-16 Thread Martin Panter
Martin Panter added the comment: Added a new test for the invalid response case. Now both tests are included in test2.patch. I separated the actual fix into a separate close3.4.patch (refreshed for the 3.4 branch). This way it is easier for me to make sure the tests work before applying the f

<    1   2