[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-24 Thread Sean Reifschneider

Sean Reifschneider j...@tummy.com added the comment:

Thanks.  I had just read that a day or so ago, reviewing it for Brett's work.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Kristian Vlaardingerbroek

Changes by Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com:


--
nosy: +Kristian.Vlaardingerbroek

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



[issue10992] tests failing when run under coverage

2011-01-24 Thread Kristian Vlaardingerbroek

Changes by Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com:


--
nosy: +Kristian.Vlaardingerbroek

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Tanakorn Leesatapornwongsa

New submission from Tanakorn Leesatapornwongsa tanakorn@gmail.com:

With this code on python 2.6, I found that HTTPSConnection does not close 
connection properly.

from httplib import HTTPSConnection

for i in range(1000):
  https = HTTPSConnection(google.com)
  https.connect()
  https.request(GET, /)
  response = https.getresponse()
  response.close()
  https.close()
  print i

After searching python library, I guess that in ssl.py, implementation of 
close() method of SSLSocket is wrong.
socket.close(self) should not be called when self._makefile_refs  1 but should 
be call when self._makefile_refs == 1, isn't it?
I modified the code, made the patch and attached it with this issue.

--
components: Library (Lib)
files: ssl.py.patch
keywords: patch
messages: 126919
nosy: tanakorn
priority: normal
severity: normal
status: open
title: HTTPSConnection does not close when call close() method
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file20501/ssl.py.patch

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



[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-24 Thread Daniel Black

Daniel Black daniel.s...@internode.on.net added the comment:

ok. should library/ssl.rst be updated to use a SSLContext example?

--

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



Re: [issue10799] Improve webbrowser.open doc (and, someday, behavior?)

2011-01-24 Thread Senthil Kumaran
On Wed, Jan 12, 2011 at 12:23:31AM +, Éric Araujo wrote:
  I thought of adding 'http://' if not present but that would
  disable opening files in a file browser.
 
 I think that’s a Windows-specific behavior, not a promise of the
 *web*browser module.

If being lenient with URLs which do not start with http:// is the
idea, then webbrowser module can do explicitly add that. Having a
default protocol option in the open method and we can set it to
'http'.  Many WWW browsers do that.

But, I agree that it should not be related to Windows file-browser
behavior (for whatever it's behavior is). 

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Can you provide a test case which actually illustrates that zombie socket
connections present after the HTTPS Connection and Close?
I see the logic in your patch. But I don't see no left over unclosed
connections upon ssl.close either.

--
nosy: +orsenthil
Added file: http://bugs.python.org/file20502/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10993
___Can you provide a test case which actually illustrates that zombie socket 
connections present after the HTTPS Connection and Close?divI see the logic 
in your patch. But I don#39;t see no left over unclosed connections upon 
ssl.close either.br


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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Senthil Kumaran

Changes by Senthil Kumaran orsent...@gmail.com:


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

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Tanakorn Leesatapornwongsa

Tanakorn Leesatapornwongsa tanakorn@gmail.com added the comment:

I ran this attached file on my FreeBSD. After it printed loop finished, I ran 
command `sockstat | grep python` and it showed


korn python 58627 3  tcp4   10.0.2.15:28858   64.233.183.99:443
korn python 58627 4  tcp4   10.0.2.15:23579   64.233.183.147:443
korn python 58627 5  tcp4   10.0.2.15:52398   64.233.183.106:443
korn python 58627 6  tcp4   10.0.2.15:18764   64.233.183.105:443
korn python 58627 7  tcp4   10.0.2.15:46159   64.233.183.104:443
korn python 58627 8  tcp4   10.0.2.15:36906   64.233.183.103:443
korn python 58627 9  tcp4   10.0.2.15:45537   64.233.183.99:443
korn python 58627 10 tcp4   10.0.2.15:24578   64.233.183.103:443
korn python 58627 11 tcp4   10.0.2.15:26374   64.233.183.147:443
korn python 58627 12 tcp4   10.0.2.15:57399   64.233.183.106:443
korn python 58627 13 tcp4   10.0.2.15:12670   64.233.183.105:443
korn python 58627 14 tcp4   10.0.2.15:56306   64.233.183.104:443
korn python 58627 15 tcp4   10.0.2.15:42741   64.233.183.103:443
korn python 58627 16 tcp4   10.0.2.15:16112   64.233.183.99:443
korn python 58627 17 tcp4   10.0.2.15:25839   64.233.183.147:443
korn python 58627 18 tcp4   10.0.2.15:59310   64.233.183.106:443
korn python 58627 19 tcp4   10.0.2.15:35349   64.233.183.105:443
korn python 58627 20 tcp4   10.0.2.15:31881   64.233.183.104:443
korn python 58627 21 tcp4   10.0.2.15:21328   64.233.183.103:443
korn python 58627 22 tcp4   10.0.2.15:61880   64.233.183.99:443
korn python 58627 23 tcp4   10.0.2.15:47151   64.233.183.147:443
korn python 58627 24 tcp4   10.0.2.15:12796   64.233.183.106:443
korn python 58627 25 tcp4   10.0.2.15:57142   64.233.183.105:443
korn python 58627 26 tcp4   10.0.2.15:17930   64.233.183.104:443
korn python 58627 27 tcp4   10.0.2.15:13166   64.233.183.103:443
korn python 58627 28 tcp4   10.0.2.15:43557   64.233.183.99:443
korn python 58627 29 tcp4   10.0.2.15:39800   64.233.183.147:443
korn python 58627 30 tcp4   10.0.2.15:17364   64.233.183.106:443
korn python 58627 31 tcp4   10.0.2.15:50822   64.233.183.105:443
korn python 58627 32 tcp4   10.0.2.15:59156   64.233.183.104:443
korn python 58627 33 tcp4   10.0.2.15:41756   64.233.183.103:443
korn python 58627 34 tcp4   10.0.2.15:18008   64.233.183.99:443
korn python 58627 35 tcp4   10.0.2.15:44461   64.233.183.147:443

This should not be happend because I call https.close() in every loop 
iteration. And after I killed this python process, `sockstat | grep python` did 
not show anything.

Is this test case that you want?

--
Added file: http://bugs.python.org/file20503/zombiesocket.py

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Antoine Pitrou

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

Can you try with either 2.6.6 or 2.7.1?

--
nosy: +pitrou

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



[issue10994] implementation details in sys module

2011-01-24 Thread Maciej Fijalkowski

New submission from Maciej Fijalkowski fij...@gmail.com:

sys module documentation (as it is online) has some things that in my opinion 
should be marked as implementation details, but are not. Feel free to counter 
why not. 

Some of them has info it should be used for specialized purposes only, but IMO 
it's not the same as not mandatory for other implementations.

Temporary list:

_clear_type_cache

dllhandle

getrefcount

getdlopenflags (?)

getsizeof - it might be not well defined on other implementations

setdlopenflags

api_version

--
assignee: docs@python
components: Documentation
messages: 126925
nosy: docs@python, fijall
priority: normal
severity: normal
status: open
title: implementation details in sys module
type: behavior

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



[issue10994] implementation details in sys module

2011-01-24 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage:  - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue10994] implementation details in sys module

2011-01-24 Thread Łukasz Langa

Changes by Łukasz Langa luk...@langa.pl:


--
nosy: +lukasz.langa

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



[issue10994] implementation details in sys module

2011-01-24 Thread Antoine Pitrou

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

Well, getsizeof is not better-defined under CPython than elsewhere. It just 
gives a hint.
Agreed about the other.

--
nosy: +pitrou

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



[issue10994] implementation details in sys module

2011-01-24 Thread Maciej Fijalkowski

Maciej Fijalkowski fij...@gmail.com added the comment:

I suppose wrt getsizeof it's more of if you provide us with a reasonable 
expectations, we can implement this other than anything else.

--

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



[issue10994] implementation details in sys module

2011-01-24 Thread Antoine Pitrou

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

 I suppose wrt getsizeof it's more of if you provide us with a
 reasonable expectations, we can implement this other than anything
 else.

The expectation is that it returns the memory footprint of the given
object, and only it (not taking into account sharing, caching,
dependencies or anything else). For example, an instance will not count
its attribute __dict__. But a str object will count its object header
plus the string payload, if the payload is private.

Of course, you are free to tweak these semantics for the PyPy
implementation.

--

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



[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-24 Thread Antoine Pitrou

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

Well, there are already such examples: 
http://docs.python.org/dev/library/ssl.html#examples
Do you think they are not visible enough?

--

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



[issue10995] mailbox.py open() calls don't set encoding

2011-01-24 Thread Steffen Daode Nurpmeso

New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:

I'm using the en_GB.UTF-8 locale and thus the entire I/O layer defaults to use 
UTF-8 encoding.  Perfect.
The problem is that mailboxes are *not* and *never* in UTF-8, generally 
speaking, according to RFC mail standards!

So i suggest that mailbox.py either offers additional 'encoding=latin1' 
constructor arguments or always uses latin1 in open() calls.
This suffices to make mailbox.py usable -
i.e., the mailbox will be loaded/saved without causing encoder errors, and 
email.py will behave correctly according to message *content* anyway!

P.S.: i am far from being a Python(1) freak and feel a bit lost on 
*.python.org, so i might have blown the wrong whistles too load.
Sorry, if this is the case.
Thanks for python(1), it's damn slow and i love C and Perl.  ;-)

--
components: Library (Lib)
messages: 126930
nosy: Steffen.Daode.Nurpmeso
priority: normal
severity: normal
status: open
title: mailbox.py open() calls don't set encoding
type: behavior
versions: Python 3.1

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



[issue10995] mailbox.py open() calls don't set encoding

2011-01-24 Thread R. David Murray

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

Issue 9124 addresses the underlying problem here, so I'm closing this as a 
duplicate.

--
nosy: +r.david.murray
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - Mailbox module should use binary I/O, not text I/O

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



[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-24 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread David Stanek

Changes by David Stanek dsta...@dstanek.com:


--
nosy: +dstanek

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



[issue10983] Errors in http.client.HTTPConnection class (python3)

2011-01-24 Thread David Stanek

Changes by David Stanek dsta...@dstanek.com:


--
nosy: +dstanek

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



[issue5885] uuid.uuid1() is too slow

2011-01-24 Thread David Stanek

Changes by David Stanek dsta...@dstanek.com:


--
nosy: +dstanek

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



[issue10911] cgi: add more tests

2011-01-24 Thread David Stanek

Changes by David Stanek dsta...@dstanek.com:


--
nosy: +dstanek

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



[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-24 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy: +haypo

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

I think, we are facing a platform specific bug here. I had tried
similar program earlier and I tried your attached snippet with python
2.6.6 and release27-maint branch and I dont see the zombie sockets on
Ubuntu 10.10.

--

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Antoine Pitrou

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

Rather than labelling it a platform-specific issue, I'd like the OP to test 
with the latest bugfix releases (2.6.6 and 2.7.1). Some things have definitely 
been fixed recently.

--

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



[issue10963] subprocess can raise OSError (EPIPE) when communicating with short-lived processes

2011-01-24 Thread Federico Simoncelli

Federico Simoncelli fsimo...@redhat.com added the comment:

I agree they are orthogonal. The problem is that Popen.communicate doesn't 
support a way to ignore the exception and keep reading from stdout and sterr 
until the process dies.
When the child closes the stdin its (error/debug/info) messages on stout/sterr 
will be lost.
I am not just concerned about checking both the return-code and this exception, 
I am also worried about losing important information.

--
nosy: +simon3z

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



[issue10963] subprocess can raise OSError (EPIPE) when communicating with short-lived processes

2011-01-24 Thread Antoine Pitrou

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

You are right, this is suboptimal. It would also be a behaviour change from 
currently, but it seems beneficial.

--
nosy: +gregory.p.smith
type:  - feature request

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



[issue9723] Add shlex.quote

2011-01-24 Thread Éric Araujo

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

 you can just do 'from shlex import quote' in pipes

We would have had to do that anyway, since pipes needs to use the function.  
Agreed that a deprecation is not necessary.

--

___
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



[issue10911] cgi: add more tests

2011-01-24 Thread R. David Murray

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

Please keep new tests for existing features and new features in separate 
issues.  A proposed code refactoring should also be a separate issue.

--
nosy: +r.david.murray

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



[issue10994] implementation details in sys module

2011-01-24 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
nosy: +brett.cannon

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



[issue10996] Typo in What's New in 3.2

2011-01-24 Thread Daniel Urban

New submission from Daniel Urban urban.dani...@gmail.com:

In http://docs.python.org/dev/py3k/whatsnew/3.2.html#abc the example has two 
typos: 
farenheit - fahrenheit
celsium - celsius

--
assignee: docs@python
components: Documentation
messages: 126938
nosy: docs@python, durban
priority: normal
severity: normal
status: open
title: Typo in What's New in 3.2
type: behavior
versions: Python 3.2

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



[issue9723] Add shlex.quote

2011-01-24 Thread R. David Murray

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

Yes, I know you have to do it anyway, that's why I used the adverb 'just' (as 
in 'just that, and nothing more')  (I note that 'just' as an adverb tends to 
get overused by English speakers, and so loses some of its semantic value... :)

--

___
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



[issue10996] Typo in What's New in 3.2

2011-01-24 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
assignee: docs@python - rhettinger
nosy: +rhettinger

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



[issue10996] Typo in What's New in 3.2

2011-01-24 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Fixed.  Thanks.

--
resolution:  - fixed
status: open - closed

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



[issue10963] subprocess can raise OSError (EPIPE) when communicating with short-lived processes

2011-01-24 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue10997] Duplicate entries in IDLE Recent Files menu item on OS X

2011-01-24 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

When IDLE is run with an OS X Aqua Tk (Carbon 8.4 or Cocoa 8.5), using the File 
- Recent Files menu item to open a previously used file causes that file to 
show up a second time in the updated menu item and with the same keyboard 
shortcut.  With X11-based Tk on OS X, no duplicate is seen.  The problem stems 
from a difference in the way the Tk versions generate sub menus.  With the X11 
Tk the sub menu appears to start with a separator in menu index 0 and the first 
file is added in index 1.  With Aqua Tk, there is no separator and the first 
file is in index 0.  The code in IDLE to update the menu deletes from 1 to END 
so, with Aqua Tk, the file name inserted into index 0 is not removed.  The 
attached patch fixes the problem with Aqua Tk and appears to cause no problems 
with a current X11 Tk 8.5 on OS X.  Before committing it, though, it should be 
tested on Windows, which I'm not currently set up to do.

--
assignee: ned.deily
files: issue_idle_dup_recent.patch
keywords: patch
messages: 126941
nosy: ned.deily
priority: normal
severity: normal
status: open
title: Duplicate entries in IDLE Recent Files menu item on OS X
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file20504/issue_idle_dup_recent.patch

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



[issue10997] Duplicate entries in IDLE Recent Files menu item on OS X

2011-01-24 Thread Ned Deily

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


--
stage:  - patch review

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



[issue10997] Duplicate entries in IDLE Recent Files menu item on OS X

2011-01-24 Thread Ned Deily

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


--
nosy: +kbk

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



[issue10960] os.stat() does not mention that it follow symlinks by default

2011-01-24 Thread R. David Murray

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


--
assignee: docs@python - r.david.murray

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



[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-24 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Activestate has said (replying to me on Twitter as it happens) that a patch is 
available and they will do a new 8.5 release before 3.2 final.

--

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



[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-01-24 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

The -Q command-line option has been removed in Python 3 but there are some 
leftovers.  Attached patch removes them; tests pass; please review.

I think 3.1 should be fixed too, since no sane program should use those 
leftovers.

I removed the now-pointless tests in test_cmd_line.  They were not failing; 
this may be a bug in verify_valid_flag, out of scope for this report.

While I was editing the table used to document sys.flags, I added some 
link-generating markup (to the respective option doc) and made the table markup 
easier to read and edit.  I can make those changes in another commit if you 
prefer it.

--
assignee: eric.araujo
components: Interpreter Core
files: division_warning.diff
keywords: needs review, patch
messages: 126943
nosy: benjamin.peterson, eric.araujo, georg.brandl
priority: normal
severity: normal
stage: commit review
status: open
title: Remove last traces of -Q / sys.flags.division_warning / 
Py_DivisionWarningFlag
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file20505/division_warning.diff

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



[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-01-24 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

This would have been good for 3.2, but it is an API change...

--

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-24 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

No, it sounds fine then.

--

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



[issue10960] os.stat() does not mention that it follow symlinks by default

2011-01-24 Thread R. David Murray

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

Thanks.

Committed a modified version of the patch in r88164.  I extended your breakout 
of the attributes to the other paragraphs, and reorganized the order of the 
paragraphs in the stat docs to put things into a more logical order (I hope).  
I decided to change the existing wording about the stat system call to reflect 
the fact that we aren't making a stat system call on Windows, and did something 
similar in the lstat entry.

This will get backported to the 2.7 docs (and 3.1) presently, but not right 
away.

--
stage: needs patch - committed/rejected
status: open - closed

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



[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-01-24 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

Title pretty much says it all.  The constants are there in the stat module, but 
they aren't documented.  When they are documented the mentions in the 
os.chflags entry can be turned into cross reference links.

--
assignee: docs@python
messages: 126947
nosy: docs@python, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: os.chflags refers to stat constants, but the constants are not 
documented in the stat module
type: behavior

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



[issue10848] Move test.regrtest from getopt to argparse

2011-01-24 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

I finally had the time to look more closely to the issue, and I'd like to hear 
some comments on the info visualization.

Currently we have --help option to print:

 usage + additional details about execution + more rigorous testing
 options
 verbosity
 selecting tests
 special runs
 additional options details

Now, AFAIK argparse it's not so flexible, so we have to draw a line and choose 
a trade-off.

F.e., the additional options details: they can't be added in a help='..' kargs 
but they should be nonetheless be displayed when passing --help to regrtest.py.

* options, verbosity, selecting tests, special runs can all be grouped 
up into argument groups.

* usage can be managed twisting a bit the usage='...' karg of 
argparse.ArgumentParser

* but what about additional options details ? should we add that to the 
usage='...' text? or should we somehow override the print_help() and show

 usage
 options  options groups (this is standard until here)
 additional options details (appending the text after options)?

or something different I still don't imagine? :)

Cheers,
Sandro

--

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



[issue10848] Move test.regrtest from getopt to argparse

2011-01-24 Thread R. David Murray

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

What about putting the addition option details in the epilog?

--

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



[issue9723] Add shlex.quote

2011-01-24 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Putting quote() into shlex sounds good to me.

--
nosy: +georg.brandl

___
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



[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-01-24 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

I'm in mildly in favor of getting this done before the next release candidate.  
It seems like a desirable clean-up that would better be done sooner than later.

--
nosy: +rhettinger

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



[issue11000] Doc: ast.parse parses source, not just expressions

2011-01-24 Thread Terry J. Reedy

New submission from Terry J. Reedy tjre...@udel.edu:

ast.parse(expr, filename='unknown', mode='exec') 
Parse an expression into an AST node. Equivalent to compile(expr, filename, 
mode, ast.PyCF_ONLY_AST).

but

compile(source, ...) 
Compile the source into a code or AST object. 
...
The mode argument specifies what kind of code must be compiled; it can be 
'exec' if source consists of a sequence of statements,

and indeed, with all three versions,

 import ast
 e3=ast.parse('x=1; y=2\nif x: print(y)')
 o3 = compile(e3,'','exec')
 exec(o3)
2
 print(x,y)
(1, 2)

Attached patch (untested) changes doc and doc string.

Inquiry: I suspect that the filename is *not* attached to the ast. (In any 
case, it must be explicitly supplied to a subsequent compile() call.) If so, it 
is a useless parameter and the api and doc should be

parse(source, mode) ... Equivalent to compile(source, 'unknown', ...

If so, and failing such a change, should the doc warn people to not bother 
supplying a filename arg?

I also wonder whether the mode arg has any effect on the ast. If not, same 
question.

--
assignee: docs@python
components: Documentation
files: zast.diff
keywords: patch
messages: 126952
nosy: docs@python, georg.brandl, terry.reedy
priority: normal
severity: normal
status: open
title: Doc: ast.parse parses source, not just expressions
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file20506/zast.diff

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



[issue11000] Doc: ast.parse parses source, not just expressions

2011-01-24 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Looks fine.

--

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



[issue10708] Misc/porting should be folded in to the development FAQ

2011-01-24 Thread Brett Cannon

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

I've done what I plan to do to Misc and moving Porting was not part of it. I 
have no issue if someone else moves it, though.

--
resolution:  - rejected
status: open - closed

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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Heikki Toivonen

Heikki Toivonen hjtoi-bugzi...@comcast.net added the comment:

I also noticed this last week. However, this is not Windows specific. It 
happens with file systems that are not case sensitive. Besides Windows (NTFS, 
FAT*) the other common platform is Macintosh (HFS+ with default settings).

What happens is that we copy source into itself, then delete source.

I am not sure what the optimal solution would be but an easy one would be to 
first try os.rename (which works in this case), but if that fails then do the 
stuff that is currently shutil.move.

--
nosy: +heikki
title: Folders get deleted when trying to change case with shutil.move 
(Windows) - Folders get deleted when trying to change case with shutil.move 
(case insensitive file systems only)
versions: +Python 2.6

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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Heikki Toivonen

Changes by Heikki Toivonen hjtoi-bugzi...@comcast.net:


--
assignee:  - ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren

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



[issue9893] Usefulness of the Misc/Vim/ files?

2011-01-24 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - brett.cannon

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-24 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Fixed in r88169 and r88171. Thanks everyone for your help! I'll be keeping my 
eye on the buildbots for a bit to make sure everything stays green.

--
assignee:  - bethard
resolution:  - fixed
stage: patch review - committed/rejected
status: languishing - closed

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



[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-24 Thread Ned Deily

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

Yes, see http://permalink.gmane.org/gmane.comp.lang.tcl.mac/6871

So the plan for 3.2 is to assume there will be an updated ActiveState Tk 8.5 
available.  I will update the web status page accordingly.  And this issue can 
be closed as a third-party library issue.

--
resolution:  - wont fix
stage: needs patch - committed/rejected
status: open - closed

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



[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-24 Thread Daniel Black

Daniel Black daniel.s...@internode.on.net added the comment:

I thought previous comments you wanted SSLContext to become the primary api 
rather than wrap_socket? Coding this into the examples is probably a good way 
of making this happen.

--

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



[issue9509] argparse FileType raises ugly exception for missing file

2011-01-24 Thread Éric Araujo

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

Oops, I missed that while reading the patch: It introduces a translatable 
string which may cause i18n issues (discussed in #10528).  I can propose a 
patch this week if no-one beats me to it.

--

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



[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2011-01-24 Thread Antoine Pitrou

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

Well then let's reopen and unassign.

--
assignee: brett.cannon - 
nosy: +ncoghlan
resolution: rejected - 
stage:  - needs patch
status: closed - open
title: Misc/porting should be folded in to the development FAQ - Misc/porting 
should be folded into the development FAQ or the devguide
versions:  -Python 3.2

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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
assignee: ronaldoussoren - 

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



[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-01-24 Thread Éric Araujo

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

My argument that this change should have no impact so it’s safe to commit also 
works the other way: there is no pressure to make an exception to the process 
and commit this after rc1.  3.1 and 3.2 will have the bug, 3.3 won’t.

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

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



[issue11001] Various obvious errors in cookies documentation

2011-01-24 Thread Luke Plant

New submission from Luke Plant l.plant...@cantab.net:

Docs for SimpleCookie, BaseCookie.value_encode and BaseCookie.value_decode are 
obviously incorrect.  Attempt at patch attached.

The error has existed in every Python version I've seen, I've tagged the ones I 
believe can receive fixes, sorry if I've made a mistake.

Thanks.

--
assignee: docs@python
components: Documentation
files: http_cookies_doc_corrections.diff
keywords: patch
messages: 126962
nosy: docs@python, spookylukey
priority: normal
severity: normal
status: open
title: Various obvious errors in cookies documentation
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file20507/http_cookies_doc_corrections.diff

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



[issue10974] IDLE 3.x can crash decoding recent file list

2011-01-24 Thread Ned Deily

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

Committed in py3k (r88174) for 3.2rc2, with release manager approval, and in 
3.1 (r88177).

--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue11000] Doc: ast.parse parses source, not just expressions

2011-01-24 Thread Terry J. Reedy

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

r88172, r88173, r88175

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

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



[issue10848] Move test.regrtest from getopt to argparse

2011-01-24 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

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

 What about putting the addition option details in the epilog?

maybe it loose the fact that all the doc/explanation for regrtest
options were available from the command-line?

what about a --more-help option that print_help() + all those
information about cmdline switches?

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

Cinder on IRC found that test_exception's RuntimeError test triggers a 
trace_trampoline() line of code which resets the trace function as an exception 
gets triggered in the trace function itself.

test_doctest is being messy and setting pdb's trace function w/o putting back 
what it wrote over.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

test_pickle and test_pickletools both call test_bad_getattr in 
pickletester.py:1005

This results in a RuntimeError which leads to the same result as test_exceptions

--

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



[issue10879] cgi memory usage

2011-01-24 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

Issue 4953 has somewhat resolved this issue by using email only for parsing 
headers (more like 2.x did).  So this issue could be closed, or could be left 
open to point out the required additional features needed from email before 
cgi.py can use it for handling body parts as well as headers.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

test_pdb uses pdb.set_trace() w/o putting the original trace function back.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

test_scope blindly resets the trace function to None.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

And here is a revelation: test_sys_settrace clobbers the trace function blindly.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

test_zipimport_support fails because test_doctest fails; it re-runs the tests 
from a zipfile.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

test_io is causing coverage.py to complain thanks to the TextIOWrapperTests, 
and the regrtest check is complaining about SignalsTests. Don't know why 
specifically for either.

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

test_runpy fails because of a recursion depth test (test_main_recursion_error).

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

test_richcmp is failing because of a recursion test (test_recursion)

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

For test_io.*SignalsTests, its all the tests calling check_interrupted_write(). 
For TestIOWrapperTests its test_threads_write() (although only coverage.py is 
complaining, not regrtest).

--

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

OK, now that all the modules have been analyzed, let's see what is what.

The modules not playing nicely with others by blindly reseting the trace module:

test_doctest
test_pdb
test_scope
test_sys_settrace
test_zipimport_support (because of test_doctest)

And the tests failing because of recursion depth:
test_exceptions
test_pickle
test_pickletools
test_richcmp
test_runpy

And test_io is just special thanks to signals and threading.

Here is my thinking on how to solve this. The tests that are not playing nicely 
with sys.settrace() should (a) be decorated with test.support.cpython_only, and 
(b) use addCleanup() to properly put the trace function back.

For the recursion depth tests, either the cause (which is probably 
trace_trampoline()) needs to be analyzed to decide if some other semantics are 
needed or need something to unset the trace function and then put it back, but 
only if sys.gettrace() exists (e.g., don't block on non-CPython VMs).

--
stage: needs patch - 

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



[issue10848] Move test.regrtest from getopt to argparse

2011-01-24 Thread R. David Murray

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

That might be handy.  I thought you were trying to roughly reproduce the 
current help (which dumps it all out at once), which is why I suggested epilog.

--

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



[issue11001] Various obvious errors in cookies documentation

2011-01-24 Thread R. David Murray

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

The text in the docstrings appears to be accurate, and it seems to me they 
clarify it even more than your suggested changes do.  Also, I think 
SimpleCookie's encode/decode roughly implements some RFC or another (though 
there are some tweaks), and it might be worth mentioning that.

Even with these changes, though, I don't think it is possible to really 
understand what cookie is doing without reading the source, and even then it is 
non-obvious :(

--
nosy: +r.david.murray

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

Here is a patch that fixes test_scope.

--
Added file: http://bugs.python.org/file20508/test_scope.diff

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Brett Cannon

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

Here is a partial patch for test_sys_settrace. It fails on 
test_19_no_jump_without_trace_function for some reason I don't understand. It 
also doesn't protect against it being CPython-only as that is a function 
decorator and basically the whole module needs to be skipped.

--
Added file: http://bugs.python.org/file20509/test_sys_settrace.diff

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



[issue10882] Add os.sendfile()

2011-01-24 Thread Matt Joiner

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

I notice Linux is described as not taking count=0 to mean to send until the end 
of in is reached. Is it possible to pass (size_t)-1 to this field if None is 
given, or do a loop on non-zero counts from sendfile to emulate this?

I poked around the linux source for 2.6.32, and it appears sendfile() is 
emulated on top of splice(), but this doesn't provide undocumented count=0 
handling as I was hoping.

--
nosy: +anacrolix

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



[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-24 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

Here is a patch that rewrites BZ2File to implement the requested feature, and 
adds some tests using BytesIO objects.

Some notes:
* iteration and the read*() method now use the same buffering machinery, so 
they can be mixed freely. The test for issue8397 has been updated accordingly.
* readlines() now respects its size argument. The existing implementation 
appears to effectively ignore it.
* writelines() no longer uses the (deprecated) old buffer protocol, and is now 
much simpler.
* Currently, calling next() on a writable BZ2File results in a rather unhelpful 
error message; the patched version checks that the file is readable before 
trying to actually read.
* The docstrings have been rewritten to clarify that all of the methods deal 
with bytes and not text strings.

One thing I was unsure of is how to handle exceptions that occur in 
BZ2File_dealloc(). Does the error status need to be cleared before it returns?

The documentation for the bz2 module appears to be quite out of date; I will 
upload a patch in the next day or so.

On a related note, the 'buffering' argument to __init__() is ignored, and I was 
wondering whether this should be documented explicitly? The current 
documentation claims that it allows the caller to specify a buffer size, or 
request unbuffered I/O.

--
keywords: +patch
Added file: http://bugs.python.org/file20510/bz2module-v1.diff

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



[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-24 Thread Anthony Long

Anthony Long antl...@gmail.com added the comment:

Are there tests for this?

--
nosy: +antlong

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



[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-24 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

Yes, see bz2module-v1.diff.

--

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



[issue10976] json.loads() throws TypeError on bytes object

2011-01-24 Thread Anthony Long

Anthony Long antl...@gmail.com added the comment:

Works for me, py2.7 on snow leopard.

--
nosy: +antlong

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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Here is a patch (against release27-maint) for to fix this issue. BTW,what is 
the best way to check for case insensitive file-system? The test here merely 
checks if sys.platform returns mac, darwin or win32.

--
keywords: +patch
nosy: +orsenthil
Added file: http://bugs.python.org/file20511/Issue10684-py27.patch

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



[issue11002] 'Upload' link on Files page is broken

2011-01-24 Thread Anthony Long

New submission from Anthony Long antl...@gmail.com:

On pypi, when you are inside of your packages' files area, the link that is 
attached to 

1. Use the setup.py upload command. # upload

is broken, it links to http://www.python.org/doc/dist/package-upload.html which 
returns a 404.

http://d.pr/mmie

--
assignee: docs@python
components: Documentation
messages: 126988
nosy: antlong, docs@python
priority: normal
severity: normal
status: open
title: 'Upload' link on Files page is broken
type: behavior

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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

I would also add 'cygwin' to the list. I am not sure about the behavior of 
OpenVMS or other less prevalent file systems.

--

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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Heikki Toivonen

Heikki Toivonen hjtoi-bugzi...@comcast.net added the comment:

You can't solve this by trying to do different things on different operating 
systems. This bug depends on file system properties, not OS.

Also I don't think you can just lower case the path and do a comparison, 
because there are funky characters that don't round trip lower-upper-lower. 
And you certainly can't do this for just the last component of the path name - 
any component of the path could have changed case.

I still think the best avenue would be to first try straight os.rename, and if 
that fails (maybe only if target exists), the logic that is currently in 
shutil.move.

--

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Tanakorn Leesatapornwongsa

Tanakorn Leesatapornwongsa tanakorn@gmail.com added the comment:

I have tested it on python 2.7.1 already. It quite works.

Thank you.

--

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



[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Tanakorn Leesatapornwongsa

Changes by Tanakorn Leesatapornwongsa tanakorn@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-01-24 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

You can even argue it's a bug fix for 3.2.1, but I'd rather keep the list of 
changes in the rc small.

--

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