[issue16398] deque.rotate() could be much faster

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0d81333bde78 by Raymond Hettinger in branch '2.7':
Issue #16398: Optimize deque.rotate()
http://hg.python.org/cpython/rev/0d81333bde78

--

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



[issue16942] seriously? http.cookiejar.FileCookieJar().save method NOTImplemented?

2013-01-12 Thread C19

New submission from C19:

Is it means that we should use MozillaCookieJar LWPCookieJar or MSIECookieJar?

But the document says perhaps save cookies to, a file on disk. 
http://docs.python.org/2/library/cookielib.html?highlight=filecookiejar#cookielib.FileCookieJar

it looks like FileCookieJar is just a base class.it shouldn't be used on normal 
purpose(like save your cookie).then the document should be modified.
but I think it's better to make the FileCookieJar works as expected.

--
messages: 179777
nosy: C19
priority: normal
severity: normal
status: open
title: seriously? http.cookiejar.FileCookieJar().save method NOTImplemented?
type: enhancement
versions: Python 3.1, Python 3.2, Python 3.3

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



[issue16942] seriously? urllib still doesn't support persistent connections?

2013-01-12 Thread C19

C19 added the comment:

# TODO(jhylton): Should this be redesigned to handle
# persistent connections?

# We want to make an HTTP/1.1 request, but the addinfourl
# class isn't prepared to deal with a persistent connection.
# It will try to read all remaining data from the socket,
# which will block while the server waits for the next request.
# So make sure the connection gets closed after the (only)
# request.
headers[Connection] = close

http://bugs.python.org/issue9740
this has been a long time..how many is annoyed by this..Count me in..
persistent connections may not be easy on various OS and act the same.
I'm just satisfied if it works on linux.

--
title: seriously? http.cookiejar.FileCookieJar().save method NOTImplemented? - 
seriously? urllib still doesn't support persistent connections?
versions: +Python 2.6, Python 2.7

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



[issue16943] seriously? FileCookieJar can't really save ? save method is NotImplemented

2013-01-12 Thread C19

New submission from C19:

Is it means that we should use MozillaCookieJar LWPCookieJar or MSIECookieJar?

But the document says perhaps save cookies to, a file on disk. 
http://docs.python.org/2/library/cookielib.html?highlight=filecookiejar#cookielib.FileCookieJar

it looks like FileCookieJar is just a base class.it shouldn't be used on normal 
purpose(like save your cookie).then the document should be modified.
but I think it's better to make the FileCookieJar works as expected.

--
messages: 179779
nosy: C19
priority: normal
severity: normal
status: open
title: seriously? FileCookieJar can't really save ?  save method is 
NotImplemented

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



[issue16943] seriously? FileCookieJar can't really save ? save method is NotImplemented

2013-01-12 Thread C19

Changes by C19 classone2...@gmail.com:


--
components: +Library (Lib)
type:  - enhancement
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue16942] seriously? urllib still doesn't support persistent connections?

2013-01-12 Thread C19

C19 added the comment:

https://github.com/shazow/urllib3
do we really have to use a 3rd party module for this ?..

--

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



[issue16940] argparse 15.4.5.1. Sub-commands documentation missing indentation

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eae31f2b6f60 by Ezio Melotti in branch '2.7':
#16940: fix indentation in example.
http://hg.python.org/cpython/rev/eae31f2b6f60

New changeset 3d54723c9be6 by Ezio Melotti in branch '3.2':
#16940: fix indentation in example.
http://hg.python.org/cpython/rev/3d54723c9be6

New changeset b468f6c8eae5 by Ezio Melotti in branch '3.3':
#16940: merge with 3.2.
http://hg.python.org/cpython/rev/b468f6c8eae5

New changeset 6fe28afa6611 by Ezio Melotti in branch 'default':
#16940: merge with 3.3.
http://hg.python.org/cpython/rev/6fe28afa6611

--
nosy: +python-dev

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



[issue16940] argparse 15.4.5.1. Sub-commands documentation missing indentation

2013-01-12 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report!

--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - enhancement
versions: +Python 3.2, Python 3.3, Python 3.4

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



[issue16943] seriously? FileCookieJar can't really save ? save method is NotImplemented

2013-01-12 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - seriously? urllib still doesn't support persistent connections?

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



[issue16942] urllib still doesn't support persistent connections

2013-01-12 Thread Ramchandra Apte

Changes by Ramchandra Apte maniandra...@gmail.com:


--
title: seriously? urllib still doesn't support persistent connections? - 
urllib still doesn't support persistent connections

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



[issue2267] datetime.datetime operator methods are not subclass-friendly

2013-01-12 Thread Mark Dickinson

Mark Dickinson added the comment:

Alexander: can this be closed as wont fix?

--

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



[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-12 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Attached is a patch which uses subprocess. Haven't tested it much.

--
Added file: http://bugs.python.org/file28705/issue16829.patch

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



[issue16944] German number separators not working using format language and locale de_DE

2013-01-12 Thread Peter Stahl

New submission from Peter Stahl:

Yesterday, I opened a question on Stackoverflow that explains my problem in 
detail. Please read this page first:

http://stackoverflow.com/questions/14287051/german-number-separators-using-format-language-on-osx

A short summary: I'm on OSX 10.8.2. I wanted to format numbers according to the 
German numbering convention using Python's format language and the locale 
setting de_DE. Actually, the following should work to achieve that:

 import locale
 locale.setlocale(locale.LC_ALL, 'de_DE')
 '{0:n}'.format(1234.56)

The result of the last expressions should be 1.234,56. However, my result is 
1234,56. More examples are on Stackoverflow.

According to what other SO members have found out, this is a problem with the 
locale settings of OSX because the grouping of numbers is not fully part of the 
locale de_DE. On Windows, however, grouping works fine using the locale 
deu_deu which is not available on OSX.

Is this a bug? At least, it doesn't seem to be documented anywhere and is 
probably not the correct behavior even on OSX. Others have reported similar 
problems on OSX as well.

Do you have a quick solution for this issue? Thanks in advance.

--
components: Library (Lib)
messages: 179785
nosy: Peter.Stahl
priority: normal
severity: normal
status: open
title: German number separators not working using format language and locale 
de_DE
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue16876] epoll: reuse epoll_event buffer instead of allocating a new one at each poll()

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 30eb98c8afef by Charles-François Natali in branch 'default':
Issue #16876: Revert be8e6b81284e, which wasn't thread-safe: wait until a
http://hg.python.org/cpython/rev/30eb98c8afef

--

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



[issue2267] datetime.datetime operator methods are not subclass-friendly

2013-01-12 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
resolution:  - wont fix
status: open - closed

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



[issue16944] German number separators not working using format language and locale de_DE

2013-01-12 Thread Stefan Krah

Stefan Krah added the comment:

What is the output of this?

 locale.localeconv() 
{'mon_decimal_point': ',', 'frac_digits': 2, 'p_sign_posn': 1, 'thousands_sep': 
'.', 'p_sep_by_space': 1, 'int_curr_symbol': 'EUR ', 'decimal_point': ',', 
'mon_thousands_sep': '.', 'n_sep_by_space': 1, 'int_frac_digits': 2, 
'currency_symbol': 'EUR', 'negative_sign': '-', 'mon_grouping': [3, 3, 0], 
'positive_sign': '', 'n_cs_precedes': 0, 'grouping': [3, 3, 0], 'n_sign_posn': 
1, 'p_cs_precedes': 0}


If 'grouping' is [], then this looks like a bug in OSX. Python gets
the values directly from the operating system.

--
nosy: +skrah
status: open - pending

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



[issue16944] German number separators not working using format language and locale de_DE

2013-01-12 Thread Peter Stahl

Peter Stahl added the comment:

Using the locale 'de_DE', the output is:

{'mon_decimal_point': ',', 'int_frac_digits': 2, 'p_sep_by_space': 0, 
'frac_digits': 2, 'thousands_sep': '', 'n_sign_posn': 1, 'decimal_point': ',', 
'int_curr_symbol': 'EUR ', 'n_cs_precedes': 1, 'p_sign_posn': 1, 
'mon_thousands_sep': '.', 'negative_sign': '-', 'currency_symbol': 'Eu', 
'n_sep_by_space': 0, 'mon_grouping': [3, 3, 0], 'p_cs_precedes': 1, 
'positive_sign': '', 'grouping': [127]}

What does the number 127 mean?

Am 12.01.2013 um 12:39 schrieb Stefan Krah rep...@bugs.python.org:

 
 Stefan Krah added the comment:
 
 What is the output of this?
 
 locale.localeconv() 
 {'mon_decimal_point': ',', 'frac_digits': 2, 'p_sign_posn': 1, 
 'thousands_sep': '.', 'p_sep_by_space': 1, 'int_curr_symbol': 'EUR ', 
 'decimal_point': ',', 'mon_thousands_sep': '.', 'n_sep_by_space': 1, 
 'int_frac_digits': 2, 'currency_symbol': 'EUR', 'negative_sign': '-', 
 'mon_grouping': [3, 3, 0], 'positive_sign': '', 'n_cs_precedes': 0, 
 'grouping': [3, 3, 0], 'n_sign_posn': 1, 'p_cs_precedes': 0}
 
 
 If 'grouping' is [], then this looks like a bug in OSX. Python gets
 the values directly from the operating system.
 
 --
 nosy: +skrah
 status: open - pending
 
 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue16944
 ___

--
status: pending - open

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



[issue16944] German number separators not working using format language and locale de_DE

2013-01-12 Thread Stefan Krah

Stefan Krah added the comment:

127 means no-more-grouping, so Python behaves as instructed by the OS.

As you see, the OS prescribes 1.345.677,222 for *monetary* quantities
and 1345677,222 otherwise.

According to  http://de.wikipedia.org/wiki/DIN_1333 , for non monetary
quantities DIN-1333 says *empty spaces* *may* be used as separators.
DIN-5008 says they *should* be used. :)


Most operating systems use [3, 3, 0] also for de_DE 'grouping', but
given the unclear situation it's hard to claim a bug in OSX.


The only way out of this would be to introduce a new 'm' locale specifier
that uses mon_grouping.

--
nosy: +mark.dickinson

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



[issue5380] pty.read raises IOError when slave pty device is closed

2013-01-12 Thread Márcio Faustino

Changes by Márcio Faustino marciombfaust...@gmail.com:


--
nosy: +marciof

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



[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5b36768b9a11 by Eli Bendersky in branch '3.3':
Issue #16076: fix refleak in pickling of Element.
http://hg.python.org/cpython/rev/5b36768b9a11

New changeset 848738d3c40f by Eli Bendersky in branch 'default':
Close #16076: fix refleak in pickling of Element.
http://hg.python.org/cpython/rev/848738d3c40f

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

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



[issue16885] SQLite3 iterdump ordering

2013-01-12 Thread R. David Murray

R. David Murray added the comment:

When you say sometimes, do you mean randomly on the same schema, or do you mean 
depending on the specific schema sometimes it doesn't work?

The code is the same in the other python versions, so I'm adding them as the 
bug doubtless exists there as well.

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

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



[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4501813ea676 by Eli Bendersky in branch '3.3':
Issue #16076: check for return value of PyTuple_New for args (following
http://hg.python.org/cpython/rev/4501813ea676

New changeset 7313096e0bad by Eli Bendersky in branch 'default':
Issue #16076: check for return value of PyTuple_New for args (following
http://hg.python.org/cpython/rev/7313096e0bad

--

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



[issue16942] urllib still doesn't support persistent connections

2013-01-12 Thread R. David Murray

R. David Murray added the comment:

Please open a separate issue for your enhancement request in your second 
message (assuming there isn't already one open).  I'm not sure what your third 
message is about, but it also sounds off topic for your original bug report.

For the FileCookieJar issue, I agree that the documentation is unclear.  
However, it is perfectly reasonable to have a documented base class that is an 
Abstract Base Class, and there is no reason for us to invent our own unique 
cookie file format just to make FileCookieJar work by itself.  ABCs didn't 
exist when FileCookieJar was implemented, so it should be turned in to one for 
3.4 (it might break working code, so we shouldn't do that for bug fix 
releases).  That way you would get a useful error when you try to instantiate 
it, rather than when you try to use it.  And the docs should document it as 
being a base-class-only for all active releases.

--
assignee:  - docs@python
components: +Documentation, Library (Lib)
nosy: +docs@python, r.david.murray
stage:  - needs patch
type: enhancement - behavior
versions: +Python 3.4 -Python 3.1

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



[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-12 Thread Eli Bendersky

Eli Bendersky added the comment:

The fix looks good, but please don't add tests to the doctests - they are 
deprecated (from 3.3)

--

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



[issue15031] Split .pyc parsing from module loading

2013-01-12 Thread Brett Cannon

Brett Cannon added the comment:

Nick had some good suggestions on improvements: 
http://mail.python.org/pipermail/python-dev/2013-January/123602.html

Re-opening to remind me to do them.

--
status: closed - open

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



[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a1efab48d8f8 by Eli Bendersky in branch 'default':
Close #15442: Expand the list of default directories ignored by filecmp.dircmp 
and expose it as a module attribute
http://hg.python.org/cpython/rev/a1efab48d8f8

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

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



[issue16945] rewrite CGIHTTPRequestHandler to always use subprocess

2013-01-12 Thread Charles-François Natali

New submission from Charles-François Natali:

On Unix, CGIHTTPRequestHandler.run_cgi() uses the following code to run a CGI 
script:

pid = os.fork()
[...]
# Child
try:
try:
os.setuid(nobody)
except OSError:
pass
os.dup2(self.rfile.fileno(), 0)
os.dup2(self.wfile.fileno(), 1)
os.execve(scriptfile, args, env)


It's basically reimplementing subprocess.Popen, with a potential securiy issue: 
open file descriptors are not closed before exec, which means that the CGI 
script - which is run as 'nobody' on Unix to reduce its priviledges - can 
inherit open sockets or files (unless they're close-on-exec)...

The attached patch rewrites run_cgi() to use subprocess on all platorms.
I'm not at all familiar with CGI, so I don't guarantee it's correct, but  the 
regression test test_httpservers passes on Linux.

It leads to cleaner and safer code, so if someone with some httpsever/CGI 
background could review it, it would be great.

--
files: cgi_subprocess.diff
keywords: needs review, patch
messages: 179797
nosy: neologix
priority: normal
severity: normal
stage: patch review
status: open
title: rewrite CGIHTTPRequestHandler to always use subprocess
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file28706/cgi_subprocess.diff

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Brett Cannon

Brett Cannon added the comment:

load_dynamic should probably be documented since it does something you can't do 
on your own and importlib itself uses it.

As for the exception test, it should be to make sure ImportError is raised 
(i.e. the 'else' clause is hit).

--

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



[issue10544] yield expression inside generator expression does nothing

2013-01-12 Thread Daniel Shahaf

Changes by Daniel Shahaf pyt...@danielsh.fastmail.net:


--
nosy: +danielsh

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



[issue10541] regrtest.py -T broken

2013-01-12 Thread Eli Bendersky

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


--
nosy:  -eli.bendersky

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



[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

But all findtext tests are doctests and I want to keep the tests together. I 
think there should be separated issue for converting ElementTree doctests to 
unittests.

--

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



[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-12 Thread Eli Bendersky

Eli Bendersky added the comment:

Serhiy, indeed - that's issue #15083.

But since rewriting all tests is a large task no one is willing to take at this 
point, my strategy has been incremental: rewrite a chunk at a time when tests 
are being touched. Just adding new doctests goes against the desired direction.

I'll convert the findtext tests to unittest in 3.3 and default and then you can 
add your new tests in the proper place. Stay tuned.

--

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



[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2013-01-12 Thread Eli Bendersky

Eli Bendersky added the comment:

It should be noted that the doctests complicate things considerably, and should 
be rewritten to be unittest, which are easier to manipulate in terms of modules 
used.

--

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



[issue16398] deque.rotate() could be much faster

2013-01-12 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

I am OK with this patch being applied to 2.7, but I wonder why. This is not a 
bugfix... :-)

--

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



[issue16946] subprocess: _close_open_fd_range_safe() does not set close-on-exec flag on Linux 2.6.23 if O_CLOEXEC is defined

2013-01-12 Thread STINNER Victor

New submission from STINNER Victor:

The following extract of _close_open_fd_range_safe() is not correct:

#ifdef O_CLOEXEC
fd_dir_fd = open(FD_DIR, O_RDONLY | O_CLOEXEC, 0);
#else
fd_dir_fd = open(FD_DIR, O_RDONLY, 0);
#ifdef FD_CLOEXEC
{
int old = fcntl(fd_dir_fd, F_GETFD);
if (old != -1)
fcntl(fd_dir_fd, F_SETFD, old | FD_CLOEXEC);
}
#endif
#endif

On Linux older than 2.6.23, O_CLOEXEC may be defined by the glibc whereas the 
kernel does not support it. In this case, the flag is simply ignored and 
close-on-exec flag is not set on the file descriptor.

--
messages: 179803
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: subprocess: _close_open_fd_range_safe() does not set close-on-exec flag 
on Linux  2.6.23 if O_CLOEXEC is defined
versions: Python 3.2, Python 3.3, Python 3.4

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



[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

No surrounding %%s with quotes, nor changing to %%r doesn't work in all cases, 
because Python and shell use different quoting schemas. The only solution is 
using shlex.quote (which available only since 3.3). But even in this case we 
should be careful, this can break user code if user has fixed the issue by 
surrounding %%s with quotes (singular or double) or changing to %%r. Perhaps we 
should substitute not only bare %%s, but also %%s, '%%s' and %%r.

Ramchandra's patch doesn't help. First, shlex.split will fail in the same way 
as a shell. Second, we must run the command via shell, because user can use 
pipe or redirection.

--

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Nick Coghlan

Nick Coghlan added the comment:

The misleading docs Terry pointed out should also be fixed to note that imp 
is still used to expose some functionality where importlib really does need 
help from the underlying platform (such as loading dynamic modules).

--

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Nurhusien Hasen

Nurhusien Hasen added the comment:

Pleas stop your from me all isuss masege

On 1/13/13, Nick Coghlan rep...@bugs.python.org wrote:

 Nick Coghlan added the comment:

 The misleading docs Terry pointed out should also be fixed to note that
 imp is still used to expose some functionality where importlib really does
 need help from the underlying platform (such as loading dynamic modules).

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue16880
 ___
 ___
 Python-bugs-list mailing list
 Unsubscribe:
 http://mail.python.org/mailman/options/python-bugs-list/nurhusien.hasen27%40gmail.com



--
nosy: +Nurhusien2

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Nurhusien Hasen

Nurhusien Hasen added the comment:

Pleas stop your from me all isuss masege

On 1/13/13, Nurhusien Hasen nurhusien.hase...@gmail.com wrote:
 Pleas stop your from me all isuss masege

 On 1/13/13, Nick Coghlan rep...@bugs.python.org wrote:

 Nick Coghlan added the comment:

 The misleading docs Terry pointed out should also be fixed to note that
 imp is still used to expose some functionality where importlib really
 does
 need help from the underlying platform (such as loading dynamic modules).

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue16880
 ___
 ___
 Python-bugs-list mailing list
 Unsubscribe:
 http://mail.python.org/mailman/options/python-bugs-list/nurhusien.hasen27%40gmail.com




 --
 find signatures serves


--

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



[issue16946] subprocess: _close_open_fd_range_safe() does not set close-on-exec flag on Linux 2.6.23 if O_CLOEXEC is defined

2013-01-12 Thread R. David Murray

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


--
nosy: +gps

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



[issue16259] Replace exec() in test.regrtest with __import__

2013-01-12 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Boiiummp.

--

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



[issue12939] Add new io.FileIO using the native Windows API

2013-01-12 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Attached is a new patch which is implemented completely in C.

It adds a WinFileIO class to the io module, which has the same API 
as FileIO except that:

* It has a handle attribute instead of a fileno() method.

* It has staticmethods openhandle() and closehandle() which are
  analogues of os.open() and os.close().

The patch also adds a keyword-only rawfiletype argument to
io.open() so that you can write

f = open(somefile, w, rawfiletype=WinFileIO)

--
Added file: http://bugs.python.org/file28707/winfileio.patch

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



[issue12939] Add new io.FileIO using the native Windows API

2013-01-12 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


Removed file: http://bugs.python.org/file28544/winfileio.c

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



[issue12939] Add new io.FileIO using the native Windows API

2013-01-12 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


Removed file: http://bugs.python.org/file28545/test_winfileio.py

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



[issue12939] Add new io.FileIO using the native Windows API

2013-01-12 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


Removed file: http://bugs.python.org/file28590/winfileio.patch

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Nurhusien Hasen

Nurhusien Hasen added the comment:

Pleas stop your from me all isuss maseges

On 1/13/13, Nurhusien Hasen rep...@bugs.python.org wrote:

 Nurhusien Hasen added the comment:

 Pleas stop your from me all isuss masege

 On 1/13/13, Nurhusien Hasen nurhusien.hase...@gmail.com wrote:
 Pleas stop your from me all isuss masege

 On 1/13/13, Nick Coghlan rep...@bugs.python.org wrote:

 Nick Coghlan added the comment:

 The misleading docs Terry pointed out should also be fixed to note that
 imp is still used to expose some functionality where importlib really
 does
 need help from the underlying platform (such as loading dynamic
 modules).

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue16880
 ___
 ___
 Python-bugs-list mailing list
 Unsubscribe:
 http://mail.python.org/mailman/options/python-bugs-list/nurhusien.hasen27%40gmail.com




 --
 find signatures serves


 --

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


--

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



[issue12939] Add new io.FileIO using the native Windows API

2013-01-12 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Forgot to mention, the handles are non-inheritable.

You can use _winapi.DuplicateHandle() to create an inheritable duplicate handle 
if you really need to.

--

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



[issue16941] TkInter won't update display on OS X if delay is too small

2013-01-12 Thread Leon Maurer

Leon Maurer added the comment:

That's a good idea; I'll shoot them a message.

--

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



[issue16947] Search for sherpa on pypi leads to gitflow

2013-01-12 Thread Christoph Deil

New submission from Christoph Deil:

If you enter sherpa on http://pypi.python.org you currently get
http://pypi.python.org/pypi/gitflow/0.5.0

Why?
It doesn't make much sense as the term sherpa doesn't appear on that pypi 
page.
Instead pypi should say not found, as the sherpa Python package
is not registered on pypi:
http://cxc.cfa.harvard.edu/contrib/sherpa/

--
components: None
messages: 179813
nosy: Christoph.Deil
priority: normal
severity: normal
status: open
title: Search for sherpa on pypi leads to gitflow
type: behavior

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Nurhusien Hasen

Nurhusien Hasen added the comment:

On 1/13/13, Nurhusien Hasen rep...@bugs.python.org wrote:

 Nurhusien Hasen added the comment:

 Pleas stop your from me all isuss maseges

 On 1/13/13, Nurhusien Hasen rep...@bugs.python.org wrote:

 Nurhusien Hasen added the comment:

 Pleas stop your from me all isuss masege

 On 1/13/13, Nurhusien Hasen nurhusien.hase...@gmail.com wrote:
 Pleas stop your from me all isuss masege

 On 1/13/13, Nick Coghlan rep...@bugs.python.org wrote:

 Nick Coghlan added the comment:

 The misleading docs Terry pointed out should also be fixed to note that
 imp is still used to expose some functionality where importlib really
 does
 need help from the underlying platform (such as loading dynamic
 modules).

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue16880
 ___
 ___
 Python-bugs-list mailing list
 Unsubscribe:
 http://mail.python.org/mailman/options/python-bugs-list/nurhusien.hasen27%40gmail.com




 --
 find signatures serves


 --

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


 --

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


-- 
find signatures serves

--

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



[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f9d1d120c19e by Eli Bendersky in branch '3.3':
Issues #15083 and #16992: port find.* method tests to unittest
http://hg.python.org/cpython/rev/f9d1d120c19e

New changeset 18b16104166c by Eli Bendersky in branch 'default':
Issues #15083 and #16992: port find.* method tests to unittest
http://hg.python.org/cpython/rev/18b16104166c

--
nosy: +python-dev

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Nurhusien Hasen

Nurhusien Hasen added the comment:

Pleas stop your from me all isuss maseges pleas stop

On 1/13/13, Nurhusien Hasen nurhusien.hase...@gmail.com wrote:
 On 1/13/13, Nurhusien Hasen rep...@bugs.python.org wrote:

 Nurhusien Hasen added the comment:

 Pleas stop your from me all isuss maseges

 On 1/13/13, Nurhusien Hasen rep...@bugs.python.org wrote:

 Nurhusien Hasen added the comment:

 Pleas stop your from me all isuss masege

 On 1/13/13, Nurhusien Hasen nurhusien.hase...@gmail.com wrote:
 Pleas stop your from me all isuss masege

 On 1/13/13, Nick Coghlan rep...@bugs.python.org wrote:

 Nick Coghlan added the comment:

 The misleading docs Terry pointed out should also be fixed to note
 that
 imp is still used to expose some functionality where importlib
 really
 does
 need help from the underlying platform (such as loading dynamic
 modules).

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue16880
 ___
 ___
 Python-bugs-list mailing list
 Unsubscribe:
 http://mail.python.org/mailman/options/python-bugs-list/nurhusien.hasen27%40gmail.com




 --
 find signatures serves


 --

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


 --

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



 --
 find signatures serves


--

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



[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-12 Thread Eli Bendersky

Eli Bendersky added the comment:

Tests ported in 3.3 and 3.4

--

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



[issue16762] test_subprocess failure on OpenBSD/NetBSD buildbots

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 61d6b34af419 by Charles-François Natali in branch '2.7':
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
http://hg.python.org/cpython/rev/61d6b34af419

New changeset 58ce6ac61ada by Charles-François Natali in branch '3.2':
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
http://hg.python.org/cpython/rev/58ce6ac61ada

New changeset a3f0414af55b by Charles-François Natali in branch '3.3':
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
http://hg.python.org/cpython/rev/a3f0414af55b

New changeset 487ed428f0ba by Charles-François Natali in branch 'default':
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
http://hg.python.org/cpython/rev/487ed428f0ba

--
nosy: +python-dev

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



[issue16762] test_subprocess failure on OpenBSD/NetBSD buildbots

2013-01-12 Thread Charles-François Natali

Changes by Charles-François Natali cf.nat...@gmail.com:


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

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


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

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


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

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy:  -Nurhusien2

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


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

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


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

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



[issue16880] Importing imp will fail if dynamic loading not supported

2013-01-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


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

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



[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e651d96e6b07 by Serhiy Storchaka in branch '2.7':
Issue #16829: IDLE printing no longer fails if there are spaces or other
http://hg.python.org/cpython/rev/e651d96e6b07

New changeset 20065626c0b5 by Serhiy Storchaka in branch '3.2':
Issue #16829: IDLE printing no longer fails if there are spaces or other
http://hg.python.org/cpython/rev/20065626c0b5

New changeset 778bead39825 by Serhiy Storchaka in branch '3.3':
Issue #16829: IDLE printing no longer fails if there are spaces or other
http://hg.python.org/cpython/rev/778bead39825

New changeset 529b5ced59e0 by Serhiy Storchaka in branch 'default':
Issue #16829: IDLE printing no longer fails if there are spaces or other
http://hg.python.org/cpython/rev/529b5ced59e0

--
nosy: +python-dev

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



[issue16941] TkInter won't update display on OS X if delay is too small

2013-01-12 Thread Leon Maurer

Leon Maurer added the comment:

Well, it looks like the problem is known and can't be fixed:

http://mail.python.org/pipermail/tkinter-discuss/2013-January/003343.html

Oh well.

--

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



[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I have committed a very simple fix with shlex.quote (pipes.quote before 3.3). 
This is not fully backward compatible, it can break user configuration if the 
user had fixed this issue himself (and this fix is not perfect). But I 
think it's quite unlikely. Otherwise, we would get a bug report much earlier. 
An attempt to consider such hypothetical situation requires tedious code.

Thank you for report, Rod.

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

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



[issue16259] Replace exec() in test.regrtest with __import__

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e22c09f636d4 by R David Murray in branch 'default':
#16259: delete some no-longer-used code from regrtest.
http://hg.python.org/cpython/rev/e22c09f636d4

--
nosy: +python-dev

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



[issue16259] Replace exec() in test.regrtest with __import__

2013-01-12 Thread R. David Murray

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


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

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



[issue16947] Search for sherpa on pypi leads to gitflow

2013-01-12 Thread R. David Murray

R. David Murray added the comment:

Please report pypi issues to the pypi bug tracker:

  http://sourceforge.net/tracker/?group_id=66150atid=513503

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch for 3.3+.

--
Added file: http://bugs.python.org/file28708/etree_finditer_empty-3.3.patch

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



[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2013-01-12 Thread Éric Araujo

Éric Araujo added the comment:

+   .. versionadded:: 3.3

3.4*

--

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



[issue16948] email.mime.text.MIMEText: QP encoding broken with charset!=ISO-8859-1

2013-01-12 Thread Jakub Wilk

New submission from Jakub Wilk:

If you try to create MIMEText object with text containing characters outside 
the ISO-8859-1 range,
the quoted-printable encoder fails with KeyError:

Python 3.2.3 (default, Sep 10 2012, 12:58:42) 
[GCC 4.7.1] on linux2
Type help, copyright, credits or license for more information.
 import email.mime.text
 email.mime.text.MIMEText('\u017c', 'plain', 'ISO-8859-2')
Traceback (most recent call last):
  File /usr/lib/python3.2/email/message.py, line 331, in set_charset
cte(self)
TypeError: 'str' object is not callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python3.2/email/mime/text.py, line 30, in __init__
self.set_payload(_text, _charset)
  File /usr/lib/python3.2/email/message.py, line 296, in set_payload
self.set_charset(charset)
  File /usr/lib/python3.2/email/message.py, line 333, in set_charset
self._payload = charset.body_encode(self._payload)
  File /usr/lib/python3.2/email/charset.py, line 395, in body_encode
return email.quoprimime.body_encode(string)
  File /usr/lib/python3.2/email/quoprimime.py, line 240, in body_encode
if body_check(ord(c)):
  File /usr/lib/python3.2/email/quoprimime.py, line 81, in body_check
return chr(octet) != _QUOPRI_BODY_MAP[octet]
KeyError: 380

--
components: Library (Lib)
messages: 179826
nosy: jwilk
priority: normal
severity: normal
status: open
title: email.mime.text.MIMEText: QP encoding broken with charset!=ISO-8859-1
versions: Python 3.2

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



[issue16948] email.mime.text.MIMEText: QP encoding broken with charset!=ISO-8859-1

2013-01-12 Thread R. David Murray

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


--
components: +email
nosy: +barry, r.david.murray
versions: +Python 3.3, Python 3.4

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



[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-12 Thread Frank Wierzbicki

Changes by Frank Wierzbicki fwierzbi...@gmail.com:


Added file: http://bugs.python.org/file28709/dictcomps_updated2.patch

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



[issue15539] Fixing Tools/scripts/pindent.py

2013-01-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue16923] test_ssl kicks up a lot of ResourceWarnings

2013-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2c3f5ed7a5c9 by Antoine Pitrou in branch '3.3':
Issue #16923: Fix ResourceWarnings in test_ssl.
http://hg.python.org/cpython/rev/2c3f5ed7a5c9

New changeset f79d282c8147 by Antoine Pitrou in branch 'default':
Issue #16923: Fix ResourceWarnings in test_ssl.
http://hg.python.org/cpython/rev/f79d282c8147

--
nosy: +python-dev

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



[issue16923] test_ssl kicks up a lot of ResourceWarnings

2013-01-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Done!

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

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



[issue16947] Search for sherpa on pypi leads to gitflow

2013-01-12 Thread Christoph Deil

Christoph Deil added the comment:

Sorry about that. Ticket in PyPI tracer is now here:
http://sourceforge.net/tracker/?func=detailaid=3600625group_id=66150atid=513503

--

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



[issue1602133] non-framework python fails to define os.environ properly

2013-01-12 Thread Ronald Oussoren

Ronald Oussoren added the comment:

I appear to be running into this as well in py2app, with the current 2.7 tree 
and a --enable-shared build py2app's updates to the environment (with setenv 
from C code) won't be seen by Python, even though Python is initialized after 
the call to setenv.

The patch doesn't work for me though: with the patch the build fails because 
os.environ no longer contains 'PATH'. I'm looking into this issue.

The basic idea of the patch seems sane, both posixmodule.c and crt_externs.h 
mention that the call is needed for shared libraries.

--

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



[issue16601] Restarting iteration over tarfile continues from where it left off.

2013-01-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Michael Birtwell, can you please submit a contributor form?

http://python.org/psf/contrib/contrib-form/
http://python.org/psf/contrib/

--

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



[issue16941] TkInter won't update display on OS X if delay is too small

2013-01-12 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Would it be possible, and sane, to enforce a minimal delay on OSX? That is, 
code that automaticly ensures that the delay has some minimal value. 

Or does the required delay depend on what you are doing?

--
nosy: +ronaldoussoren

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



[issue16941] TkInter won't update display on OS X if delay is too small

2013-01-12 Thread Leon Maurer

Leon Maurer added the comment:

It seems to depend on what you're doing. Plus, the delay I needed turned an 
already slow animation in to a slide show.

In this case, a better fix seems to be sticking a root.update() right before 
the root.after. Then it works with no delay. However, apparently it's a 
little dangerous to use:

http://mail.python.org/pipermail/tkinter-discuss/2013-January/003346.html

In my case, the only side effect seems to be that using the menu effectively 
pauses the simualtion.

--

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



[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2013-01-12 Thread Eli Bendersky

Eli Bendersky added the comment:

What? Where did you see 3.3? It says 3.4 ;-)

Thanks, fixed in 72ddb250f058

--

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



[issue16941] TkInter won't update display on OS X if delay is too small

2013-01-12 Thread Ned Deily

Ned Deily added the comment:

FWIW, on my newer 2.2Ghz i7-based MacBookPro, I can reproduce the problem but I 
see satisfactory results by setting the delay to just 10 rather than 100. So, 
it is likely that the minimum delay is system- and application- dependent.  
Since there's not likely anything to be done here in Tkinter, I am going to 
close this issue.  Perhaps some day down the road, work being down now by Guido 
in PEP 3156 may provide a better way to integrate Python event loops with Tk's 
and Cocoa's.

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

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



[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-12 Thread Eli Bendersky

Eli Bendersky added the comment:

PyUnicode_New has been added in 3.3, so the 3.2 patch doesn't compile.

--

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



[issue16860] Use O_CLOEXEC in the tempfile module

2013-01-12 Thread STINNER Victor

STINNER Victor added the comment:

 I'll wait a little before removing O_NOFOLLOW

I don't know this flag. What is its effect of the directory part of the path? 
Does it change anything if the directory is a symbolic link?

--

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



[issue16500] Add an 'atfork' module

2013-01-12 Thread STINNER Victor

STINNER Victor added the comment:

The tempfile module has a specialized RNG that re-initialized the RNG after 
fork() by comparing os.getpid() to an instance variable every time the RNG is 
accessed. The check can be replaced with an afterfork callback.

By the way, OpenSSL expects that its PRNG is reseed somehow (call RNG_add) 
after a fork. I wrote a patch for OpenSSL, but I don't remember if I sent it to 
OpenSSL.
https://bitbucket.org/haypo/hasard/src/4a1be69a47eb1b2ec7ca95a341d4ca953a77f8c6/patches/openssl_rand_fork.patch?at=default

Reseeding tempfile PRNG is useless (but spend CPU/memory/hang until we have 
enough entropy?) if the tempfile is not used after fork. I like the current 
approach.

--

I'm not saying that a new atfork module would not help, just that the specific 
case of tempfile should be discussed :-) I like the idea of a generic module to 
call code after fork.

--
nosy: +haypo
title: Add an 'afterfork' module - Add an 'atfork' module

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



[issue10115] Support accept4() for atomic setting of flags at socket creation

2013-01-12 Thread STINNER Victor

STINNER Victor added the comment:

See the PEP 433 which proposes an unified API to set/unset close-on-exec flag 
on any function creating a file descriptor.

--

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



[issue16860] Use O_CLOEXEC in the tempfile module

2013-01-12 Thread Charles-François Natali

Charles-François Natali added the comment:

 I'll wait a little before removing O_NOFOLLOW

 I don't know this flag. What is its effect of the directory part of the path? 
 Does it change anything if the directory is a symbolic link?

No, it only has an effect if the target file is a symlink.
FWIW, glibc's mkstemp() implementation doesn't use it.

--

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



[issue16860] Use O_CLOEXEC in the tempfile module

2013-01-12 Thread STINNER Victor

STINNER Victor added the comment:

 No, it only has an effect if the target file is a symlink.

Oh ok, so O_NOFOLLOW is useless when O_EXCL is used. It is safe to remove it, 
but please only modify Python 3.4 (just in case...).

--

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



[issue14208] No way to recover original argv with python -m

2013-01-12 Thread Daniel Shahaf

Changes by Daniel Shahaf pyt...@danielsh.fastmail.net:


--
nosy: +danielsh

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



[issue16850] Add e mode to open(): close-and-exec (O_CLOEXEC) / O_NOINHERIT

2013-01-12 Thread STINNER Victor

STINNER Victor added the comment:

I created the PEP 433 which proposes a more global change to set the 
close-on-exec flag.

--

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



[issue2209] mailbox module doesn't support compressed mbox

2013-01-12 Thread Daniel Shahaf

Changes by Daniel Shahaf pyt...@danielsh.fastmail.net:


--
nosy: +danielsh

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



[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Given the system-dependent nature of the problem, starting with the simplest 
thing that really ought to work seems reasonable to me. I verified that the 3.3 
patch has no effect on Windows. IE, files with and without spaces printed 
without .py in the printed title.

--

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



[issue16406] move the Uploading Packages section to distutils/packageindex.rst

2013-01-12 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Updated the last patch by moving the PyPI package display to beneath the 
Registering Packages section (since only the register command affects the 
package display).

Éric, does this look okay to you?  I didn't change the text of any of the 
sections -- only moved them (and added introductory page text and index 
entries).

--
Added file: http://bugs.python.org/file28710/issue-16406-3.patch

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



[issue14208] No way to recover original argv with python -m

2013-01-12 Thread Nick Coghlan

Nick Coghlan added the comment:

For PEP 432, I'm proposing to expose this as sys._configuration.raw_argv

--

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



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

2013-01-12 Thread Todd Rovito

Todd Rovito added the comment:

Andrew,
Zachary and I worked on another issue together to sync idle.rst with 
help.txt here:
http://bugs.python.org/issue5066

Issue 5066 is ready for commit if you have time by the way.  Thanks!

--

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



[issue16946] subprocess: _close_open_fd_range_safe() does not set close-on-exec flag on Linux 2.6.23 if O_CLOEXEC is defined

2013-01-12 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith -gps

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