[issue19110] PEP-0 history link is broken

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 281608674f63 by Ned Deily in branch 'default':
Issue #19110: Suppress PEP 0 Last-Modified link in pep2pyramid, too
http://hg.python.org/peps/rev/281608674f63

--

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



[issue19110] PEP-0 history link is broken

2013-09-29 Thread Ned Deily

Ned Deily added the comment:

Thanks for the report.  The PEP 0 page now no longer contains a link: since it 
is automatically generated, there is no corresponding file for it in the peps 
repo.

--
nosy: +ned.deily
stage:  - committed/rejected

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



[issue19078] Allow reversed(memoryview), like memoryview

2013-09-29 Thread Claudiu.Popa

Claudiu.Popa added the comment:

For multidimensional arrays it doesn't seem to work (yet).

 x = numpy.array([[1,2,3], [4,5,6]])
 list(reversed(x))
[array([4, 5, 6]), array([1, 2, 3])]
 x.data
memory at 0x8032d06b8
 list(reversed(x.data))
Traceback (most recent call last):
  File stdin, line 1, in module
NotImplementedError: multi-dimensional sub-views are not implemented


--

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



[issue19110] PEP-0 history link is broken

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

Cool. Even if it is automatically generated, it may worth to commit this file 
anyway to get browsable HG history about PEP additions/removals.

--

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

I tested with 2.7 and 3.3, but this is true for any version.

If the bug is actual for Python 2.6, 3.1 and 3.2 why should I uncheck them? 
Versions field description doesn't say that I should mark only latest change. 
In addition, people (unlikely, but still) may search for specific versions to 
see which bugs were reported against them and fixed in later releases.

--

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The versions are the versions that will be patched for the issue.

--

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



[issue19010] Make XMLPullParser in ElementTree inherit from XMLParser

2013-09-29 Thread Stefan Behnel

Stefan Behnel added the comment:

Given that the inheritance chain has no real user impact, I can live with this 
difference.

--

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



[issue19121] Documentation guidelines enhancements

2013-09-29 Thread anatoly techtonik

New submission from anatoly techtonik:

I'll raise some points and then suggest how to fix that.

issue19060 it appeared that list of functions that subprocess replaces imbues 
readers with uncertainty, because this list is not complete.

Current http://docs.python.org/devguide/documenting.html guide doesn't pay 
attention that information should be complete and unambiguous. issue19060 is 
a good example of completeness requirement - user should not be left guessing 
what other functions can be or can not be replaced by subprocess. Unambiguous 
means that there should also be answer why they can or can not be replaced. For 
subprocess this info is partially provided in replacing older functions 
chapter. There also should not be a place for subjective judgement, fear and 
desperation. If something can not be done with subprocess, users should not be 
discouraged (left in fear) to use older functions. If there are valid points 
where subprocess is not good, they should be described in advanced section. If 
the description is too long to read, it should be linked.

Somebody may raise the point that subprocess docs is not the best place for 
such list. But between choice to be complete and structured, the former should 
take precedence. When documentation is complete enough, it's text can be 
restructured. This further raises a point about structure of docs. Both main 
docs and guidelines itself.


Main docs structure.

The more unambiguous, complete and concise documentation is, the better it is 
for understanding. Currently our docs really miss overviews and summaries. Some 
may argue that there is no place for that in official docs, especially if such 
summaries will contain info about history and changes between Python versions. 
But I'd say that if there is no place, we need to find it for them. Just two 
examples. MSDN and Python Cookbook both are examples of perfect documentation 
and these both include overview chapters before function reference. When where 
is a critical mass of info related to child process execution and management, 
it is worth to make an overview.


Guidelines structure.

ToC.
Sphinx ToCs are too narrow - they are hard to read. If ToC is present in side 
panel for navigation, it is not the reason not to include it below the page 
header for human readers to see the structure of the doc. I find it extremely 
hard (unnatural) to scan the side panel for the doc structure.

This should be split between markup and content guidelines. Right now the 
structure of docs is:

7. Documenting Python
7.1. Introduction
7.2. Style guide
7.2.1. Use of whitespace
7.2.2. Footnotes
7.2.3. Capitalization
7.2.4. Affirmative Tone
7.2.5. Economy of Expression
7.2.6. Code Examples
7.2.7. Code Equivalents
7.2.8. Audience
7.3. reStructuredText Primer
7.3.1. Paragraphs
7.3.2. Inline markup
7.3.3. Lists and Quotes
7.3.4. Source Code
7.3.5. Hyperlinks
7.3.5.1. External links
7.3.5.2. Internal links
7.3.6. Sections
7.3.7. Explicit Markup
7.3.8. Directives
7.3.9. Footnotes
7.3.10. Comments
7.3.11. Source encoding
7.3.12. Gotchas
7.4. Additional Markup Constructs
7.4.1. Meta-information markup
7.4.2. Module-specific markup
7.4.3. Information units
7.4.4. Showing code examples
7.4.5. Inline markup
7.4.6. Cross-linking markup
7.4.7. Paragraph-level markup
7.4.8. Table-of-contents markup
7.4.9. Index-generating markup
7.4.10. Grammar production displays
7.4.11. Substitutions
7.5. Differences to the LaTeX markup
7.5.1. Inline markup
7.5.2. Information units
7.5.3. Structure
7.6. Building the documentation
7.6.1. Using make
7.6.2. Without make

As you may see the 90% of the ToC is markup reference. Some topics like 
Hyperlinks are oversplit. Making two chapter for just one sentence is an 
obsession with structure. That's ok for coding, but for readability I would 
just make it into a list in one chapter, renamed to Linking and merged 
cross-linking markup section into it.


7.2.3. Capitalization
7.2.4. Affirmative Tone
7.2.5. Economy of Expression
7.2.6. Code Examples

As you may see, the Content writing is perfectly mixed with Content 
formatting into the mix of rules for proper whitespace formatting. This 
perfectly characterizes us coders, who often mix the concept of good code 
which is bug-free with concept of good code which is PEP-8 compliant. I mean 
that it leaves expression that most of the document is about rules, regulations 
and nitpicking about how you should format the text, not how you should write. 

Let's make this unambiguous - Content of documentation is essential info that 
readers need to know. Format of docs is the markup, whitespace, examples, 
footnotes and other stuff. Content guidelines say that you should insert 
footnotes, Format guidelines show how to do this. Content guidelines should 
not distract from the content aspects.

So, the Style Guide should be split into Content Writing and Formatting 
Guidelines [ ]. Or moves into separate file at all.


The Content Writing chapter.
Should 

[issue19060] docs: note that subprocess doesn't replace os.exec*

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

I would like to know if the list is complete too. It would be
extremely awesome if it was complete.

This raises a side issue that there seems no guideline to write
unambiguous and complete documentation. I spammed the tracker with
this stuff in issue19121.

--

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



[issue19060] docs: note that subprocess doesn't replace os.exec*

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

On Sat, Sep 28, 2013 at 10:30 PM, Terry J. Reedy rep...@bugs.python.org wrote:

 If a sentence were added, I would simplify it to
 It does not replace os.exec*. or perhaps os.fork and os.exec*..

I prefer list. It is easier to scan:
http://www.nngroup.com/articles/how-users-read-on-the-web/

--

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

It should be documented somehow then. At least in the field tooltip.

--

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



[issue19121] Documentation guidelines enhancements

2013-09-29 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
nosy: +rhettinger

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



[issue1764286] inspect.getsource does not work with decorated functions

2013-09-29 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Hello. Attached patch which uses the new inspect.unwrap, added in 
http://hg.python.org/cpython/rev/2aa6c1e35b8a.

--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file31902/inspect_getsource.patch

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



[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2013-09-29 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


--
nosy: +daniel.urban

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



[issue19122] duplicate test name in Lib/test/test_import.py

2013-09-29 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Duplicate method names:
./Lib/test/test_import.py:255 ImportTests.test_import_name_binding

Attached patch fixes it.

--
components: Library (Lib)
files: duplicate_test_name.patch
keywords: patch
messages: 198576
nosy: brett.cannon, xdegaye
priority: normal
severity: normal
status: open
title: duplicate test name in Lib/test/test_import.py
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file31903/duplicate_test_name.patch

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



[issue19123] duplicate test name in Lib/test/test_regrtest.py

2013-09-29 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Duplicate method names:
./Lib/test/test_regrtest.py:210 ParseArgsTestCase.test_findleaks

Attached patch fixes it.

--
components: Library (Lib)
files: duplicate_test_name.patch
keywords: patch
messages: 198577
nosy: ezio.melotti, michael.foord, pitrou, xdegaye
priority: normal
severity: normal
status: open
title: duplicate test name in Lib/test/test_regrtest.py
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file31904/duplicate_test_name.patch

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik

New submission from anatoly techtonik:

os.execv() starts process in background on Windows. Because it inherits 
stdin/stdout handlers from the process that launched Python interpreter, this 
becomes a source of numerous weird bugs, from polluting the stdout stream of 
parent to completely blocking its input.

Example session on Windows. Open cmd.exe and run attached testexecvchild.py. It 
starts child process with execv(). Child pauses for 2 seconds during which I 
type 'echo Hello' and hit Enter.

With Python 3 is pollutes parent output after 3 seconds:
python testexecvchild.py

echo Hello
Hello

Traceback (most recent call last):
File testexecvchild.py, line 7, in module
raw_input('xxx')
NameError: name 'raw_input' is not defined

With Python 2 the stdin of cmd.exe is blocked:
py testexecvchild.py

echo Hello
Hello

xxxecho Hello
Hello

echo Hello
  testexecvchild.py
  passed
echo Hello
Hello

The same behavior on Linux:

$ python testexecvchild.py
echo Hello
xxx  testexecvchild.py
  passed

--
components: Library (Lib)
messages: 198578
nosy: techtonik
priority: normal
severity: normal
status: open
title: os.execv executes in background on Windows
type: behavior
versions: Python 2.7, Python 3.3

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

s/same behavior/same command/

--

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik

Changes by anatoly techtonik techto...@gmail.com:


Added file: http://bugs.python.org/file31905/testexecvchild.py

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread Richard Oudkerk

Richard Oudkerk added the comment:

See

http://bugs.python.org/issue436259

This is a problem with Window's implementation of spawn*() and exec*().  Just 
use subprocess instead which gets this stuff right.

Note that on Windows exec*() is useless: it just starts a subprocess and exits 
the current process.  You can use subprocess to get the same effect.

--
nosy: +sbt

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



[issue19125] duplicate test name in Lib/test/test_smtplib.py

2013-09-29 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Duplicate method names:
./Lib/test/test_smtplib.py:249 DebuggingServerTests.testNotImplemented

Attached patch fixes this: the first method has been renamed to
testEHLO since the channel_class of the DebuggingServer is
SMTPChannel, and SMTPChannel does support EHLO.

--
components: Library (Lib)
files: duplicate_test_name.patch
keywords: patch
messages: 198582
nosy: giampaolo.rodola, xdegaye
priority: normal
severity: normal
status: open
title: duplicate test name in Lib/test/test_smtplib.py
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file31906/duplicate_test_name.patch

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

On Sun, Sep 29, 2013 at 2:05 PM, Richard Oudkerk rep...@bugs.python.org wrote:
 See  http://bugs.python.org/issue436259

I am not sure that I should see there. There is discussion of DOS,
which is not supported, also some complain about Windows execv
function, which deprecated since VC++ 2005 (which I hope also not
supported). Can you be more specific?

 This is a problem with Window's implementation of spawn*() and exec*().

 Note that on Windows exec*() is useless: it just starts a subprocess and 
 exits the current process.  You can use subprocess to get the same effect.

Are you describing Windows implementation of _exec()
http://msdn.microsoft.com/en-us/library/431x4c1w.aspx or current
Python implementation?

 Just use subprocess instead which gets this stuff right.

subprocess doesn't replace os.exec*, see issue19060

--
title: os.execv fails with spaced names on  Windows - os.execv fails with 
spaced names on Windows

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



[issue19126] duplicate test name in Lib/test/test_webbrowser.py

2013-09-29 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Duplicate method names:
./Lib/test/test_webbrowser.py:161 OperaCommandTest.test_open_new

Attached patch fixes it.

--
components: Library (Lib)
files: duplicate_test_name.patch
keywords: patch
messages: 198583
nosy: georg.brandl, xdegaye
priority: normal
severity: normal
status: open
title: duplicate test name in Lib/test/test_webbrowser.py
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file31907/duplicate_test_name.patch

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



[issue19127] duplicate test name in Lib/xml/dom/minidom.py

2013-09-29 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Duplicate method names:
./Lib/xml/dom/minidom.py:379 Attr._get_name

--
components: Library (Lib)
messages: 198584
nosy: xdegaye
priority: normal
severity: normal
status: open
title: duplicate test name in Lib/xml/dom/minidom.py
type: behavior
versions: Python 3.4

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



[issue19128] duplicate test name in Mac/Tools/Doc/setup.py

2013-09-29 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Duplicate method names:
./Mac/Tools/Doc/setup.py:123 DocBuild.makeHelpIndex

--
components: Library (Lib)
messages: 198585
nosy: hynek, ned.deily, ronaldoussoren, xdegaye
priority: normal
severity: normal
status: open
title: duplicate test name in Mac/Tools/Doc/setup.py
type: behavior
versions: Python 3.4

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



[issue16079] list duplicate test names with patchcheck

2013-09-29 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The following issues have been entered for all the above duplicate
names found by duplicate_code_names_2.py:

issue 19112, issue 19113, issue 19114, issue 19115, issue 19116,
issue 19117, issue 19118, issue 19119, issue 19122, issue 19123,
issue 19125, issue 19126, issue 19127, issue 19128

except the following which should be added to ignored_duplicates:

./Lib/test/test_os.py:1290 Win32ErrorTests

--

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 I am not sure that I should see there. There is discussion of DOS,
 which is not supported, also some complain about Windows execv
 function, which deprecated since VC++ 2005 (which I hope also not
 supported). Can you be more specific?

_spawn*() and _exec*() are implemented by the C runtime library.  spawn*() and 
execv() are (deprecated) aliases.

The the first message is about someone's attempt to work around the problems 
with embedded spaces and double quotes by writing a function to escape each 
argument.  He says he had a partial success.

Surely this is basic reading comprehension?

  Note that on Windows exec*() is useless: it just starts a subprocess and 
  exits the current process.  You can use subprocess to get the same effect.

 Are you describing Windows implementation of _exec()
 http://msdn.microsoft.com/en-us/library/431x4c1w.aspx or current
 Python implementation?

The Windows implementaion of _exec().

  Just use subprocess instead which gets this stuff right.

 subprocess doesn't replace os.exec*, see issue19060

On Unix subprocess does not replace os.exec*().  That is because on Unix 
exec*() replaces the current process with a new process with the *same pid*.  
subprocess cannot do this.

But on Windows os.exec*() just starts an independent process with a *different 
pid* and exits the current process.  The line

os.execv(path, args)

is equivalent to

os.spawnv(os.P_NOWAIT, path, args)
os._exit(0)

--

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



[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2013-09-29 Thread Mathieu Sornay

Changes by Mathieu Sornay msor...@gmail.com:


--
nosy: +lechfeck

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



[issue19122] duplicate test name in Lib/test/test_import.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a25fe5675ea4 by Benjamin Peterson in branch '3.3':
remove duplicate test from test_import (closes #19122)
http://hg.python.org/cpython/rev/a25fe5675ea4

New changeset 026cfc382a13 by Benjamin Peterson in branch 'default':
merge 3.3 (#19122)
http://hg.python.org/cpython/rev/026cfc382a13

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

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



[issue19125] duplicate test name in Lib/test/test_smtplib.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f501475d88de by Benjamin Peterson in branch '3.3':
fix test to run and test that smtpd does support ELHO (closes #19125)
http://hg.python.org/cpython/rev/f501475d88de

New changeset d55f911c4c9d by Benjamin Peterson in branch 'default':
merge 3.3 (#19125)
http://hg.python.org/cpython/rev/d55f911c4c9d

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

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



[issue19123] duplicate test name in Lib/test/test_regrtest.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 39f9adc8ad5b by Benjamin Peterson in branch 'default':
delete duplicate test (closes #19123)
http://hg.python.org/cpython/rev/39f9adc8ad5b

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

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



[issue19117] duplicate test names in Lib/test/test_dis.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9922b2cda52c by Benjamin Peterson in branch '3.3':
fix duplicate test names in test_dis (closes #19117)
http://hg.python.org/cpython/rev/9922b2cda52c

New changeset 971965daadfb by Benjamin Peterson in branch 'default':
merge 3.3 (#19117)
http://hg.python.org/cpython/rev/971965daadfb

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

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



[issue19118] duplicate test names in Lib/test/test_ftplib.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9b3088bc24f1 by Benjamin Peterson in branch '3.3':
remove duplicate test_mkd (closes #19118)
http://hg.python.org/cpython/rev/9b3088bc24f1

New changeset c27f036e7b48 by Benjamin Peterson in branch 'default':
merge 3.3 (#19118)
http://hg.python.org/cpython/rev/c27f036e7b48

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

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



[issue19126] duplicate test name in Lib/test/test_webbrowser.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aaa00c0e825d by Benjamin Peterson in branch '3.3':
fix duplicate test name (closes #19126)
http://hg.python.org/cpython/rev/aaa00c0e825d

New changeset c5b3d86535e1 by Benjamin Peterson in branch 'default':
merge 3.3 (#19126)
http://hg.python.org/cpython/rev/c5b3d86535e1

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

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



[issue19116] duplicate test names in Lib/test/test_complex.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cddb3e1e5054 by Benjamin Peterson in branch '3.3':
combine two tests to avoid duplicate names (closes #19116)
http://hg.python.org/cpython/rev/cddb3e1e5054

New changeset d87ef944ddcc by Benjamin Peterson in branch 'default':
merge 3.3 (#19116)
http://hg.python.org/cpython/rev/d87ef944ddcc

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

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



[issue19112] tests of _TestProcess are not run by the multiprocessing test suite

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 414ccf20d182 by Benjamin Peterson in branch '3.3':
move helper function into its test method (closes #19112)
http://hg.python.org/cpython/rev/414ccf20d182

New changeset 959e894dc794 by Benjamin Peterson in branch '2.7':
move helper function into its test method (closes #19112)
http://hg.python.org/cpython/rev/959e894dc794

New changeset ea54a55a21a1 by Benjamin Peterson in branch 'default':
merge 3.3 (#19112)
http://hg.python.org/cpython/rev/ea54a55a21a1

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

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



[issue19114] duplicate test names in Lib/distutils/tests/test_cmd.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9d4d9e945f29 by Benjamin Peterson in branch '3.3':
condense two tests with the same name (closes #19114)
http://hg.python.org/cpython/rev/9d4d9e945f29

New changeset 61ae31665ee1 by Benjamin Peterson in branch '2.7':
condense two tests with the same name (closes #19114)
http://hg.python.org/cpython/rev/61ae31665ee1

New changeset 0a5ce192ba8a by Benjamin Peterson in branch 'default':
merge 3.3 (#19114)
http://hg.python.org/cpython/rev/0a5ce192ba8a

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

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



[issue19127] duplicate test name in Lib/xml/dom/minidom.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b76e1b58ed45 by Benjamin Peterson in branch '3.3':
remove duplicate method (closes #19127)
http://hg.python.org/cpython/rev/b76e1b58ed45

New changeset 792006307d6d by Benjamin Peterson in branch '2.7':
remove duplicate method (closes #19127)
http://hg.python.org/cpython/rev/792006307d6d

New changeset 815780593826 by Benjamin Peterson in branch 'default':
merge 3.3 (#19127)
http://hg.python.org/cpython/rev/815780593826

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

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



[issue19111] 2to3 should remove from future_builtins import *

2013-09-29 Thread Peter

Peter added the comment:

Thinking about this, perhaps the bug is that Python 3 doesn't have a 
future_builtins module? Consider:


$ python2.6
Python 2.6.8 (unknown, Sep 28 2013, 12:09:28) 
[GCC 4.6.3] on linux3
Type help, copyright, credits or license for more information.
 from __future__ import with_statement
 from __future__ import print_function
 from future_builtins import map, zip
 quit()


versus:


$ python3.3
Python 3.3.2 (default, Sep 28 2013, 12:00:20) 
[GCC 4.6.3] on linux
Type help, copyright, credits or license for more information.
 from __future__ import with_statement
 from __future__ import print_function
 from future_builtins import map, zip
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: No module named 'future_builtins'
 quit()


The expectation from the __future__ imports is that once a feature is part of 
Python, the import is a harmless no-op. You could expect the same from  
future_builtins as well.

--

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread Richard Oudkerk

Richard Oudkerk added the comment:

As I wrote in http://bugs.python.org/issue19066, on Windows execv() is 
equivalent to

os.spawnv(os.P_NOWAIT, ...)
os._exit(0)

This means that control is returned to cmd when the child process *starts* (and 
afterwards you have cmd and the child connected to the same console).

On Unix control is returned to the shell only once the child process *ends*.

Although it might be less memory efficient, you would actually get something 
closer to Unix behaviour by replacing os.execv(...) with

sts = os.spawnv(os.P_WAIT, ...)
_exit(sts)

or

sts = subprocess.call(...)
_exit(sts)

This is why I said that execv() is useless on Windows and that you should just 
use subprocess instead.

--
nosy: +sbt

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



[issue19129] 6.2.1. Regular Expression Syntax flags

2013-09-29 Thread Jason Smestad

New submission from Jason Smestad:

In the Python 3.3.2 documentation in the section 6.2.1. Regular Expression 
Syntax subsection (?aiLmsux) it describes flags that are set by extention 
notation. 6 of the flags are described in detail with links for each flag, but 
the u flag is not described or linked to in this subsection. 

When reading this subsection, you may be confused as to what the u flag is 
for, or if it even belongs there, since there is no link. I suggest that a link 
be added in that subsection to the re.A section in 6.2.2, and that re.U be 
added as a title for the re.A subsection in 6.2.2.

--
assignee: docs@python
components: Documentation
messages: 198600
nosy: docs@python, endoalir
priority: normal
severity: normal
status: open
title: 6.2.1. Regular Expression Syntax flags
versions: Python 3.3

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



[issue19112] tests of _TestProcess are not run by the multiprocessing test suite

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a3dd2ccdccf6 by Richard Oudkerk in branch '2.7':
Issue #19112: avoid using function defined in method.
http://hg.python.org/cpython/rev/a3dd2ccdccf6

New changeset 74752bfa6357 by Richard Oudkerk in branch '3.3':
Issue #19112: avoid using function defined in method.
http://hg.python.org/cpython/rev/74752bfa6357

--

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



[issue19130] PCbuild/readme.txt not up-to-date

2013-09-29 Thread Antoine Pitrou

New submission from Antoine Pitrou:

PCbuild/readme.txt mentions VS2008 while VS2010 is required to build 3.4. Am I 
missing something?

--
assignee: docs@python
components: Documentation
messages: 198602
nosy: brian.curtin, docs@python, loewis, pitrou, tim.golden
priority: normal
severity: normal
status: open
title: PCbuild/readme.txt not up-to-date
type: behavior
versions: Python 3.4

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



[issue19130] PCbuild/readme.txt not up-to-date

2013-09-29 Thread Christian Heimes

Christian Heimes added the comment:

It also mentions VS 10.0 which is 2010 ... I'm fixing it now.

--
nosy: +christian.heimes

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



[issue19130] PCbuild/readme.txt not up-to-date

2013-09-29 Thread Tim Golden

Tim Golden added the comment:

Nope. Looks like a mistake. Confusingly, the header refers to VC++ 10.0 
which is VS 2010 (I think). AFAICT a global s/2008/2010/ would be the 
thing to do.

--

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



[issue19130] PCbuild/readme.txt not up-to-date

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 69bb4bf24b07 by Christian Heimes in branch '3.3':
Issue #19130: Correct PCbuild/readme.txt, Python 3.3 and 3.4 require VS 2010
http://hg.python.org/cpython/rev/69bb4bf24b07

New changeset f5a7090e16b7 by Christian Heimes in branch 'default':
Issue #19130: Correct PCbuild/readme.txt, Python 3.3 and 3.4 require VS 2010
http://hg.python.org/cpython/rev/f5a7090e16b7

--
nosy: +python-dev

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

On Sun, Sep 29, 2013 at 3:03 PM, Richard Oudkerk rep...@bugs.python.org wrote:

 _spawn*() and _exec*() are implemented by the C runtime library.  spawn*() 
 and execv() are (deprecated) aliases.

It is said that execv() is deprecated, but it is not said that it is
alias of _execv(). It is only said that _execv() is C++ compliant.
http://msdn.microsoft.com/en-us/library/ms235416(v=vs.90).aspx

 The the first message is about someone's attempt to work around the problems 
 with embedded spaces and double quotes by writing a function to escape each 
 argument.  He says he had a partial success.

Don't we have such function already? I don't see the problem in
quoting the string.

 Surely this is basic reading comprehension?

I am mentally crippled. Sorry about that.

  Note that on Windows exec*() is useless: it just starts a subprocess and
  exits the current process.  You can use subprocess to get the same effect.

 Are you describing Windows implementation of _exec()
 http://msdn.microsoft.com/en-us/library/431x4c1w.aspx or current
 Python implementation?

 The Windows implementaion of _exec().

Does it start child process in foreground or in background? Did you
compile examples on
http://msdn.microsoft.com/en-us/library/431x4c1w.aspx page with new
VC++ to check? I don't possess the VC++ 10, so I can't do this myself.
And I believe that compiling with GCC may lead to different results.

  Just use subprocess instead which gets this stuff right.

 subprocess doesn't replace os.exec*, see issue19060

 On Unix subprocess does not replace os.exec*().  That is because on Unix 
 exec*() replaces the current process with a new process with the *same pid*.  
 subprocess cannot do this.

 But on Windows os.exec*() just starts an independent process with a 
 *different pid* and exits the current process.  The line

 os.execv(path, args)

 is equivalent to

 os.spawnv(os.P_NOWAIT, path, args)
 os._exit(0)

I don't mind if it runs child process with different pid, but why it
runs new process in background. Unix version doesn't do this.

--

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



[issue19130] PCbuild/readme.txt not up-to-date

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b602edf9b100 by Christian Heimes in branch '3.3':
Issue #19130: mention historic VS 2008 build dir, too
http://hg.python.org/cpython/rev/b602edf9b100

New changeset a16b83ff7fb1 by Christian Heimes in branch 'default':
Issue #19130: mention historic VS 2008 build dir, too
http://hg.python.org/cpython/rev/a16b83ff7fb1

--

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



[issue19130] PCbuild/readme.txt not up-to-date

2013-09-29 Thread Zachary Ware

Zachary Ware added the comment:

Issue17326 can now be closed as a duplicate of this issue.

--
nosy: +zach.ware

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



[issue10241] gc fixes for module m_copy attribute

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I'm closing this issue as fixed though I'm not entirely sure the fix is right. 
The alpha cycle will allow us to get feedback on potential incompatibilities 
with third-party software.

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

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



[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

As we discussed in other issues regarding the similar problem, I don't really 
want to introduce a new exception in a point release of 2.6.  Is there any 
reason not to just raise HTTPException with the error message text?  Code that 
has to work across multiple 2.6.X versions won't be able to import the new 
exception, and thus cannot rely on it anyway.

If you agree, I'll make that change when I apply this patch.

--

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



[issue18674] Store weak references in modules_by_index

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think the new new module initialization scheme, if it takes steam, is much 
more promising to solve the underlying issue. I'm inclined to close this entry 
as won't fix, what do you think?

--

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



[issue19078] Allow reversed(memoryview), like memoryview

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Stefan, what do you think about Claudiu's patch? Should a test be added to 
test_buffer as well?

--

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



[issue19095] Document SSLSocket.getpeercert always returns None without do_handshake

2013-09-29 Thread Antoine Pitrou

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


--
assignee: docs@python - 
components: +Library (Lib) -Documentation
stage:  - needs patch
type: enhancement - behavior
versions: +Python 3.4

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

On Sun, Sep 29, 2013 at 6:39 PM, Richard Oudkerk rep...@bugs.python.org wrote:

 Richard Oudkerk added the comment:

 As I wrote in http://bugs.python.org/issue19066, on Windows execv() is 
 equivalent to

 os.spawnv(os.P_NOWAIT, ...)
 os._exit(0)

Where did you get that info? MSDN is silent about that.
http://msdn.microsoft.com/en-us/library/886kc0as(v=vs.90).aspx

 This means that control is returned to cmd when the child process *starts* 
 (and afterwards you have cmd and the child connected to the same console).

 On Unix control is returned to the shell only once the child process *ends*.

That was my conclusion also.

 Although it might be less memory efficient, you would actually get something 
 closer to Unix behaviour by replacing os.execv(...) with

 sts = os.spawnv(os.P_WAIT, ...)
 _exit(sts)

 or

 sts = subprocess.call(...)
 _exit(sts)

 This is why I said that execv() is useless on Windows and that you should 
 just use subprocess instead.

The problem is not in what I should or should not use. The problem
that existing scripts that work on Unix and use os.execv() to launch
interactive scripts, on Windows behave absolutely weird and unusable
behavior. I previously experienced this with SCons, but couldn't get
the reason. Now I experience this with basic Android development tools
and dug down to this. It is clearly a big mess from this side of
Windows.

--

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 It is said that execv() is deprecated, but it is not said that it is
 alias of _execv(). It is only said that _execv() is C++ compliant.
 http://msdn.microsoft.com/en-us/library/ms235416(v=vs.90).aspx

Microsoft seems to have decided that all functions in the C runtime which don't 
begin with an underscore, and are not included in the ANSI C standard should be 
deprecated.  This includes all the fd functions like read(), write(), open(), 
close(), ...  There is no difference in behaviour between these and the 
underscore versions.

...

 Don't we have such function already? I don't see the problem in
 quoting the string.

No one seems to know how to write such a quoting function.

...

 Does it start child process in foreground or in background? Did you
 compile examples on
 http://msdn.microsoft.com/en-us/library/431x4c1w.aspx page with new
 VC++ to check? I don't possess the VC++ 10, so I can't do this myself.
 And I believe that compiling with GCC may lead to different results.

There is no such thing as a background task in Windows.  A process is either 
attached to a console, or it isn't.  When you use execv() to start a process, 
it inherits the parent's console.

On Unix try replacing os.execv(...) by

os.spawnv(os.P_NOWAIT, ...)
os._exit(0)

and you will probably get the same behaviour where the shell and the child 
process both behave as conflicting foreground tasks.

..

 I don't mind if it runs child process with different pid, but why it
 runs new process in background. Unix version doesn't do this.

The point is that the shell waits for its child process to finish by using 
waitpid() (or something similar) on the child's pid.  If the child uses execv() 
then the child is replaced by a grandchild process with the same pid.  From the 
point of view of the shell, the child and the grandchild are the same process, 
and waitpid() will not stop until the grandchild terminates.

This issue should be closed: just use subprocess instead.

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

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



[issue19095] Document SSLSocket.getpeercert always returns None without do_handshake

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ddcdf7f7eac8 by Antoine Pitrou in branch 'default':
Issue #19095: SSLSocket.getpeercert() now raises ValueError when the SSL 
handshake hasn't been done.
http://hg.python.org/cpython/rev/ddcdf7f7eac8

--
nosy: +python-dev

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 Where did you get that info? MSDN is silent about that.
 http://msdn.microsoft.com/en-us/library/886kc0as(v=vs.90).aspx

Reading the source code for the C runtime included with Visual Studio.

 The problem is not in what I should or should not use. The problem
 that existing scripts that work on Unix and use os.execv() to launch
 interactive scripts, on Windows behave absolutely weird and unusable
 behavior. I previously experienced this with SCons, but couldn't get
 the reason. Now I experience this with basic Android development tools
 and dug down to this. It is clearly a big mess from this side of
 Windows.

As said before (more than once), os.exec*() is useless on Windows: just use 
subprocess.

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

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



[issue19095] Document SSLSocket.getpeercert always returns None without do_handshake

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Change committed in 3.4. Thanks for reporting!

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

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



[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Jyrki Pulliainen

Jyrki Pulliainen added the comment:

I'm fine with not introducing a new exception for 2.6 (or any other version for 
that matter), so go for it :)

--

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



[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I'm just going to go ahead and commit this patch to 2.6 with the change I 
mentioned.  Does anything else need to be done for 2.6?

--

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



[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 582e5072ff89 by Barry Warsaw in branch '2.6':
- Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more
http://hg.python.org/cpython/rev/582e5072ff89

--

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



[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Thanks!

--
versions:  -Python 2.6

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



[issue18674] Store weak references in modules_by_index

2013-09-29 Thread Brett Cannon

Brett Cannon added the comment:

Fine by me.

--

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



[issue19092] ExitStack.__exit__ incorrectly suppresses exceptions in __exit__ callbacks of inner context managers

2013-09-29 Thread Hrvoje Nikšić

Hrvoje Nikšić added the comment:

Indeed, that works, thanks. Here is the updated patch for review, passing all 
tests.

--
Added file: http://bugs.python.org/file31908/exitstack.diff

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



[issue19128] duplicate test name in Mac/Tools/Doc/setup.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c865187aa14d by Ned Deily in branch 'default':
Issue #19128: Remove nonfunctional, unused Mac help indexing tool from repo.
http://hg.python.org/cpython/rev/c865187aa14d

--
nosy: +python-dev

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



[issue19128] duplicate test name in Mac/Tools/Doc/setup.py

2013-09-29 Thread Ned Deily

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


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

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

Hey. This ticket is about os.execv failing on spaced paths on Windows. It is 
not a duplicate of issue19124.

--
resolution: duplicate - 
status: closed - open

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

On Sun, Sep 29, 2013 at 8:48 PM, Richard Oudkerk rep...@bugs.python.org wrote:

 Don't we have such function already? I don't see the problem in
 quoting the string.

 No one seems to know how to write such a quoting function.

Why escape quotes with slash and surrounding in quotes doesn't help?
http://msdn.microsoft.com/en-us/library/ms235416(v=vs.90).aspx
How does Linux and subprocess on Windows survive then?
If I am not mistaken both subprocess and execv on Windows use
CreateProcess. Does subprocess fail as well?

 Does it start child process in foreground or in background? Did you
 compile examples on
 http://msdn.microsoft.com/en-us/library/431x4c1w.aspx page with new
 VC++ to check? I don't possess the VC++ 10, so I can't do this myself.
 And I believe that compiling with GCC may lead to different results.

 There is no such thing as a background task in Windows.  A process is either 
 attached to a console, or it isn't.  When you use execv() to start a process, 
 it inherits the parent's console.

All right. Then why does it start to interfere with running cmd.exe
(in issue19124)? If it inherits console, it should continue to own
it exclusively, and not return it back to parent cmd.exe

 On Unix try replacing os.execv(...) by

 os.spawnv(os.P_NOWAIT, ...)
 os._exit(0)

 and you will probably get the same behaviour where the shell and the child 
 process both behave as conflicting foreground tasks.

Maybe Python code doesn't use _execv() at all on Windows and uses
these spawnv's?

 ..

 I don't mind if it runs child process with different pid, but why it
 runs new process in background. Unix version doesn't do this.

 The point is that the shell waits for its child process to finish by using 
 waitpid() (or something similar) on the child's pid.  If the child uses 
 execv() then the child is replaced by a grandchild process with the same pid. 
  From the point of view of the shell, the child and the grandchild are the 
 same process, and waitpid() will not stop until the grandchild terminates.

I can not accept your point when you don't know for sure how cmd.exe
waits for child process to exit. Are you sure that it doesn't use some
blocking CreateProcess call? Are you sure that Python on Windows calls
exactly _execv and not some spawn surrogate?

 This issue should be closed: just use subprocess instead.

We need some quorum on this. I'd like to hear two more people that can
confirm and agree with your position. I don't want to think that
usability of execv() on Windows can not be improved, because people
who love Linux doesn't think that this OS deserves some care. I'd like
to run Python scripts with the same base behaviour regardless of
platform. If that's impossible, that should be documented.

--

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

On Sun, Sep 29, 2013 at 8:53 PM, Richard Oudkerk rep...@bugs.python.org wrote:

 Richard Oudkerk added the comment:

 Where did you get that info? MSDN is silent about that.
 http://msdn.microsoft.com/en-us/library/886kc0as(v=vs.90).aspx

 Reading the source code for the C runtime included with Visual Studio.

Visual Studio 10+ ? Is it available somewhere for a reference?

 The problem is not in what I should or should not use. The problem
 that existing scripts that work on Unix and use os.execv() to launch
 interactive scripts, on Windows behave absolutely weird and unusable
 behavior. I previously experienced this with SCons, but couldn't get
 the reason. Now I experience this with basic Android development tools
 and dug down to this. It is clearly a big mess from this side of
 Windows.

 As said before (more than once), os.exec*() is useless on Windows: just use 
 subprocess.

I value your expert opinion, but to increase the bus factor, I can not
leave it without asking for reasons.

Have you tried to run examples provided by MSDN - do they exhibit the
same behavior as Python script I attached earlier and described in the
first message?

--

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



[issue16037] httplib: header parsing is unlimited

2013-09-29 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
title: httplib: header parsing is not unlimited - httplib: header parsing is 
unlimited

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik

anatoly techtonik added the comment:

I can't use subprocess. These are official business suite scripts for Android 
development from Google.

--

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik

Changes by anatoly techtonik techto...@gmail.com:


--
resolution: rejected - 
status: closed - open

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



[issue19123] duplicate test name in Lib/test/test_regrtest.py

2013-09-29 Thread Xavier de Gaye

Xavier de Gaye added the comment:

After the last changeset 39f9adc8ad5b there are still 3 methods named
test_findleaks. The proposed patch was also missing one of them.

--

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



[issue19123] duplicate test name in Lib/test/test_regrtest.py

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 280d403434c4 by Benjamin Peterson in branch 'default':
rename some more tests to avoid duplicate names (#19123)
http://hg.python.org/cpython/rev/280d403434c4

--

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



[issue19131] Broken support of compressed AIFC files

2013-09-29 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file31910/pluck-ulaw.aifc

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



[issue19131] Broken support of compressed AIFC files

2013-09-29 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

In u-law and A-law compressed AIFC files the sampleSize field is equal to 8 
(bits). The aifc module transparently compress/uncompress audio data to 16-bit, 
but doesn't support the samplewidth parameter in consistency. This causes two 
bugs:

1. On read getsampwidth() returns 1, but should return 2 (bytes per sample in 
uncompressed audio data). readframes() returns twice less data than expected.

 import aifc
 f = aifc.open('pluck-ulaw.aifc', 'r')
 f.getparams()
_aifc_params(nchannels=2, sampwidth=1, framerate=11025, nframes=3307, 
comptype=b'ulaw', compname=b'')
 f.readframes(1)
b',\x02'

f.readframes(1) should return 4 bytes (2 channels, 16-bit uncompressed data).

2. On write wrong value 2 is saved in the sampleSize field. Resulting file is 
invalid and can't be read in other programs.

Here is a patch and sample file. For tests see issue18919.

I'm sure G722 support is broken too, but I have no any testing files.

--
components: Library (Lib)
files: aifc_sampwidth.patch
keywords: patch
messages: 198631
nosy: r.david.murray, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Broken support of compressed AIFC files
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file31909/aifc_sampwidth.patch

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



[issue18857] urlencode of a None value uses the string 'None'

2013-09-29 Thread Joshua Johnston

Joshua Johnston added the comment:

Hi Senthil,
You can open the html file with a browser and inspect the data posting to 
itself without a web server running. That is how I tested.

--

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



[issue18919] Unify audio modules tests

2013-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch updated. Now files created in external program (Audacity) are used for 
testing. This exposed yet one bug, in the aifc module (issue19131).

--
dependencies: +Broken support of compressed AIFC files
Added file: http://bugs.python.org/file31911/audiotests_2.patch

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



[issue18857] urlencode of a None value uses the string 'None'

2013-09-29 Thread Joshua Johnston

Joshua Johnston added the comment:

I still believe that since None represents the absence of a value it should not 
be urlencoded as the string 'None'. I am not sure what they best way to url 
encode it is, but I know that 'None' is not it.

--
status: closed - open

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



[issue18919] Unify audio modules tests

2013-09-29 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file31912/makeaudiotests.py

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



[issue19119] duplicate test name in Lib/test/test_heapq.py

2013-09-29 Thread Tim Peters

Tim Peters added the comment:

Good catch!  Would like to hear from Raymond what the intent of these tests was 
- looks like the real test_get_only (which hasn't been executing) has 
multiple failures.

--
nosy: +tim.peters

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



[issue5845] rlcompleter should be enabled automatically

2013-09-29 Thread Xavier de Gaye

Xavier de Gaye added the comment:

There is a backward compatibility issue with changeset d5ef330bac50
that enables tab-completion in the interactive interpreter by default.

When a user is not aware of this new feature and has been implementing
up to now her/his PYTHONSTARTUP file with the first example given in
python 3.3 documentation at

http://docs.python.org/3/library/readline.html?highlight=readline#example

then each new interactive python 3.4 session reads (appending them)
both history files which are saved on exit. Thus those files double
their size after each interactive python 3.4 session and pretty soon
become few mega bytes long with a python start up time that becomes
quite noticeable.

--
nosy: +xdegaye

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 Hey. This ticket is about os.execv failing on spaced paths on Windows. It 
 is not a duplicate of issue19124.

It is a duplicate of #436259 [Windows] exec*/spawn* problem with spaces in 
args.

--

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 Visual Studio 10+ ? Is it available somewhere for a reference?

Old versions of the relevant files are here:

http://www.controllogics.com/software/VB6/VC98/CRT/SRC/EXECVE.C
http://www.controllogics.com/software/VB6/VC98/CRT/SRC/SPAWNVE.C
http://www.controllogics.com/software/VB6/VC98/CRT/SRC/DOSPAWN.C

--

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread Richard Oudkerk

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


--
nosy:  -sbt

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



[issue19124] os.execv executes in background on Windows

2013-09-29 Thread Richard Oudkerk

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


--
nosy:  -sbt

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



[issue16041] poplib: unlimited readline() from connection

2013-09-29 Thread Jyrki Pulliainen

Jyrki Pulliainen added the comment:

Attached a patch for 2.6. 

Due to how tests are in 2.6, this adds one more test case with evil server, 
which basically just returns too long lines.

--
Added file: http://bugs.python.org/file31913/issue16041_py26.patch

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



[issue5845] rlcompleter should be enabled automatically

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 When a user is not aware of this new feature and has been implementing
 up to now her/his PYTHONSTARTUP file with the first example given in
 python 3.3 documentation at
 
 http://docs.python.org/3/library/readline.html?highlight=readline#example
 
 then each new interactive python 3.4 session reads (appending them)
 both history files which are saved on exit. Thus those files double
 their size after each interactive python 3.4 session and pretty soon
 become few mega bytes long with a python start up time that becomes
 quite noticeable.

Interesting. A way to avoid doing this would be to only load history if
no history is already present. Since the sys.__interactivehook__ is
executed after PYTHONSTARTUP, this would allow the latter to take
precedence.

--

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



[issue19132] Add compact mode to pprint

2013-09-29 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

pprint produces not very nice output for collections with a large number of 
short elements (see msg198556). For example pprint.pprint(list(range(40))) 
outputs more than 40 short lines, while print(repr(list(range(40 takes only 
2 lines on 80-column terminal.

I propose to add new boolean option compact. With compact=True pprint will 
try combine as much short one-line subelements in one line as possible. Every 
multiline element will be printed on separated lines.

Examples:

 pprint.pprint(list(range(40)), width=50, compact=True)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
 38, 39]
 pprint.pprint(['one string', 'other string', 'very very long string which 
 continued on several lines', 'and again', 'and again', 'and again', 'and 
 again'], width=50, compact=True)
['one string', 'other string',
 'very very long string which is continued on '
 'several lines',
 'and again', 'and again', 'and again',
 'and again']

--
components: Library (Lib)
messages: 198641
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Add compact mode to pprint
type: enhancement
versions: Python 3.4

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



[issue5845] rlcompleter should be enabled automatically

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Attaching patch to only load history file if no history exists.

--
keywords:  -needs review
resolution:  - fixed
Added file: http://bugs.python.org/file31914/rl_history_guard.patch

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



[issue19132] Add compact mode to pprint

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think it looks good on the principle.

--
nosy: +pitrou

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



[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Reminder: you are not supposed to re-open issues.

I agree with Richard that this is a duplicate as submitted. The difference is 
that we now have subprocess; that is our fix for several problems. I will 
re-close unless you make a *specific* suggestion for a doc change.

--

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



[issue5845] rlcompleter should be enabled automatically

2013-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 687dd81cee3b by Antoine Pitrou in branch 'default':
Issue #5845: In site.py, only load readline history from ~/.python_history if 
no history has been read already.  This avoids double writes to the history 
file at shutdown.
http://hg.python.org/cpython/rev/687dd81cee3b

--

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



[issue19103] Use pprint in displayhook

2013-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 (in the patch, import of sys and pprint should be done once at module level 
 and not repeated with every line of interactive output).

See a comment at the start of the Lib/_sitebuiltins.py file. Yes, importing sys 
in the function is redundant.

 For instance, try list(range(40)) with the two options.

Well, I have opened issue19132 for this.

 This is not to mention doctest and other test breakage.

AFAIK doctests doesn't test output longer than 80 characters.

 I believe the majority consensus on python-ideas was to reject this until 
 pprint is much improved, and then reconsider.

There are other pprint-related issue which are opened long time without any 
progress (e.g. issue7434). I intend making progress on issues which are 
required for fixing pprint enough to be reasonable replacement for displayhook.

--
dependencies: +Add compact mode to pprint

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



[issue18314] Have os.unlink remove junction points

2013-09-29 Thread Kim Gräsman

Kim Gräsman added the comment:

Attached is a patch that considers directory symlinks and junction points 
equivalent.

I'm struggling with the test -- would it be acceptable to only run this test on 
platforms that have mklink /j (Windows Vista and higher)?

I've looked at programmatic means of creating junction points, but it involves 
enough Win32 interop to make it a candidate for a module all by itself (it's 
REALLY messy.)

Any ideas?

Thanks!

--
keywords: +patch
Added file: http://bugs.python.org/file31915/unlink_junction.patch

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



[issue5845] rlcompleter should be enabled automatically

2013-09-29 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The patch fixes the problem on my setup. A very minor glitch: after
manually emptying or removing the PYTHONSTARTUP history file, the
history is loaded with the content of ~/.python_history on the next
session.

--

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



[issue18314] Have os.unlink remove junction points

2013-09-29 Thread Tim Golden

Tim Golden added the comment:

I'll try to pick this one up over the next few days. Feel free to ping me if it 
drops into silence!

--
assignee:  - tim.golden

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



[issue12641] Remove -mno-cygwin from distutils

2013-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Oscar, thanks for the patches. Two things:
- in the 2.7 patch, could you explicitly close the popen() file object instead 
of relying on deallocation to do it?
- have you signed a contributor's agreement? http://www.python.org/psf/contrib/

--
nosy: +pitrou

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



[issue16041] poplib: unlimited readline() from connection

2013-09-29 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Looks good, although only the POP3 exception is actually tested.  The POP3_SSL 
exception isn't tested.  Any chance you could add a test for that (obviously, 
only if `import ssl` succeeds)?

--

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



  1   2   >