[issue12834] memoryview.to_bytes() and PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-08-09 Thread Stefan Krah

Stefan Krah added the comment:

> Removing 3.1, since its addition was apparently done by mistake.

I'm unable to set 2.7 and 3.2 in my browser without also setting
3.1 (using the Shift key to mark multiple fields).

--

___
Python tracker 

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



[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky

Eli Bendersky added the comment:

I provided some comments on your patch in the code-review tool. Thanks for the 
contribution, Daniel. It's fine to first apply these changes to 3.3 and then 
backport to 2.7 (I don't think 3.2 is necessary because most users use the 
online docs anyway).

--
versions:  -Python 2.7

___
Python tracker 

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



[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky

Changes by Eli Bendersky :


--
versions: +Python 2.7

___
Python tracker 

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



[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky

Eli Bendersky added the comment:

Sarbjit, if you look at the docs of 3.3, I think most of what you're asking for 
is there (especially once you count Daniel's commit). What else is missing in 
your opinion?

--

___
Python tracker 

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



[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-08-09 Thread Eli Bendersky

Eli Bendersky added the comment:

My job is done here. Éric - assigning to you for distutils2, once it becomes 
relevant.

--
assignee: docs@python -> eric.araujo

___
Python tracker 

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



[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-08-09 Thread Eli Bendersky

Changes by Eli Bendersky :


--
nosy:  -eli.bendersky

___
Python tracker 

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



[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-08-09 Thread Stefan Krah

Stefan Krah added the comment:

The buildbot is running inside kvm on a heavily loaded machine. Perhaps
some timeout is too low.

--
nosy: +skrah

___
Python tracker 

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



[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky

Eli Bendersky added the comment:

Sarbjit: first of all, look at the up-to-date documentation for 3.3 (it's 
available online at http://docs.python.org/dev/

Then, on a checkout of the 3.3 code (default branch) you can apply Daniel's 
patch (it's in the "Files" section in this Issue) and look at the updated 
documentation.

MOST IMPORTANTLY: read http://docs.python.org/devguide/index.html thoroughly - 
it will answer most of your questions.

--

___
Python tracker 

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



[issue15457] consistent treatment of generator terminology

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Note to reviewers: changing to "needs patch" because I want to make  changes to 
the latest patch before this is reviewed (e.g. to the index directives).  I 
should be able to do this by the end of the weekend.

--
stage:  -> needs patch

___
Python tracker 

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



[issue15216] Support setting the encoding on a text stream after creation

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

> Victor proposes that it's acceptable to simply disallow changing the encoding 
> of a stream that isn't seekable.

It is no what I said. My patch raises an exception if you already
started to read stdin. It should work fine if stdin is a pipe but the
read buffer is empty.

--

___
Python tracker 

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky

Eli Bendersky added the comment:

Here's a patch adding documentation to the *Interface classes.

I must say I'm not very psyched about the with_* methods. Their outputs are 
inconsistent, unlike in *Network, where all return strings.

--

___
Python tracker 

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky

Changes by Eli Bendersky :


Added file: http://bugs.python.org/file26736/ipaddr_refdoc_interface.1.patch

___
Python tracker 

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



[issue15355] generator docs should mention already-executing exception

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Nick, would you be able to take a look at this minor documentation patch re: 
generators?  Would you prefer this blanket statement, or an explicit (possibly 
repeated) statement inside the documentation of each method?

--
versions: +Python 2.7, Python 3.2

___
Python tracker 

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



[issue15602] zipfile: wrong encoding charset of member filename

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

Martin v. Löwis added the comment:

You are mistaken: there *is* a character set specification for file names in 
zip files, see

http://www.pkware.com/documents/casestudies/APPNOTE.TXT

Appendix D says

"The ZIP format has historically supported only the original IBM PC character 
encoding set, commonly referred to as IBM Code Page 437.  This limits storing 
file name characters to only those within the original MS-DOS range of values 
and does not properly support file names in other character encodings, or 
languages."

Using bytes objects for file names is not acceptable; in Python 3, file names 
are (unicode) strings.

Adding a new parameter is an option, and already discussed in issue 10614 .

People using non-437 code sets should really start using UTF-8 encoded file 
names in the zip files, and set the general purpose bit 11.

Closing this report as a duplicate.

--
nosy: +loewis
resolution:  -> duplicate
status: open -> closed
superseder:  -> ZipFile: add a filename_encoding argument

___
Python tracker 

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



[issue15600] expose the finder details used by the FileFinder path hook

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

It seems like a test and documentation for this would be beneficial (for the 
usual reasons, etc).

--
nosy: +cjerdonek

___
Python tracker 

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



[issue15589] Bus error on Debian sparc

2012-08-09 Thread Stefan Krah

Stefan Krah added the comment:

> If disabling faulthandler avoids new issues, you can add 'if
> [not] sys.thread_info.version.startswith("linuxthreads")'

That suppresses some bus errors. However, they still occur without
being raised (some print statements and a WIFSIGNALED test inserted
in posix_waitpid):

 
>>> import subprocess, os
>>> p = subprocess.Popen(["/bin/true"])
>>> os.waitpid(p.pid, os.WNOHANG)
pid: 4461   options: 1
signo: 10
(4461, 10)
>>>


So a bus error occurs in waitpid(pid, &status, options).WAIT_TYPE
is int, perhaps that's incorrect for the platform, but I can't get
hold of the posix man pages for debian-etch-sparc.

--

___
Python tracker 

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



[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Update patch

--
Added file: http://bugs.python.org/file26737/inspect.pep362.4.patch

___
Python tracker 

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



[issue15216] Support setting the encoding on a text stream after creation

2012-08-09 Thread Nick Coghlan

Nick Coghlan added the comment:

Ah, you're right - peeking into the underlying buffer would be enough to
handle encoding detection.

--

___
Python tracker 

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



[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky

Changes by Anton Barkovsky :


Added file: http://bugs.python.org/file26738/subprocess_doc_2.7_v2.patch

___
Python tracker 

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



[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky

Changes by Anton Barkovsky :


Added file: http://bugs.python.org/file26739/subprocess_doc_3.2_v2.patch

___
Python tracker 

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



[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky

Changes by Anton Barkovsky :


Added file: http://bugs.python.org/file26740/subprocess_doc_3.3_v2.patch

___
Python tracker 

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



[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky

Anton Barkovsky added the comment:

Updated.

--

___
Python tracker 

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



[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-08-09 Thread Yury Selivanov

Yury Selivanov added the comment:

Thanks a lot for the patch update, Andrew!  Please let me glance over it once 
again today/tomorrow before you commit it.

--

___
Python tracker 

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



[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b863e231ad9f by Andrew Svetlov in branch 'default':
Issue #15501: Document exception classes in subprocess module.
http://hg.python.org/cpython/rev/b863e231ad9f

New changeset 1e8f6d8e5c0e by Andrew Svetlov in branch '3.2':
Issue #15501: Document exception classes in subprocess module.
http://hg.python.org/cpython/rev/1e8f6d8e5c0e

New changeset 9c99f31a9c2a by Andrew Svetlov in branch '2.7':
Issue #15501: Document exception classes in subprocess module.
http://hg.python.org/cpython/rev/9c99f31a9c2a

--
nosy: +python-dev

___
Python tracker 

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



[issue14966] Fully document subprocess.CalledProcessError

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Documented in #15501. I like to close this issue as duplicate.
If anybody don't agree with closing feel free to reopen this one.

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

___
Python tracker 

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



[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed. Thank you, Anton.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed
superseder:  -> Fully document subprocess.CalledProcessError

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
nosy: +asvetlov

___
Python tracker 

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



[issue15557] Tests for webbrowser module

2012-08-09 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
dependencies: +A file is not properly closed by webbrowser._invoke, 
webbrowser.open sometimes passes zero-length argument to the browser.
versions: +Python 3.4 -Python 3.3

___
Python tracker 

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



[issue4966] Improving Lib Doc Sequence Types Section

2012-08-09 Thread Ezio Melotti

Changes by Ezio Melotti :


--
versions: +Python 3.4

___
Python tracker 

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



[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
nosy: +asvetlov

___
Python tracker 

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



[issue10702] bytes and bytearray methods are not documented

2012-08-09 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti, ncoghlan
stage:  -> needs patch
type:  -> enhancement
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue11643] Use |version| instead of X.Y in the doc

2012-08-09 Thread Ezio Melotti

Changes by Ezio Melotti :


--
type:  -> enhancement
versions: +Python 3.4 -Python 3.1

___
Python tracker 

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



[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Daniel Ellis

Daniel Ellis added the comment:

Changes to documentation per Ezio and Eli's suggestions.

--
Added file: http://bugs.python.org/file26741/default_branch_etree_doc_2.patch

___
Python tracker 

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



[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread R. David Murray

R. David Murray added the comment:

My understanding is that we try to keep the documentation of all active 
branches (2.7, 3.2, and 3.3 currently) in sync except where there are new 
features/new deprecations in the development version.  So if the 2.7 docs are 
update, I think the 3.2 docs should be too.  There will be one more release of 
3.2, and the Windows version will bundle the docs, so I think it is worthwhile 
to do.  But I'm not going to do it, so if no one volunteers to do it and apply 
the patch, that's fine :)

--
nosy: +r.david.murray

___
Python tracker 

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



[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Daniel Ellis

Daniel Ellis added the comment:

At the moment, the documentation for 2.7 is behind the documentation for 3.3.  
I will be working on backporting this next, but it will be a little more 
difficult than simply copying the existing documentation, since some key things 
in etree changed in the transition to 3.x.

--

___
Python tracker 

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



[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris

New submission from Chris:

http://stackoverflow.com/questions/11884864/python-multiprocessing-creates-incorrect-pids

Jesse Noller suggested that I submit this stack overflow as a bug so it can be 
examined.  As the problem is kind of domain specific, it's not easy to come up 
with a test case that can reproduce the issue.

Please let me know what more information I can provide.  

Thanks!

--
messages: 167788
nosy: cfriedline
priority: normal
severity: normal
status: open
title: Multiprocessing creates incorrect pids
type: crash
versions: Python 2.7

___
Python tracker 

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



[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

PyObject_IsTrue can fail, but not everywhere in a code a returned value 
checked. Here is a patches which add such checks.

Note, patches for all three Python versions are rather different.

--
components: Interpreter Core, Library (Lib)
files: istrue_check-3.3.patch
keywords: needs review, patch
messages: 167789
nosy: storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: PyObject_IsTrue failure checks
type: resource usage
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file26742/istrue_check-3.3.patch

___
Python tracker 

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



[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Added file: http://bugs.python.org/file26744/istrue_check-2.7.patch

___
Python tracker 

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



[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Added file: http://bugs.python.org/file26743/istrue_check-3.2.patch

___
Python tracker 

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



[issue11643] Use |version| instead of X.Y in the doc

2012-08-09 Thread Chris Jerdonek

Changes by Chris Jerdonek :


--
nosy: +cjerdonek

___
Python tracker 

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



[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

In the process of working on issue 15595, I noticed that the documentation 
change will need to be slightly different for Python 3.2 than for 3.3.  In 3.2, 
it is locale.getpreferredencoding() (which defaults to do_setlocale=True) 
instead of locale.getpreferredencoding(False).

I will provide a patch adjusted for 3.2.

--

___
Python tracker 

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



[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Please do.

--

___
Python tracker 

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread pmoody

pmoody added the comment:

There's no reason why IPv?Network().with_prefixlen can't return str(self).

--

___
Python tracker 

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



[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Your report is rather ambiguous. Do you claim that said pids don't exist, or 
that they don't appear in "top"?

Also, do you manage to reproduce without R, or do you need to use R to 
reproduce? I would suspect an issue (or a misunderstanding on your part) with 
the R-Python bindings, rather than a bug in multiprocessing.

--
nosy: +pitrou

___
Python tracker 

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



[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Is it possible to add test cases for (at least some of) these issues?

--
nosy: +pitrou

___
Python tracker 

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



[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-08-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> The buildbot is running inside kvm on a heavily loaded machine. Perhaps
> some timeout is too low.

Could you try to run the tests manually after having upped said timeouts? (look 
for "sleep" in the test file)

--
nosy: +pitrou

___
Python tracker 

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



[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Looks interesting. Can you post benchmark numbers?
(you can use the pickle tests from http://hg.python.org/benchmarks )

--

___
Python tracker 

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



[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris

Chris added the comment:

That they don't appear in top.  I was using that as a proxy for existence.  I 
wrote a test case without R and realized (accidentally) that tracebacks will 
now flow up to the main process from the worker processes (which makes perfect 
sense, actually).  I added explicit try/except to __get_valid_triplets.  Will 
report back.

--

___
Python tracker 

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



[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Chris added the comment:
>
> That they don't appear in top.  I was using that as a proxy for existence.

Well, I don't know in which way you use "top", but by default it will 
only show you the N most CPU-consuming processes. If the R bindings, for 
example (here begins the wild speculation on my part :-)), fork in the 
background so as to run the R engine in a separate process, the 
CPU-consuming processes would not be those directly created by 
multiprocessing.

--

___
Python tracker 

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



[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris

Chris added the comment:

Using top/'ps aux' is not the issue.  I have code running now with the 
try/except.  Will report back ASAP.  I suspect that you're correct about 
something in the R pipeline failing.  Hopefully, I'll get a good traceback.

--

___
Python tracker 

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



[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread Daniel Ellis

New submission from Daniel Ellis:

At the bottom of this page: http://docs.python.org/devguide/documenting.html

There is a command explaining how to build the documentation without using make:

python tools/sphinx-build.py -b . build/

It is unclear as to which directory the "tools" is referring to.  In the 
"Tools" directory of the main branch, there is no sphinx-build.py file.

On my system, I was able to do the build using sphinx-build as a bare command:

sphinx-build -b . build/

I am not sure if this is system specific, but for someone building the 
documentation for the first time (as I was), this could be confusing.  Perhaps 
someone could explain whether the command that is currently written is obsolete 
or just differs by system.

--
components: Devguide
messages: 167800
nosy: Daniel.Ellis, eric.araujo, ezio.melotti, ncoghlan
priority: normal
severity: normal
status: open
title: Explain sphinx documentation building in devguide

___
Python tracker 

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



[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris

Chris added the comment:

Also, when I said "...that tracebacks will now flow up to the main process from 
the worker processes (which makes perfect sense, actually)", I meant to say 
"...that tracebacks will NOT flow up to the main process from the worker 
processes (which makes perfect sense, actually)"  ;-)

--

___
Python tracker 

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



[issue15578] Crash when modifying sys.modules during import

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

Changes by Martin v. Löwis :


--
versions:  -Python 2.6

___
Python tracker 

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



[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread R. David Murray

R. David Murray added the comment:

It refers to the 'tools' subdirectory in the Doc directory, but that doesn't 
exist unless you've built the docs with 'make' before, or done a 'make 
checkout'.

Presumably you have sphinx installed on your system separately, and that's why 
you were able to run the command without having done the checkout.  This will 
most work fine I think, though occasionally differences between the system 
sphinx version and the version the checkout is using will cause issues.

Yes, the devguide should be updated to explain how one gets a 'tools' directory.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue15606] re.VERBOSE doesn't ignore certain whitespace

2012-08-09 Thread Steven Collins

New submission from Steven Collins:

Given the way the documentation is written for re.VERBOSE - "Whitespace within 
the pattern is ignored, except when in a character class or preceded by an 
unescaped backslash" - I would expect all three of the findall() commands below 
to return successfully with the same result:

Python 3.2.3 (default, Jun  8 2012, 05:37:15) 
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.findall('(?x) (?: a | b ) + ', 'abaabc')
['abaab']
>>> re.findall('(?x) (? : a | b ) + ', 'abaabc')
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.2/re.py", line 193, in findall
return _compile(pattern, flags).findall(string)
  File "/usr/lib/python3.2/re.py", line 255, in _compile
return _compile_typed(type(pattern), pattern, flags)
  File "/usr/lib/python3.2/functools.py", line 184, in wrapper
result = user_function(*args, **kwds)
  File "/usr/lib/python3.2/re.py", line 267, in _compile_typed
return sre_compile.compile(pattern, flags)
  File "/usr/lib/python3.2/sre_compile.py", line 491, in compile
p = sre_parse.parse(p, flags)
  File "/usr/lib/python3.2/sre_parse.py", line 692, in parse
p = _parse_sub(source, pattern, 0)
  File "/usr/lib/python3.2/sre_parse.py", line 315, in _parse_sub
itemsappend(_parse(source, state))
  File "/usr/lib/python3.2/sre_parse.py", line 627, in _parse
raise error("unexpected end of pattern")
sre_constants.error: unexpected end of pattern
>>> re.findall('(?x) ( ?: a | b ) + ', 'abaabc')
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.2/re.py", line 193, in findall
return _compile(pattern, flags).findall(string)
  File "/usr/lib/python3.2/re.py", line 255, in _compile
return _compile_typed(type(pattern), pattern, flags)
  File "/usr/lib/python3.2/functools.py", line 184, in wrapper
result = user_function(*args, **kwds)
  File "/usr/lib/python3.2/re.py", line 267, in _compile_typed
return sre_compile.compile(pattern, flags)
  File "/usr/lib/python3.2/sre_compile.py", line 491, in compile
p = sre_parse.parse(p, flags)
  File "/usr/lib/python3.2/sre_parse.py", line 692, in parse
p = _parse_sub(source, pattern, 0)
  File "/usr/lib/python3.2/sre_parse.py", line 315, in _parse_sub
itemsappend(_parse(source, state))
  File "/usr/lib/python3.2/sre_parse.py", line 640, in _parse
p = _parse_sub(source, state)
  File "/usr/lib/python3.2/sre_parse.py", line 315, in _parse_sub
itemsappend(_parse(source, state))
  File "/usr/lib/python3.2/sre_parse.py", line 520, in _parse
raise error("nothing to repeat")
sre_constants.error: nothing to repeat
>>> 

The behavior is the same in Python 2.7. Apparently the scan for the special 
'(?' character sequences happens before the whitespace is stripped out. In my 
opinion, the behavior should be changed, the documentation should be more clear 
about the current behavior, or at least the errors given should be more 
informative (I spent an hour or two debugging the "nothing to repeat" error in 
my work yesterday.) Thank you.

--
components: Regular Expressions
messages: 167803
nosy: ezio.melotti, mrabarnett, stevencollins
priority: normal
severity: normal
status: open
title: re.VERBOSE doesn't ignore certain whitespace
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker 

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky

Eli Bendersky added the comment:

pmoody - you mean IPv?Interface, right? The network classes consistently return 
strings in with_* methods

--

___
Python tracker 

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



[issue15589] Bus error on Debian sparc

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

Martin v. Löwis added the comment:

I'd like to urge everybody to focus at one issue at a time. This issue is about 
Python crashing on a SparcLinux qemu image, so I think it should have priority 
"low" - there is absolutely no requirement that this needs to work.

As for the test failures on Solaris - please report them as separate issues 
(one per failure, "normal" priority seems right).

--
nosy: +loewis

___
Python tracker 

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread pmoody

pmoody added the comment:

sorry, yes, I meant the interface classes.

--

___
Python tracker 

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



[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread Daniel Ellis

Daniel Ellis added the comment:

That makes sense.  I've added a brief explanation noting that the user should 
be in the "Docs" directory to run the command.  When trying to update the dev 
guide, I noticed that this same "tools" directory does not exist in the repo, 
so I also added instructions for using the command as mentioned above.  For 
concision's sake, would it be good to remove the reference to the 
"tools/sphinx-build.py" file altogether?

--
keywords: +patch
Added file: http://bugs.python.org/file26745/devguide_sphinx_fix.patch

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed. 
Sorry, I forgot to mention issue number in commit messages.
So it's 9c99f31a9c2a 96cc3ab243e5 and 1e8f6d8e5c0e commits.
Thanks for report.

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

___
Python tracker 

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



[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-09 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

New print's argument "flush" is not mentioned in docstring.

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 167809
nosy: docs@python, storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: New print's argument "flush" is not mentioned in docstring
versions: Python 3.3

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Georg Brandl

Georg Brandl added the comment:

These commit hashes don't seem to match this issue.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue15601] tkinter test_variables fails with OS X Aqua Tk 8.4

2012-08-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 20a46c73855f by Andrew Svetlov in branch 'default':
Issue #15601: fix tkinter test_variables failure with OS X Aqua Tk 8.4
http://hg.python.org/cpython/rev/20a46c73855f

--
nosy: +python-dev

___
Python tracker 

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



[issue15601] tkinter test_variables fails with OS X Aqua Tk 8.4

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Agree with Martin. Fixed.
Thanks.

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

___
Python tracker 

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



[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-09 Thread Daniel Ellis

Daniel Ellis added the comment:

I've updated the docstring.  This is my first time editing a C module, so 
please let me know if I've done something egregiously wrong.

--
keywords: +patch
nosy: +Daniel.Ellis
Added file: http://bugs.python.org/file26746/print_doc_add_flush.patch

___
Python tracker 

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



[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-08-09 Thread Stefan Krah

Stefan Krah added the comment:

Antoine Pitrou  wrote:
> Could you try to run the tests manually after having upped said timeouts? 
> (look for "sleep" in the test file)

No luck there: The tests pass unmodified (100 times with the -F option).

--

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Sorry, Georg. A'm apologizing.
Actual commit numbers are: 6dab233a115e a979b005a814 4787b9b2f860

--

___
Python tracker 

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



[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

+If you are building the developer's guide, or for some other reason can not use
+the `tools/sphinx-build.py` file, you can also run the following command from
+the directory containing `conf.py` ::
+
+   sphinx-build -b . build/

Note that the build instructions for the Developer's Guide live at a separate 
location at the bottom of this page:

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

Also, IIRC the build directory for the Developer's Guide is "_build" rather 
than "build" as it is for the main Python documentation.

Lastly, a couple nits: "Developer's Guide" should be capitalized and "can not" 
should be one word.

--
nosy: +cjerdonek

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Georg Brandl

Georg Brandl added the comment:

Thanks!

--

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Thank you for reviewing every minor update.
It's a big deal and heavy work!

--

___
Python tracker 

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



[issue5819] Add PYTHONPREFIXES environment variable

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Close issue as superseded by venv package.

--
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue15555] Default newlines of io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

What is the change to the documentation being suggested here?  The code does 
reference os.linesep, so it seems like the documentation is correct, or am I 
missing something?

self._writetranslate = newline != ''
self._writenl = newline or os.linesep
self._encoder = None

http://hg.python.org/cpython/file/20a46c73855f/Lib/_pyio.py#l1501

--
nosy: +cjerdonek

___
Python tracker 

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



[issue15555] Default newlines of io.TextIOWrapper

2012-08-09 Thread R. David Murray

R. David Murray added the comment:

I don't think the C version does, though.

--
nosy: +pitrou

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Hmm, I'm hoping that will be fixed by fixing of some markup words (:c:func:, 
:func:, :meth:, etc) processing, and not that they will simply be removed. 
:c:func: works only for function name without parameters or for function name 
with empty list of parameters inside the parentheses (:c:func:`PyMem_Malloc`, 
:c:func:`PyMem_Malloc()`, but not :c:func:`PyMem_Malloc(1)`). :c:macro: works 
also for non-empty list (:c:macro:`Py_CLEAR(obj)` for example).

And Doc/c-api/memory.rst is not only one issue file. The list of suspicious 
places you can get by the followed command:

find Doc/ -type f -name '*.rst' -exec egrep -n --color ':`\w+[(][^)]' '{}' +

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

___
Python tracker 

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



[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek

Changes by Chris Jerdonek :


Added file: http://bugs.python.org/file26747/issue-15561-2-branch-32.patch

___
Python tracker 

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



[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

I have uploaded updated patches for both 3.2 and the default branch.  Thanks, 
Andrew.

--
Added file: http://bugs.python.org/file26748/issue-15561-2-branch-default.patch

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Georg Brandl

Georg Brandl added the comment:

The markup you mentioned will not be changed: these are two different usecases. 
Either you link to the function itself (:func:`blah`), or you show a piece of 
code (``blah(n)``).

--

___
Python tracker 

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



[issue15608] Improve socketserver doc

2012-08-09 Thread Terry J. Reedy

New submission from Terry J. Reedy:

On Windows, 3.3 socketserver defines 12 classes in 3 categories: servers, 
server mixins, and handlers. (At least, these are the one listed with 
dir(socketserver). Only BaseServer is indexed. I think all should be. There are 
also a couple of text issues.

BaseServer - indexed, doc is 20.19.2. Server Objects

TCPServer - mentioned in diagram and text of 20.19.1
UDPServer - ditto
(I presume *nix version have uni classes also)

ForkingMixIn - text of 20.19.1
ThreadingMixIn - ditto

ForkingTCPServer
ForkingUDPServer
ThreadingTCPServer
ThreadingUDPServer

Text says "Forking and threading versions of each type of server can be created 
using the ForkingMixIn and ThreadingMixIn mix-in classes. For instance, a 
threading UDP server class is created as follows:
  class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass
The mix-in class must come first, since it overrides a method defined in 
UDPServer."

"can be" means to me that user must create these. I am guessing that 
pre-defining them was added later. So text should change to 'have been'. The 
pre-created combinations should be listed. The last sentence could then say 
"Thhe mix-in class comes first since it overrides...". 

---
BaseRequestHandler

This is documented in 20.19.2 RequestHandler Objects. But instead of starting 
with something like

class socketserver.BaseRequestHandler 
This is the superclass of all RequestHandler objects. It defines the interface, 
given below, but does not implement most of the methods, which is done in 
subclasses. A new instance of the subclass is created for each request.

analogous to the initial entry in 20.19.1, 20.19.2 starts with

"The request handler class must define a new handle() method, and can override 
any of the following methods. A new instance is created for each request.

I suggest that this be replaced with a standard class entry like the one above. 
If done, I resume the "RequestHandler" method prefix should be 
"BaseRequestHandler".

StreamRequestHandler - these two are described in a paragraph
DatagramRequestHandler - after the handle method entry

---
In summary:
1. index all classes to point to locations indicated above.
2. state that mixin combinations are pre-defined.
3. give BaseRequestHandler a proper entry.
4. revise above as needed for *nix.
5. optionally adjust as needed for 2.7.

--
assignee: docs@python
components: Documentation
messages: 167825
nosy: docs@python, terry.reedy
priority: normal
severity: normal
status: open
title: Improve socketserver doc
versions: Python 3.3

___
Python tracker 

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



[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

>From my perspective sphinx doesn't allow notations like 
>:c:func:`PyMem_Malloc(1)`
Do you want to publish bugfix for sphinx? Sounds like good idea, but that fix 
is out my current competence.
I just fixed weird stuff which you pointed out.
If you want to do more — you are welcome. Please push a patch.

--

___
Python tracker 

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



[issue15609] Format string: add more fast-path

2012-08-09 Thread STINNER Victor

New submission from STINNER Victor:

Attached patch adds tests to check that str%args and str.format(args) take all 
optimization opportunities for simple format strings. It takes also the 
fast-path when Unicode string argument when width and/or precision is set. For 
example, "%.3s" % "abc" now returns "abc" unmodified (instead of creating a 
copy). The patch also takes the fast-path when formatting integers with 
str%args when the argument is not an int, but an object with __int__ method.

--
files: optimize_format.patch
keywords: patch
messages: 167827
nosy: haypo, pitrou
priority: normal
severity: normal
status: open
title: Format string: add more fast-path
type: performance
versions: Python 3.4
Added file: http://bugs.python.org/file26749/optimize_format.patch

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Dave Malcolm

New submission from Dave Malcolm:

I've been testing various 3rd-party python code against 3.3b1, and see
  ValueError: level must be >= 0
exceptions where C code is using PyImport_ImportModuleEx.

PyImport_ImportModuleEx reads as
63 #define PyImport_ImportModuleEx(n, g, l, f) \
64 PyImport_ImportModuleLevel(n, g, l, f, -1)
within http://hg.python.org/cpython/file/aaa68dce117e/Include/import.h as of 
now (2012-08-09)

Within PyImport_ImportModuleLevel there's this check:
  1280  if (level < 0) {
  1281  PyErr_SetString(PyExc_ValueError, "level must be >= 0");
  1282  goto error;
  1283  }
which thus always fires.

So it would seem that currently any usage of PyImport_ImportModuleEx will fail.

--
components: Interpreter Core
messages: 167828
nosy: dmalcolm
priority: normal
severity: normal
status: open
title: PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must 
be >= 0"
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Dave Malcolm

Dave Malcolm added the comment:

(FWIW, this was observed when compiling pygobject-3.3.4 against Python-3.3.0b1)

--

___
Python tracker 

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



[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris

Chris added the comment:

Ugh, a server reboot seems to have cleared this all up (FML).  It's been 
running well past the point of previous failure.  I suppose I'll never know why 
it was failing.  I'm going to close this out.  Thanks for your time in helping 
me think this through.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue15216] Support setting the encoding on a text stream after creation

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

Oh, set_encoding.patch is wrong:

+offset = self._decoded_chars_used - len(next_input)

self._decoded_chars_used is a number of Unicode characters, len(next_input) is 
a number of bytes. It only works with 7 and 8 bit encodings like ascii or 
latin1, but not with multibyte encodings like utf8 or ucs-4.

> peeking into the underlying buffer would be enough to
> handle encoding detection.

I wrote a new patch using this idea. It does not work (yet?) with non seekable 
streams. The raw read buffer (bytes string) is not stored in the _snapshot 
attribute if the stream is not seeakble. It may be changed to solve this issue.

set_encoding-2.patch is still a work-in-progress. It does not patch the _io 
module for example.

--
Added file: http://bugs.python.org/file26750/set_encoding-2.patch

___
Python tracker 

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



[issue15216] Support setting the encoding on a text stream after creation

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

Note: it is not possible to reencode the buffer of decoded characters to 
compute the offset in bytes. Some codecs are not bijective.

Examples:

 * b'\x00'.decode('utf7').encode('utf7') == b'+AAA-'
 * b'\xff'.decode('ascii', 'replace').encode('ascii', 'replace') == b'?'
 * b'\xff'.decode('ascii', 'ignore').encode('ascii', 'ignore') == b''

--

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

Can you please try my amazing patch?

--
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file26751/amazing_patch.patch

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I didn't realize that the documentation says that the default value is -1.
http://docs.python.org/library/functions.html#__import__

"level specifies whether to use absolute or relative imports. The default is -1 
which indicates both absolute and relative imports will be attempted. 0 means 
only perform absolute imports. Positive values for level indicate the number of 
parent directories to search relative to the directory of the module calling 
__import__()."

We should probably tolerate -1, or just drop the exception.

--

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Dave Malcolm

Dave Malcolm added the comment:

On Thu, 2012-08-09 at 21:04 +, STINNER Victor wrote:
> STINNER Victor added the comment:
> 
> Oh, I didn't realize that the documentation says that the default value is -1.
> http://docs.python.org/library/functions.html#__import__
> 
> "level specifies whether to use absolute or relative imports. The default is 
> -1 which indicates both absolute and relative imports will be attempted. 0 
> means only perform absolute imports. Positive values for level indicate the 
> number of parent directories to search relative to the directory of the 
> module calling __import__()."
That's the python 2 documentation

The 3.3 docs here:
  http://docs.python.org/dev/library/functions.html#__import__
say "Changed in version 3.3: Negative values for level are no longer
supported (which also changes the default value to 0)."

> We should probably tolerate -1, or just drop the exception.

--

___
Python tracker 

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



[issue15611] devguide: add "core mentors" area to Experts Index

2012-08-09 Thread Chris Jerdonek

New submission from Chris Jerdonek:

On the core-mentorship list, Nick Coghlan suggested adding an "area" to the 
Experts Index for core developers who are on the core-mentorship list (or at 
least those who wish to be listed).

This issue is to do that.  This can be done by adding a row to the 
Miscellaneous section with Interest Area "core mentors" or "core mentorship".

http://docs.python.org/devguide/experts.html#miscellaneous

--
components: Devguide
messages: 167836
nosy: cjerdonek, eric.araujo, ezio.melotti, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: devguide: add "core mentors" area to Experts Index
type: enhancement

___
Python tracker 

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



[issue15611] devguide: add "core mentors" area to Experts Index

2012-08-09 Thread Ezio Melotti

Ezio Melotti added the comment:

I think you should better define the goal of this new section.
How would people use this information?
* If it's just to know what developers are on the core-mentorship list, I think 
it's a bit pointless, especially because not all of them might want to be 
listed or they might be listed and not following it actively;
* If it's to know if someone you see on core-mentorship is a core developer, 
the full list of developers is a better way to check, since it contains all the 
names;
* If (as Nick's message seems to suggest) the goal is to find people willing to 
be added to the nosy list of issues about orphaned modules, then the "core 
mentors" header is a bit misleading because people might be on core-mentorship 
but they might not want to be added to issues (or vice versa);

The last goal makes some amount of sense, but it's somewhat orthogonal with the 
core-mentorship ML.

--

___
Python tracker 

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



[issue15573] Support unknown formats in memoryview comparisons

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

Martin v. Löwis added the comment:

Can someone please explain why this is a release blocker? What is the specific 
regression from 3.2 that this deals with?

--
nosy: +loewis

___
Python tracker 

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



[issue15611] devguide: add "core mentors" area to Experts Index

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

> I think you should better define the goal of this new section.

I see your point and may not have fully understood the intent.  I'll defer to 
Nick on this since the initial suggestion was his.  I'm not personally wedded 
to any particular resolution of the issue. :)

--

___
Python tracker 

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



[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

Here is a benchmark comparing Python 3.3 without and with my patch

ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle 
../default/python ../fasterpickle/python
Running fastpickle...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 
--use_cpickle pickle
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 
--use_cpickle pickle
Running pickle_dict...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 
--use_cpickle pickle_dict
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 
--use_cpickle pickle_dict
Running pickle_list...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 
--use_cpickle pickle_list
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 
--use_cpickle pickle_list
Running slowpickle...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 pickle
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 pickle

Report on Linux ned 3.4.4-4.fc16.x86_64 #1 SMP Thu Jul 5 20:01:38 UTC 2012 
x86_64 x86_64
Total CPU cores: 8

### fastpickle ###
Min: 0.530622 -> 0.332841: 1.59x faster
Avg: 0.539450 -> 0.336833: 1.60x faster
Significant (t=232.04)
Stddev: 0.00552 -> 0.00276: 2.0032x smaller
Timeline: b'http://tinyurl.com/dyu3vap'

The following not significant results are hidden, use -v to show them:
pickle_dict, pickle_list, slowpickle.

--

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Sounds like a rather annoying regression. Changing the macro's expansion would 
be good enough IMO.

--
nosy: +georg.brandl, pitrou
priority: normal -> release blocker

___
Python tracker 

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



[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

For your information, results of benchmark comparing Python 3.2 to 3.3:

ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle 
../3.2/python ../default/python 
Running fastpickle...
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 
--use_cpickle pickle
INFO:root:Running ../3.2/python performance/bm_pickle.py -n 50 --use_cpickle 
pickle
Running pickle_dict...
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 
--use_cpickle pickle_dict
INFO:root:Running ../3.2/python performance/bm_pickle.py -n 50 --use_cpickle 
pickle_dict
Running pickle_list...
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 
--use_cpickle pickle_list
INFO:root:Running ../3.2/python performance/bm_pickle.py -n 50 --use_cpickle 
pickle_list
Running slowpickle...
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 pickle
INFO:root:Running ../3.2/python performance/bm_pickle.py -n 50 pickle

Report on Linux ned 3.4.4-4.fc16.x86_64 #1 SMP Thu Jul 5 20:01:38 UTC 2012 
x86_64 x86_64
Total CPU cores: 8

### fastpickle ###
Min: 0.455842 -> 0.542103: 1.19x slower
Avg: 0.462334 -> 0.547271: 1.18x slower
Significant (t=-101.15)
Stddev: 0.00362 -> 0.00471: 1.3028x larger
Timeline: b'http://tinyurl.com/btr644x'

### pickle_dict ###
Min: 0.360125 -> 0.345850: 1.04x faster
Avg: 0.364019 -> 0.348431: 1.04x faster
Significant (t=30.84)
Stddev: 0.00308 -> 0.00181: 1.6973x smaller
Timeline: b'http://tinyurl.com/cd3ashu'

### pickle_list ###
Min: 0.803941 -> 0.584800: 1.37x faster
Avg: 0.85 -> 0.589200: 1.38x faster
Significant (t=455.00)
Stddev: 0.00261 -> 0.00225: 1.1612x smaller
Timeline: b'http://tinyurl.com/8u4m2wf'

### slowpickle ###
Min: 0.409008 -> 0.461257: 1.13x slower
Avg: 0.413668 -> 0.466201: 1.13x slower
Significant (t=-115.31)
Stddev: 0.00236 -> 0.00219: 1.0772x smaller
Timeline: b'http://tinyurl.com/czrg5kf'

--

___
Python tracker 

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



[issue15608] Improve socketserver doc

2012-08-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

BaseRequestHandler.__init__(self, request) apparently attaches request to the 
instance as self.request.

The methods are called in this order: setup, handle, finish. 
If they must be confusingly documented in the opposite order, it would be good 
for the head entry to state the correct order.

--

___
Python tracker 

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



[issue15444] Incorrectly written contributor's names

2012-08-09 Thread Chris Jerdonek

Chris Jerdonek added the comment:

> While working on issue 15437, it occurred to me that storing the names in a 
> structured form might come in handy.

In a separate discussion, Ezio pointed out a case where we are already scraping 
data about members from doc files:

http://hg.python.org/tracker/python-dev/file/69984a770ab5/extensions/jnosy.py

So there is another case where we would benefit from storing names with 
associated attributes in a centralized, structured way.  Sorry if this is a 
departure from the topic of this issue.  I may create a separate issue for this 
or raise the idea in another forum.

--

___
Python tracker 

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



[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

> Sounds like a rather annoying regression.

PyImport_ImportModuleLevel() is part of the stable API. Is it an
acceptable to not only change the default value but also fail with the
previous *default* value?

Can't we just drop the check "level < 0"?

--

___
Python tracker 

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



[issue15573] Support unknown formats in memoryview comparisons

2012-08-09 Thread STINNER Victor

STINNER Victor added the comment:

> What is the specific regression from 3.2 that this deals with?

I don't know if it must be called a regression, but at least the behaviour is 
different in Python 3.2 and 3.3. For example, an Unicode array is no more equal 
to its memoryview:

Python 3.3.0b1 (default:aaa68dce117e, Aug  9 2012, 22:45:00)
   
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux 
   
Type "help", "copyright", "credits" or "license" for more information.  
   
>>> import array
>>> 
>>>
>>> a=array.array('u', 'abc')
>>> v=memoryview(a) 
>>> 
>>>
>>> a == v  
>>> 
>>>
False   
   

ned$ python3
Python 3.2.3 (default, Jun  8 2012, 05:40:07)   
   
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
   
Type "help", "copyright", "credits" or "license" for more information.  
   
>>> import array
>>> 
>>>
>>> a=array.array('u', 'abc')
>>> v=memoryview(a) 
>>> 
>>>
>>> a == v  
>>> 
>>>
True

--

___
Python tracker 

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



  1   2   >