[issue16150] Implement generator interface in itertools.chain.

2012-10-07 Thread pyos

pyos added the comment:

Updated the patch. Thanks Serhiy Storchaka for comments on the previous one.

--
Added file: 
http://bugs.python.org/file27468/itertools-chain-send-throw-and-close-2.diff

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



[issue16150] Implement generator interface in itertools.chain.

2012-10-07 Thread pyos

Changes by pyos pyos100...@gmail.com:


Removed file: 
http://bugs.python.org/file27455/itertools-chain-send-throw-and-close.diff

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



[issue16148] Implement PEP 424

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b9dedf845a0f by Armin Ronacher in branch 'default':
Issue #16148: Small improvements and cleanup.  Added version information
http://hg.python.org/cpython/rev/b9dedf845a0f

--

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



[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-10-07 Thread Hynek Schlawack

Hynek Schlawack added the comment:

Let's get this rolling again. First let's fix the docs for 3.2+ first. My 
current suggestion would be the following:

~~~

.. function:: makedirs(path, mode=0o777, exist_ok=False)

   .. index::
  single: directory; creating
  single: UNC paths; and os.makedirs()

   Recursive directory creation function.  Like :func:`mkdir`, but makes all
   intermediate-level directories needed to contain the leaf directory.

   The default *mode* is ``0o777`` (octal).  On some systems, *mode* is
   ignored.  Where it is used, the current umask value is first masked out.

   If *exists_ok* is ``False`` (the default), an :exc:`OSError` is raised if
   the target directory already exists.  If *exists_ok* is ``True`` an
   :exc:`OSError` is still raised if the umask-masked *mode* is different from
   the existing mode, on systems where the mode is used.  :exc:`OSError` will
   also be raised if the directory creation fails.
 
   .. note::

  :func:`makedirs` will become confused if the path elements to create
  include :data:`pardir` (eg. .. on UNIX systems).

   This function handles UNC paths correctly.

   .. versionadded:: 3.2
  The *exist_ok* parameter.

~~~

Opinions?

--

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-07 Thread Mark Dickinson

Mark Dickinson added the comment:

Yes, reopening issue 14700 sounds good to me.

I'm not against fixing these issues in the bugfix branches, but we need to do 
it carefully (which unfortunately probably also means slowly).  I think that 
for the bugfix branches, each fix should be accompanied by a test that 
exercises the original bug.  I'd also suggest having a separate issue for each 
bug, for ease of review.

I'd probably also prioritise those bugs that can be triggered without having 
huge structures in memory:  e.g., the issue 14700 bug seems more important to 
fix than the PyTuple_New bug.

--

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Mark Dickinson

Mark Dickinson added the comment:

Re-opening: this should probably also be fixed in 2.7 and 3.2.  See issue 16096 
for discussion.

--

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution: fixed - 
status: closed - open
versions:  -Python 3.3

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



[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-07 Thread Charles-François Natali

Charles-François Natali added the comment:

Here's a patch.

--
Added file: http://bugs.python.org/file27469/import_error.diff

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



[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-07 Thread Charles-François Natali

Charles-François Natali added the comment:

Roumen, are you sure you submitted your patch to the right issue?

--

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



[issue16153] PyUnicode_FromFormatV() must fail if the format string is invalid

2012-10-07 Thread Stefan Krah

Stefan Krah added the comment:

I don't know the reason for the previous behavior, but it's documented:

http://docs.python.org/dev/c-api/unicode.html?highlight=pyunicode_fromformatv#PyUnicode_FromFormat


An unrecognized format character causes all the rest of the format string to 
be copied as-is to the result string, and any extra arguments discarded.

--
nosy: +skrah

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

The patch for current default branch.

--
Added file: http://bugs.python.org/file27470/_tkinter_pep3121-384_v7.patch

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



[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-07 Thread Roumen Petrov

Roumen Petrov added the comment:

Yes .
Charles, lest assume that all other issues with build system, are resolved and 
source tree is ready for use. So in this situation I could run python , I could 
build all and I could run tests with an additional patch TEMPDIR is relative to 
build tree (patch 0014-* from recent archive uploaded to issue #3754) . Note 
without you patch. 

In my build environment test_imp fail on test_source.
So what is result with you patch on this test ?

--

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



[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e11642068f85 by Hynek Schlawack in branch 'default':
Closes #1492704: Make shutil.copyfile() raise a distinct SameFileError
http://hg.python.org/cpython/rev/e11642068f85

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

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



[issue16040] nntplib: unlimited readline() from connection

2012-10-07 Thread Hynek Schlawack

Hynek Schlawack added the comment:

Any suggestions on the value for _MAXLINE or just steal the 64k from httplib?

--

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



[issue13837] test_shutil fails with symlinks enabled under Windows

2012-10-07 Thread Hynek Schlawack

Hynek Schlawack added the comment:

Pong? I understand we have to close #15411  #9949 first? Can't help here out 
due to lack of Windows.

--
dependencies: +os.chmod() does not follow symlinks on Windows, os.path.realpath 
on Windows does not follow symbolic links

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



[issue15411] os.chmod() does not follow symlinks on Windows

2012-10-07 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
nosy: +brian.curtin, tim.golden

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Mark Dickinson

Mark Dickinson added the comment:

Here's a patch for 2.7.

--
Added file: http://bugs.python.org/file27471/formatting-overflow-2.7.patch

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-07 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
versions:  -Python 3.3, Python 3.4

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Mark Dickinson

Mark Dickinson added the comment:

And for 3.2

--
Added file: http://bugs.python.org/file27472/formatting-overflow-3.2.patch

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


Added file: http://bugs.python.org/file27473/formatting-overflow-3.2.patch

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


Removed file: http://bugs.python.org/file27472/formatting-overflow-3.2.patch

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



[issue8489] Support UTF8SMTP as part of RFC 5336 in smptlib

2012-10-07 Thread Ramchandra Apte

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


--
components:  -Unicode, email
title: Support UTF8SMTP as part of RFC 5336 in smtlib - Support UTF8SMTP as 
part of RFC 5336 in smptlib

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



[issue16136] Removal of VMS support

2012-10-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue6322] Pdb breakpoints don't work on lines without bytecode

2012-10-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16050] ctypes: callback from C++ to Python fails with Illegal Instruction call

2012-10-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16155] Some minor doc fixes in Doc/faq

2012-10-07 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 it does not seem to pick the whitespace in the docs and does not match - 
 Doc/faq/general.rst

Can you provide a link to the line (or one of the lines) in question so it's 
easier to see what you are referring to?

 os.path.isdir returns True or False, not 0 or 1 as in the docs

I think there is a doctest directive to make 1 acceptable for True and vice 
versa, but it's generally better if the docs match what Python actually returns 
(for that version of Python).

--

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 fsum will pass if 'from math import fsum' is done before it, but I've left 
 such issues for now since there seems to be a debate about how to go about 
 that

For now, you can at least use the testsetup directive which will 
simultaneously allow the doctests to pass but cause the subsequent lines to be 
hidden in the rendered HTML.  We can always remove the directive at a later 
date to cause it to display.  See here for an example:

http://bugs.python.org/review/15888/diff/6011/Doc/howto/ipaddress.rst

 - some seem unfixable too

Can you include links to the questionable areas for examples like these (e.g. 
using the browse source page http://hg.python.org/cpython/file/default/ )?  
This will make it easier to reference and discuss.

--

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



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

2012-10-07 Thread Eli Bendersky

Eli Bendersky added the comment:

Will look into it, thanks for the report.

--

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



[issue12322] ElementPath 1.3 expressions documentation

2012-10-07 Thread Eli Bendersky

Eli Bendersky added the comment:

Thanks for the report, Patrick. Yes, documenting this limitation would make 
sense. Have you tested to see how it behaves?

Anyhow, a patch would be welcome ;-)

--
stage:  - needs patch

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



[issue16082] xml.etree.ElementTree.tostringlist does not conform to its documentation

2012-10-07 Thread Eli Bendersky

Eli Bendersky added the comment:

Thanks for the report. I'll take a look.

Patches always welcome :)

--
stage:  - patch review
title: xml.etree.ElementTree.tostringlist does conform to it's documentation - 
xml.etree.ElementTree.tostringlist does not conform to its documentation

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



[issue15888] ipaddress doctest examples have some errors

2012-10-07 Thread Eli Bendersky

Eli Bendersky added the comment:

Thanks, Chris. I'll take a look

--

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



[issue3871] cross and native build of python for mingw* hosts

2012-10-07 Thread Roumen Petrov

Roumen Petrov added the comment:

Extract of 2012-10-04 is after patch set py3k-20121004-CROSS.tgz from issue 
#3754 .

--
title: cross and native build of python for mingw32 with packaging - cross and 
native build of python for mingw* hosts
Added file: http://bugs.python.org/file27474/py3k-20121004-MINGW.patch

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



[issue9216] FIPS support for hashlib

2012-10-07 Thread Roumen Petrov

Roumen Petrov added the comment:

Everything in this issue posted until now has to be managed as vendor patch.

--
nosy: +rpetrov

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



[issue15888] ipaddress doctest examples have some errors

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 81ad910d75a9 by Eli Bendersky in branch '3.3':
Issue #15888: fixing problems in ipaddress doctests. Patch by Chris Jerdonek
http://hg.python.org/cpython/rev/81ad910d75a9

--
nosy: +python-dev

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



[issue15631] Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders

2012-10-07 Thread Roumen Petrov

Roumen Petrov added the comment:

Skip,

You mix two technologies one is --libdir that could be specified at configure 
time and another one is sub-directory name for libraries as path suffix to some 
prefixes.

You could just adjust python to use user specified path (--libdir) and this is 
more flexible instead you hard coded stuff in configure script.

--
nosy: +rpetrov

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



[issue15888] ipaddress doctest examples have some errors

2012-10-07 Thread Eli Bendersky

Eli Bendersky added the comment:

Pushed to 3.3 and 3.4
Thanks for the report and patch

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

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

The patch is huge, then I like to apply it in two steps: first implement pep 
384 than 3121.
Attached first patch.

--
Added file: http://bugs.python.org/file27475/_tkinter_pep384_v1.patch

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



[issue15631] Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders

2012-10-07 Thread Roumen Petrov

Roumen Petrov added the comment:

Also I could not understand why is opened new issue.

Just search for libdir and one is Issue 1294959  - 7 years old with the same 
idea. Later mean that solution is not acceptable.

--

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



[issue15631] Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders

2012-10-07 Thread Skip Montanaro

Skip Montanaro added the comment:

Before this goes any farther, let me make this clear - I *did not* develop this 
patch.  It was developed by the OpenSUSE folks.  I had trouble installing 
Python from source on the OpenSUSE system under my desk at work.  I asked about 
the problem on python-l...@python.org.  Someone directed me to this open bug 
report.  I saw the reference to the patch, applied it, and installed.  I 
verified that the installed Python executable now works as I expected, and 
reported that.  That is all I did.  Various responses seem to suggest that 
people think I wrote the patch.  I did not.  I didn't even look at the contents 
of the patch before applying it.  I regenerated it relative to the current hg 
trunk simply because when I first applied it, a couple chunks were applied with 
offsets.

If my feedback is not sufficient to help move this bug report forward, my 
apologies.  I know next to nothing about writing configure scripts, let alone 
the right way to do that.  I don't mess around at this level of things any 
more.  Haven't in at least a decade.  I don't know what a host macro is.  I 
have never used --libdir.  If people are looking to me to correct the flaws in 
this patch, they are likely going to wait for awhile.

--

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



[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-10-07 Thread R. David Murray

R. David Murray added the comment:

Looks good to me.

--

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



[issue8489] Support UTF8SMTP as part of RFC 5336 in smptlib

2012-10-07 Thread R. David Murray

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


--
components: +email

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



[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Robin, why do you increment refcounter for type object on every construction of 
dbm instance?

Also I would to see macros in uppercase if possible.

--

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cc3e27b7da41 by Andrew Svetlov in branch '2.7':
Issue #14900: Distuguish call count and primitive call count in pstat output.
http://hg.python.org/cpython/rev/cc3e27b7da41

New changeset 410e92589164 by Andrew Svetlov in branch '3.2':
Issue #14900: Distuguish call count and primitive call count in pstat output.
http://hg.python.org/cpython/rev/410e92589164

New changeset fb216fee32db by Andrew Svetlov in branch '3.3':
Merge issue #14900: Distuguish call count and primitive call count in pstat 
output.
http://hg.python.org/cpython/rev/fb216fee32db

New changeset bc658b6a1d4e by Andrew Svetlov in branch 'default':
Issue #14900: Distuguish call count and primitive call count in pstat output.
http://hg.python.org/cpython/rev/bc658b6a1d4e

--
nosy: +python-dev

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I definitely agree with renaming call count to primitive call count.
Thank you for patch.

BTW please fill Python Contributor Agreement: http://www.python.org/psf/contrib/

--
assignee:  - asvetlov

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-07 Thread Richard Oudkerk

Richard Oudkerk added the comment:

_sha3 is not being built on Windows, so importing hashlib fails

 import hashlib
ERROR:root:code for hash sha3_224 was not found.
Traceback (most recent call last):
  File C:\Repos\cpython-dirty\lib\hashlib.py, line 109, in 
__get_openssl_constructor
f = getattr(_hashlib, 'openssl_' + name)
AttributeError: 'module' object has no attribute 'openssl_sha3_224'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File C:\Repos\cpython-dirty\lib\hashlib.py, line 154, in module
globals()[__func_name] = __get_hash(__func_name)
  File C:\Repos\cpython-dirty\lib\hashlib.py, line 116, in 
__get_openssl_constructor
return __get_builtin_constructor(name)
  File C:\Repos\cpython-dirty\lib\hashlib.py, line 104, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha3_224
...

--
nosy: +sbt

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-07 Thread Christian Heimes

Christian Heimes added the comment:

I've pushed a fix about 5 minutes ago. The module wasn't compiled in debug 
builds due to an error in the project file. Please update your copy and try 
again.

--

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 69b310f7acfa by Andrew Svetlov in branch '2.7':
Issue #14900: Add aliases for sorting params for pstat to follow column names 
from pstat output.
http://hg.python.org/cpython/rev/69b310f7acfa

New changeset 511a3c51731e by Andrew Svetlov in branch '3.2':
Issue #14900: Add aliases for sorting params for pstat to follow column names 
from pstat output.
http://hg.python.org/cpython/rev/511a3c51731e

New changeset 29d4ac311627 by Andrew Svetlov in branch '3.3':
Merge issue #14900: Add aliases for sorting params for pstat to follow column 
names from pstat output.
http://hg.python.org/cpython/rev/29d4ac311627

New changeset 7b8b1b30e5f8 by Andrew Svetlov in branch 'default':
Merge issue #14900: Add aliases for sorting params for pstat to follow column 
names from pstat output.
http://hg.python.org/cpython/rev/7b8b1b30e5f8

--

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-07 Thread Christian Heimes

Christian Heimes added the comment:

6cf6b8265e57 and 8172cc8bfa6d have fixed the issue on my VM. I didn't noticed 
the issue as I only tested hashlib with the release builds, not the debug 
builds. Sorry for that.

--

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I'm ok with aliases also.
Issue with percall can be fixed only in 3.4 via renaming one of the column.
Thanks again.

--

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Documentation also need to be updated to reflect changes.

--

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-07 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 6cf6b8265e57 and 8172cc8bfa6d have fixed the issue on my VM. I didn't 
 noticed the issue as I only tested hashlib with the release builds, not 
 the debug builds. Sorry for that.

Ah.  I did not even notice there was _sha3.vcxproj.

Is there any particular reason for not making it part of python3.dll like 
_sha1, _sha256, _sha512 are?  (I thought it was only modules with special link 
requirements that became separate DLLs.)

--

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



[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-10-07 Thread Robin Schreiber

Robin Schreiber added the comment:

PEP384 demands, among other things, that the TypeObjects themselves are 
transformed to Heaptypes. This means that the Typeobjects, that are created 
from this new stable ABI, reside within the heap and therefore have to be 
managed by the Python GC. This is of course done by appropriately incref- and 
decrefing of the specific Heaptype.

--

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



[issue16157] Irrelevant references to Misc/News

2012-10-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Older versions (3.2 for 3.3, 3.2 and 3.3 for 3.4) whatsnew refers to Misc/News 
which contains changes only for currect version (For full details, see the 
:source:`Misc/NEWS Misc/NEWS` file.).

http://docs.python.org/3.3/whatsnew/3.2.html
http://docs.python.org/3.4/whatsnew/3.2.html
http://docs.python.org/3.4/whatsnew/3.3.html

--
assignee: docs@python
components: Documentation
messages: 172321
nosy: docs@python, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Irrelevant references to Misc/News
type: behavior
versions: Python 3.3, Python 3.4

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



[issue16157] Irrelevant references to Misc/News

2012-10-07 Thread R. David Murray

R. David Murray added the comment:

The problem is that the source directive (from pyspecific in Sphinx) uses the 
'current branch' for which the docs are being built.  Probably we will have to 
hardcode the links rather than using the source directive.

--
nosy: +r.david.murray

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



[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

From my perspective type object is referenced by module state.
While module is present it's state hold all types exposed by module.
After module has deleted it's state has cleaned up and types has gone away — 
thats look good to me.

Instances of python classes (not extensions) hold ownership for it's class. I 
guess it done because python class can be constructed inside function and 
instance of this class should work after exit from that function like closure 
does.

In case of extension modules enough to hold type reference into module state 
itself.

Thoughts?

--

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-07 Thread Christian Heimes

Christian Heimes added the comment:

The module is rather large (about 190 KB) because the optimized SHA-3 
implementation isn't optimized for size. For this reason I like to keep the 
module out of the main binary for now.

--

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



[issue16158] sporadic test_multiprocessing failure

2012-10-07 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Seen on a buildbot:

==
FAIL: test_mymanager_context_prestarted 
(test.test_multiprocessing.WithManagerTestMyManager)
--
Traceback (most recent call last):
  File 
/Volumes/bay2/buildslave/cpython/3.3.snakebite-mountainlion-amd64/build/Lib/test/test_multiprocessing.py,
 line 1911, in test_mymanager_context_prestarted
self.assertEqual(manager._process.exitcode, 0)
AssertionError: None != 0

http://buildbot.python.org/all/builders/AMD64%20Mountain%20Lion%20%5BSB%5D%203.3/builds/35/steps/test/logs/stdio

--
components: Library (Lib), Tests
messages: 172325
nosy: pitrou, sbt, trent
priority: normal
severity: normal
status: open
title: sporadic test_multiprocessing failure
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4

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



[issue16155] Some minor doc fixes in Doc/faq

2012-10-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Doc corrections (can) go in all current docs.

1.2 - 1.0: same change
Hello * 3: same change

dir([]): shouldn't output be line-wrapped
3.3: same
3.2: delete __dir__, clear, copy, giving
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', 
'__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', 
'__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', '__le__', 
'__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', 
'__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', 
'__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'count', 
'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']

2.7: same deletions, add __delslice__, __getslice__, __setslice__, giving
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', 
'__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', 
'__getitem__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', 
'__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', 
'__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', 
'__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 
'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 
'remove', 'reverse', 'sort']

# for 2.7, 3.2, delete clear, copy for
 [d for d in dir([]) if '__' not in d]
['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 
'sort']

Change Boolean 0,1 outputs to False,True. This was done in most places when 
behavior was changed after booleans were added in 2.2, or you would see many 
more errors. This holdover in the faq is an oversight.

In 3.3 and before, help() does not lead to a new pager/display on Windows, so I 
am not sure what you mean. I presume you are referring to the following.

 help(L.append)
Help on built-in function append:

append(...)
L.append(object) - None -- append object to end

 

The above from 3.3, and same before, has a blank line that is not in the faq, 
so add it. It otherwise looks the same to me.

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

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



[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-10-07 Thread Antoine Pitrou

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


--
nosy: +loewis

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



[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-07 Thread Nikolay Bogoychev

Nikolay Bogoychev added the comment:

Okay, here's a proper patch with documentation entry and test cases.
Please review and comment

--
Added file: http://bugs.python.org/file27476/robotparser.patch

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I consider some items to be errors. In any case, all current docs can be fixed. 
First, your questions as to what you did not fix.

fsum: I personally would add the import visibly, but at least add it hidden, as 
Chris suggested.

171  from filecmp import dircmp
172  def print_diff_files(dcmp):
173 ... for name in dcmp.diff_files:
174 ... print(diff_file %s found in %s and %s % (name, dcmp.left,
175 ... dcmp.right))
176 ... for sub_dcmp in dcmp.subdirs.values():
177 ... print_diff_files(sub_dcmp)
178 ...
179  dcmp = dircmp('dir1', 'dir2')
180  print_diff_files(dcmp)

(copying from the repository view deletes whitespace)
The import and def should run and should be tested.
The last 2 lines should not be tested: add #doctest: SKIP to both.
(I gather that Sphinx will strip this.)

width = 5
for num in range(5,12):
   ... for base in 'dXob':
   ... print('{0:{width}{base}}'.format(num, base=base, width=width), 
end=' ')
   ... print()
   ...
   5 5 5   101
   6 6 6   110
   7 7 7   111
   8 810  1000
   9 911  1001
  10 A12  1010
  11 B13  1011

I believe the problem here is the end = '' part. It puts a blank space at the 
end of each line, which got deleted when I pasted the above, which was cut from 
my local repository. Trailing blanks are *really* a problem and code that 
produces them is not a good example. I suggest changing width to 6, end to '', 
and adding '' to the beginning of each output line. It should then pass.

--
type: enhancement - behavior
versions: +Python 2.7, Python 3.2, Python 3.3

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 Trailing blanks are *really* a problem

The NORMALIZE_WHITESPACE doctest directive is another option to deal with cases 
like these.  It ignores whitespace-only differences between the actual and 
expected outputs.  Does it pass with that directive?

--

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Now your patch:

colorsys: same change all versions
fractions: ditto
Template: ditto

I believe the changes I suggested for filecmp and the numbers should also be 
the same in all versions.

ACKS: your name should be inserted in alpha order

--

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



[issue16009] Json error messages could provide more information about the error

2012-10-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I considered the directive, but I mildly prefer the code change.

end = ' ')  guarantees a blank between fields
even if one formats a too-large number
end = '')  does not add a blank to the end.
end = '' if base == 'b' else ' ')  does both (but depends on having a
  'last field' condition.

I actual practice, I might use the third option.
However, if you do the commit, it is your choice.

--

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



[issue14783] Make int() and str() docstrings correct

2012-10-07 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Any comments on the latest patch, in particular on the int() docstring?  
Especially you, Terry, as you created the issue?

--

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 I considered the directive, but I mildly prefer the code change.

I just wanted to point the directive out as an available option (especially for 
Ravi if he does further patches like this).  Either way is fine with me.

--

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



[issue14783] Make int() and str() docstrings correct

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

LGTM

--
nosy: +asvetlov

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



[issue14783] Make int() and str() docstrings correct

2012-10-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I checked pretty carefully and it looks good to me.

--
stage: patch review - commit review

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2012-10-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov
stage:  - needs patch

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



[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

http://docs.python.org/py3k/library/doctest.html#option-flags-and-directives

has the improved version. Thanks. Here, the complete example text is more 
important than the hi-lites.

--

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Apparently, I should have suggested # doctest: +SKIP.
The #12947 fix to example directives being deleted from the directive examples 
came after the 3.3.0 release. Fixed examples are at
http://docs.python.org/py3k/library/doctest.html#option-flags-and-directives

--

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



[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-07 Thread Nikolay Bogoychev

Nikolay Bogoychev added the comment:

Reformatted patch

--
Added file: http://bugs.python.org/file27477/robotparser_reformatted.patch

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



[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
keywords: +needs review
stage: test needed - patch review

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



[issue16120] Use |yield from| in stdlib

2012-10-07 Thread Berker Peksag

Berker Peksag added the comment:

 Berker, could you possibly submit a Contributor Agreement Form?
 Details at http://www.python.org/psf/contrib/

Jesús, I just emailed the contributor agreement.

 Does your patch take care of all yield in the stdlib?

I found another one -- thanks to Serhiy's command. Patch attached.

--
Added file: http://bugs.python.org/file27478/more-yield-from.diff

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



[issue16120] Use |yield from| in stdlib

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 70d49694786c by Andrew Svetlov in branch 'default':
Issue #16120: Use |yield from| in stdlib.
http://hg.python.org/cpython/rev/70d49694786c

--

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



[issue16120] Use |yield from| in stdlib

2012-10-07 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed, thanks.
Interesting, I didn't thought «yield from» can be applied to just list, not 
generator. But it works.

--

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Only one comment. test_formatting_huge_precision should use not sys.maxsize, 
but _testcapi.INT_MAX. Other tests can use _testcapi.PY_SSIZE_T_MAX.

I think this tests are worth to add for 3.3 and 3.4. Your old test for this bug 
(064c2d0483f8) actually does not test the bug on all plathforms.

--

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



[issue16120] Use |yield from| in stdlib

2012-10-07 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2012-10-07 Thread STINNER Victor

STINNER Victor added the comment:

Updated patch: precision for %s and %V (if the first PyObject* argument is 
NULL) formats is now a number of bytes, rather than a number of characters. 
width is still always a number of character.

The reason is that %.100s can be used for avoid a crash if the argument is 
not terminated by a null character (see issue #10833).

--
Added file: 
http://bugs.python.org/file27479/unicode_fromformat_precision-2.patch

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread Mark Dickinson

Mark Dickinson added the comment:

Thanks for reviewing.  I was being lazy with the checks; I'll fix that.

Agreed that it's worth forward porting the tests to 3.3 and 3.4;  I'll do that.

--

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



[issue16153] PyUnicode_FromFormatV() must fail if the format string is invalid

2012-10-07 Thread STINNER Victor

STINNER Victor added the comment:

Updated patch: detect also invalid %.s format and update the documentation.

 I don't know the reason for the previous behavior, but it's documented:

Oh, I missed the doc. Fixed in the new patch.

--
Added file: http://bugs.python.org/file27480/invalid_format-2.patch

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



[issue14700] Integer overflow in classic string formatting

2012-10-07 Thread STINNER Victor

STINNER Victor added the comment:

For your information, I fixed recently PyUnicode_FromFormatV() to detect 
overflows on width and precision:

changeset:   79543:d1369daeb9ec
user:Victor Stinner victor.stin...@gmail.com
date:Sat Oct 06 23:05:00 2012 +0200
files:   Objects/unicodeobject.c
description:
Issue #16147: PyUnicode_FromFormatV() now detects integer overflow when parsing
width and precision

--
nosy: +haypo

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-10-07 Thread Arne Babenhauserheide

Arne Babenhauserheide added the comment:

Copyright-assignment signed and sent.

Thanks!

--

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



[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-10-07 Thread Aditya Kedia

Aditya Kedia added the comment:

Right.. Looks good.

--
nosy: +TheAdityaKedia

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



[issue16036] simplify int() signature docs

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e4598364ea29 by Chris Jerdonek in branch '3.2':
Issue #14783: Improve int() docstring and also str(), range(), and slice().
http://hg.python.org/cpython/rev/e4598364ea29

--

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



[issue14783] Make int() and str() docstrings correct

2012-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e4598364ea29 by Chris Jerdonek in branch '3.2':
Issue #14783: Improve int() docstring and also str(), range(), and slice().
http://hg.python.org/cpython/rev/e4598364ea29

New changeset 365da47a6dc1 by Chris Jerdonek in branch '3.3':
Issue #14783: Merge changes from 3.2.
http://hg.python.org/cpython/rev/365da47a6dc1

New changeset 3773c98d9da8 by Chris Jerdonek in branch 'default':
Issue #14783: Merge changes from 3.3.
http://hg.python.org/cpython/rev/3773c98d9da8

--
nosy: +python-dev

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



[issue14783] Make int() and str() docstrings correct

2012-10-07 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Leaving open to backport applicable portions to 2.7.  I should get to that 
later today.

--

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



[issue16159] Closing Debugger freezes IDLE shell

2012-10-07 Thread jimbo1qaz

New submission from jimbo1qaz:

Open a Python file with IDLE and F5 it. Turn on debugger ([DEBUG ON]), F5 again 
([DEBUG ON]), and close the debugger ([DEBUG OFF]). The shell is now completely 
locked and must be closed (with a 'The program is still running, want to kill 
it?' message).

--
components: IDLE
messages: 172352
nosy: jimbo1qaz
priority: normal
severity: normal
status: open
title: Closing Debugger freezes IDLE shell
versions: Python 3.3

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



[issue16159] Closing Debugger freezes IDLE shell

2012-10-07 Thread jimbo1qaz

jimbo1qaz added the comment:

I have confirmed that this happens on both 3.2 and .3, and it also happens when 
you close any active debug window.

--
versions: +Python 3.2

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




[issue16159] Closing Debugger freezes IDLE shell

2012-10-07 Thread Roger Serwy

Roger Serwy added the comment:

Hi Jimbo,

Clicking quit first avoids this problem, but I do agree that it does need to 
be fixed.

This is also a duplicate of issue15348. I am closing this issue in favor of 
that one. Please feel free to add yourself to the nosy list on that issue.

--
nosy: +serwy
resolution:  - duplicate
status: open - closed
superseder:  - IDLE - shell becomes unresponsive if debugger windows is closed 
while active.

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



[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-07 Thread jimbo1qaz

Changes by jimbo1qaz jimmyli1...@gmail.com:


--
nosy: +jimbo1qaz

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



[issue16160] subclassing types.SimpleNamespace does not work

2012-10-07 Thread R. David Murray

New submission from R. David Murray:

Python 3.3.0+ (3.3:152d85b2da3a, Oct  6 2012, 13:17:54) 
[GCC 4.6.3] on linux
Type help, copyright, credits or license for more information.
 from types import SimpleNamespace
 class Foo(SimpleNamespace):
...   pass
... 
 y = Foo(bar=8, foo=9)
 y
namespace()

It doesn't work to define an __init__ method, either, which is what I really 
wanted to do.  (I was subclassing to get the nice repr).

--
messages: 172355
nosy: eric.snow, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: subclassing types.SimpleNamespace does not work
type: behavior
versions: Python 3.3, Python 3.4

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



[issue16160] subclassing types.SimpleNamespace does not work

2012-10-07 Thread Arfrever Frehtes Taifersar Arahesis

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


--
nosy: +Arfrever

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2012-10-07 Thread Arfrever Frehtes Taifersar Arahesis

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


--
nosy: +Arfrever

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



[issue15111] Wrong ImportError message with importlib

2012-10-07 Thread Arfrever Frehtes Taifersar Arahesis

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


--
nosy: +Arfrever

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



[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-07 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy: +mikehoy

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



[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-07 Thread Mike Hoy

Mike Hoy added the comment:

I imported this patch on 3.4 and it worked as expected on my system.

help('help') brings up info about help()
help(object) prints the docstring
help() invokes the help

--

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



[issue16160] subclassing types.SimpleNamespace does not work

2012-10-07 Thread Christian Heimes

Christian Heimes added the comment:

I have verified that the __init__ function isn't executed when SimpleNamespace 
is subclasses. I guess that's happening:

http://docs.python.org/py3k/c-api/typeobj.html?highlight=tp_init#PyTypeObject.tp_init

If the tp_new function returns an instance of some other type that is not a 
subtype of the original type, no tp_init function is called; if tp_new returns 
an instance of a subtype of the original type, the subtype’s tp_init is called.

namespace_new always returns a namespace object no matter what. As namespace is 
not a subclass of the Foo (the other way around), the type check in type_call() 
fails and __init__ isn't called. The tp_new method needs a fix.

That looks all wrong to me:

 import types
 class SubNS(types.SimpleNamespace):
... pass
... 
 SubNS.__new__(SubNS)
namespace()

That's about right:

 class SubStr(str):
... pass
... 
 type(SubStr.__new__(SubStr))
class '__main__.SubStr'

--
nosy: +christian.heimes

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



  1   2   >