[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-04 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-04 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17483] Can not tell urlopen not to check the hostname for https connections.

2013-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc39b8f0348d by Senthil Kumaran in branch '3.3': Issue #17483: 3.3 Branch - Remove unreachable code in urllib.request http://hg.python.org/cpython/rev/fc39b8f0348d -- ___ Python tracker

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-04-04 Thread Todd Rovito
Todd Rovito added the comment: I posted this message on tinter discuss email list: http://mail.python.org/pipermail/tkinter-discuss/2013-March/003415.html -- ___ Python tracker _

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-04 Thread INADA Naoki
Changes by INADA Naoki : -- nosy: +naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue17637] Mention "What's New" in devguide's patch guidelines

2013-04-04 Thread Brett Cannon
New submission from Brett Cannon: http://docs.python.org/devguide/patch.html should mention that What's New should also be considered for updating if a change is either significant or requires potential modification of existing code. -- components: Devguide messages: 186060 nosy: brett

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-04 Thread Brett Cannon
New submission from Brett Cannon: To help with circular imports, IMPORT_FROM should be modified to check sys.modules if a getattr() check fails. http://mail.python.org/pipermail/python-dev/2013-April/125123.html -- components: Interpreter Core messages: 186059 nosy: brett.cannon, pje p

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-04 Thread Chris Calloway
Chris Calloway added the comment: Replaced patch to fix a few under-informative test messages. -- Added file: http://bugs.python.org/file29682/issue-15518-1.patch ___ Python tracker

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-04 Thread Chris Calloway
Changes by Chris Calloway : Removed file: http://bugs.python.org/file29681/issue-15518-1.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-04 Thread Chris Calloway
Chris Calloway added the comment: OK, I got to participate in my Python user group hack night this week where I actually got to work on my projects instead of spending all night helping newbies on their projects. I used the time to refactor all the previous patches for this issue on which I ha

[issue16754] Incorrect shared library extension on linux

2013-04-04 Thread Julian Taylor
Julian Taylor added the comment: just to clarify its not any issue in python, python is working fine with .so The issue is just that theses variables tends to be used by other applications to figure out information on the system (like shared library extension, see numpy.distutils) You certainly

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-04 Thread Chris Calloway
Changes by Chris Calloway : Removed file: http://bugs.python.org/file26635/issue-15518-1.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue16754] Incorrect shared library extension on linux

2013-04-04 Thread Julian Taylor
Julian Taylor added the comment: I'm going by what says in configure: # SHLIB_SUFFIX is the extension of shared libraries The extension of shared libraries on macos is .dylib in most cases (e.g libtool based libraries and as mentioned python itself) Maybe its just a documentation/naming issue.

[issue17615] String comparison performance regression

2013-04-04 Thread Neil Hodgson
Neil Hodgson added the comment: Looking at the assembler output from gcc 4.7 on Linux shows that it specialises the loop 9 times - once for each pair of kinds. This is why there was far less slow-down on Linux. Explicitly writing out the 9 loops is inelegant and would make accurate maintenanc

[issue16754] Incorrect shared library extension on linux

2013-04-04 Thread Matthias Klose
Matthias Klose added the comment: are you speculating, or is your comment based on some testing? MacOS had this value before, and apparently it did work before that change. -- ___ Python tracker __

[issue9253] argparse: optional subparsers

2013-04-04 Thread Sebastien Luttringer
Sebastien Luttringer added the comment: I got the same issue that mike bayer with argparse doesn't throw error when subparser are missing. Is it a bug which should be fixed in Python or in all python script? This sounds like an API break. -- nosy: +seblu _

[issue10740] sqlite3 module should allow DDL statements in transactions

2013-04-04 Thread mike bayer
Changes by mike bayer : -- nosy: +zzzeek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue17365] Remove Python 2 code from test_print

2013-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Berker -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue17365] Remove Python 2 code from test_print

2013-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 178075fbff3a by Andrew Svetlov in branch 'default': #17365: Remove Python 2 code from test_print http://hg.python.org/cpython/rev/178075fbff3a -- nosy: +python-dev ___ Python tracker

[issue16754] Incorrect shared library extension on linux

2013-04-04 Thread Julian Taylor
Julian Taylor added the comment: is SHLIB_SUFFIX=".so" really correct on mac? shared libraries have .dylib extension, loadable modules have .so (which would be EXT_SUFFIX?) e.g libpython itself uses .dylib. -- nosy: +jtaylor108 ___ Python tracker

[issue17365] Remove Python 2 code from test_print

2013-04-04 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the reviews. Patch updated. Éric, since the test file is relatively small, I went ahead and made some cosmetic fixes, but I can open a new issue for them :) -- Added file: http://bugs.python.org/file29680/test_print_v2.diff _

[issue17634] Win32: shutil.copy leaks file handles to child processes

2013-04-04 Thread R. David Murray
R. David Murray added the comment: Unless I'm misunderstanding something, this has already been fixed in python3, where subprocess closes any open files (other than stdin/stdout/stderr) by default. In Python2.7 (and possibly earlier, I haven't checked) you can get the same effect by specifyin

[issue17634] Win32: shutil.copy leaks file handles to child processes

2013-04-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo, hynek, sbt, tarek versions: +Python 3.4 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___ __

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2013-04-04 Thread paul j3
paul j3 added the comment: Looking further at test_argparse.py, I should say that the behavior of multiple positionals when there is one cluster of positional argstrings is well illustrated in the tests. It's the behavior when there are multiple clusters (interspersed positionals) that can go

[issue17628] str==str: compare the first and last character before calling memcmp()

2013-04-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.04.2013 19:00, Eric Snow wrote: > > Eric Snow added the comment: > >> Marc-Andre Lemburg added the comment: >> Same here. The heuristic may work for short strings that easily fit >> into the CPU cache, but as soon as you use it on longer strings, >> t

[issue17628] str==str: compare the first and last character before calling memcmp()

2013-04-04 Thread Eric Snow
Eric Snow added the comment: > Marc-Andre Lemburg added the comment: > Same here. The heuristic may work for short strings that easily fit > into the CPU cache, but as soon as you use it on longer strings, > this will result in much slower comparisons. When testing both, would it help to test th

[issue17635] Doc of multiprocessing.connection mentions answerChallenge instead of answer_challenge

2013-04-04 Thread Antony Lee
New submission from Antony Lee: The documentation for multiprocessing.connection mentions the answerChallenge function, but it is actually called answer_challenge in 2.6, 2.7 and 3.3 -- I guess it's also the case in 3.1 and 3.2 but I didn't check. -- assignee: docs@python components: D

[issue1387483] sys.path[0] when executed thru a symbolic link

2013-04-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: There is no "binary" here contributing to the problem. The particular case is a the hadoop runtime engine which creates a "virtual" folder of your working directory. We have set up a directory of .py files: foo/ a.py b.py c.py The hadoop job is t

[issue17634] Win32: shutil.copy leaks file handles to child processes

2013-04-04 Thread Andrej Krpic
New submission from Andrej Krpic: Function shutil.copy opens source file with open('rb') and destination file with open('wb') and then proceeds to copy the content. If you create child process from the same python process during that time, that process will inherit open file handles. This cou

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just discovered that on Windows, the 3rd help option "Python Docs - F1" opens the local doc set whatever.chm in the Windows Help (HTML) Viewer. This is the same as the start menu choice. So on Windows, opening the same offline copy to the IDLE page, if possi

[issue1387483] sys.path[0] when executed thru a symbolic link

2013-04-04 Thread Charles-François Natali
Charles-François Natali added the comment: > You would have expected "/home/kristjan/pydir" since this is the > apparent directory of the file. That's questionable. You usually have the libraries along with the binary: that's for example the case when you do a CPython checkout. Changing this t

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2013-04-04 Thread Éric Araujo
Éric Araujo added the comment: >From Python’s viewpoint this is closed, please follow up on the Debian bug >tracker. -- ___ Python tracker ___ __

[issue1387483] sys.path[0] when executed thru a symbolic link

2013-04-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: The haddoop thingie in question is called cloudera CDH4 -- ___ Python tracker ___ ___ Pyth

[issue17386] Bring Doc/make.bat as close to Doc/Makefile as possible

2013-04-04 Thread Zachary Ware
Zachary Ware added the comment: Any comments? Christian, I'd especially like to hear from you since it looks like you were the original author of Doc/make.bat (issue1472). -- ___ Python tracker __

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-04-04 Thread Zachary Ware
Zachary Ware added the comment: Defaulting to opening a browser window sounds great to me. In those cases where there is no network access, though, I think we should keep a fallback help.txt, and I think the Sphinx text rendering is about the simplest and easiest fallback we can get. Shall w

[issue1387483] sys.path[0] when executed thru a symbolic link

2013-04-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Just came across this when running hadoop jobs it takes your .py script folder, puts each file in its own cache folder, then recreates the script folder populating it with individual symlinks. When run like this, the scripts can no longer import each oth

[issue6143] IDLE - an extension to clear the shell window

2013-04-04 Thread Roger Serwy
Roger Serwy added the comment: In #17632, Raymond suggests adding a "Restart and Clear" menu item under the Shell menu. -- nosy: +rhettinger ___ Python tracker ___ __

[issue17632] IDLE: Add clear-window option to the Shell menu.

2013-04-04 Thread Roger Serwy
Roger Serwy added the comment: This is a different spin on issue6143. Here the suggestion is to combine the clear function with the restart option for a new menu option. I am closing this one as a duplicate of #6143, but adding the Shell "restart and clear" suggestion. -- nosy: +roger

[issue1721083] Add File - Reload

2013-04-04 Thread Roger Serwy
Roger Serwy added the comment: Raymond, I can pick this up. I might as well work on #6699 at the same time. -- ___ Python tracker ___ __

[issue6699] IDLE: Warn user about overwriting a file that has a newer version on filesystem

2013-04-04 Thread Roger Serwy
Changes by Roger Serwy : -- assignee: -> roger.serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-04 Thread Eric V. Smith
Eric V. Smith added the comment: Could you construct a test (that would fail without your patch)? Thanks. -- ___ Python tracker ___ _

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-04 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2013-04-04 Thread Marten Lehmann
Marten Lehmann added the comment: Could you please tell me, in which exact release or commit this is resolved? I'm using Python 3.3.0 on Ubuntu Precise and I noticed like the others, that e.g. easy_install and pip are installed to venv/local/bin instead of venv/bin and the site-packages folder

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-04 Thread Phil Connell
Changes by Phil Connell : -- nosy: +isoschiz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the confirmation! -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Martin Gfeller
Martin Gfeller added the comment: Sorry for passing on my confusion, and thanks for your help! There was indeed an old python.dll lying in one of the places Windows likes to put DLLs. Deleting it resolved the problem. Thanks again and sorry to use your valuable time. Best regards, Martin --

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-04-04 Thread Phil Connell
Phil Connell added the comment: I've raised issue17633 to track the issue in my last message. -- ___ Python tracker ___ ___ Python-bug

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-04 Thread Phil Connell
New submission from Phil Connell: Only one level of namespace package nesting is handled correctly: $ unzip -l foo.zip Archive: foo.zip Length DateTimeName - -- - 0 2013-04-03 17:28 a/b/c/foo.py 0 2013-04-03 17:34 a/ 0 20

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Ezio Melotti
Ezio Melotti added the comment: IIRC a few days ago I've seen a similar issue and the cause was that they did something wrong while porting the rc to Debian, but I don't remember the details. If I'm not mistaken they also fixed it shortly after. -- ___

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Georg Brandl
Georg Brandl added the comment: Just tested with 2.7.4rc1 32bit on Windows 7; no problem here. I suspect your 2.7.4rc1 install picks up a python27.dll from an earlier version. -- resolution: -> fixed status: open -> pending ___ Python tracker

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Georg Brandl
Georg Brandl added the comment: And this happens when you simply start Python, not executing any code? Can you start with "python -S", then do "import _sre", and see if it has a _sre.MAXREPEAT attribute? -- ___ Python tracker

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Martin Gfeller
Martin Gfeller added the comment: @Georg, the referenced Debian issue (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704084) already contains the stack. -- ___ Python tracker __

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Georg Brandl
Georg Brandl added the comment: "Python refuses to start." is not a very good description. * What script are you running/module are you importing? * What is the traceback/error message? -- ___ Python tracker _

[issue17628] str==str: compare the first and last character before calling memcmp()

2013-04-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.04.2013 11:21, STINNER Victor wrote: > > STINNER Victor added the comment: > > By the way, my initial concern was to merge unicode_compare_eq() and > unicode_eq() functions. > > unicode_compare_eq() only uses memcmp(), whereas unicode_eq() checks > i

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread STINNER Victor
STINNER Victor added the comment: "Python refuses to start. 2.7.4.rc1 Windows 32-bit." Oh oh. I reopen the issue and set its priority to release blocker. -- nosy: +benjamin.peterson, georg.brandl, larry priority: normal -> release blocker resolution: fixed -> status: closed -> open __

[issue17628] str==str: compare the first and last character before calling memcmp()

2013-04-04 Thread STINNER Victor
STINNER Victor added the comment: By the way, my initial concern was to merge unicode_compare_eq() and unicode_eq() functions. unicode_compare_eq() only uses memcmp(), whereas unicode_eq() checks if the first byte is different before calling memcmp(). So the question is to decide which one is fa

[issue17628] str==str: compare the first and last character before calling memcmp()

2013-04-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.04.2013 10:33, STINNER Victor wrote: >>> I don't understand why the patch makes the comparaison much slower, >>> since most time is supposed to be spend in memcmp()? >> >> Because reading the last character evicts useful data from the CPU cache, >> jus

[issue17625] IDLE regression -- Search and Replace Window doesn't automatically clear

2013-04-04 Thread Georg Brandl
Georg Brandl added the comment: Done, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6743] Add function compatible with print to pprint module

2013-04-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: -1 from me as well. Such kind of debatable (in terms of usefulness and inclusion) things are usually better off being served by a custom function in user's code. -- ___ Python tracker

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-04-04 Thread Martin Gfeller
Martin Gfeller added the comment: I see (under Windows) the same symptoms as reported for Debian under http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704084. Python refuses to start. 2.7.4.rc1 Windows 32-bit. -- nosy: +Martin.Gfeller ___ Python

[issue17628] str==str: compare the first and last character before calling memcmp()

2013-04-04 Thread STINNER Victor
STINNER Victor added the comment: > In other words, I'm not convinced this is a useful heuristic. Me neither, but we should use the same optimization strategy for all functions. If we don't compare first and/or last character for str==str, we should do the same for bytes==bytes and Py_UNICODE_MA

[issue17094] sys._current_frames() reports too many/wrong stack frames

2013-04-04 Thread Charles-François Natali
Charles-François Natali added the comment: > Here is an updated patch. _PyThreadState_DeleteExcept uses HEAD_LOCK: ISTM that PyThreadState_Clear() can trigger arbitrary code execution: if a thread ends up being created/destroyed, I think we can get a deadlock when trying to acquire the head lock

[issue17615] String comparison performance regression

2013-04-04 Thread STINNER Victor
STINNER Victor added the comment: "For 32-bit Windows, the code generated for unicode_compare is quite slow. There are either 1 or 2 kind checks in each call to PyUnicode_READ (...)" Yes, PyUnicode_READ() *is* slow. It should not be used in a loop. And unicode_compare() uses PyUnicode_READ() in