[issue19622] Default buffering for input and output pipes in subprocess module

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0f0dc0276a7c by Georg Brandl in branch '3.3':
Closes #19622: clarify message about bufsize changes in 3.2.4 and 3.3.1.
http://hg.python.org/cpython/rev/0f0dc0276a7c

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

___
Python tracker 

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



[issue19627] python open built-in function - "updating" is not defined

2013-11-24 Thread Bulwersator

Bulwersator added the comment:

yes, "open a disk file for updating (reading and writing)" is a good explanation

--

___
Python tracker 

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



[issue19631] "exec" BNF in simple statements

2013-11-24 Thread Georg Brandl

Georg Brandl added the comment:

That would be correct as a handwaving description, but it's wrong as a formal 
spec.  The "or_expr" already includes the possibility of a tuple; there is no 
"exec(" token etc.

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue19763] Make it easier to backport statistics to 2.7

2013-11-24 Thread Georg Brandl

Georg Brandl added the comment:

-1.

First, I don't think stdlib modules should be forced to use old conventions and 
give up on new features just because of backports (the import changes are fine 
obviously).

Second, it's putting unreasonable constraints on CPython developers to know 
which modules should be compatible with which version and which features that 
requires to ignore (Python 2.6 is not even in maintenance anymore!)  This is 
the onus of the backporter (and you have done it already, anyway).

Third, it's also a little late for this given that we're now in beta.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue19763] Make it easier to backport statistics to 2.7

2013-11-24 Thread Christian Heimes

New submission from Christian Heimes:

A while ago I created a backport of statistics to Python 2.6 to 3.3. [1] It 
worked pretty and required just a few modifications to the code. I'd like to 
add most modifications to 3.4 to simplify backporting.

The modifications are:

* from __future__ import division
* replace super() with super(MySuperClass, self)
* changes to doc tests because Python 2 has slightly different represenstations 
( / , longer float repr)
* "import collections" -> "from collections import Counter" so I can simply add 
a Counter class for 2.6
* "import math" -> "from math import isfinite" so it's easier to add a 
isfinite() function for 2.x

The patch does neither remove "raise ... from None" nor does it add a 2.x 
isfinite or range = xrange. The backport still needs some patches but I can 
keep the amount of changes rather small.

[1] https://bitbucket.org/tiran/backports.statistics

--
files: statistics_backports.patch
keywords: patch
messages: 204301
nosy: christian.heimes, larry
priority: normal
severity: normal
stage: patch review
status: open
title: Make it easier to backport statistics to 2.7
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file32829/statistics_backports.patch

___
Python tracker 

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



[issue19632] doc build warning

2013-11-24 Thread Georg Brandl

Georg Brandl added the comment:

Well, there's no bug here: it's what you get when you call a library the same 
as a builtin :)

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

___
Python tracker 

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



[issue19762] Incorrect function documentation of _get_object_traceback and _get_traces in _tracemalloc module

2013-11-24 Thread Georg Brandl

Georg Brandl added the comment:

LGTM.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue19691] Weird wording in RuntimeError doc

2013-11-24 Thread Georg Brandl

Georg Brandl added the comment:

I think so.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-24 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Here is the patch to tidy up the Lib/test_tracemalloc.py.

It fixed the typo, and removed unused import and unused variables.

--
nosy: +vajrasky
Added file: http://bugs.python.org/file32828/minor_makeup_test_tracemalloc.patch

___
Python tracker 

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



[issue19728] PEP 453: enable pip by default in the Windows binary installers

2013-11-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Given MvL's comment above, my suggestion is that we add an 
"ensurepip._uninstall" submodule that uninstalls pip and setuptools if it is 
invoked as __main__ and the following snippet results in uinstall being set to 
True:

try:
import pip
except ImportError:
uninstall = False
else:
uninstall = (pip.__version__ == ensurepip.version())

(I believe PIP_VERSION in ensurepip is currently wrong, as it has an extra dot 
that shouldn't be there, but we can fix that as part of implementing this, and 
tweak the test in test_venv to ensure it doesn't get out of sync again)

--
title: PEP 453: enable pip by default in the binary installers -> PEP 453: 
enable pip by default in the Windows binary installers

___
Python tracker 

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



[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-24 Thread Donald Stufft

Donald Stufft added the comment:

There's a ticket in pip to make pip work even when ssl isn't available. You 
wouldn't be able to install from PyPI but you would be able to install from 
local archives.

--
nosy: +dstufft

___
Python tracker 

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



[issue19347] PEP 453 implementation tracking issue

2013-11-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Issue 19734 covers the fact that pip environment variable settings impact venv 
and ensurepip

--

___
Python tracker 

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



[issue19746] No introspective way to detect ModuleImportFailure in unittest

2013-11-24 Thread Nick Coghlan

Changes by Nick Coghlan :


--
title: No introspective way to detect ModuleImportFailure -> No introspective 
way to detect ModuleImportFailure in unittest

___
Python tracker 

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



[issue19762] Incorrect function documentation of _get_object_traceback and _get_traces in _tracemalloc module

2013-11-24 Thread Vajrasky Kok

New submission from Vajrasky Kok:

>>> import _tracemalloc
>>> _tracemalloc._get_object_traceback.__doc__
'get_object_traceback(obj)\n\nGet the traceback where the Python object obj was 
allocated.\nReturn a tuple of (filename: str, lineno: int) tuples.\n\nReturn 
None if the tracemalloc module is disabled or did not\ntrace the allocation of 
the object.'
>>> _tracemalloc._get_traces.__doc__
'get_traces() -> list\n\nGet traces of all memory blocks allocated by 
Python.\nReturn a list of (size: int, traceback: tuple) tuples.\ntraceback is a 
tuple of (filename: str, lineno: int) tuples.\n\nReturn an empty list if the 
tracemalloc module is disabled.'

--
assignee: docs@python
components: Documentation, Extension Modules
files: fix_doc__tracemalloc.patch
keywords: patch
messages: 204293
nosy: docs@python, haypo, vajrasky
priority: normal
severity: normal
status: open
title: Incorrect function documentation of _get_object_traceback and 
_get_traces in _tracemalloc module
versions: Python 3.4
Added file: http://bugs.python.org/file32827/fix_doc__tracemalloc.patch

___
Python tracker 

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



[issue19710] Make sure documentation for PEP 451 is finished

2013-11-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue19707] Check if unittest.mock needs updating for PEP 451

2013-11-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti, michael.foord

___
Python tracker 

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



[issue19691] Weird wording in RuntimeError doc

2013-11-24 Thread Ezio Melotti

Ezio Melotti added the comment:

So maybe it can just be removed?

--
keywords: +easy
nosy: +ezio.melotti
stage:  -> needs patch

___
Python tracker 

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



[issue19680] Help missing for exec and print

2013-11-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Attached patch seems to fix the issue.

--
assignee: docs@python -> ezio.melotti
keywords: +patch
nosy: +ezio.melotti, georg.brandl
stage:  -> patch review
type:  -> behavior
Added file: http://bugs.python.org/file32826/issue19680.diff

___
Python tracker 

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



[issue19632] doc build warning

2013-11-24 Thread Ezio Melotti

Ezio Melotti added the comment:

See #14489.

--
nosy: +ezio.melotti, georg.brandl

___
Python tracker 

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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +r.david.murray

___
Python tracker 

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



[issue19624] Switch constants in the errno module to IntEnum

2013-11-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy
type:  -> enhancement
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue19627] python open built-in function - "updating" is not defined

2013-11-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Is the doc in 3.4 (http://docs.python.org/3.4/library/functions.html#open) 
clear enough?

If so it could be backported on 2.7/3.3.

--
nosy: +ezio.melotti
type:  -> enhancement

___
Python tracker 

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



[issue19620] tokenize documentation contains typos (argment instead of argument)

2013-11-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report!

--
assignee: docs@python -> ezio.melotti
nosy: +ezio.melotti
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



[issue19620] tokenize documentation contains typos (argment instead of argument)

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9b170d74a0a2 by Ezio Melotti in branch '2.7':
#19620: Fix typo in docstring (noticed by Christopher Welborn).
http://hg.python.org/cpython/rev/9b170d74a0a2

New changeset 3f99564b712e by Ezio Melotti in branch '3.3':
#19620: Fix typo in docstring (noticed by Christopher Welborn).
http://hg.python.org/cpython/rev/3f99564b712e

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

--
nosy: +python-dev

___
Python tracker 

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



[issue19614] support.temp_cwd should use support.rmtree

2013-11-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti, pitrou

___
Python tracker 

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



[issue19085] Add tkinter basic options tests

2013-11-24 Thread Ned Deily

Ned Deily added the comment:

I've opened Issue19761 to document the current state of test failures for 
3.4.0b1 on OS X with the native Tk 8.5 and 8.4.

--

___
Python tracker 

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



[issue19761] test_tk fails on OS X with multiple test case failures with both Tk 8.5 and 8.4

2013-11-24 Thread Ned Deily

New submission from Ned Deily:

As of 3.4.0b1, the following test failures are observed with Tk 8.5 on OS X 
(python.org 64-/32- installer with ActiveTcl 8.5.15.1 on OS X 10.9):

==
FAIL: test_bitmap (tkinter.test.test_tkinter.test_widgets.ButtonTest)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 240, in test_bitmap
errmsg='bitmap "spam" not defined')
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 75, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised

==
FAIL: test_bitmap (tkinter.test.test_tkinter.test_widgets.CheckbuttonTest)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 240, in test_bitmap
errmsg='bitmap "spam" not defined')
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 75, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised

==
FAIL: test_insertborderwidth (tkinter.test.test_tkinter.test_widgets.EntryTest)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/test_tkinter/test_widgets.py",
 line 333, in test_insertborderwidth
self.checkPixelsParam(widget, 'insertborderwidth', 0, 1.3, -2)
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 169, in checkPixelsParam
conv=conv1, **kwargs)
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 59, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 43, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 0 != 1

==
FAIL: test_bitmap (tkinter.test.test_tkinter.test_widgets.LabelTest)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 240, in test_bitmap
errmsg='bitmap "spam" not defined')
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 75, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised

==
FAIL: test_bitmap (tkinter.test.test_tkinter.test_widgets.MenubuttonTest)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 240, in test_bitmap
errmsg='bitmap "spam" not defined')
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 75, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised

==
FAIL: test_bitmap (tkinter.test.test_tkinter.test_widgets.OptionMenuTest)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 240, in test_bitmap
errmsg='bitmap "spam" not defined')
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 75, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised

==
FAIL: test_bitmap (tkinter.test.test_tkinter.test_widgets.RadiobuttonTest)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 240, in test_bitmap
errmsg='bitmap "spam" not defined')
  File 
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py",
 line 75, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised

==
FAIL: test_insertborderwidth 

[issue19749] test_venv failure on AIX: 'module' object has no attribute 'O_NOFOLLOW'

2013-11-24 Thread Marcus Smith

Marcus Smith added the comment:

There's a new PR to fix this in the pip 1.5.X branch: 
https://github.com/pypa/pip/pull/1344

--
nosy: +Marcus.Smith

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

Thanks for the clarifications, Antoine. I'll see if I can come up with a doc 
patch that will try to emphasize these points. I'll probably just open a new, 
doc-issue to stop overloading this one.

--

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

On Sun, Nov 24, 2013 at 2:58 PM, Larry Hastings wrote:

>
> Larry Hastings added the comment:
>
> The rule is, no new features.  Bug and security fixes from now on.
>
> It isn't always clear whether or not something is a new "feature".  In the
> case of such ambiguity, the decision is up to the sole discretion of the
> release manager.
>
> If you seriously want to check in this thing (*sigh*), I'll take a look at
> it.  But you'll have to point me at either a patch that applies cleanly to
> trunk, or a repository somewhere online with the patch already applied to
> trunk.
>

There really is no urgency here. I don't won't to add needless work onto
your place, and am fine with just leaving it be until the 3.4 branch is cut
and landing it on the default branch aimed for 3.5 after that.

--

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Larry Hastings

Larry Hastings added the comment:

The rule is, no new features.  Bug and security fixes from now on.

It isn't always clear whether or not something is a new "feature".  In the case 
of such ambiguity, the decision is up to the sole discretion of the release 
manager.

If you seriously want to check in this thing (*sigh*), I'll take a look at it.  
But you'll have to point me at either a patch that applies cleanly to trunk, or 
a repository somewhere online with the patch already applied to trunk.

Something like a code refactor is probably okay during betas, but during RCs I 
would really prefer we keep checkins strictly to a minimum.

--

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> > > Another question: What is the real purpose of pure paths? One thing I
> > > see is using them to, say, manipulate Windows paths on a Posix machine
> > > for some reason.
> >
> > Yes. Also, if some reason you want to be sure you're only doing path
> > computations, not I/O.
> >
> 
> "Sure" in what sense, like accidentally? IIUC path
> manipulation/computation operations don't really call into the OS -
> only some methods do.

Yes, I was including the methods inside "computations".

> I mean, having Path, WindowsPath and PosixPath without the pure
> counterparts. You usually use Path, but say you want to manipulate Windows
> paths on a Linux box. So you instantiate a WindowsPath explicitly and do
> your thing on it. You can't (NotImplementedError) call any methods that
> would call into the OS, and that's it.

That would have been a possibility, but I find having distinct classes
much cleaner than raising NotImplementedError in many places.  It's also
self-documenting about which operations are "pure" and which operations
are not.

> I'm just trying to look at the module from the POV of someone who sees it
> for the first time, wondering "why do I have two kinds of things here, and
> when would I want to use each? could I just use Path 99.9% of the time and
> forget about the other options?". If that's true, we may want to reflect it
> in the documentation explicitly - I believe this will make the module
> easier to understand.

Well, at the beginning of the doc there's: """The main point of entry is
the Path class, which will instantiate a concrete path for the current
platform.""", and the "basic use" section only uses the Path class.

--

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

Larry Hastings added the comment:

>
> Are the generated files *byte for byte* the same as produced by the
> existing parser generation process?
>

Correct. The generator runs during the build (in the Makefile), but only if
the files were out-of-date. It takes Python.asdl and produces Python-ast.h
and Python-ast.c; the latter two are compiled into the CPython executable.
The .h/.c files produced by my alternative generator are exactly identical
to the ones in there now.

I don't feel strongly about this, but I may need a refresher in the release
process rules. From today and until Feb 23rd, 2014 - are we not supposed to
be adding new features/PEPs or are we also not supposed to do any code
refactorings and/or any changes at all unless those are directly related to
fixing a specific bug/issue?

--

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

>
>
> Antoine Pitrou added the comment:
>
> > Another question: What is the real purpose of pure paths? One thing I
> > see is using them to, say, manipulate Windows paths on a Posix machine
> > for some reason.
>
> Yes. Also, if some reason you want to be sure you're only doing path
> computations, not I/O.
>

"Sure" in what sense, like accidentally? IIUC path manipulation/computation
operations don't really call into the OS - only some methods do.

> > Any others? Could this also be achieved with just having Paths?
>
> I don't see how having just Paths would achieve this, unless you think
> it's sane to pretend to walk a Windows directory under Unix :-)
>

I mean, having Path, WindowsPath and PosixPath without the pure
counterparts. You usually use Path, but say you want to manipulate Windows
paths on a Linux box. So you instantiate a WindowsPath explicitly and do
your thing on it. You can't (NotImplementedError) call any methods that
would call into the OS, and that's it.

I'm just trying to look at the module from the POV of someone who sees it
for the first time, wondering "why do I have two kinds of things here, and
when would I want to use each? could I just use Path 99.9% of the time and
forget about the other options?". If that's true, we may want to reflect it
in the documentation explicitly - I believe this will make the module
easier to understand.

--

___
Python tracker 

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



[issue19760] Deprecation warnings in ttest_sysconfig and test_distutils

2013-11-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

LGTM.  Now that 3.4b1 is spun, I say go for it.

--

___
Python tracker 

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



[issue19758] Warnings in tests

2013-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Fix for test_sysconfig and test_distutils are proposed in issue19760. I have no 
yet fixes for test_importlib and test_poplib.

--

___
Python tracker 

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



[issue19758] Warnings in tests

2013-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
dependencies: +Deprecation warnings in ttest_sysconfig and test_distutils

___
Python tracker 

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



[issue19759] Deprecation warnings in test_hmac

2013-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Crys just fixed this issue in issue19758.

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

___
Python tracker 

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



[issue19760] Deprecation warnings in ttest_sysconfig and test_distutils

2013-11-24 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Following warnings are emitted when ttest_sysconfig and test_distutils ran with 
-Wall:

$ ./python -Wall -m test.regrtest test_sysconfig test_distutils
[1/2] test_sysconfig
/home/serhiy/py/cpython/Lib/sysconfig.py:588: DeprecationWarning: SO is 
deprecated, use EXT_SUFFIX
  warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)
[2/2] test_distutils
/home/serhiy/py/cpython/Lib/distutils/sysconfig.py:578: DeprecationWarning: SO 
is deprecated, use EXT_SUFFIX
  warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)
unknown, 0: Warning: using regular magic file `/etc/magic'
unknown, 0: Warning: using regular magic file `/etc/magic'
All 2 tests OK.

The proposed patch silences deprecation warnings. It also changes warning 
stacklevel for the 'SO' key in sysconfig to 2 so a warning now reports about 
place where stdlib function is called instead a place in the stdlib.

--
components: Library (Lib), Tests
files: test_sysconfig_warnings.patch
keywords: patch
messages: 204273
nosy: barry, serhiy.storchaka, tarek
priority: normal
severity: normal
stage: patch review
status: open
title: Deprecation warnings in ttest_sysconfig and test_distutils
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file32825/test_sysconfig_warnings.patch

___
Python tracker 

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



[issue19758] Warnings in tests

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 53ba43ed7f27 by Christian Heimes in branch 'default':
Issue #19758: silence PendingDeprecationWarnings in test_hmac
http://hg.python.org/cpython/rev/53ba43ed7f27

--
nosy: +python-dev

___
Python tracker 

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



[issue19759] Deprecation warnings in test_hmac

2013-11-24 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Following warnings are emitted when test_hmac ran with -Wall:

$ ./python -Wall -m test.regrtest test_hmac
[1/1] test_hmac
/home/serhiy/py/cpython/Lib/test/test_hmac.py:271: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:296: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(bytearray(b"key"), bytearray(b"hash this!"))
/home/serhiy/py/cpython/Lib/test/test_hmac.py:303: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key", memoryview(b"hash this!"))
/home/serhiy/py/cpython/Lib/test/test_hmac.py:290: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key", b"hash this!")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:320: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:327: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"my secret key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:339: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:361: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:350: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
1 test OK.

The proposed patch silences these warnings.

--
components: Tests
files: test_hmac_warnings.patch
keywords: patch
messages: 204272
nosy: christian.heimes, gregory.p.smith, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Deprecation warnings in test_hmac
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file32824/test_hmac_warnings.patch

___
Python tracker 

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



[issue19661] AIX: Python: RuntimeError "invalid slot offset when importing a module" in _ssl module

2013-11-24 Thread dellair jie

dellair jie added the comment:

It would be appreciated if someone could shed some lights on how to rebuild a 
single module (ssl) from source code package and import it to python. 

Thanks in advance!

--

___
Python tracker 

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



[issue19758] Warnings in tests

2013-11-24 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +brett.cannon, christian.heimes, eric.snow, ncoghlan

___
Python tracker 

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



[issue15204] Deprecate the 'U' open mode

2013-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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

___
Python tracker 

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



[issue19758] Warnings in tests

2013-11-24 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Following warnings emitted by test suite when run it with -Wall.

[101/387] test_distutils
/home/serhiy/py/cpython/Lib/distutils/sysconfig.py:578: DeprecationWarning: SO 
is deprecated, use EXT_SUFFIX
  warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)
unknown, 0: Warning: using regular magic file `/etc/magic'
unknown, 0: Warning: using regular magic file `/etc/magic'

[154/387] test_hmac
/home/serhiy/py/cpython/Lib/test/test_hmac.py:271: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:296: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(bytearray(b"key"), bytearray(b"hash this!"))
/home/serhiy/py/cpython/Lib/test/test_hmac.py:303: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key", memoryview(b"hash this!"))
/home/serhiy/py/cpython/Lib/test/test_hmac.py:290: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key", b"hash this!")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:320: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:327: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"my secret key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:339: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:361: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:350: PendingDeprecationWarning: 
HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")

[165/387] test_importlib
/home/serhiy/py/cpython/Lib/test/test_importlib/test_spec.py:58: 
PendingDeprecationWarning: The import system now takes care of this 
automatically.
  @frozen_util.module_for_loader

[245/387] test_poplib
/home/serhiy/py/cpython/Lib/test/support/__init__.py:1331: ResourceWarning: 
unclosed 
  gc.collect()

[319/387] test_sysconfig
/home/serhiy/py/cpython/Lib/sysconfig.py:588: DeprecationWarning: SO is 
deprecated, use EXT_SUFFIX
  warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)

--
components: Tests
messages: 204270
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Warnings in tests
versions: Python 3.4

___
Python tracker 

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



[issue15204] Deprecate the 'U' open mode

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 694e2708b4a8 by Serhiy Storchaka in branch 'default':
Issue #15204: Silence and check the 'U' mode deprecation warnings in tests.
http://hg.python.org/cpython/rev/694e2708b4a8

--

___
Python tracker 

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



[issue17747] Deprecate pickle fast mode

2013-11-24 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti :


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

___
Python tracker 

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



[issue17787] Optimize pickling function dispatch in hot loops.

2013-11-24 Thread Alexandre Vassalotti

Alexandre Vassalotti added the comment:

The patch is too complicated for too little.

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

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Larry Hastings

Larry Hastings added the comment:

Are the generated files *byte for byte* the same as produced by the existing 
parser generation process?

--

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Brett Cannon

Brett Cannon added the comment:

It's Larry's call in the end but I personally don't care either way, especially 
since this isn't user-facing code.

--

___
Python tracker 

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



[issue19746] No introspective way to detect ModuleImportFailure

2013-11-24 Thread Michael Foord

Michael Foord added the comment:

Seems like a perfectly reasonable request. I've no particular preference on an 
api for this though.

--

___
Python tracker 

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



[issue19750] test_asyncio.test_unix_events constructor failures on AIX

2013-11-24 Thread Guido van Rossum

Guido van Rossum added the comment:

Can you try this patch?

diff -r 14cbf01b1929 tests/test_unix_events.py
--- a/tests/test_unix_events.py Sun Nov 24 11:04:44 2013 -0800
+++ b/tests/test_unix_events.py Sun Nov 24 12:28:42 2013 -0800
@@ -379,7 +379,7 @@
 fstat_patcher = unittest.mock.patch('os.fstat')
 m_fstat = fstat_patcher.start()
 st = unittest.mock.Mock()
-st.st_mode = stat.S_IFIFO
+st.st_mode = stat.S_IFSOCK
 m_fstat.return_value = st
 self.addCleanup(fstat_patcher.stop)

--

___
Python tracker 

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



[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Matthias Klose

Matthias Klose added the comment:

2.4~rc1:
 - configure.ac should call AC_CANONICAL_HOST, config,guess and
   config.sub should be included.
 - there are still symbols which exists only for 32/64 bit archs.
   intended?
   (arch=@64@)mpd_qsset_i64@Base 2.3
   (arch=@64@)mpd_qsset_u64@Base 2.3
   (arch=@64@)mpd_sset_i64@Base 2.3
   (arch=@64@)mpd_sset_u64@Base 2.3

--

___
Python tracker 

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



[issue19756] test_nntplib: sporadic failures, network isses? server down?

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The third-party server isn't extremely reliable indeed. Ideally, we would run 
our own NNTP server, but that's a lot more work.

--
nosy: +pitrou
versions: +Python 3.3

___
Python tracker 

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



[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Stefan Krah

Changes by Stefan Krah :


--
nosy: +Arfrever

___
Python tracker 

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



[issue11571] Turtle window pops under the terminal on OSX

2013-11-24 Thread James Cook

James Cook added the comment:

This problem still exists with the version of turtle bundled with python 3.3.3 
and ActiveState ActiveTcl8.5.15.1.  While it may be an issue with the 
underlying platform, it's unfortunate for young beginners just learning python 
who don't understand the underlying issue.

If other parents are searching for a solution, this works:

turtle.getscreen()._root.attributes('-topmost', 1)
turtle.getscreen()._root.attributes('-topmost', 0)

Any chance the workaround patch could be applied so I don't have to tell my kid 
to add this magic to his scripts?

--
nosy: +James.Cook

___
Python tracker 

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



[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Stefan Krah

Stefan Krah added the comment:

I have prepared Python-3.3+ for use with libmpdec.so.2:

cbd78679080b
9d07b3eb34e3

Here is a prerelease for mpdecimal:

http://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.4-rc1.tar.gz

sha256sum:

528a61b3de5c1e553a012d083c4d909391510cc733c1a990131d312bbdf1a717

I think I've addressed all your comments you sent privately earlier.
The "uname -s" in configure.ac is only used for suncc and Darwin.
It should not affect cross building.

I still have to update the docs and a couple of READMEs for the final release.
The code in libmpdec is now the same as on hg.python.org and is highly unlikely
to change.

If you have time and have some final requests for the configury (config.guess,
install-sh?), let me know.  I prefer to run the final tests on the exact tarball
that is ultimately shipped.

The deal for Python-3.3 and Python-3.4 is:  For compatibility with decimal.py
only link against libmpdec.so.2.

--

___
Python tracker 

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



[issue19612] test_subprocess: sporadic failure of test_communicate_epipe() on Windows 8

2013-11-24 Thread Guido van Rossum

Guido van Rossum added the comment:

I don't know much about subprocess.py and I don't have access to Windows 8.  
But it looks like the kind of thing that might happen if the other end of the 
"pipe" is closed, which might happen if the subprocess exits early, either 
because it's just fast or because it's encountered some other bug.

--

___
Python tracker 

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



[issue19751] test_sys: sys.hash_info.algorithm failure on SPARC Solaris buildbot

2013-11-24 Thread Christian Heimes

Christian Heimes added the comment:

I'll look into it.

--
assignee:  -> christian.heimes
priority: normal -> high
stage:  -> patch review
type:  -> behavior

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-24 Thread Guido van Rossum

Changes by Guido van Rossum :


--
components: +Tests
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-24 Thread Guido van Rossum

Guido van Rossum added the comment:

Agreed that that is probably unrelated.

I suspect that all tests doing real I/O (stuff that goes through the OS kernel) 
and wait for it using run_briefly() are theoretically broken like that. It may 
just be harder to provoke for some tests than for others.

The proper fix is to use test_utils.run_until(loop, , timeout) where 
 is a lambda that computes whether the desired condition is reached. 
 E.g. in this case we could use something like

test_utils.run_until(self.loop, lambda: b''.join(bytes_read) == b'abcdef', 10)

instead of the last five lines of the test (starting with the second 
run_briefly).

--

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Another question: What is the real purpose of pure paths? One thing I
> see is using them to, say, manipulate Windows paths on a Posix machine
> for some reason.

Yes. Also, if some reason you want to be sure you're only doing path
computations, not I/O.

> Any others? Could this also be achieved with just having Paths?

I don't see how having just Paths would achieve this, unless you think
it's sane to pretend to walk a Windows directory under Unix :-)

--

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

It's just a matter of looking for a familiar pattern while going over an 
unfamiliar doc page, I guess. I'll give it a try and see if it helps.

Another question: What is the real purpose of pure paths? One thing I see is 
using them to, say, manipulate Windows paths on a Posix machine for some 
reason. Any others? Could this also be achieved with just having Paths?

[sorry for coming long after the party ended; my motivation here is mainly 
curiosity - maybe by looking at it from a newbie point of view I can improve 
the documentation in a way that will be friendlier for people unfamiliar with 
the new library]

--

___
Python tracker 

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



[issue19757] _tracemalloc.c: compiler warning with gil_state

2013-11-24 Thread koobs

Changes by koobs :


--
nosy: +koobs

___
Python tracker 

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



[issue19757] _tracemalloc.c: compiler warning with gil_state

2013-11-24 Thread STINNER Victor

New submission from STINNER Victor:

Clang complains that gil_state might be used uninitialized in 
_tracemalloc.c:488 and 533.

--
messages: 204254
nosy: christian.heimes, haypo
priority: normal
severity: normal
status: open
title: _tracemalloc.c: compiler warning with gil_state
versions: Python 3.4

___
Python tracker 

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



[issue19636] Fix usage of MAX_PATH in posixmodule.c

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b3eb42a657a3 by Victor Stinner in branch 'default':
Issue #19636: Fix posix__getvolumepathname(), raise an OverflowError if
http://hg.python.org/cpython/rev/b3eb42a657a3

New changeset 46aecfc5e374 by Victor Stinner in branch 'default':
Issue #19636: Fix usage of MAX_PATH in posixmodule.c
http://hg.python.org/cpython/rev/46aecfc5e374

--
nosy: +python-dev

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well, it depends how much "formal" :-)

The text does say: """Path constructors accept an arbitrary number of 
positional arguments. When called without any argument, a path object points to 
the current directory [etc.]"""

I'm not against a more formal description, but besides saying "*args", I'm not 
sure what it would bring.

--

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

Yes, I've seen that. What I mean is that there's no clear signature defined 
with each argument explained, as the other stdlib documentation usually does. 
Section 11.1.2.1 uses a more descriptive approach, while I was also expecting a 
formal specification.

I can propose a patch to improve this, if you don't object.

--

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Antoine, am I missing something - I don't see documentation for the 
> construction of Path/PurePath?

It's there:
http://docs.python.org/dev/library/pathlib.html#pathlib.PurePath

--

___
Python tracker 

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



[issue19673] PEP 428 implementation

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

Antoine, am I missing something - I don't see documentation for the 
construction of Path/PurePath?

--
nosy: +eli.bendersky

___
Python tracker 

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



[issue19756] test_nntplib: sporadic failures, network isses? server down?

2013-11-24 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/692/steps/test/logs/stdio

==
ERROR: test_capabilities (test.test_nntplib.NetworkedNNTP_SSLTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_nntplib.py", 
line 251, in wrapped
meth(self)
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_nntplib.py", 
line 201, in test_capabilities
resp, caps = self.server.capabilities()
  File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/nntplib.py", 
line 558, in capabilities
resp, lines = self._longcmdstring("CAPABILITIES")
  File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/nntplib.py", 
line 525, in _longcmdstring
resp, list = self._getlongresp(file)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/nntplib.py", 
line 476, in _getlongresp
resp = self._getresp()
  File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/nntplib.py", 
line 449, in _getresp
resp = self._getline()
  File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/nntplib.py", 
line 432, in _getline
line = self.file.readline(_MAXLINE +1)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/socket.py", line 
368, in readinto
raise OSError("cannot read from timed out object")
OSError: cannot read from timed out object



http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/7147/steps/test/logs/stdio


==
ERROR: setUpClass (test.test_nntplib.NetworkedNNTP_SSLTests)
--
Traceback (most recent call last):
  File 
"/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_nntplib.py",
 line 298, in setUpClass
cls.server = cls.NNTP_CLASS(cls.NNTP_HOST, timeout=TIMEOUT, usenetrc=False)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 1071, in __init__
readermode=readermode, timeout=timeout)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 334, in __init__
self.getcapabilities()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 390, in getcapabilities
resp, caps = self.capabilities()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 558, in capabilities
resp, lines = self._longcmdstring("CAPABILITIES")
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 525, in _longcmdstring
resp, list = self._getlongresp(file)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 476, in _getlongresp
resp = self._getresp()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 449, in _getresp
resp = self._getline()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/nntplib.py", 
line 437, in _getline
if not line: raise EOFError
EOFError

--
components: Tests
keywords: buildbot
messages: 204248
nosy: haypo
priority: normal
severity: normal
status: open
title: test_nntplib: sporadic failures, network isses? server down?
versions: Python 3.4

___
Python tracker 

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



[issue19753] test_gdb failure on SystemZ buildbot

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6e5eab3add6c by Victor Stinner in branch 'default':
Issue #19753: Try to fix test_gdb on SystemZ buildbot
http://hg.python.org/cpython/rev/6e5eab3add6c

--
nosy: +python-dev

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-24 Thread Richard Oudkerk

Richard Oudkerk added the comment:

> Possibly related: ...

That looks unrelated since it does not involve wait_for_handle().  
Unfortunately test_utils.run_briefly() offers few guarantees when using the 
IOCP event loop.

--

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d71db7fe4872 by Richard Oudkerk in branch 'default':
Issue #19740: Use WaitForSingleObject() instead of trusting TimerOrWaitFired.
http://hg.python.org/cpython/rev/d71db7fe4872

--
nosy: +python-dev

___
Python tracker 

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



[issue19751] test_sys: sys.hash_info.algorithm failure on SPARC Solaris buildbot

2013-11-24 Thread STINNER Victor

STINNER Victor added the comment:

Extract of configure output on SPARC buildbot:
> checking aligned memory access is required... no

Here is a patch for test_sys.

Checking the processor type is not reliable, the test should not be so strict.

--
keywords: +patch
Added file: http://bugs.python.org/file32823/test_sys_hashinfo.patch

___
Python tracker 

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



[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Matthias Klose

Matthias Klose added the comment:

Am 24.11.2013 18:42, schrieb Stefan Krah:
> _decimal should only be built against the upcoming mpdecimal-2.4.

is there a schedule for this version?

--

___
Python tracker 

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



[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Stefan Krah

Stefan Krah added the comment:

Development of libmpdec has effectively happened on hg.python.org
since I included _decimal.  That's also one of the reasons why there
isn't any public VCS.  The mailing list isn't archived because I'm
using ezmlm and ezmlm's retrieval system caused excessive backscatter
of mail (IIRC).

There is also no bug-tracker for the simple reason that no libmpdec
bugs have been reported either here or on bytereef.org.


_decimal should only be built against the upcoming mpdecimal-2.4.
I'm going to name the shared library libmpdec.so.2, which will only
receive bugfixes, since the spec isn't going to change.

--

___
Python tracker 

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



[issue19750] test_asyncio.test_unix_events constructor failures on AIX

2013-11-24 Thread STINNER Victor

STINNER Victor added the comment:

Oh, this failure is probably related to this comment in unix_events.py:

# On AIX, the reader trick only works for sockets.
# On other platforms it works for pipes and sockets.
# (Exception: OS X 10.4?  Issue #19294.)
if is_socket or not sys.platform.startswith("aix"):
self._loop.add_reader(self._fileno, self._read_ready)

UnixWritePipeTransportTests should use a real socket, or the 2 tests should be 
skipped on AIX.

--

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Eli Bendersky

Eli Bendersky added the comment:

Does anyone have comments on the code or can I prepare a patch for default?

Would it make sense to wait with this until the 3.4 branch is created or can I 
just commit to default? Note that this change is not a new feature and is 
essentially a no-op as far as the resulting CPython executable - it's just 
tweaking the build process to generate the same data in a different way.

--

___
Python tracker 

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



[issue19749] test_venv failure on AIX: 'module' object has no attribute 'O_NOFOLLOW'

2013-11-24 Thread STINNER Victor

STINNER Victor added the comment:

> Looks like a bug in PIP more than in Python.

Correct, but it does impact Python buildbots. I would like to have one issue 
per buildbot failure. Can someone report the bug upstream please?

--

___
Python tracker 

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



[issue19748] test_time failures on AIX

2013-11-24 Thread STINNER Victor

STINNER Victor added the comment:

@David: Can you try to check what the minimum accepted timestamp for the time 
module?

--

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-24 Thread Tim Peters

Tim Peters added the comment:

Possibly related:  the successful test runs occurred running test_asyncio in 
isolation on a quiet machine.  Then I fired off a full run of the test suite 
and used the machine for other things too.  Then it failed:

[ 23/387] test_asyncio
... various unclosed socket warnings ...

test test_asyncio failed -- Traceback (most recent call last):
  File "C:\Code\Python\lib\test\test_asyncio\test_events.py", line 323, in 
test_reader_callback
self.assertEqual(b''.join(bytes_read), b'abcdef')
AssertionError: b'' != b'abcdef'

...
343 tests OK.
1 test failed:
test_asyncio

Unfortunately, this time it's hard to provoke :-(

--

___
Python tracker 

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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Note that using shutil.rmtree() means there are sporadic test_pathlib failures 
under Windows:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/3436/steps/test/logs/stdio

--
nosy: +steve.dower

___
Python tracker 

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



[issue19754] pickletools.optimize doesn't reframe correctly

2013-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> on the other hand if you keep the whole pickle in memory for optimize() 
> perhaps it's not a problem keeping it in memory for load() :-)

This is not always true. You run optimize() on one computer or environment and 
load() on other.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue19755] PEP 397 listed as accepted instead of finished.

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa10b8c5bb00 by Barry Warsaw in branch 'default':
PEP 397 is marked Final.  (Closes issue19755).
http://hg.python.org/peps/rev/fa10b8c5bb00

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

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-24 Thread Tim Peters

Tim Peters added the comment:

@sbt, success!  With the patch, test_asyncio passed 10 times in a row on my 
box.  Ship it :-)

--

___
Python tracker 

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



[issue13477] tarfile module should have a command line

2013-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> changeset:   87476:a539c85aec51
> user:Antoine Pitrou 
> date:Sun Nov 24 01:55:05 2013 +0100
> summary:
>   Try to fix test_tarfile under Windows

Thank you Antoine.

--

___
Python tracker 

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



[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 77e3e395f446 by Serhiy Storchaka in branch '2.7':
Fixed merging error in changeset 3912934e99ba (issue #19733).
http://hg.python.org/cpython/rev/77e3e395f446

--

___
Python tracker 

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



[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2013-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh-oh. Thank you Arfrever.

--

___
Python tracker 

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



[issue19545] time.strptime exception context

2013-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your contribution.

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

___
Python tracker 

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



[issue19545] time.strptime exception context

2013-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ce1578f4d105 by Serhiy Storchaka in branch '3.3':
Issue #19545: Avoid chained exceptions while passing stray % to
http://hg.python.org/cpython/rev/ce1578f4d105

New changeset 2bf4741515a7 by Serhiy Storchaka in branch 'default':
Issue #19545: Avoid chained exceptions while passing stray % to
http://hg.python.org/cpython/rev/2bf4741515a7

--
nosy: +python-dev

___
Python tracker 

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



[issue19755] PEP 397 listed as accepted instead of finished.

2013-11-24 Thread Mark Lawrence

New submission from Mark Lawrence:

On the PEP index 397 is listed under the section "Accepted PEPs (accepted; may 
not be implemented yet)".  I believe it should be moved to Finished PEPs (done, 
implemented in code repository).

--
messages: 204227
nosy: BreamoreBoy
priority: normal
severity: normal
status: open
title: PEP 397 listed as accepted instead of finished.

___
Python tracker 

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



[issue19545] time.strptime exception context

2013-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
stage:  -> commit review
type:  -> behavior

___
Python tracker 

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



[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Brett Cannon

Brett Cannon added the comment:

All code going into Python should be idiomatic unless it's meant to be released 
externally and there are backwards-compatibility concerns. It's Eli's call as 
to whether he wants to maintain a PyPI project for this after integration.

Points 2-4 are off-topic for this issue.

--

___
Python tracker 

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



[issue19557] ast - docs for every node type are missing

2013-11-24 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue15759] "make suspicious" doesn't display instructions in case of failure

2013-11-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy
stage: commit review -> patch review
versions: +Python 3.4 -Python 3.2

___
Python tracker 

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



[issue19753] test_gdb failure on SystemZ buildbot

2013-11-24 Thread David Edelsohn

David Edelsohn added the comment:

I have installed debuginfo on the system, but it is not being recognized. I 
have been inquiring with SuSE zLinux to understand how to resolve this.

--

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-24 Thread Larry Hastings

Larry Hastings added the comment:

Antoine: your checked-in workaround makes the test pass.  But I'm leaving this 
open because I'm still hoping David will take a look into it.

--

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Agreed.

--

___
Python tracker 

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



  1   2   >