[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2011-07-18 Thread Matt Joiner

Matt Joiner anacro...@gmail.com added the comment:

Feel like a total noob: Where do I get the latest source? I can't find any 
pre-release tarballs for 3.3, and the suggested py3k checkout doesn't work: $ 
hg clone http://hg.python.org/cpython#py3k py3k
abort: unknown revision 'py3k'!

--

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



[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2011-07-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

See the developer's guide: 
http://docs.python.org/devguide/setup.html#getting-the-source-code

   hg clone http://hg.python.org/cpython directory_name

--
nosy: +ned.deily

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



[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2011-07-18 Thread Matt Joiner

Matt Joiner anacro...@gmail.com added the comment:

This version is fixed for me:

$ ./python
Python 3.3.0a0 (default:7520f1bf0a81, Jul 18 2011, 17:12:12)
[GCC 4.1.2 20070115 (SUSE Linux)] on linux2

--
versions: +Python 3.2

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



[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

@pitrou: Antoine, do you think that the following commit should be backported 
from 3.3 to 3.2?

New changeset 3c7792ec4547 by Victor Stinner in branch 'default':
Issue #12175: BufferedReader.read(-1) now calls raw.readall() if available.
http://hg.python.org/cpython/rev/3c7792ec4547

It changes BufferedReader.read() behaviour a *little* bit. Only a little 
because FileIO.read(-1) calls FileIO.readall() internally for example.

--

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



[issue12133] ResourceWarning in urllib.request

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I reopen the issue.

--
resolution: fixed - accepted
status: closed - open

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



[issue12133] ResourceWarning in urllib.request

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

(Oh, I missed Antoine's comment, yes, reopen a new issue)

--
resolution: accepted - fixed
status: open - closed

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



[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-18 Thread Catalin Iacob

Catalin Iacob iacobcata...@gmail.com added the comment:

Senthil's proposal in msg140543 has +1 from me.

--

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



[issue12133] ResourceWarning in urllib.request

2011-07-18 Thread Ugra Dániel

Ugra Dániel daniel.u...@gmail.com added the comment:

Sorry, I've forgotten to post a reference to the new bug: #12576

--

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



[issue12576] urlib.request fails to open some sites

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

h.close() (HTTPConnection.close) in the finally block of 
AbstractHTTPHandler.do_open() calls indirectly r.close() (HTTPResponse.close). 
The problem is that the content of the response cannot be read if its close() 
method was called.

The changelog of the fix (commit ad6bdfd7dd4b) is: Issue #12133: 
AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if 
its getresponse() method fails with a socket error. Patch written by Ezio 
Melotti.

The HTTP connection is not only closed in case of an error, but it is always 
closed.

It's a bug because we cannot read the content of www.imdb.com, whereas it works 
without the commit. Test script:
---
import urllib.request, gc

print(python.org)
with urllib.request.urlopen(http://www.python.org/;) as page:
content = page.read()
print(content: %s... % content[:40])
gc.collect()

print(imdb.com)
with urllib.request.urlopen(http://www.imdb.com/;) as page:
content = page.read()
print(content: %s... % content[:40])
gc.collect()

print(exit)
---

--
nosy: +haypo

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



[issue12576] urlib.request fails to open some sites

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

ValueError('I/O operation on closed file') error comes from 
HTTPResponse.__enter__() which is implemented in IOBase:

def __enter__(self):  # That's a forward reference
self._checkClosed()
return self

--

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



[issue12576] urlib.request fails to open some sites

2011-07-18 Thread Davide Rizzo

Changes by Davide Rizzo sor...@gmail.com:


--
nosy: +davide.rizzo

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



[issue12576] urlib.request fails to open some sites

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

imdb.com and python.org use HTTP/1.1. imdb.com server sends a 
Transfer-encoding: chunked header whereas python.org doesn't. python.org has 
a Connection: close header, whereas imdb.com doesn't.

The more revelant difference for this issue is the Connection: close header: 
HTTPResponse.wil_close is True if Connection: close header is present (see 
_check_close() method), it returns False otherwise. 
HTTPConnection.getresponse() keeps a reference to the response if will_close is 
False, or calls its close() method otherwise.

The Cneonction: close header looks to be a quirk of Netscaler loadbalancers. 
It is sometimes nnCoection uses the same load balancer.

There are buggy web servers, Python should not raise a I/O closed file error 
on such server.

--

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



[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2011-07-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Antoine, do you think that the following commit should be backported
 from 3.3 to 3.2?

No, I don't think so.

--
versions:  -Python 3.0

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



[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 No, I don't think so.

The issue is already fixed in 3.3, so you agree to not fix it in Python 3.2?

--

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




[issue6476] MSVCRT's spawnve/spawnvpe are not thread safe

2011-07-18 Thread Steve Hill

Steve Hill python.20.hi...@spamgourmet.com added the comment:

Why has this bug been resolved as won't fix? It seems to me that this is a 
valid issue with something that has not been deprecated, yet it has been 
decided neither to fix it (despite there being an offer by the originator to 
submit a patch) nor even to document the deficiency.

We've been using SCons for the last 3-4 years, during which time we have been 
plagued by this issue - more so as multi-core machines have become more 
prevalent. There was a thread on the SCons Users mailing list in March '09, 
which stopped short of diagnosing the problem and we've lived with it ever 
since - putting it down to Python being a bit flaky. I now discover that it 
is an issue that has been diagnosed two years ago and deliberately left in the 
implementation of the language. Simply saying you should use subprocess is 
not helpful; SCons at that time was supporting all Python versions back to 2.0 
(possibly earlier) so couldn't rely on the subprocess module being present.

Ideally, it should be worked-around so that these functions can safely be used 
on all platforms without requiring mutual exclusion in the application. 
However, it seems to me that, at a bare minimum, it should be documented that 
these functions are not thread safe under Windows.

--
nosy: +steve_hill

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



[issue12581] Increased test coverage of test_urlparse

2011-07-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I haven't reviewed your tests, but a couple quick comments: we generally prefer 
duck typing to the use of isintance or ABCs, but sometimes the latter is better 
(it's a judgement call).  I haven't done a deep dive in the code you modified, 
but from the looks of the code quoted in your patch I'd say that doing 
'iter(v)' inside the try/except would be the way to find out if one can loop 
over the object, which appears to be the only aspect of sequenceness the code 
cares about.

As for coverage, you are right that it is quite possible to get caught up in 
the statistics.  That said, if you *don't* have domain knowledge, giving us a 
set of tests to look at and evaluate is better than not having such a set of 
tests.  Pointing out any tests that you aren't sure about the validity of is 
helpful in any case.

The overall goal of the test suite is to test the *API* of the library 
functions.  This is so that alternate implementations can use it as a 
validation test suite  (Sometimes we have CPython specific tests, in which case 
we mark them as such).  So testing internal implementation details is not as 
helpful as testing behavior.  If you find you have to use a white box test 
(one that pokes at the internals as opposed to making an appropriate call to 
the API), then the code you can't otherwise test becomes suspect and an 
appropriate subject for another issue (what is this code for?  I can't get it 
to trigger.)

Finally, your point about comprehensive tests at least showing up behavior 
changes is valid.  If you write tests that you aren't sure are correct 
behavior, put in an XXX comment to that effect.  If you just have no idea, you 
can mark a whole block of tests as this improves coverage, I have no idea if 
the behavior is valid or not, and we'll either sort it out when we review or 
commit the tests or just leave the comment in.

Thanks for working on this.

--
nosy: +r.david.murray

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



[issue12581] Increased test coverage of test_urlparse

2011-07-18 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +orsenthil

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



[issue12167] test_packaging reference leak

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 I would call .copy() on the original dicts rather than remembering an
 explicit empty dict.

I thought about that and decided to use an empty dict as a way to add a check 
that the caches should start empty.  Maybe it was misguided and I should 
instead add a unit test for that, or not bother altogether.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 On Windows, scripts run with whatever name -- no extension or other
 extensions.
Thanks, this means that the docs can continue to say just “pysetup3”, without 
“.py”.

(I wonder how Windows manages to run the script without file extension!)

 I have tested this from both IDLE and command line.
You can run command-line scripts from IDLE?

Can you also comment on my proposed note about adding Scripts to PATH?

--

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Paul Weiss

New submission from Paul Weiss psw...@gmail.com:

I am trying to install python 2.7 on my Redhat machine. It installs most of the 
files, but it doesn't install the lib-dynload directory. I have set every path, 
done every install and clean I could think of but I can't get it to work. I 
have tried 2.7, 2.7.1 and 2.7.2 and none of them install. What could cause this?

--
components: Build, Installation
messages: 140578
nosy: Paul.Weiss
priority: normal
severity: normal
status: open
title: lib-dynload missing in python install
type: behavior
versions: Python 2.7

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I’m assuming you’re installing a Python from python.org, not the one from Red 
Hat.  Can you give us the configure and make commands you ran?

--
nosy: +eric.araujo

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



[issue12479] Add HTTPErrorProcessor class definition

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

It seems to me that the doc after the patch is barely more helpful.  It does 
not explain when and how one would see or use the class, nor what it does.

--
nosy: +eric.araujo

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Paul Weiss

Paul Weiss psw...@gmail.com added the comment:

Correct, I am using the source from 

http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz

make clean 
./configure --prefix=/opt/Python-2.7
make 
sudo make install 

I get this:

/usr/bin/install -c -m 644 ./LICENSE /opt/Python-2.7/lib/python2.7/LICENSE.txt
PYTHONPATH=/opt/Python-2.7/lib/python2.7   \
./python -Wi -tt /opt/Python-2.7/lib/python2.7/compileall.py \
-d /opt/Python-2.7/lib/python2.7 -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/opt/Python-2.7/lib/python2.7
Traceback (most recent call last):
  File /opt/Python-2.7/lib/python2.7/compileall.py, line 17, in module
import struct
  File /opt/Python-2.7/lib/python2.7/struct.py, line 1, in module
from _struct import *
ImportError: No module named _struct
make: *** [libinstall] Error 1

--

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



[issue12479] Add HTTPErrorProcessor class definition

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Ah, I see that the class is referenced earlier in the file, and that its 
methods come after.  I’d put the class definition just before the methods.  (I 
would even refactor the reST to use nested class/method combo, but that’s a 
minor markup cleanup, not a content improvement.)

--

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Also, are you using a linux3 kernel?

--
nosy: +r.david.murray

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Paul Weiss

Paul Weiss psw...@gmail.com added the comment:

No, Redhat's 2.6.9. Could that be the issue?

--

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



[issue12576] urlib.request fails to open some sites

2011-07-18 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue11468] Improve unittest basic example in the doc

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I think there’s value in accepting the current patch as really basic example, 
and then see if the section about setting up and tearing down also has a very 
simple example.

--

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



[issue1170] shlex have problems with parsing unicode

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

We all recognize that ASCII is very much limited and that the real way to work 
with strings is Unicode.  However, here our hands are tied by our development 
process: shlex in 2.x does not support Unicode, adding that support would be a 
new feature, and 2.7 is closed to new features.  If shlex was supposed to 
support Unicode, then this would be a bug that could be fixed in 2.7, but it’s 
not.  All we can do is improve the 2.7 doc to show how to work around that 
(splitting on bytes and then decoding each chunk, for example).

--

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



[issue12533] python-celementtree prevents me from running python develop.py to compile Imprudence Viewer

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks.  The Imprudence bug seems to confirm this is not a distutils bug.

--
assignee:  - eric.araujo
status: open - pending

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



[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 They don't support slicing, certainly, but I can't tell from the
 collections ABC docs if Sequence is required to support slicing.

This looks like a 2.7 docs bug.  The table with ABCs mentions __*item__, but 
not __*slice__, probably because it was written with 3.x in mind (where slices 
are a type of __*item__).  Do you think we need to improve the documentation 
for slicing, in general and with regards to collections ABCs?

--
nosy: +eric.araujo

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



[issue12572] HP/UX compiler workarounds

2011-07-18 Thread Jim Schneider

Jim Schneider jim.schnei...@dataflux.com added the comment:

Martin - I don't have time to manage your project's administrative requirements 
with respect to my fixes.  I'm providing them out of the hope they will be of 
use to others who need to build on HP/UX, but I don't really care if they make 
it into the main branch or not.

--

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



[issue1170] shlex have problems with parsing unicode

2011-07-18 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Is unicode supported by shlex in 3.x already? It's curious that unicode support 
is considered a new feature, rather than a bug. I understand wanting to 
allocate development resources carefully, though. If someone were to prepare a 
patch, would it even have a chance of being accepted in 2.7?

--

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



[issue1170] shlex have problems with parsing unicode

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

See http://bugs.python.org/issue1170#msg106424 and following.

--

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



[issue1170] shlex have problems with parsing unicode

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

It’s not about allocating resources, it’s about following process.  The first 
part is that we don’t add new features to stable releases, the second item is 
that this is not considered a bug fix: The code pre-dates Unicode, was not 
updated to support it, and the docs say “The shlex module currently does not 
support Unicode input”.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Chris Lambacher

Chris Lambacher ch...@kateandchris.net added the comment:

I don't think that is the default state. You need to add .py to the PATHEXT 
environment variable:
http://effbot.org/pyfaq/how-do-i-make-python-scripts-executable.htm

Maybe Terry did this at some point? My windows box certainly does not have it 
and I have 2.6 and 2.7 installed. I don't have a 3.x install so I can't check 
if that is new in 3.

--
nosy: +lambacck

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

No.  We know we have some issues with platform stuff on linux3 kernels, though, 
which why I asked.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I perhaps misunderstood your question. I ran files from the command line as as 
'python whatever', not 'whatever' so only python would care about an extension. 
I do not have a file association to 'run' a file, with or without .py. I 
presume IDLE does same when one RUNs a file, except with pythonw.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

The original bug is that the distutils docs use commands like “python setup.py 
spam” all over the place, and they don’t typically work
 because the python executable is not in the path in the default
 install.  'setup.py install' will work since .py files are associated
 with python.exe
(quoted from the first message).  I added a note to instruct Windows users to 
mentally replace those commands with “setup.py spam”.

Now my concern is about packaging: In a typical Windows install, can people run 
“pysetup3 spam”?

--

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



[issue12449] Add accelerator F to button Finish in all MSI installers made by bdist_msi

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 My concern for MSI is that this issue is referencing a change to MSI
 generation. I never had any expectation for wininst to generate an MSI.
I’m sorry, it was me that first talked about wininst by mistake, the bug report 
always was about msi.

 If I remember correctly from trying the other day --formats=msi fails
 because bdist_msi is set as a valid format.
Also bdist_msi is only enabled on Windows.

 I have begun work on fixing these problems, as I've encountered them,
 and will be writing up issues for them soon.
Great!  Can you open bugs as soon as encountered?  Just say that you’re working 
on a patch to avoid work duplication.

--

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



[issue12531] documentation index entries for * and **

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 [...] If the syntax *expression appears in the function call,
 expression must evaluate to a sequence.

An iterable :)

--
nosy: +eric.araujo -ericsnow, terry.reedy
versions:  -Python 2.7, Python 3.2

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



[issue12531] documentation index entries for * and **

2011-07-18 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +ericsnow, terry.reedy
versions: +Python 2.7, Python 3.2

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



[issue12559] gzip.open() needs an optional encoding argument

2011-07-18 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue12560] libpython.so not built on OpenBSD

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I’ve looked at 3.x and think the patch would apply cleanly there too.

--
nosy: +eric.araujo
stage:  - commit review
versions: +Python 3.2, Python 3.3

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



[issue8668] Packaging: add a 'develop' command

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

[Carl]
 there's an implicit assumption that a .pth file is the most likely
 strategy.
If you have other ideas, please share them.

[another message]
 I don't see why the installation-location-finding for develop should
 be any different than for a normal pysetup install.
It’s only a technical limitation for now: the develop command is currently a 
standalone command, so it has to decide where to write stuff.  If it were an 
option to install_dist instead of a standalone command, then it would have 
paths processing already written.

Higery changed his code recently to get paths from the install_dist command 
instead of requiring site-packages.  (You can read the reviews, if you don’t 
mind style comments mixed with more important issues.)

 Does pysetup install install to global site-packages by default, or
 try to find somewhere it can install without additional privileges?
The install action can have a different behavior than the install_dist command. 
 develop is only a command now, and I agree it should behave like install_dist 
(which it now does).

 (though I don't really see the value in arbitrary locations, since
 you then have to set up PYTHONPATH manually anyway).
We don’t know what people do, what with /opt installs and plugins and whatever, 
so there’s just no value in not allowing any path for install.

 Certainly develop should support PEP 370, ideally with the same
 command-line flag as a regular install.
Yes.

--

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



[issue9723] Add shlex.quote

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Here’s the patch, please review.

--
assignee:  - eric.araujo
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file22685/shlex.quote.diff

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



[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2011-07-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I applied the patch, added a test and found a bug.  Here’s my progress so far; 
someone can start from it to write more tests and fix the code.

--
nosy: +misc
Added file: http://bugs.python.org/file22686/modulefinder-no-recurse.diff

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



[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2011-07-18 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
nosy: +ericsnow

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



[issue12434] Strengthen 2.7 io types warning

2011-07-18 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

On Sat, Jul 16, 2011 at 2:04 AM, Eli Bendersky rep...@bugs.python.orgwrote:

 Therefore, I propose to change this error message to:
  unicode argument expected, got '%s'
  as Terry suggested.


Sounds good to me.

--
Added file: http://bugs.python.org/file22687/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12434
___div class=gmail_quoteOn Sat, Jul 16, 2011 at 2:04 AM, Eli Bendersky span 
dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:brblockquote class=gmail_quote style=margin:0 0 0 
.8ex;border-left:1px #ccc solid;padding-left:1ex;
Therefore, I propose to change this error message to:br
 quot;unicode argument expected, got #39;%s#39;quot;br
 as Terry suggested.br/blockquotedivbr/divdivSounds good to 
me. /div/divbr-- brDaniel Stutzbachbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I went back and reread from the beginning, instead of merely answering the 
question you asked when adding me as nosy. More comments:

Windows file associations are so disfunctional that you should not depend on 
them being anything in particular. I nearly always open files from within 
applications (IDLE for python files) or with RightClick context menu when an 
entry specifies the app that will be used (as with 'Edit with Notepad++' 
(getting Python make such is another issue). The only way I can run from 
Command Prompt is to cd to the appropriate pythonxy directory and enter 'python 
full\path\to\file' (with stupid backslashes or 'python -m module' (which looks 
for module under /Lib). 

In XP, and I presume later, the term 'DOS box' is obsolete and I would delete 
it. The 'Command Prompt' app (with caps) is found in the Start/Accessories 
directory. So I would say open a Command Prompt window (in Start/Accessories)

Back to your message where you added me. I am not sure of the difference 
between 'local script' and 'global command'. I do not understand your proposed 
note, especially *include link to relevant section of docs.python.org/using*..

Script run without extensions when run with an explicit python command.
I was primed to answer this because someone recently, on the tracker or 
python-list, proposed to 'fix' a problem (wrongly) by adding a .py(o/w) 
extension check to determine if a file is Python code before running it.

I am not sure what 'or does the installer add .py?' could mean. The Windows 
installer? 'Add' to what? 

I realize that my answers may appear naive. I hope usefully so. I have used 
Windows since Win95 and have learned to focus, as described above, on what 
dependably works with minimal surprise. The extremely few 3rd party 
Python-based stuff I have installed has either come as a zipped library I could 
extract into site-packeges or as an independent app to be unzipped elsewhere or 
installed with a Windows-style installer. I have never used setup.py so no 
expert advice on its successor from me.

--

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



[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-18 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 So even on solaris the behavior seems to be filesystem dependent.


So  I'd suggest forgetting about this part.
Would you like to write a patch for the first point?

--

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



[issue12372] semaphore errors on AIX 7.1

2011-07-18 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

So, what do we do now?

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Chris Lambacher

Chris Lambacher ch...@kateandchris.net added the comment:

 Now my concern is about packaging: In a typical Windows install, can people 
 run “pysetup3 spam”?

The windows installer does not make any additions to the path so it is unlikely 
that pysetup3 spam will work.

There is http://www.python.org/dev/peps/pep-0397/ which addresses running 
scripts in a multi-version windows environment but I don't think that will help 
in this case. 

If you are running more than 1 version of windows there is simple statement 
that tells you how to install and have the install go to the right interpreter. 
You are almost best to have a shortcut that gives you a command prompt with the 
PATH variable correctly set to the desired python instance. That does not help 
the 2.x crowd or anyone before 3.3 :/

--

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



[issue11877] Change os.fsync() to support physical backing store syncs

2011-07-18 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

Trying to revive this issue, here's a comment I left on Rietveld:


 I don't agree, the documentation states that full_sync will cause a flush to
 stable storage where supported and a plain fsync where it isn't. This code
does
 just that.


I think I wasn't clear enough, so let me rephrase: the call to fcntl is guarded
by #ifdef, so it is only called on platforms where it is supported, otherwise
fsync() is called. What I was referring to is the fact that an fsync is tried if
the call to fcntl fails with ENOTTY: if I ask my operating system to flush disk
buffers and it can't, then I'd rather have an error returned, so that I can take
the right decision (abort, roll-back, try a classical fsync). IMHO, silently
masking an error by falling back to another syscall is wrong.


Anyway, I think this patch can be useful (see for example issue #8604 as a 
typical use case). I personally don't care since I use Linux, but OS-X and *BSD 
folks might find some interest in this.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Chris Lambacher

Chris Lambacher ch...@kateandchris.net added the comment:

 I am not sure of the difference between 'local script' and 'global command'

local script is the setup.py (or for that matter any other script in an 
arbitrary place in the filesystem. Global command is referring to something 
installed in %PYTHONINSTALLDIR%\scripts i.e. it is an installed command. This 
one operates on a specific version instance of python. I for instance have 
c:\python26\scripts\easy_install.exe and c:\python27\script\easy_install.exe 
and each of those operates on their own particular version. Neither are in my 
path. The current state is that I have to either put one of the scripts 
directories in my path or run easy_install with the full path. My understanding 
is that pysetup is a replacement for easy_install that will come with 3.3.

 I am not sure what 'or does the installer add .py?' could mean. The Windows 
 installer? 'Add' to what? 

I was referring .py being added to the PATHEXT evironment variable. I think it 
is safe to say that has not happened and is likely a bad idea.

--

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



[issue12579] str.format_map raises a SystemError for format strings with positional arguments

2011-07-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset f6d074a7bbd4 by Eric V. Smith in branch '3.2':
Closes #12579. Positional fields with str.format_map() now raise a ValueError 
instead of SystemError.
http://hg.python.org/cpython/rev/f6d074a7bbd4

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12531] documentation index entries for * and **

2011-07-18 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I would not propose to do everything in one grand patch as it would be way too 
much to review all at once. A somewhat separate subissue is whether there 
should be however many separate issues over the next however many years or one 
master issue with multiple patches.

The existing patch is enough to review for now. It needs changes and should add 
everything needed just for * and **. And there may be some unwritten policy 
issues.

I agree that the directive for * should be moved as Eli says.
I think 'statement' should be changed to 'function calls', or maybe 'in 
function calls' or 'function call operator' for both * and **.
The same directives should be added to the tutorial at the top and middle of 
Tutorial 4.7.4 Unpacking Argument Lists.
The existing * and ** 'statement' directives for defs in both tutorial and 
reference should become 'function defs' (or 'definitions') or 'in def 
statement'.
The existing * 'operator' directive should be 'number multiplication' or 
'number multiplication operator' or at least 'number operator'.
Perhaps it (and the following) should be duplicated in the tutorial.
A new * 'sequence repetition* directive should be added.
The existing ** 'operator' directive should be 'number exponentiation'.
New 'assigment' and 'import' directives are needed.

I think *all* the entries for a given symbol should be considered together so 
that they can be properly differentiated. We should minimize duplicates that 
appear like this -- 'statement, [1]' -- and such duplicates should refer to the 
*same* usage. 

Policy issues:

I think 'statement' should be reserved for statement keywords like def, class, 
etc. Things in statements should be at least qualified as 'in specific 
statement.

I see that plain 'operator' is currently used for most or all operators. I 
think they should at least be qualified as to category -- number operator, 
seqeunce operator, comparision operator, logic operator, etc. This might tell 
users all they need to know and would separate overloaded operators like '*'.

Both general suggestions follow other usages. Classes are specified as 'class 
in modname', not just 'class'. Functions are specified not just with '()' but 
also 'in modname' Expanding 'statement' to 'in keyword statement' or 
something would be in the same spirit. Methods are specified as 'class 
method', not just 'method'. Operators should get the same differentiation with 
at least 'optype operator' if not more detail.

[separate issue note: 'as' seems not to be indexed.]

Adding Georg as I am suggesting a deviation from certain precedents (and 
conformance to others).

--
nosy: +georg.brandl
stage:  - patch review

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



[issue12531] documentation index entries for * and **

2011-07-18 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

 expression must evaluate to a sequence.

To be clear, Eli quoted the doc correctly and Eric correctly suggested that 
'sequence' needs to be updated to 'iterable' (in at least two places). Since 
the patch for this issue will be adding something just above, it could just as 
well make this change also.

--

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Paul Weiss

Paul Weiss psw...@gmail.com added the comment:

So I have solved my own issue, but the solution raises another question. Let me 
explain...

On a whim I copied the build/lib.linux-i686-2.7 directory into the 
/opt/Python-2.7/lib/python2.7 directory as lib-dynload. This worked and python 
installed correctly. In a quick test it looks like everything is fine. 

But now my question is, why didn't that directory get copied during the build?

--

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



[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Ram Rachum

New submission from Ram Rachum cool...@cool-rr.com:

I've been frustrated so many times by `ImportError: cannot import name foo`. 
Right now I'm debugging some problem on a PAAS server (with no SSH access), and 
the server returns a traceback of `cannot import name foo`, and I don't have 
any idea what it means. It could mean that the file isn't there. It could mean 
that there's a circular import problem. Sometimes it happens when you go over 
Windows XP's path length limit!

Please provide a useful explanation, like this:

ImportError: Cannot import `foo` because no file foo.py* or folder foo 
exists.
ImportError: Cannot import foo module because no __init__.py* file exists 
in the foo folder.
ImportError: Cannot import foo because of a circular import problem with 
bar.
ImportError: Cannot import foo because the foo module file's path is bigger 
than Windows XP's path length limit.

Etcetera for any other reason that might cause an `ImportError`.

--
components: Interpreter Core
messages: 140614
nosy: cool-RR
priority: normal
severity: normal
status: open
title: More detailed `ImportError` messages
versions: Python 3.3

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



[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

Rather than mucking with the string, we should probably set some of these 
details as attributes on ImportError. #10854 wanted something similar - details 
on the pyd file that failed if you get an ImportError on an extension module on 
Windows.

--
nosy: +brian.curtin

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



[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Ram Rachum

Ram Rachum cool...@cool-rr.com added the comment:

As long as those attributes are reflected in the string in human language, why 
not.

--

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Well, at this point we have no idea.  It works fine for us.  This part is all 
controlled by the Makefile, maybe you can do some debugging on it.

--

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



[issue2259] Poor support other than 44.1khz, 16bit audio files?

2011-07-18 Thread Francisco Martín Brugué

Francisco Martín Brugué franci...@email.de added the comment:

Adding a test that opens the 24b48k.aif file, gets some information and does 
navigation on it. I'm aware that it doesn't triggers any extra failure against 
the actual tip (5a1bb8d4afd7) but it does if r72100 is undone (with some small 
rework :)). I'm not sure if that is the kind of test needed (if not just ignore 
it).

--
nosy: +francismb
Added file: http://bugs.python.org/file22688/test_issue2259.patch

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Works for me on another unix-y system.  I don't see any reason in configure.in 
or Makefile.pre.in why this shouldn't work assuming make is working as 
expected.  What version of make are you using?

--
nosy: +ned.deily

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Or possibly install.

--

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Paul Weiss

Paul Weiss psw...@gmail.com added the comment:

As it turns out I am using an older version of make on the machine that I was 
having trouble with. It seems we have made some bad assumptions about the 
configuration of our machines. It makes sense with other problems we have had 
on the other machines too. I am going to declare that the root cause of the 
issues. Thank you all for your help! Good call Ned, I am slightly embarrassed 
that I didn't think of that earlier.

--
resolution:  - fixed

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



[issue12582] lib-dynload missing in python install

2011-07-18 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


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

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



[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

The problem with this request is it is practically unworkable. For instance, 
the missing __init__.py already exists as an ImportWarning. The circular import 
is a problem as Python would have to detect circular imports which is hard, 
else we would have a circular import solution. =)

We could fix the ImportError when running into stupid XP issues, but that 
requires someone to submit a patch enough to care to fix it. =)

--
nosy: +brett.cannon

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



[issue12584] win.protocol('WM_DELETE_WINDOW'...) still deletes window on OSX

2011-07-18 Thread Andy Wildenberg

New submission from Andy Wildenberg andy.wildenb...@gmail.com:

This was originally posted on 
http://stackoverflow.com/questions/1800452/how-to-intercept-wm-delete-window-on-osx-using-tkinter
 but seems not to have been reported as a bug.

On OS X (10.6.8, python 2.6.1) register a protocol on 'WM_DELETE_WINDOW'.  Your 
callback will get called when the user clicks on the red kill icon in the 
top-left of the window, but the window will still be destroyed.  The same file 
on Python 2.6.5 Linux behaves as it should, i.e. the kill icon is effectively 
disabled on the win window.

--
assignee: ronaldoussoren
components: Macintosh, Tkinter
files: bug.py
messages: 140624
nosy: Andy.Wildenberg, ronaldoussoren
priority: normal
severity: normal
status: open
title: win.protocol('WM_DELETE_WINDOW'...) still deletes window on OSX
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file22689/bug.py

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



[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Ram Rachum

Ram Rachum cool...@cool-rr.com added the comment:

What's the problem with detecting circular imports? Mind you that we only need 
a post-mortem analysis to check why the import failed; so after the import 
failed, we could check whether our import stack has a loop in it.

I'm not familiar with the ImportWarning regarding `__init__.py`. Is this 
written about anywhere?

--

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



[issue12570] BaseHTTPServer.shutdown() locks if the last request 404'd

2011-07-18 Thread Philip Horger

Philip Horger campadrena...@gmail.com added the comment:

I'm having trouble replicating the issue in simpler code snippets than the
project code the issue first popped up in, which means the problem is
probably my own code. For now, it looks like this was a false alarm, and I'm
sorry for wasting anyone's time. I normally do more research on my own
before submitting bugs, but at the time I hit the submit button I literally
had 10 seconds of internet left, so I was a bit crunched for time.

On Fri, Jul 15, 2011 at 11:54 AM, Petri Lehtinen rep...@bugs.python.orgwrote:


 Changes by Petri Lehtinen pe...@digip.org:


 --
 nosy: +petri.lehtinen

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue12570
 ___


--
Added file: http://bugs.python.org/file22690/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12570
___I#39;m having trouble replicating the issue in simpler code snippets than the 
project code the issue first popped up in, which means the problem is probably 
my own code. For now, it looks like this was a false alarm, and I#39;m sorry 
for wasting anyone#39;s time. I normally do more research on my own before 
submitting bugs, but at the time I hit the submit button I literally had 10 
seconds of internet left, so I was a bit crunched for time.br
brdiv class=gmail_quoteOn Fri, Jul 15, 2011 at 11:54 AM, Petri Lehtinen 
span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:brblockquote class=gmail_quote style=margin:0 0 0 
.8ex;border-left:1px #ccc solid;padding-left:1ex;
br
Changes by Petri Lehtinen lt;a 
href=mailto:pe...@digip.org;pe...@digip.org/agt;:br
br
br
--br
nosy: +petri.lehtinenbr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue12570; 
target=_blankhttp://bugs.python.org/issue12570/agt;br
___br
/div/div/blockquote/divbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12521] IDLE 3.2 crashes on Mac OS 10.6 with ActiveState Tcl/Tk 8.5

2011-07-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Since there has been no response, I am closing this.  Please re-open if you can 
still reproduce the crash and, if so, supply the requested information so we 
can investigate further.

--
resolution:  - works for me
stage: test needed - committed/rejected
status: open - closed

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



[issue12584] win.protocol('WM_DELETE_WINDOW'...) still deletes window on OSX

2011-07-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Works for me using the Pythons installed from the python.org 2.6.6 or 2.7.2 
installer and with the current ActiveState Tcl/Tk 8.4 (for 2.6.6) and 8.5 (for 
2.7.2) releases installed.  Chances are this was a bug in the Apple-supplied 
Cocoa Tcl/Tk 8.5 released with OS X 10.6 and used by the Apple-supplied Pythons 
in 10.6.  There are many known problems with the Apple-supplied version of 
Tcl/Tk 8.5.  We strongly recommend that you not attempt to use it.  See: 
http://www.python.org/download/mac/tcltk/

--
assignee: ronaldoussoren - ned.deily
nosy: +ned.deily
resolution:  - out of date
stage:  - committed/rejected
status: open - closed
versions: +Python 2.7

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



[issue12570] BaseHTTPServer.shutdown() locks if the last request 404'd

2011-07-18 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Not a problem. I am closing this, but if you find enough evidence that 
something is a bug, feel free to reopen this or another report.

--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue12570] BaseHTTPServer.shutdown() locks if the last request 404'd

2011-07-18 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


Removed file: http://bugs.python.org/file22690/unnamed

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



[issue12570] BaseHTTPServer.shutdown() locks if the last request 404'd

2011-07-18 Thread Philip Horger

Philip Horger campadrena...@gmail.com added the comment:

Thanks, sounds good to me too. I'll probably work on it a bit later, see if
I can find the bug in my own code at least.

On Mon, Jul 18, 2011 at 3:23 PM, Senthil Kumaran rep...@bugs.python.orgwrote:


 Changes by Senthil Kumaran sent...@uthcode.com:


 Removed file: http://bugs.python.org/file22690/unnamed

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue12570
 ___


--
Added file: http://bugs.python.org/file22691/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12570
___Thanks, sounds good to me too. I#39;ll probably work on it a bit later, see if 
I can find the bug in my own code at least.brbrdiv class=gmail_quoteOn 
Mon, Jul 18, 2011 at 3:23 PM, Senthil Kumaran span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:br
blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex;br
Changes by Senthil Kumaran lt;a 
href=mailto:sent...@uthcode.com;sent...@uthcode.com/agt;:br
br
br
Removed file: a href=http://bugs.python.org/file22690/unnamed; 
target=_blankhttp://bugs.python.org/file22690/unnamed/abr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue12570; 
target=_blankhttp://bugs.python.org/issue12570/agt;br
___br
/div/div/blockquote/divbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: [issue11343] Make errors due to full parser stack identifiable

2011-07-18 Thread Senthil Kumaran
Oh, I thought we never rely on exception message for anything
important. However this seems to be an exception for that exception.
:-)

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



[issue6476] MSVCRT's spawnve/spawnvpe are not thread safe

2011-07-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 3fa7581f6d46 by Antoine Pitrou in branch '2.7':
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under 
Windows.
http://hg.python.org/cpython/rev/3fa7581f6d46

New changeset a01ba3c32a4b by Antoine Pitrou in branch '3.2':
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under 
Windows.
http://hg.python.org/cpython/rev/a01ba3c32a4b

New changeset aee7c27ea7df by Antoine Pitrou in branch 'default':
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under 
Windows.
http://hg.python.org/cpython/rev/aee7c27ea7df

--
nosy: +python-dev

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



Re: [issue12479] Add HTTPErrorProcessor class definition

2011-07-18 Thread Senthil Kumaran
On Mon, Jul 18, 2011 at 02:07:42PM +, Éric Araujo wrote:
 I’d put the class definition just before the methods.  (I would even
 refactor the reST to use nested class/method combo...

This is a good suggestion. It would good to do some point in time soon.
Thanks!
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6476] MSVCRT's spawnve/spawnvpe are not thread safe

2011-07-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I've made the necessary doc changes. I leave it open because I'm not sure what 
to do with the bugfix request (I agree with the general suggestion to use 
subprocess instead, though).

--
nosy: +pitrou
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue11343] Make errors due to full parser stack identifiable

2011-07-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Oh, I thought we never rely on exception message for anything
 important. However this seems to be an exception for that exception.
 :-)

I think you're missing the point. People usually don't catch SyntaxError
and run fallback code in this case. And even if they do, they are
unlikely to care about whether the ErreurDeSyntaxe is due to a genuinely
faulty piece of code, or a parser limitation ;)

--

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



[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 62048a6eb43c by Senthil Kumaran in branch '3.2':
Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by 
Catalin Iacob
http://hg.python.org/cpython/rev/62048a6eb43c

New changeset 912b97ee40a7 by Senthil Kumaran in branch 'default':
merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. 
Patch suggestion by Catalin Iacob
http://hg.python.org/cpython/rev/912b97ee40a7

New changeset 33f09733612e by Senthil Kumaran in branch '2.7':
merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. 
Patch suggestion by Catalin Iacob
http://hg.python.org/cpython/rev/33f09733612e

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue12567] curses implementation of Unicode is wrong in Python 3

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Patch the _curses module to improve Unicode support:

 - add an encoding attribute to a window (only visible in C): read the locale 
encoding
 - encode a character and a character string to the window encoding if the 
ncursesw library is NOT used
 - addch(), addstr(), addnstr(), insstr() and insnstr() use the wide character 
functions if the ncursesw library is used
 - PyCurses_ConvertToChtype() checks for integer overflow and rejects values 
outside [0; 255]

The check on the ncursesw library availability is done in setup.py because the 
library linked to _curses depends on the readline library (see issues #7384 and 
#9408).

I don't know if wide character functions can be available in curses or ncurses 
library.

Details:

 - locale encoding: use GetConsoleOutputCP() on Windows, nl_langinfo(CODESET) 
if available, or utf-8
 - don't encode a character to the window encoding if its code is in [0; 127] 
(use the Unicode point code): all encoding are compatible with ASCII... except 
some encodings like JIS X 0201. In JIS, 0x5C is decoded to the yen sign 
(U+00A5) instead of a backslash (U+005C).
 - if an encoded character is longer than 1 byte, raise a OverflowError. For 
example, U+00E9 (é) encoded to UTF-8 gives b'\xC3\xA9' (two bytes).
 - copy the encoding when creating a subwindow.
 - use a global variable, screen_encoding, in PyCurses_UnCtrl() and 
PyCurses_UngetCh()

It's not possible to specify an encoding.

GetConsoleOutputCP() is maybe not the right code on Windows if a text 
application doesn't run in a Windows console (e.g. if it uses its own terminal 
emulator). GetOEMCP() is maybe a better choice, or a function should be added 
to specify the encoding used by the _curses module (override the locale 
encoding).

If a function is added to specify the encoding, I think that it is better to 
add a global function instead of adding an argument to functions creating a new 
window object (initscr(), getwin(), subwin(), derwin(), newpad()).

--
Added file: http://bugs.python.org/file22692/curses_unicode.patch

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



[issue12567] curses implementation of Unicode is wrong in Python 3

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Using curses_unicode.patch:

 - without ncursesw: addch('é') raises an OverflowError because 
'é'.encode('UTF-8') is 2 bytes and not 1 byte
 - with ncursesw: the charset is displayable character depends on the locale 
encoding (e.g. € cannot be printed with ISO-8859-1 locale encoding)
 - with ncursesw: any character can be printed with a UTF-8 locale encoding 
(including non-BMP characters: U-1..U+10)

It would be possible to support multibyte encoded character (like é in UTF-8) 
for addch() by calling addch() multiple times, one per byte, but I would prefer 
to keep _curses simple and not workaround libncurses limitations (bugs).

--

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



[issue12567] curses implementation of Unicode is wrong in Python 3

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

See also #6755 (curses.get_wch).

--

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



[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-07-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 implicit declaration of function ‘wget_wch’

curses_unicode.patch of issue #12567 adds a HAVE_NCURSESW define to only use 
wide character functions if _curses is linked to libncursesw.

This define can be used to fix this bug (use wget_ch whereas it is not 
available).

--

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



[issue1221] email.Utils.parseaddr(a(WRONG)@b)

2011-07-18 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
Removed message: http://bugs.python.org/msg59741

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



[issue1221] email.Utils.parseaddr(a(WRONG)@b)

2011-07-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Woops, hit a button wrong and managed to delete a message.  It just said:

See Issue1025395

--
nosy: +r.david.murray

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



[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-18 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

Éric, this is not a doc bug.  The sequence ABCs do not require slicing support.

--

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



[issue7484] smtplib: verify breaks with Postfix servers

2011-07-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset c4d884d5d86c by R David Murray in branch '2.7':
#7484: no more  around addresses in VRFY or EXPN
http://hg.python.org/cpython/rev/c4d884d5d86c

New changeset f8c4ac9aa9e2 by R David Murray in branch '3.2':
#7484: no more  around addresses in VRFY or EXPN
http://hg.python.org/cpython/rev/f8c4ac9aa9e2

New changeset 0d9216de8f05 by R David Murray in branch 'default':
Merge #7484: no more  around addresses in VRFY or EXPN
http://hg.python.org/cpython/rev/0d9216de8f05

--
nosy: +python-dev

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



[issue7484] smtplib: verify breaks with Postfix servers

2011-07-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 50b6c3053c30 by R David Murray in branch 'default':
#7484: simplify quoteaddr: if parseaddr throws an error it is a bug.
http://hg.python.org/cpython/rev/50b6c3053c30

--

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



[issue7484] smtplib: verify breaks with Postfix servers

2011-07-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thank you both for your work on this.  The patch I committed is a combination 
of my _addr_only, Filipe's tests, and Catalin's modifications to those tests.  
quoteaddr, although in the __all__, is not documented and is really an 
implementation detail, as is the new _addr_only.  So I am only testing them 
indirectly through the documented parts of the API (I added a test for  
address, and one for an IDNA encoded address).

Catalin, I think you are correct about the try/except/None stuff.  As far as I 
can tell it is left over from the old days before the email package and its 
philosophy of never throwing parsing errors.  Nowadays if parseaddr throws an 
error, it is a bug.  That's a refactoring not a bug fix, though, so I didn't 
backport it.

--
resolution:  - fixed
stage: test needed - committed/rejected
status: open - closed

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



[issue11343] Make errors due to full parser stack identifiable

2011-07-18 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Yeah, at the level of *code* the origin doesn't really matter, so re-using the 
exception type is actually OK. However, for *people* seeing the stack trace, it 
may be useful to know what's genuinely illegal syntax and what's a limitation 
of the current implementation. The exception message is a good place for that 
additional detail.

--

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



[issue7484] smtplib: verify breaks with Postfix servers

2011-07-18 Thread Felipe Cruz

Felipe Cruz felipec...@loogica.net added the comment:

You're very kind David.

Hope I can contribute with something more relevant next time :)

best regards,
Felipe

2011/7/18 R. David Murray rep...@bugs.python.org


 R. David Murray rdmur...@bitdance.com added the comment:

 Thank you both for your work on this.  The patch I committed is a
 combination of my _addr_only, Filipe's tests, and Catalin's modifications to
 those tests.  quoteaddr, although in the __all__, is not documented and is
 really an implementation detail, as is the new _addr_only.  So I am only
 testing them indirectly through the documented parts of the API (I added a
 test for  address, and one for an IDNA encoded address).

 Catalin, I think you are correct about the try/except/None stuff.  As far
 as I can tell it is left over from the old days before the email package and
 its philosophy of never throwing parsing errors.  Nowadays if parseaddr
 throws an error, it is a bug.  That's a refactoring not a bug fix, though,
 so I didn't backport it.

 --
 resolution:  - fixed
 stage: test needed - committed/rejected
 status: open - closed

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue7484
 ___


--
Added file: http://bugs.python.org/file22693/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7484
___You#39;re very kind David.divbr/divdivHope I can contribute with 
something more relevant next time :)/divdivbr/divdivbest 
regards,/divdivFelipebrbrdiv class=gmail_quote2011/7/18 R. David 
Murray span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/spanbr
blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex;div class=imbr
R. David Murray lt;a 
href=mailto:rdmur...@bitdance.com;rdmur...@bitdance.com/agt; added the 
comment:br
br
/divThank you both for your work on this.  The patch I committed is a 
combination of my _addr_only, Filipe#39;s tests, and Catalin#39;s 
modifications to those tests.  quoteaddr, although in the __all__, is not 
documented and is really an implementation detail, as is the new _addr_only. 
 So I am only testing them indirectly through the documented parts of the API 
(I added a test for lt;gt; address, and one for an IDNA encoded address).br

br
Catalin, I think you are correct about the try/except/None stuff.  As far as I 
can tell it is left over from the old days before the email package and its 
philosophy of never throwing parsing errors.  Nowadays if parseaddr throws an 
error, it is a bug.  That#39;s a refactoring not a bug fix, though, so I 
didn#39;t backport it.br

br
--br
resolution:  -gt; fixedbr
stage: test needed -gt; committed/rejectedbr
status: open -gt; closedbr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue7484; 
target=_blankhttp://bugs.python.org/issue7484/agt;br
___br
/div/div/blockquote/divbr/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7484] smtplib: verify breaks with Postfix servers

2011-07-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Don't short change yourself.  This bug would still be open if it hadn't been 
for your work, regardless of how much of it wound up in the final patch :)

--
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue12434] Strengthen 2.7 io types warning

2011-07-18 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

  Therefore, I propose to change this error message to:
   unicode argument expected, got '%s'
   as Terry suggested.
 

 Sounds good to me.


Terry, what are your thoughts?
Can I commit the fix?

--
Added file: http://bugs.python.org/file22694/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12434
___div dir=ltrbrdiv class=gmail_quoteblockquote class=gmail_quote 
style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;div 
class=im
gt; Therefore, I propose to change this error message to:br
gt;  quot;unicode argument expected, got #39;%s#39;quot;br
gt;  as Terry suggested.br
gt;br
br
/divSounds good to me.br/blockquotedivbrTerry, what are your 
thoughts?brCan I commit the fix?br br/div/divbr/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12434] Strengthen 2.7 io types warning

2011-07-18 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


Removed file: http://bugs.python.org/file22687/unnamed

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



[issue12434] Strengthen 2.7 io types warning

2011-07-18 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


Removed file: http://bugs.python.org/file22694/unnamed

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