[issue15189] tkinter.messagebox does not use the application's icon

2012-07-09 Thread Mark Summerfield

Mark Summerfield  added the comment:

On Linux & Windows every top-level window (including dialogs) normally has an 
icon at the left of the title bar. Typically this icon is the application's 
icon. But tkinter doesn't provide such an icon and so a system default icon is 
used instead. For one's own code this can be fixed by using the iconbitmap() 
function, but for the tkinter convenience dialogs (e.g., askyesno()), this 
cannot be done. So, my suggestion is to make the convenience dialogs use the 
same icon as the application (if the application has one).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15303] Minor revision to the method in Tkinter

2012-07-09 Thread Drew French

New submission from Drew French :

In the  method,  is evaluated as a Boolean (when 
Tkinter attempts to find a parent for the widget). I think it should really be 
evaluated against , seeing as that is the default  keyword 
argument value for most widgets. I ran into problems with this when making a 
container widget class that inherited from the , then implementing the 
<__len__> magic method. When the length was zero the widget would evaluate as 
false, which would prevented me from packing widgets inside my container widget.

I attached a revised version of the method.

--
components: Tkinter
files: tkbugfix.py
messages: 165070
nosy: Drew.French
priority: normal
severity: normal
status: open
title: Minor revision to the  method in Tkinter
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file26326/tkbugfix.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15279] Spurious unittest warnings

2012-07-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Unfortunately, exactly the same thing happens with

== CPython 3.3.0b1 (default:464c6a50b0ce, Jul 9 2012, 09:26:07) [GCC 4.2.1 
Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.61)]
==   Darwin-11.4.0-x86_64-i386-64bit little-endian
==   
/Users/ambv/Documents/Projekty/Python/cpython/py33/build/test_python_37987
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, 
optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, 
ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1)

What's interesting is that test_warnings itself works as advertised and it's 
only Lib/unittest/test/_test_warnings.py that misbehaves.

On my friend's 10.7 machine everything runs fine with a little older Clang:

== CPython 3.3.0b1 (default, Jul 9 2012, 09:52:57) [GCC 4.2.1 Compatible 
Apple Clang 3.0 (tags/Apple/clang-211.12)]
==   Darwin-11.4.0-x86_64-i386-64bit little-endian
==   /Users/sheep/dev/python/cpython-464c6a50b0ce/build/test_python_7695
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, 
optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, 
ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1)

Will investigate further.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15283] pyvenv says nothing on success

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset baf5ed391a7f by Vinay Sajip in branch 'default':
Issue #15283: Updated pyvenv documentation to expand on activation.
http://hg.python.org/cpython/rev/baf5ed391a7f

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15189] tkinter.messagebox does not use the application's icon

2012-07-09 Thread Drew French

Drew French  added the comment:

This is also true for some of the other dialogs (such as the file dialogs). 

Does anyone know if this behavior can be changed in Tk itself?

--
nosy: +Drew.French

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-09 Thread Tim Golden

Tim Golden  added the comment:

Could you create a failing test, please, Tim S?

--
nosy: +tim.golden

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15279] Spurious unittest warnings

2012-07-09 Thread Chris Jerdonek

Changes by Chris Jerdonek :


--
nosy: +cjerdonek

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15304] Wrong path in test.support.temp_cwd() error message

2012-07-09 Thread Chris Jerdonek

New submission from Chris Jerdonek :

test.support.temp_cwd() has a typo (s/name/path/):

try:
os.chdir(path)
except OSError:
if not quiet:
raise
warnings.warn('tests may fail, unable to change the CWD to ' + name,
  RuntimeWarning, stacklevel=3)

--
components: Tests
keywords: easy
messages: 165075
nosy: cjerdonek
priority: normal
severity: normal
status: open
title: Wrong path in test.support.temp_cwd() error message
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-09 Thread Ramchandra Apte

Ramchandra Apte  added the comment:

BTW, type(0) should be replaced with int in the code.

--
nosy: +ramchandra.apte

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15305] Test harness unnecessarily disambiguating twice

2012-07-09 Thread Chris Jerdonek

New submission from Chris Jerdonek :

It seems like our test harness is disambiguating more than it needs to for 
parallel testing.

In Lib/test/regrtest.py, we do this--

# Define a writable temp dir that will be used as cwd while running
# the tests. The name of the dir includes the pid to allow parallel
# testing (see the -j option).
TESTCWD = 'test_python_{}'.format(os.getpid())
...
with support.temp_cwd(TESTCWD, quiet=True):
main()

And then in Lib/test/support.py, we are doing this--

# Disambiguate TESTFN for parallel testing, while letting it remain a valid
# module name.
TESTFN = "{}_{}_tmp".format(TESTFN, os.getpid())

with uses like--

with open(TESTFN, "wb") as f:
# Do stuff with f.

It seems like only one of these measures should be necessary (a single working 
directory for all parallel tests using a disambiguated TESTFN, or one working 
directory for each process with a non-disambiguated TESTFN).

--
components: Tests
keywords: easy
messages: 165077
nosy: cjerdonek
priority: normal
severity: normal
status: open
title: Test harness unnecessarily disambiguating twice
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15305] Test harness unnecessarily disambiguating twice

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

The former option seems to make more sense to me (a single working directory 
for all parallel tests using a disambiguated TESTFN).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

After this patch, it's clear that TEMPDIR and TESTCWD no longer have to be 
global variables.

I can make that a separate issue after this one.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15304] Wrong path in test.support.temp_cwd() error message

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

Adding failing test.

--
keywords: +patch
stage:  -> needs patch
Added file: http://bugs.python.org/file26327/issue-15304-failing-test.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15304] Wrong path in test.support.temp_cwd() error message

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

Attaching fix.

--
stage: needs patch -> patch review
Added file: http://bugs.python.org/file26328/issue-15304-fix.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15297] pkgutil.iter_importers() includes an ImpImporter

2012-07-09 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15299] pkgutil.ImpImporter(None).iter_modules() does not search sys.path

2012-07-09 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15299] pkgutil.ImpImporter(None).iter_modules() does not search sys.path

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

I'm working on a test for this.

--
stage:  -> test needed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15299] pkgutil.ImpImporter(None).iter_modules() does not search sys.path

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

Add failing tests.

--
keywords: +patch
stage: test needed -> needs patch
Added file: http://bugs.python.org/file26329/issue-15299-failing-test.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15262] Idle does not show traceback in other threads

2012-07-09 Thread Mark

Mark  added the comment:

Yay!  I can't wait :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light

Ztatik Light  added the comment:

Crash happens in FT_Request_Size and seems to have been addressed by someone 
working at SFML:

http://en.sfml-dev.org/forums/index.php?topic=2208.0

[Backtrace attached as 'backtrace.txt']

--
Added file: http://bugs.python.org/file26331/backtrace.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-09 Thread Ronald Oussoren

New submission from Ronald Oussoren :

The attached patch ensures that "python3.3 -mvenv --symlinks myenv" works with 
framework builds.

There are two functional changes:
1) don't call 'realpath' in pythonw.c because realpath resolves
   symlinks and that breaks the '--symlinks' options because the
   python command is a symlink with that option (and resolving that
   gives the path to the python executable in the framework)

2) Look for the __PYVENV_LAUNCHER__ environment variable in
   Modules/getpath.c and use that in preference on the already
   calculated value of argv0_path. That code is only active for
   framework builds

I'm not happy with the following line in this patch:

+wcsncpy(argv0_path, (wchar_t*)pyvenv_launcher, MAXPATHLEN);

That mirrors a similar cast of the result of NSLibraryNameForModule earlier in 
Modules/getpath.c, but in both cases the input stream is a narrow character 
string ("char", not "wchar_t") and wcsncpy expects a "wchar_t". The the cast 
seems to paper over a real problem here.

Shouldn't both lines use "_Py_char2wchar" to convert the char* buffer to a 
wchar_t* one?

--
assignee: ronaldoussoren
components: Library (Lib), Macintosh
files: venv-symlinks.txt
keywords: needs review, patch
messages: 165087
nosy: ronaldoussoren
priority: normal
severity: normal
status: open
title: Patch for --symlink support in pyvenv with framework python
versions: Python 3.3
Added file: http://bugs.python.org/file26332/venv-symlinks.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-09 Thread Ronald Oussoren

Changes by Ronald Oussoren :


--
nosy: +ned.deily, vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light

Ztatik Light  added the comment:

I think this is the related SFML fix patch commit:

https://github.com/LaurentGomila/SFML/commit/da5ac8a9512885c5b245a24915733c3b26f689b7

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

How is the fix related to Python?

Also, you pass a unicode string to freetype.FT_New_Face.
You should probably pass a bytes string there, and in any case set the 
"argtypes" and "restypes" attributes to ctypes functions, to prevent such 
failures.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light

Ztatik Light  added the comment:

Mmmm. The fix isn't necessary related to python at all but I figured might 
potentially AIDE in a python fix. Also, I'm not passing a unicode string... 
that says '/u' not '\u' ... Also, I tried setting res/argtypes but to no avail.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light

Ztatik Light  added the comment:

Ooo ... using bytes() DID seem to help. HAHA?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

In Python2, strings are bytes; in Python3, they are unicode.  You need to use 
the b'' syntax.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-09 Thread Tim Smith

Tim Smith  added the comment:

Here is a program that demonstrates the problem:

import httplib
import tempfile

f = tempfile.TemporaryFile()
f.write("Hello, Temporary File!")
f.seek(0)

c = httplib.HTTPConnection('bugs.python.org')
c.request('POST', '/', f, {'Content-type' : 'application/octet-stream'})

r = c.getresponse()
print r.status, r.reason

The expected output is "200 OK", and that's what happens on Mac and almost 
certainly on Linux. On Windows, this is the result:

Traceback (most recent call last):
  File "bad.py", line 9, in 
c.request('POST', '/', f, {'Content-type' : 'application/octet
  File "C:\Python27\lib\httplib.py", line 958, in request
self._send_request(method, url, body, headers)
  File "C:\Python27\lib\httplib.py", line 989, in _send_request
self._set_content_length(body)
  File "C:\Python27\lib\httplib.py", line 964, in _set_content_len
thelen = str(len(body))
  File "C:\Python27\lib\tempfile.py", line 383, in __getattr__
a = getattr(file, name)
AttributeError: 'file' object has no attribute '__len__'

Changing the lines:

f = tempfile.TemporaryFile()
f.write("Hello, Temporary File!")
f.seek(0)

to:

f = open("temp.file", "w+")
f.write("Hello, Less Temporary File!")
f.seek(0)

makes it work on Windows.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14787] pkgutil.walk_packages returns extra modules

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

So the lack of output in 3.3 is not surprising as walk_packages() won't work 
with the new import implementation as it relies on a non-standard method on 
loaders that import does not provide.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15297] pkgutil.iter_importers() includes an ImpImporter

2012-07-09 Thread Ronan Lamy

Ronan Lamy  added the comment:

AFAICT, the intent of this function was to help provide a fully PEP-302 
compliant import process wrapping the builtin C-implemented import mechanism. 
Nowadays, I believe that iterating over sys.meta_path should probably be enough.

--
nosy: +Ronan.Lamy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Ronan Lamy

Ronan Lamy  added the comment:

It seems that most, if not all, uses of "importer" in pkgutil refer to finders, 
e.g. ImpImporter is a actually only a finder, not an importer. So 
s/importer/finder/ is needed, and perhaps also a note explaining that 
ImpImporter isn't in fact an importer, in addition to glossary links.

--
nosy: +Ronan.Lamy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15256] Typo in error message

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 75831951a6b5 by Brett Cannon in branch 'default':
Issue #15256: Re-use the ImportError exception message as defined by
http://hg.python.org/cpython/rev/75831951a6b5

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15256] Typo in error message

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

Thanks for the patch, Marc!

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15297] pkgutil.iter_importers() includes an ImpImporter

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

Marking this a documentation issue because the same behavior is also present in 
2.7:

Python 2.7.3 (default, Apr 19 2012, 00:55:09) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
>>> from pkgutil import iter_importers
>>> list(iter_importers())[-1]


--
assignee:  -> docs@python
components: +Documentation -Library (Lib)
keywords: +easy
nosy: +docs@python
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset e86330669bb5 by Brett Cannon in branch 'default':
Issue #15056: imp.cache_from_source() and source_from_cache() raise
http://hg.python.org/cpython/rev/e86330669bb5

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

I released Pranav's patch and fleshed it out with docs, tests, and changes to 
importlib's use of cache_from_source().

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 96f7926ea444 by Brett Cannon in branch 'default':
Issue #15288: Clarify that pkgutil.walk_packages() and friends will no
http://hg.python.org/cpython/rev/96f7926ea444

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

I changed to term to "loader" and linked to the glossary. I also added a 
versionchanged note for Python 3.3 so people are not too surprised that pkgutil 
no longer does what it did in Python 3.2.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ee01fd98b5b0 by Brett Cannon in branch 'default':
Issue #15242: Have PyImport_GetMagicTag() return a const char *
http://hg.python.org/cpython/rev/ee01fd98b5b0

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

I went ahead and committed Eric's patch. Amaury, if you want to move the macros 
to a header file I see no reason not to, but I also don't see a need so I 
didn't want to spend the time doing it myself.

--
resolution:  -> fixed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

Ronan is right that it is all about finders, not importers per-se. I fixed the 
docs to not say "loader".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +flox, r.david.murray
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 422242dbce30 by Martin v. Löwis in branch '3.2':
Issue #13532: Check that arguments to sys.stdout.write are strings.
http://hg.python.org/cpython/rev/422242dbce30

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 58189e37331c by Martin v. Löwis in branch '2.7':
- Issue #13532: Check that arguments to sys.stdout.write are strings.
http://hg.python.org/cpython/rev/58189e37331c

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11176] give more meaningful argument names in argparse documentation

2012-07-09 Thread Greg Roodt

Greg Roodt  added the comment:

Hi David

Ok, I like the idea of working on a solution together. I like your idea of
the pizza-making more than the current "foo bar" examples.

Should we collaborate outside of the bug tracker?

Greg

On 9 July 2012 07:11, David Lam  wrote:

>
> David Lam  added the comment:
>
> haha wow, I was working on this bug too!  maybe we can work on the final
> patch together
>
> I got through about 2/3's of the docs, so I thought it might help to
> upload what I got so far.  I basically just made stuff up so I'm totally
> winning to change anything (or everything)
>
> I made a little effort to make the examples mildly amusing, since novelty
> sorta helps in retention.  So one of the recurring examples I used involves
> that of a pizza-making-program... hopefully this helps in some way!
>
> --
> nosy: +dlam
> Added file:
> http://bugs.python.org/file26325/issue11165-doc-fix-up-to-section-15.4.4.diff
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

All problems in computer science can be solved by another indirection...

I've added another wrapper around the RPC proxy to cause the type error. (A 
variant of) Roger's patch is still included to support the -n case.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-09 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

It's not necessary.  The fix looks good as is.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Roger Serwy

Roger Serwy  added the comment:

I just pulled Martin's patches and they fix the issue. Indirection to the 
rescue!

There is one very slight problem though with the error message raised on 2.7 
since it is different than 3.3. Attached is a patch to fix it.

--
Added file: http://bugs.python.org/file26333/issue13532_27.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15294] regression with nested namespace packages

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset a7b8c3323db9 by Antoine Pitrou in branch 'default':
Issue #15294: Fix a regression in pkgutil.extend_path()'s handling of nested 
namespace packages.
http://hg.python.org/cpython/rev/a7b8c3323db9

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15294] regression with nested namespace packages

2012-07-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed! I also backported the test to 3.2.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11176] give more meaningful argument names in argparse documentation

2012-07-09 Thread Greg Roodt

Greg Roodt  added the comment:

I've made the minor edits required after the review to my simplification of the 
first example.

David, perhaps we combine our efforts? Use my simple first example to explain 
the very basics, then continue the explanation with the pizza example?

Im happy either way, I quite like your example using the system dictionary.

--
Added file: http://bugs.python.org/file26334/1176_minor_edits.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13959] Re-implement parts of imp in pure Python

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset efb5e6ab10f4 by Brett Cannon in branch 'default':
Issue #15167 (as part of #13959): imp.get_magic() is no implemented in
http://hg.python.org/cpython/rev/efb5e6ab10f4

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15167] Re-implement imp.get_magic() in pure Python

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset efb5e6ab10f4 by Brett Cannon in branch 'default':
Issue #15167 (as part of #13959): imp.get_magic() is no implemented in
http://hg.python.org/cpython/rev/efb5e6ab10f4

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15167] Re-implement imp.get_magic() in pure Python

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

OK, finally in. Thanks for the hard work on this, Eric.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13959] Re-implement parts of imp in pure Python

2012-07-09 Thread Brett Cannon

Brett Cannon  added the comment:

Since the final issue is just a nicety, I am considering this issue closed.

--
dependencies:  -Deprecate imp.find_module()/load_module()
resolution:  -> fixed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1076515] shutil.move clobbers read-only files.

2012-07-09 Thread Greg Roodt

Greg Roodt  added the comment:

I can add some more info to the docs if anybody feels they are required, but I 
think they are sufficient. It already mentions that it copies file contents and 
that the correct permissions are required.

This is mentioned in the docs for shutil.copyfile:

The destination location must be writable; otherwise, an OSError exception will 
be raised. If dst already exists, it will be replaced.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13959] Re-implement parts of imp in pure Python

2012-07-09 Thread Brett Cannon

Changes by Brett Cannon :


--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Roger Serwy

New submission from Roger Serwy :

Add an "Interrupt Execution" to the Shell menu, per issue13504, annoyance #3 - 
"PROBLEM: There’s no obvious way to stop a running program. (Don’t expect them 
to know Ctrl-C)"

--
components: IDLE
keywords: easy
messages: 165122
nosy: serwy, terry.reedy
priority: low
severity: normal
status: open
title: IDLE - add an "Interrupt Execution" to shell menu
type: enhancement
versions: Python 2.7, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2012-07-09 Thread Roger Serwy

Changes by Roger Serwy :


--
dependencies: +IDLE - add an "Interrupt Execution" to shell menu

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Ah, this indicates that we should support any buffer object...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Roger Serwy

Changes by Roger Serwy :


--
keywords: +patch
Added file: http://bugs.python.org/file26335/issue15308.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Thanks Martin. I was thinking of adding special-casing inside the rpcproxy 
class, but the wrapping is pretty clean and clear. Works great in 3.3 Win7-64.

The 2.7 message 'expected a character buffer object' is technically correct*, 
but opaque, especially to beginners. I actually prefer the 3.x style message, 
except that 'str' should be expanded to 'string'. (We especially should not say 
'character buffer object' until we test for exactly that.)

*My impression is that 2.7 unicode is not a character buffer object, but gets 
auto converted to str/bytes, which is.

On the technically correct front, bytearray in 2.7 is a character buffer object 
that .write() can write, but it is not a subclass of basestring. So the widened 
test in the followup patch
http://hg.python.org/cpython/rev/2993f566c82e
should be widened further.

-if not isinstance(s, basestring):
- raise TypeError('must be str, not ' + type(s).__name__)

+if not isinstance(s, (basestring, bytearray)):
+ raise TypeError('must be string, not ' + type(s).__name__)

Are there any other 'character buffer' classes that should be included? What 
*is* the test that 2.7 .write() uses to determine what is such? Can it even be 
written in Python (rather than C)?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I'm losing interest in this issue. It already got more attention than it 
deserves. Terry, feel free to make whatever change you consider desirable.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1757057] Unexpected "maximum recursion depth exceeded" in IDLE shell with objects that cannot be pickled

2012-07-09 Thread Roger Serwy

Roger Serwy  added the comment:

I think that issue13532 fixes this issue, as only strings are now pickled from 
the subprocess to the IDLE front-end for writing to stdout and stderr. This 
should address the pickling vulnerability.

I downloaded BeautifulSoup 3.0.4 and did not see this problem when using IDLE 
2.7.1, and then against the latest dev version from the repo.

I am closing this issue as being out of date.

--
nosy: +serwy
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1596321] KeyError at exit after 'import threading' in other thread

2012-07-09 Thread Alexis Metaireau

Changes by Alexis Metaireau :


--
nosy: +alexis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-09 Thread Ronny Pfannschmidt

New submission from Ronny Pfannschmidt :

thats broken for assigning overlaping regions, the memcpy docs explicitly state 
that memmove should be used in overlap cases

--
messages: 165127
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
title: buffer/memoryview slice assignment uses only memcpy
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4832] idle filename extension

2012-07-09 Thread Roger Serwy

Roger Serwy  added the comment:

issue4832_rev1.patch is a complete patch against 3.3.

This is also part of issue13504, "7) ANNOYANCE: It’s too easy to forget the .py 
extension when saving a file."

--
stage:  -> patch review
Added file: http://bugs.python.org/file26336/issue4832_rev1.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2012-07-09 Thread Roger Serwy

Changes by Roger Serwy :


--
dependencies: +idle filename extension

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 4f891f44ec15 by Terry Jan Reedy in branch '2.7':
Issue 13532: Allow bytearrays to be written also.
http://hg.python.org/cpython/rev/4f891f44ec15

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I tested and pushed the change to allow bytestrings. If anyone is printing 
other character buffer objects in 2.7 with Idle, they can explicitly convert to 
str/bytes, patch run.py, and/or post here or on a new issue for further 
expansion. I am otherwise done with this too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-07-09 Thread Thomas Parslow

Thomas Parslow  added the comment:

This is already fixed in the current code, unquoted realms are allowed with a 
warning.

--
nosy: +almost

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15310] urllib: Support for multiple WWW-Authenticate headers and/or multiple challenges per header

2012-07-09 Thread Thomas Parslow

New submission from Thomas Parslow :

The HTTP spec specifies that the 401 (Unauthorized) response can be accompanied 
by multiple challenges, either as separate WWW-Authenticate headers or in a 
single WWW-Authenticate header separated by commas. The client should always 
pick the strongest supported which in the case of urllib is "digest". Unknown 
challenge types (for urllib that's anything but "basic" and "digest") should be 
ignored as long as there is a known one as well.

This is my first patch submission to cpython so please do point out anything 
I've done wrong! I'd like do more work on cpython so best to nip any bad habits 
in the bud!

In this patch I've re-written the parsing code to support this. I've tried to 
re-use existing code as much as possible, so I've based the new parser on the 
existing parse_http_list which I had to extend so that it can be used to parse 
single quoted strings. These single quoted strings are not valid for the HTTP 
spec but apparently they do appear in the wild and the existing implementation 
allowed them so I've continued to allow them. I've also kept the existing 
behaviour with regards to unquoted realm values, a warning is raised but 
otherwise they are allowed. The requirement of raising the warning added a 
slightly awkward bit to the code, but I assumed there was a good reason for 
that warning being there so I kept it in.

--
components: Library (Lib)
files: urllib-multi-authenticate-challenges.patch
keywords: patch
messages: 165132
nosy: almost
priority: normal
severity: normal
status: open
title: urllib: Support for multiple WWW-Authenticate headers and/or multiple 
challenges per header
type: behavior
versions: Python 3.4
Added file: 
http://bugs.python.org/file26337/urllib-multi-authenticate-challenges.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15310] urllib: Support for multiple WWW-Authenticate headers and/or multiple challenges per header

2012-07-09 Thread Thomas Parslow

Thomas Parslow  added the comment:

I should mention, this fixes the same issue mentioned in #13323 but more 
comprehensively and for python 3 (the old issue refers to urllib2 in python2).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-07-09 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Yes, this is fixed as part of issue12541

--
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4832] idle filename extension

2012-07-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I tested with defaultextension='' on Windows and it works well. If no extension 
is entered (no '.' in name), .py or .txt is added for the .py/w and .txt 
filetype choices. If there is a . in the name, nothing is added. If one wants 
x.y.py, one must type the whole name. So typing x.pyw does not get .py added on 
top of it. This needs to be documented in the Idle help file.

Should the change only be made to 3.3, or also to 3.2/2.7? The old behavior of 
typing .py still works, so that does not break. Typing no . to get no extension 
(rare) will break unless one selects '*.* all files' (which one should do 
anyway as it is standard Windows behavior). I think uniform across versions is 
better so people who learn leaving out .py on 3.3 can also leave it out in 
future 2.7 and 3.2, which should come out about the same time as 3.3.0.

Whether just one or two or three versions, how do people used to the old (buggy 
in my opinion) behavior find out about the change. A splash line on startup 
"See help for new 'save as' behavior" ?

Anything I should know about *nix or mac behavior, at least for the doc? Ned, 
does this change work on macs?

--
assignee:  -> terry.reedy
nosy: +ned.deily
stage: patch review -> commit review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I would like to broaden this to add other missing features to the menus. I have 
no need for this, but I would like history-next/prev added (to shell, as they 
only apply there). I never learned them because at first I did not know about 
them and now it is more bother to select options/configure/keys/scroll-down to 
find the key binding than to click/return. When I get a new program, I often 
look through the menus to see what is available, so if things are hidden, how 
do I find out about them?

Does IDle or tkinter or tk automatically add the key shortcuts?

I notice that some key bindings include lower and upper case, some do not. 
(History next/prev do not.) Is there a reason to not make all cntl/alt bindings 
case insensitive, and is there an issue for this?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I was thinking about #12387 about caps lock and shortcuts.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +skrah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15311] Developer Guide doesn't get updated once a day

2012-07-09 Thread Chris Jerdonek

New submission from Chris Jerdonek :

The Dev Guide says that it is "managed using the same process as is used for 
the main Python documentation":

http://docs.python.org/devguide/docquality.html#helping-with-the-developer-s-guide

However, it looks the Dev Guide might not be on the same schedule of getting 
updated once a day as it says for the main Python documentation:

http://docs.python.org/devguide/docquality.html#helping-with-documentation

It would help to say something about the mechanism by which the Dev Guide gets 
updated if that mechanism is different from the main Python documentation.

--
components: Devguide
keywords: easy
messages: 165138
nosy: cjerdonek, ezio.melotti
priority: normal
severity: normal
status: open
title: Developer Guide doesn't get updated once a day
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15310] urllib: Support for multiple WWW-Authenticate headers and/or multiple challenges per header

2012-07-09 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
assignee:  -> orsenthil
nosy: +orsenthil

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-09 Thread Matthias Klose

Matthias Klose  added the comment:

looks like the module can be put into $builddir/`cat pybuilddir.txt`. However 
pybuilddir.txt is written/computed by the just built python. So either

 - implement distutils.util.get_platform in configure.ac

 - or write a temporary pybuilddir.txt, call the just built
   python -c 'print("build/lib.%s-%" % (distutils.util.get_platform(), 
sys.version[:3]))' to write the final pybuilddir.txt, move the 
_sysconfigdata.py to this location.
   and remove the pybuilddir.txt writing in setup.py

--
stage: needs patch -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15311] Developer Guide doesn't get updated once a day

2012-07-09 Thread Ezio Melotti

Ezio Melotti  added the comment:

I think there's an hook the rebuilds the devguide whenever someone pushes 
something.

--
nosy: +georg.brandl, pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15312] Serial library not found

2012-07-09 Thread Julius

New submission from Julius :

I'm running ver 2.7 and added the serial library from source forge. here is the 
error I get:

Traceback (most recent call last):
  File 
"C:\Python27\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 
326, in RunScript
exec codeObject in __main__.__dict__
  File "C:\Documents and Settings\Administrator\My Documents\WTF.py", line 3, 
in 
import serial
ImportError: No module named serial

here is my code:
# Echo client program
import socket
import serial

HOST = '216.240.155.229'# The remote host
PORT = 9090  # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
ser = serial.Serial('USB0', timeout=3)
x = 0
#while x < 5:
while True:
msg = ser.readline()
s.send(msg)
x += 1
s.close()

--
components: Extension Modules, IDLE, Windows
messages: 165141
nosy: JuliusMiller
priority: normal
severity: normal
status: open
title: Serial library not found
type: resource usage
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-09 Thread Ezio Melotti

Ezio Melotti  added the comment:

Do you want to propose a patch?
regrtest has no tests, so switching to argparse might cause more harm than good 
right now.

--
nosy: +ezio.melotti
stage:  -> needs patch
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4640] optparse doesn’t disallow adding one-dash long options (“-option”)

2012-07-09 Thread Aaron

Aaron  added the comment:

I came across this bug report and was unable to reproduce the described 
behavior.  I wrote a few test cases demonstrating that the behavior is indeed 
correct.  It passes both against 2.5.2 (the version described in the report) 
and the lastest 2.7.

The relevant code is line 602 of optparse.py in the function 
Option._set_opt_strings().

I believe this bug can be closed.

--
keywords: +patch
nosy: +hac.man
Added file: http://bugs.python.org/file26338/test_optparse.py.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15312] Serial library not found

2012-07-09 Thread Ezio Melotti

Ezio Melotti  added the comment:

This bug tracker is for reporting CPython bugs, so it's not the right place 
where to ask this kind of questions.
Anyway make sure that the "serial" module is in a directory that Python can 
see, e.g. the same dir where you have your script.

--
assignee:  -> ezio.melotti
nosy: +ezio.melotti
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type: resource usage -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Roger Serwy

Changes by Roger Serwy :


--
components: IDLE
nosy: serwy, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE - remove all bare excepts
type: enhancement
versions: Python 2.7, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Roger Serwy

New submission from Roger Serwy :

There are a lot of bare exceptions in IDLE. Here's the output of "grep -n 
'except:' *.py"

AutoComplete.py:184:except:
AutoComplete.py:209:except:
Debugger.py:172:except:
Debugger.py:344:except:
EditorWindow.py:999:except:
ObjectBrowser.py:38:except:
ObjectBrowser.py:100:except:
PyShell.py:133:except: # but debugger may not be active right now
PyShell.py:154:except:
PyShell.py:161:except:
PyShell.py:176:except:
PyShell.py:433:except:
PyShell.py:742:except:
PyShell.py:869:except:
PyShell.py:1043:except:
PyShell.py:1096:except:
PyShell.py:1193:except:
PyShell.py:1214:except:
PyShell.py:1245:except:
rpc.py:106:except:
rpc.py:206:except:
run.py:88:except:
run.py:120:except:
run.py:125:except:
run.py:248:except:
run.py:332:except:
SearchEngine.py:72:except:
StackViewer.py:66:except:
WindowList.py:47:except:


Slowly, these exceptions should be refined to include the exact exception being 
caught.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15167] Re-implement imp.get_magic() in pure Python

2012-07-09 Thread Eric Snow

Eric Snow  added the comment:

Yay!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4832] idle filename extension

2012-07-09 Thread Roger Serwy

Roger Serwy  added the comment:

Your description applied to the behavior on Ubuntu 11.04.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13959] Re-implement parts of imp in pure Python

2012-07-09 Thread Eric Snow

Eric Snow  added the comment:

hurray!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Roger Serwy

Roger Serwy  added the comment:

I'm ok with broadening the scope of this issue to include other items. 
If we decide to deprecate running IDLE without a subprocess 
(http://mail.python.org/pipermail/idle-dev/2012-June/003124.html), then 
the history-next/prev would fit nicely under the Shell menu.
> Does IDle or tkinter or tk automatically add the key shortcuts?
IDLE adds the key shortcuts. It's broken for extensions if those 
shortcuts are changed. See Issue6092.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Roger Serwy

Roger Serwy  added the comment:

The help.txt file needs to be modified as well. See interrupt_execution.patch.

--
Added file: http://bugs.python.org/file26339/interrupt_execution.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7883] CallTips.py _find_constructor does not work

2012-07-09 Thread Roger Serwy

Roger Serwy  added the comment:

Issue12510 fixes the issues listed here. I am leaving this issue open for 
discussing the test provided by Bernt.

--
nosy: +terry.reedy
resolution:  -> fixed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

Sure, if someone is open to reviewing it.

The parsing code doesn't seem to be doing anything too fancy right now.  I can 
decouple the parsing code and begin adding tests around parts that may need it 
more.  Increasing coverage will be easier going forward.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15314] Use importlib instead of pkgutil in runpy

2012-07-09 Thread Nick Coghlan

New submission from Nick Coghlan :

There's some lingering weirdness in runpy due to its reliance on pkgutil's 
import emulation (see #15272).

For 3.3, I'd like to explicitly switch runpy over to using importlib. This was 
supposed to happen automatically, but the relevant API is 
"importlib.find_loader" rather than the "imp.get_loader" that runpy is 
currently looking for.

--
assignee: ncoghlan
messages: 165153
nosy: georg.brandl, ncoghlan
priority: high
severity: normal
stage: needs patch
status: open
title: Use importlib instead of pkgutil in runpy
type: behavior
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4832] idle filename extension

2012-07-09 Thread Ned Deily

Ned Deily  added the comment:

As usual, there seem to be small but significant differences among the 
implementations.  Testing with the three OS X Tk implementations shows that 
currently:
1. Aqua Tk 8.5 and Aqua Tk 8.4 do not supply a default extension
when saving.  With patch issue4832.diff applied, they still incorrectly do not 
supply a default extension. (Note, Aqua Tk's do not supply a file type filter 
in the Save File dialog box.)
2. X11 Tk 8.5 behaves like other Unix X11 Tk's: a default based on the selected 
File Type filter is used, i.e. .py for "Python files, .txt for "Text file".  
Applying the patch does not change that correct behavior.

I tested a variation of Guilherme's patch which supplies a defaultextension of 
'.py' but only for OS X (rather than Windows).  With that patch 
(issue4832_rev2.patch):
1. Aqua Tk 8.5 now correctly supplies a default extension of '.py' on saves if 
the user does not enter an extension as part of the file name.
2. Aqua Tk 8.4 behavior is unchanged: it still incorrectly does not supply an 
extension if the user does not.  I don't see how to fix that but the use of 
Aqua Tk 8.4 is diminishing.
3. X11 Tk 8.5 behavior is unchanged: it still correctly supplies a default 
based on the selected File Type.

Since Aqua Tk 8.5 is the major Tk for OS X these days (it has been the system 
default since OS X 10.6) and the patch improves things for it, I'd like to see 
this go in.  I did test it on a Debian Linux X11.  It should behave the same on 
Windows as Roger's previous patch but it would be good to test it again.

As far as documentation changes, I don't see the need to have anything more 
than the usual IDLE/NEWS.txt file entry.

--
Added file: http://bugs.python.org/file26340/issue4832_rev2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15272] pkgutil.find_loader accepts invalid module names

2012-07-09 Thread Nick Coghlan

Nick Coghlan  added the comment:

I've taken 3.2 and 2.7 off the list - no doubt someone, somewhere is relying on 
this particular piece of missing input validation, so it's not worth risking 
breakage in a point release.

I think it's worth fixing for 3.3, though.

--
nosy: +georg.brandl
stage:  -> needs patch
type:  -> behavior
versions:  -Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15311] Developer Guide doesn't get updated once a day

2012-07-09 Thread Chris Jerdonek

Chris Jerdonek  added the comment:

This commit from 2 days ago--

http://hg.python.org/devguide/rev/d1958a94d0ff

doesn't seem to be reflected in the published version as of yet:

http://docs.python.org/devguide/docquality.html

So maybe there is just a problem with the hook.  If it does get rebuilt right 
away, that would be worth mentioning, too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

And possibly change the except clause. The except clause at PyShell 1245 was 
'pass', which masked the issue of #13532 and was changed to 'raise' to 
effectively remove the try: except: to make the unknown problem more visible. 
It should perhaps be really removed if and when all calls to PyShell.write(s) 
are properly guarded to make sure 's' is writable.

--
type: enhancement -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >