[issue17395] Wait for live children in test_multiprocessing

2013-03-11 Thread Ezio Melotti

New submission from Ezio Melotti:

While running test_multiprocessing I get:
[...]
test_wait_return (test.test_multiprocessing.WithManagerTestBarrier) ... ok
Shared objects which still exist at manager shutdown:
  b6b802d4:   refcount=1
threading.Barrier object at 0xb6b802d4
  b6b80ea4:   refcount=1
threading.Event object at 0xb6b80ea4
  b6b83264:   refcount=1
[True, True, True, True]
  b6b836fc:   refcount=1
[16092, 16094, 16091, 16096]
  b6b89884:   refcount=2
threading.Barrier object at 0xb6b89884
  b6b89ea4:   refcount=1
[]
  b6b8b7dc:   refcount=1
queue.Queue object at 0xb6b8b7dc
  b6b8bc3c:   refcount=1
[16092, 16094, 16096, 16091]
test_notify (test.test_multiprocessing.WithManagerTestCondition) ... ok
[...]
test_event (test.test_multiprocessing.WithManagerTestEvent) ... ok
Shared objects which still exist at manager shutdown:
  b6dcc7a4:   refcount=1
threading.Event object at 0xb6dcc7a4
test_lock (test.test_multiprocessing.WithManagerTestLock) ... ok
[...]

This seems to be caused by the fact that when multiprocessing.active_children() 
is called in test_multiprocessing.ManagerMixin.tearDownClass(), some of them 
are still marked as active.
I tried to add a sleep before the active_children() call and the output 
disappeared.  On my machine it takes about half second.

The attached patch checks in loop that there no active children left, waiting 
up to 5s in increasing time intervals starting from 0.01s (so in the best case 
scenario it won't wait at all, and in the worst it will wait ~5s and possibly 
report the shared objects that still exists).

--
components: Tests
files: slowmulti.diff
keywords: patch
messages: 183935
nosy: ezio.melotti, jnoller, pitrou, sbt, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Wait for live children in test_multiprocessing
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file29372/slowmulti.diff

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



[issue17393] stdlib import mistaken for local by import_fixer

2013-03-11 Thread Lennart Regebro

Lennart Regebro added the comment:

Not really, but they are related. The fixer looks for a local module, and if it 
finds it it will assume the import is local. 

#13317 is caused by it not finding the module, since it's not built and hence 
assuming it's a global import.

This bug, contrariwise, is cause by the fixer finding a folder, and therefore 
assuming it is a local import when it's not.

The fix for this is to check that the folder has an __init__.py. The fix for 
#13317 is to build extensions before running 2to3.

Neither of them are huge problems since you can avoid both bugs but not using 
relative imports. :-)

--

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



[issue16004] Add `make touch` to 2.7 Makefile

2013-03-11 Thread Nick Coghlan

Nick Coghlan added the comment:

Yep, that should be fine for 2.7.

3.3+ adds more due to the importlib bootstrapping.

--

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



[issue16365] IDLE for Windows 8

2013-03-11 Thread j s

j s added the comment:

I had this issue too, I realised that I had installed the 32bit version on a 
machine running 64bit. So I uninstalled and installed the 64bit and it's fine 
now.

--
nosy: +evilpandas

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



[issue16004] Add `make touch` to 2.7 Makefile

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset da3f4774b939 by Ezio Melotti in branch '2.7':
#16004: Add `make touch`.
http://hg.python.org/cpython/rev/da3f4774b939

--
nosy: +python-dev

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



[issue16004] Add `make touch` to 2.7 Makefile

2013-03-11 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
assignee:  - ezio.melotti
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue17351] Remove explicit object inheritance in Python 3 docs

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f745f7d6fca by Ezio Melotti in branch '3.2':
#17351: remove object inheritance from docs.  Patch by Phil Elson.
http://hg.python.org/cpython/rev/4f745f7d6fca

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

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

--

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



[issue17351] Remove explicit object inheritance in Python 3 docs

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
assignee: docs@python - ezio.melotti
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue15806] Add context manager for the try: ... except: pass pattern

2013-03-11 Thread Nick Coghlan

Nick Coghlan added the comment:

FTR, Raymond and I discussed this on IRC and I gave it a +1 before he committed 
it.

The advantage the callable form has over a class method is that it readily 
scales to ignoring multiple exception types in a single with statement.

--

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



[issue17370] PEP should note related PEPs

2013-03-11 Thread Nick Coghlan

Nick Coghlan added the comment:

Yeah, I think the problem in this case is specific to the multi-versioned PEPs 
like the WSGI reference and the metadata standards. In that case, a separate 
section in the document itself seems more appropriate than a generic header 
field.

We should consider a similar section for PEP 302 (pointing to the 3.3 language 
reference) given the length of time that PEP has been the only systematic 
documentation for the import hooks.

--
nosy: +ncoghlan

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



[issue17296] Cannot unpickle classes derived from 'Exception'

2013-03-11 Thread Aman Shah

Aman Shah added the comment:

Fixed the patch for 2.7

--
nosy: +Aman.Shah
Added file: http://bugs.python.org/file29373/issue_17296.patch

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



[issue3329] API for setting the memory allocator used by Python

2013-03-11 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson krist...@ccpgames.com:


--
nosy: +kristjan.jonsson

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



[issue17351] Remove explicit object inheritance in Python 3 docs

2013-03-11 Thread Michael Foord

Michael Foord added the comment:

If the consensus is that Python documentation should not include explicit 
object inheritance then fine to update mock docs accordingly. The backport docs 
will still use it as they are for Python 2 as well.

--

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



[issue17395] Wait for live children in test_multiprocessing

2013-03-11 Thread Richard Oudkerk

Richard Oudkerk added the comment:

LGTM (although the warning is actually harmless).

--

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



[issue3329] API for setting the memory allocator used by Python

2013-03-11 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

At ccp we have something similar.  We are embedding python in the UnrealEngine 
on the PS3 and need to get everything through their allocators.  For the 
purpose of flexibility, we added an api similar to the OPs, but more flexible:

/* Support for custom allocators */
typedef void *(*PyCCP_Malloc_t)(size_t size, void *arg, const char *file, int 
line, const char *msg);
typedef void *(*PyCCP_Realloc_t)(void *ptr, size_t size, void *arg, const char 
*file, int line, const char *msg);
typedef void (*PyCCP_Free_t)(void *ptr, void *arg, const char *file, int line, 
const char *msg);
typedef size_t (*PyCCP_Msize_t)(void *ptr, void *arg);
typedef struct PyCCP_CustomAllocator_t
{
PyCCP_Malloc_t  pMalloc;
PyCCP_Realloc_t pRealloc;
PyCCP_Free_tpFree;
PyCCP_Msize_t   pMsize;/* can be NULL, or return -1 if no size info is 
avail. */
void*arg;  /* opaque argument for the functions */
} PyCCP_CustomAllocator_t;

/* To set an allocator!  use 0 for the regular allocator, 1 for the block 
allocator.
 * pass a null pointer to reset to internal default
 */
PyAPI_FUNC(void) PyCCP_SetAllocator(int which, const PyCCP_CustomAllocator_t *);

For a module to install itself as a hook at runtime, this approach can be 
extended by querying the current allocator, so that such a hook can the 
delegate the previous calls.

The block allocator here, is intended as the underlying allocator to be used 
by obmalloc.c.  Depending on platforms, this can then allocate aligned virtual 
memory directly, which is more efficient than layering that on-top of a 
malloc-like allocator.

There are areas in cPython that use malloc() directly.  Those are actually not 
needed in all cases, but to cope with them we change them all to new RAW api 
calls (using preprocessor macros).
Essentially, malloc() maps to PyCCP_RawMalloc() or PyMem_MALLOC_INNER() (both 
local additions) based on whether the particular site using malloc() requires 
truly gil free malloc or not.

For this reason, the custom allocators mentioned canot be assumed to be called 
with the GIL.  However, it is easily possible to extend the system above so 
that there is a GIL and non-GIL version for the 'regular' allocator.

I'll put details of the stuff we have done for EVE Online / Dust 514 on my 
blog.  It is this, but much much more too.

Hopefully we can arrive at a way to abstract memory allocation away from Python 
in a flexible and extendible manner :)

--

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



[issue11367] xml.etree.ElementTree.find(all): docs are wrong

2013-03-11 Thread Henrik Heimbuerger

Henrik Heimbuerger added the comment:

Eli, I fully understand. I was experimenting with working on Cloud9, but it 
unfortunately has no easy way to extract individual files, I had to recreate 
them locally. I hope it is correct now.

--
Added file: http://bugs.python.org/file29374/issue11367_branch27.patch

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



[issue11367] xml.etree.ElementTree.find(all): docs are wrong

2013-03-11 Thread Henrik Heimbuerger

Henrik Heimbuerger added the comment:

for 3.2

--
Added file: http://bugs.python.org/file29375/issue11367_branch32.patch

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



[issue3329] API for setting the memory allocator used by Python

2013-03-11 Thread Nick Coghlan

Nick Coghlan added the comment:

Note that I'm definitely open to including extra settings to set up custom 
allocators as part of Py_CoreConfig in PEP 432 
(http://www.python.org/dev/peps/pep-0432/#pre-initialization-phase).

I don't really want to continue the tradition of additional PySet_* APIs with 
weird conditions on when they have to be called, though (trying to prevent more 
of that kind of organic growth in complexity is why I wrote PEP 432 in the 
first place)

--

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



[issue3329] API for setting the memory allocator used by Python

2013-03-11 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Absolutely.  Although there is a very useful scenario where this could be 
consided a run-time setting:

  # turboprofiler.py
  # Load up the memory hooker which will supply us with all the info
  import _turboprofiler
  _turboprofiler.hookup()

Perhaps people interested in memory optimizations and profiling could hook up 
at pycon?  It is the most common regular query I get from people in my 
organization:  How can I find out how python is using/leaking/wasting memory?

--

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



[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-11 Thread Stefan Behnel

Stefan Behnel added the comment:

Benjamin, I hadn't noticed that you also changed the documentation in dict.rst 
from what I originall wrote. Ezio already fixed one of your typos, but there's 
another one in the description of the defaultobj behaviour: it says 
inserted twice but should say returned in the second case. Please give it 
another read to see if you introduced any further errors.

--

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



[issue17396] modulefinder fails if module contains syntax error

2013-03-11 Thread Jan Gosmann

New submission from Jan Gosmann:

Running modulefinder.ModuleFinder.run_script on a script which has an import 
statement with a module containing a syntax error will raise a SyntaxError 
exception. I think, modulefinder should instead continue its analysis and add 
the module to badmodules. Especially, as there are valid reasons for importing 
modules with syntax errors like in the following code snippet

if not python3:
from .exec_py2 import exec_
else:
from .exec_py3 import exec_

I attached a patch which changes the code to catch potential SyntaxError 
exceptions and change them to an ImportError.

--
components: Library (Lib)
files: fix-handling-of-syntax-errors.diff
keywords: patch
messages: 183953
nosy: jgosmann
priority: normal
severity: normal
status: open
title: modulefinder fails if module contains syntax error
versions: Python 2.7
Added file: http://bugs.python.org/file29376/fix-handling-of-syntax-errors.diff

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



[issue17397] ttk::themes missing form ttk.py

2013-03-11 Thread klappnase

New submission from klappnase:

When trying to load third-party themes ttk.Style.theme_names() fails to list 
available themes. For example if the themes from the tile-themes project are 
installed one can do:

 from tkinter import *
 from tkinter import ttk
 root=Tk()
 s=ttk.Style()
 s.theme_names()
('clam', 'alt', 'default', 'classic')
 root.tk.call('ttk::themes')
('classic', 'default', 'clam', 'alt')
 root.tk.call('package', 'require', 'tile-themes')
'0.6'
 s.theme_names()
('clam', 'alt', 'default', 'classic')
 root.tk.call('ttk::themes')
('keramik', 'plastik', 'clam', 'winxpblue', 'alt', 'Aquativo', 'classic', 
'default', 'keramik_alt')
 

This has been discussed in more detail at tkinter-discuss:
http://code.activestate.com/lists/python-tkinter-discuss/3373/

As ttk::themes is described as being part of the Public API inside ttk.tcl and 
is also documented in the tcl wiki at http://wiki.tcl.tk/14796 resp. 
http://wiki.tcl.tk/23676 it appears safe to add it to ttk.py.

Considering this I prepared a patch (against b10a9d4f08eb) that adds the 
following method to ttk.Style():

def themes(self, pattern=None):
'''Returns a list of theme names available. It can be passed an
argument which is used as an lsearch glob pattern while looking
for the theme names.'''
return self.tk.splitlist(self.tk.call('ttk::themes', pattern))

--
components: Tkinter
files: patch_ttk.diff
keywords: patch
messages: 183954
nosy: klappnase
priority: normal
severity: normal
status: open
title: ttk::themes missing form ttk.py
type: enhancement
Added file: http://bugs.python.org/file29377/patch_ttk.diff

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



[issue17296] Cannot unpickle classes derived from 'Exception'

2013-03-11 Thread Tres Seaver

Tres Seaver added the comment:

The latest 2.7 patch does not cause the following tests (from
issue 1692335) to pass:

 http://bugs.python.org/file17509/issue1692335-tests.patch

--

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



[issue15866] encode(..., 'xmlcharrefreplace') produces entities for surrogate pairs

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which fixes xmlcharrefreplace error handling in other places.

Unfortunately multibyte asian encoders are broken yet. I'll open a separate 
issue for this.

--
Added file: http://bugs.python.org/file29378/issue15866_2.patch

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



[issue17390] display python version on idle title bar

2013-03-11 Thread bagrat lazaryan

bagrat lazaryan added the comment:

...
class PyShell(OutputWindow):

import platform
version = platform.python_version() +   + platform.architecture()[0]
shell_title = Python %s Shell % version
...
(PyShell.py)

i'll take a look at the devguide and see if i can figure a patch out.

--

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



[issue17299] Test cPickle with real files

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

DRY (do not repeat yourself). Do not implement the same method three times. 
Definitely the common code should be extracted into separate mixin classes: 
cStringIOMixin, BytesIOMixin, FileIOMixin.

 What is the problem in using the existing pickletester.py??

This is just unnecessary. This is cPickle-only issue.


Aman, can you please submit a contributor form?

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

--

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



[issue17016] _sre: avoid relying on pointer overflow

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Nickolai, can you please submit a contributor form?

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

--

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



[issue17016] _sre: avoid relying on pointer overflow

2013-03-11 Thread Nickolai Zeldovich

Nickolai Zeldovich added the comment:

I just submitted the contributor form -- thanks for the reminder.

--

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



[issue17370] PEP should note related PEPs

2013-03-11 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

It seems to me that the right thing to add a related PEPs section to any PEP 
which needs it, but I don't think we need an official header for it.  Thus, I'm 
closing this PEP as Won't Fix.  Feel free to open new bugs for any specific PEP 
that needs additional work, or if you have commit privileges, JFDI. :)

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

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



[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-03-11 Thread Chris Calloway

Chris Calloway added the comment:

Yes, that's why I opened it. Feel free to submit patches if you think I'm 
moving too slowly.

--

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



[issue17390] display python version on idle title bar

2013-03-11 Thread bagrat lazaryan

bagrat lazaryan added the comment:

or better still:

...
from platform import python_version, architecture
shell_title = Python %s %s Shell % (python_version(), architecture()[0])
...

--

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



[issue11963] Remove human verification from test suite (test_parser and test_subprocess)

2013-03-11 Thread Éric Araujo

Éric Araujo added the comment:

Thanks!

--

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



[issue8402] Add a function to escape metacharacters in glob/fnmatch

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Escaping for glob on Windows should not be such trivial. Special characters in 
the drive part have no special meaning and should not be escaped. I.e. 
``escape('//?/c:/Quo vadis?.txt')`` should return ``'//?/c:/Quo 
vadis[?].txt'``. Perhaps we should move the escape function to the glob module 
(because it is glob's peculiarity).

Here is a patch for glob.escape().

--
Added file: http://bugs.python.org/file29380/glob_escape.patch

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



[issue17016] _sre: avoid relying on pointer overflow

2013-03-11 Thread Nickolai Zeldovich

Nickolai Zeldovich added the comment:

I get an HTTP error when trying to upload another patch through Rietveld, so 
here's a revised patch that avoids the need for Py_uintptr_t (thanks Serhiy).

--
Added file: http://bugs.python.org/file29379/pp-3.patch

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



[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Raymond, actually my patch reverts 3.1 logic. lru_cache used since 3.2.

There are no any additional re cache tests in 3.2 or 3.1.

--

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



[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-03-11 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 Which does give me a thought - perhaps lru_cache in 3.4 could accept a 
 key argument that is called as key(*args, **kwds) to derive the cache 
 key? (that would be a separate issue, of course)

Agreed.  I suggested the same in an earlier post.

--

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



[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-03-11 Thread Eli Bendersky

Eli Bendersky added the comment:

Chris, your reply seems to indicate that you're irritated for some reason, and 
I'm not sure why.

I was simply going through my open issue backlog, and since this is something 
I'd like to see fixed, I noticed that you said in October that you have some 
patches so I pinged you as a reminder. This is pretty accepted practice in the 
issue tracker. It doesn't imply that you're moving too slowly, since this 
isn't really a critical issue.

--

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



[issue17395] Wait for live children in test_multiprocessing

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Why  1? This should be commented.

--

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



[issue16321] Move eq.h out of stringlib

2013-03-11 Thread Serhiy Storchaka

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


--
nosy: +rhettinger

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



[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 89174df2ee45 by Benjamin Peterson in branch 'default':
remove useless words (#17327)
http://hg.python.org/cpython/rev/89174df2ee45

--

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



[issue17360] Regular expressions on mmap'd files can overflow

2013-03-11 Thread Serhiy Storchaka

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


--
status: open - pending

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



[issue17066] Fix test discovery for test_robotparser.py

2013-03-11 Thread Zachary Ware

Zachary Ware added the comment:

I agree that, long-term, test_robotparser should probably be rewritten with 
less magic.  Short-term, though, I think it would be good to get a temporary 
fix for discovery in place since this is the only test file that completely 
blows up discovery before it even starts testing, and open a new issue for the 
rewrite.  The v3 patch does the job with the least disruption in the file, 
though it does add a bit more magic.

--

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



[issue16004] Add `make touch` to 2.7 Makefile

2013-03-11 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

touch target could be also added to 3.2 branch.

--

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



[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-11 Thread Stefan Behnel

Stefan Behnel added the comment:

Please use either of the following wordings in the documentation:


If the key is not in the dict, it is inserted with value *defaultobj* and 
*defaultobj* is returned.


or


If the key is not in the dict, it is inserted with value *defaultobj*, which is 
then returned.


Otherwise, the docs leave it open if anything at all is returned in the case of 
a lookup failure. (I initially wanted to make that clear with the 
PyDict_GetItem*() name, but since that was rejected, it's worth making up for 
in the docs.)

--

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



[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2013-03-11 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8948dd77b095 by Benjamin Peterson in branch 'default':
say defaultobj is returned (#17327)
http://hg.python.org/cpython/rev/8948dd77b095

--

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



[issue17395] Wait for live children in test_multiprocessing

2013-03-11 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 Why  1? This should be commented.

The manager process will always be included in active_children().

--

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



[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-11 Thread Stefan Behnel

Stefan Behnel added the comment:

... and it's called defaultobj, not defautobj.

--

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



[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f6f39ebd3121 by Benjamin Peterson in branch 'default':
fix spelling (#17327)
http://hg.python.org/cpython/rev/f6f39ebd3121

--

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



[issue17398] document url argument of RobotFileParser

2013-03-11 Thread Tshepang Lekhonkhobe

New submission from Tshepang Lekhonkhobe:

Looking at the documentation, one would think RobotFileParser does not accept 
any argument, but it does -- url.

Documenting this would remove the pain of having to call set_url().

--
assignee: docs@python
components: Documentation
messages: 183979
nosy: docs@python, tshepang
priority: normal
severity: normal
status: open
title: document url argument of RobotFileParser
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-11 Thread Stefan Behnel

Stefan Behnel added the comment:

Thanks!

--

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



[issue17354] TypeError when running setup.py upload --show-response

2013-03-11 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for the report and patch.  I think this bug is already reported, I’ll 
search for the duplicate when I get time.

--
nosy: +eric.araujo

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



[issue17354] TypeError when running setup.py upload --show-response

2013-03-11 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee:  - eric.araujo
components: +Distutils -Library (Lib)
nosy: +tarek
versions: +Python 3.2

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



[issue17296] Cannot unpickle classes derived from 'Exception'

2013-03-11 Thread Aman Shah

Aman Shah added the comment:

I think it works with the other test also now. Have also included the failed 
test mentioned by Tres in the patch since it wasn't present in the python2.7 
test suite.

--
Added file: http://bugs.python.org/file29381/issue_17296v2.patch

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



[issue17296] Cannot unpickle classes derived from 'Exception'

2013-03-11 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum

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



[issue17395] Wait for live children in test_multiprocessing

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2966e5a55396 by Ezio Melotti in branch 'default':
#17395: wait for live children in test_multiprocessing.
http://hg.python.org/cpython/rev/2966e5a55396

--
nosy: +python-dev

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



[issue17395] Wait for live children in test_multiprocessing

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

I added a comment and committed the patch.  Thanks for the reviews!

--
assignee:  - ezio.melotti
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue17392] Python installer for Windows packages wrong zipfile.py

2013-03-11 Thread Simon Wagner

Simon Wagner added the comment:

I compared the file in http://hg.python.org/cpython/file/3.3/Lib/zipfile.py 
with the zipfile.py that is distributed with 
http://www.python.org/ftp/python/3.3.0/python-3.3.0.msi

They differ in several places. I checked several times, so this is either an 
error in the installer or an error in the documentation, as the wrong version 
is linked.

This is especially unfortunate, as the version that is distributed has problems 
with long path names (prefixed with the famous \\?\). The one that is linked in 
the documentation however, does not have that same problem.

I did attach the zipfile.py that comes with the installer. I hope this is 
helpful for you.

--
Added file: http://bugs.python.org/file29382/zipfile.py

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



[issue17392] Python installer for Windows packages wrong zipfile.py

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

You should probably compare it with 
http://hg.python.org/cpython/file/v3.3.0/Lib/zipfile.py.
The one you linked contains changes that will be included in the next 3.3.x 
release.

--
nosy: +ezio.melotti

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



[issue17392] Python installer for Windows packages wrong zipfile.py

2013-03-11 Thread Simon Wagner

Simon Wagner added the comment:

yep, those match. Sorry for the inconvenience.

So I will have to wait a while before I can use long path names.

--

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



[issue17392] Python installer for Windows packages wrong zipfile.py

2013-03-11 Thread Simon Wagner

Changes by Simon Wagner wagner.si...@web.de:


--
resolution:  - invalid
status: open - closed

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



[issue17392] Python installer for Windows packages wrong zipfile.py

2013-03-11 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - committed/rejected

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



[issue17381] IGNORECASE breaks unicode literal range matching

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

Matthew, should this be closed then?

--

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



[issue17381] IGNORECASE breaks unicode literal range matching

2013-03-11 Thread Chris Adams

Chris Adams added the comment:

Ezio: given the non-obvious failure, what do you think of at least documenting 
this and issuing a warning any time both re.UNICODE and re.IGNORECASE are set?

--

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



[issue17353] Plistlib outputs empty data tags when deeply nested

2013-03-11 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords: +easy
nosy: +ezio.melotti

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



[issue17299] Test cPickle with real files

2013-03-11 Thread Aman Shah

Aman Shah added the comment:

Version 3.

--
keywords: +patch
Added file: http://bugs.python.org/file29383/issue17299v3.patch

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



[issue17299] Test cPickle with real files

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM. You forgot to remove close() from some classes, I'll do it myself before 
committing.

--
assignee:  - serhiy.storchaka
stage: needs patch - commit review

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



[issue17381] IGNORECASE breaks unicode literal range matching

2013-03-11 Thread Matthew Barnett

Matthew Barnett added the comment:

In issue #3511 the range was slightly unusual, so closing it seemed a 
reasonable approach, but the range in this issue is less clearly a problem. My 
preference would be to fix it, if possible.

--

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



[issue17381] IGNORECASE breaks unicode literal range matching

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm working on the patch.

--
nosy: +serhiy.storchaka

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



[issue17047] Fix double double words words

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1ecb712fcf22 by Terry Jan Reedy in branch '2.7':
Issue #17047: removed doubled words in Doc/*, Mac/*, and Tool/*
http://hg.python.org/cpython/rev/1ecb712fcf22

New changeset e37647470fcf by Terry Jan Reedy in branch '3.2':
Issue #17047: removed doubled words in Doc/*, Mac/*, and Tool/*
http://hg.python.org/cpython/rev/e37647470fcf

New changeset 629322a13b53 by Terry Jan Reedy in branch '3.3':
Merge with 3.2: Issue #17047: removed doubled words in Doc/*,
http://hg.python.org/cpython/rev/629322a13b53

New changeset c187c145b4c4 by Terry Jan Reedy in branch 'default':
Merge with 3.3: Issue #17047: removed doubled words in Doc/*,
http://hg.python.org/cpython/rev/c187c145b4c4

--
nosy: +python-dev

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



[issue17047] Fix double double words words

2013-03-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Tools/gdb/libpython.py and some other doubles were fixed by rev81772 on the 
same day this issue was opened. I suspect that the copy had not been updated.

--

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



[issue17047] Fix double double words words

2013-03-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you, Terry.

--
assignee: docs@python - terry.reedy

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



[issue17047] Fix double double words words

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e145dddb9d93 by Terry Jan Reedy in branch '2.7':
Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,
http://hg.python.org/cpython/rev/e145dddb9d93

New changeset e9ba9f21a828 by Terry Jan Reedy in branch '3.2':
Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,
http://hg.python.org/cpython/rev/e9ba9f21a828

New changeset a42195046e39 by Terry Jan Reedy in branch '3.3':
Merge 3.2, Issue #17047: remove doubled words found in 2.7 to 3.4
http://hg.python.org/cpython/rev/a42195046e39

New changeset 4bd13f45d3a2 by Terry Jan Reedy in branch 'default':
Merge 3.3, issue #17047: remove doubled words found in 2.7 to 3.4
http://hg.python.org/cpython/rev/4bd13f45d3a2

--

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



[issue17047] Fix double double words words

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cd0191a9b5c9 by Terry Jan Reedy in branch '2.7':
Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,
http://hg.python.org/cpython/rev/cd0191a9b5c9

New changeset 3f5f961262ec by Terry Jan Reedy in branch '3.2':
Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,
http://hg.python.org/cpython/rev/3f5f961262ec

New changeset 0547f89aa620 by Terry Jan Reedy in branch '3.3':
Merge 3.2, issue #17047: remove doubled words found in 2.7 to
http://hg.python.org/cpython/rev/0547f89aa620

New changeset 01aa93888917 by Terry Jan Reedy in branch 'default':
Merge 3.3, issue #17047: remove doubled words found in 2.7 to
http://hg.python.org/cpython/rev/01aa93888917

--

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



[issue17047] Fix double double words words

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e9ada209b67f by Terry Jan Reedy in branch '3.3':
Issue #17047: remove doubled words added in 3.3
http://hg.python.org/cpython/rev/e9ada209b67f

New changeset 908d45fdbecd by Terry Jan Reedy in branch 'default':
Merge with 3.3, issue #17047: remove doubled words added in 3.3,
http://hg.python.org/cpython/rev/908d45fdbecd

New changeset 0a26a8b13193 by Terry Jan Reedy in branch 'default':
Issue #17047: remove doubled words added in 3.4,
http://hg.python.org/cpython/rev/0a26a8b13193

--

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



[issue17399] test_multiprocessing hang on Windows, non-sockets

2013-03-11 Thread Terry J. Reedy

New submission from Terry J. Reedy:

test_multiprocessing is giving multiple errors like
Process Process-21:
Traceback (most recent call last):
  File F:\Python\dev\py27\lib\multiprocessing\process.py, line 258, in 
_bootstrap
self.run()
  File F:\Python\dev\py27\lib\multiprocessing\process.py, line 114, in run
self._target(*self._args, **self._kwargs)
  File F:\Python\dev\py27\lib\test\test_multiprocessing.py, line 1703, in 
_test
conn.send('hello')
IOError: [Errno 10038] An operation was attempted on something that is not a 
socket
...
  File F:\Python\dev\py27\lib\test\test_multiprocessing.py, line 1419, in 
_putter
manager.connect()
  File F:\Python\dev\py27\lib\multiprocessing\managers.py, line 500, in 
connect
conn = Client(self._address, authkey=self._authkey)
  File F:\Python\dev\py27\lib\multiprocessing\connection.py, line 465, in 
XmlClient
return ConnectionWrapper(Client(*args, **kwds), _xml_dumps, _xml_loads)
  File F:\Python\dev\py27\lib\multiprocessing\connection.py, line 175, in 
Client
answer_challenge(c, authkey)
  File F:\Python\dev\py27\lib\multiprocessing\connection.py, line 420, in 
answer_challenge
message = connection.recv_bytes(256) # reject large message
IOError: [Errno 10038] An operation was attempted on something that is not a 
socket

After a few of these, it hangs and I have to either kill multiple processes 
with TaskManager (or maybe kill-python would work) or kill the console. All 
tracebacks seem to one of these two. The common factor is 'not a socket'. It 
seems that something in the test should be skipped on windows. I got similar 
results running test_multiprocessing by itself. The process numbers are 
haphazard.

--
messages: 184000
nosy: ezio.melotti, sbt, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: test_multiprocessing hang on Windows, non-sockets
type: behavior
versions: Python 2.7, Python 3.2

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



[issue17399] test_multiprocessing hang on Windows, non-sockets

2013-03-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

For 3.3 and 3.4, test went on for several minutes putting out [## refs] 
lines but finally said '1 test OK'. I tried 3.2 again and it never outputs refs 
lines but fairly soon gives errors.

--

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



[issue17345] Portable and extended type specifiers for array module

2013-03-11 Thread Meador Inge

Changes by Meador Inge mead...@gmail.com:


--
stage:  - needs patch

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



[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-03-11 Thread Lei Miao

New submission from Lei Miao:

Currently: ipaddress.IPv4Network('100.64.1.0/24').is_private == False


Given RFC6598, 100.64.0.0/10 is now approved for use as CGN space, and also for 
rfc1918-like private usage. Could the code be altered so that is_private will 
return true for 100.64.0.0/10 as well??

--
components: Library (Lib)
messages: 184002
nosy: leim
priority: normal
severity: normal
status: open
title: ipaddress.is_private needs to take into account of rfc6598
type: enhancement
versions: Python 3.3

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



[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-03-11 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea
versions: +Python 3.4 -Python 3.3

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



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2013-03-11 Thread Robert Collins

New submission from Robert Collins:

the docs (http://docs.python.org/3.x/library/io.html#io.FileIO) do not document 
closefd, and AFAICT it isn't possible to tell if closefd is set after the 
object is created. Specifically it does not show up in the repr().

 import sys
 sys.stdout
_io.TextIOWrapper name='stdout' mode='w' encoding='UTF-8'
 sys.stdout.buffer
_io.BufferedWriter name='stdout'
 sys.stdout.buffer.raw
_io.FileIO name='stdout' mode='wb'

If one wants to reopen sys.std in non-buffered mode, the right thing to do 
according to a recent thread on python-ideas is to use fdopen - e.g.

mystream = io.open(sys.stdout.fileno(), 'wt', 0) 
but this will set closefd to True in the new object, which results in hilarity 
when it gets garbage collected. And you cannot tell or compare that to the 
original stdout because of the lack of exposure of this attribute and it's 
implications. (Does it close the fd on __del__? After each operation? On 
close() being called on the FileIO object?)

--
messages: 184003
nosy: rbcollins
priority: normal
severity: normal
status: open
title: io.FileIO closefd parameter is not documented nor shown in repr
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2013-03-11 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
assignee:  - docs@python
components: +Documentation, IO, Library (Lib)
nosy: +docs@python, pitrou
type:  - enhancement
versions:  -Python 3.5

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



[issue16774] Additional recipes for itertools docs

2013-03-11 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I will add drop() to the recipes and possibly take_last() which I would rename 
add tail().

Sorry, I don't have interest in the others.  I don't find them instructive or 
very useful.

--
priority: normal - low

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



[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

 If this is done, it should probably be on by default on all
 --with-pydebug buildbots.

With on by default you mean that the output should be disabled or enabled?

 Otherwise I suspect nobody will _ever_ look at its output and we
 should just remove the feature all together.

IME the refcount is only useful while trying things in the interactive 
interpreter manually, e.g. try to repeat the same operation and see if the 
refcount increases or not.  In this case the feature would still be useful, so 
it should be kept.

--

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



[issue17375] Add docstrings to methods in the threading module

2013-03-11 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue15964] SyntaxError in asdl when building 2.7 with system Python 3

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

`make touch` is now in 2.7, so the patch should be updated.

--

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



[issue17387] Error in C API documentation of PySequenceMethods

2013-03-11 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +benjamin.peterson, ezio.melotti
stage:  - needs patch
type:  - enhancement

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



[issue17368] Python version of JSON decoder does not work with object_pairs_hook

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

Here's a patch.

--
assignee:  - ezio.melotti
keywords: +patch
stage: test needed - patch review
Added file: http://bugs.python.org/file29384/issue17368.diff

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



[issue14707] extend() puzzled me.

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c162e2ff15bd by Terry Jan Reedy in branch '2.7':
Issue #14707: add news entry
http://hg.python.org/cpython/rev/c162e2ff15bd

--
nosy: +python-dev

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



[issue17066] Fix test discovery for test_robotparser.py

2013-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa051c6276a0 by Ezio Melotti in branch '3.3':
#17066: test_robotparser now works with unittest test discovery.  Patch by 
Zachary Ware.
http://hg.python.org/cpython/rev/fa051c6276a0

New changeset 8fdce849d0b3 by Ezio Melotti in branch 'default':
#17066: merge with 3.3.
http://hg.python.org/cpython/rev/8fdce849d0b3

--
nosy: +python-dev

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



[issue17066] Fix test discovery for test_robotparser.py

2013-03-11 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
assignee:  - ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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