[issue25380] Incorrect protocol for the STACK_GLOBAL opcode

2015-10-12 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Incorrect protocol (0 instead of 4) is specified for the STACK_GLOBAL opcode in 
pickletools.opcodes.

--
assignee: serhiy.storchaka
components: Library (Lib)
files: pickletools_STACK_GLOBAL_proto.patch
keywords: patch
messages: 252847
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Incorrect protocol for the STACK_GLOBAL opcode
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6
Added file: 
http://bugs.python.org/file40753/pickletools_STACK_GLOBAL_proto.patch

___
Python tracker 

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



[issue25381] Use old description of raise in Python3

2015-10-12 Thread Xiang Zhang

New submission from Xiang Zhang:

In the first paragraph of 
https://docs.python.org/3/extending/extending.html#intermezzo-errors-and-exceptions,
it is wrong to use the sentence "the second argument to raise" since
the raise syntax has been changed in Python3.

--
assignee: docs@python
components: Documentation
files: doc_extending.patch
keywords: patch
messages: 252848
nosy: docs@python, xiang.zhang
priority: normal
severity: normal
status: open
title: Use old description of raise in Python3
Added file: http://bugs.python.org/file40754/doc_extending.patch

___
Python tracker 

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



[issue25381] Doc: Use old description of raise in Python3

2015-10-12 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Use old description of raise in Python3 -> Doc: Use old description of 
raise in Python3

___
Python tracker 

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



[issue25382] pickletools.dis(): output memo id for MEMOIZE

2015-10-12 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Proposed patch makes pickletools.dis() to output implicit memo id for the 
MEMOIZE opcode. This makes the output more readable.

--
components: Library (Lib)
files: pickletools_dis_MEMOIZE_comment.patch
keywords: patch
messages: 252849
nosy: alexandre.vassalotti, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: pickletools.dis(): output memo id for MEMOIZE
type: enhancement
versions: Python 3.6
Added file: 
http://bugs.python.org/file40755/pickletools_dis_MEMOIZE_comment.patch

___
Python tracker 

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



[issue25380] Incorrect protocol for the STACK_GLOBAL opcode

2015-10-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +alexandre.vassalotti

___
Python tracker 

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



[issue25383] Docs: Broken link

2015-10-12 Thread Ilhan Sanli

New submission from Ilhan Sanli:

This page (3.4 to dev):
https://docs.python.org/3.6/library/venv.html
Contains link with text:
See also: Python Packaging User Guide: Creating and using virtual environments
URL:
https://packaging.python.org/en/latest/installing.html#virtual-environments
Results in 404.
Guessing it should point to:
http://python-packaging-user-guide.readthedocs.org/en/latest/installing/#creating-virtual-environments
Might be a bigger issue regarding the domain: 
https://packaging.python.org
Googling "Python Packaging User Guide" gives broken links under 
https://packaging.python.org

--
messages: 252850
nosy: ilhan
priority: normal
severity: normal
status: open
title: Docs: Broken link
versions: Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25383] Docs: Broken link

2015-10-12 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the report, but I think this should be reported to PyPA since even 
https://packaging.python.org doesn't work. Can you open an issue at 
https://github.com/pypa/python-packaging-user-guide/issues

--
nosy: +berker.peksag
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue25170] 3.5.0 documentation archives missing

2015-10-12 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
priority: normal -> high
resolution: not a bug -> 
stage: resolved -> 

___
Python tracker 

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



[issue25384] Use _PyBytesWriter in the binascii module

2015-10-12 Thread STINNER Victor

New submission from STINNER Victor:

Attached patch modifies the binascii module to use the new _PyBytesWriter API.

IMHO the patch makes the code more readable. The code may be faster because it 
avoids a call to _PyBytes_Resize() in some cases.

The change on binascii_rledecode_hqx_impl() should be carefully reviewed, the 
code is a little bit more complex. It uses a counter to decide when to enlarge 
the buffer. It calls _PyBytesWriter_Prepare() to enlarge the buffer which uses 
overallocation. It disables overallocation if we are going to write the last 
byte.

--
files: binascii_writer.patch
keywords: patch
messages: 252852
nosy: haypo
priority: normal
severity: normal
status: open
title: Use _PyBytesWriter in the binascii module
versions: Python 3.6
Added file: http://bugs.python.org/file40756/binascii_writer.patch

___
Python tracker 

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



[issue25384] Use _PyBytesWriter in the binascii module

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

I implemented the "use empty string singleton" optimization in 
_PyBytesWriter_Finish(): see changeset f33433d9c163.

--

___
Python tracker 

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



[issue25285] regrtest: run tests in subprocesses with -j1 on buildbots

2015-10-12 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 288953a787ce by Victor Stinner in branch 'default':
Issue #24164: Fix test_pyclbr
https://hg.python.org/cpython/rev/288953a787ce

--

___
Python tracker 

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



[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

> New changeset 288953a787ce by Victor Stinner in branch 'default':
> Issue #24164: Fix test_pyclbr

Another fix would be to accept functools.partial type, but it looks like the 
test wants to exclude symbols which comes from other modules.

--

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Christian Tanzer

Christian Tanzer added the comment:

> The code works when using encoding='bytes'. Thanks Tim for the suggestion.

> So this is not a bug, but is there any sense in having encoding='ASCII' by 
> default in pickle ?

It is most definitely a bug. And it adds another road block to moving python 
applications from 2.7 to 3.x!

encoding='bytes' has serious side effects and isn't useful in the general case. 
For instance, it will result in dict-keys being unpickled as bytes instead of 
as str after which hilarity ensues.

I got the exception

  UnicodeDecodeError: 'ascii' codec can't decode byte 0xdf in position 1: 
ordinal not in range(128)

when testing an application for compatibility in Python 3.5 on a pickle created 
by Python 2.7. The pickled data is a nested data structure and it took me quite 
a while to determine that the single datetime instance was the culprit.

Here is a small test case that reproduces the problem::

# -*- coding: utf-8 -*-
# pickle_dump.py 
import datetime, pickle, uuid
dti = datetime.datetime(2015, 10, 12, 13, 17, 42, 123456)
data = { "ascii" : "abc", "text" : u"äbc", "int" :  42, "date-time" : dti }
with open("/tmp/pickle.test", "wb") as file :
pickle.dump(data, file, protocol=2)

# pickle_load.py
# -*- coding: utf-8 -*-
import pickle
with open("/tmp/pickle.test", "rb") as file :
data = pickle.load(file)
print(data)

$ python2.7 pickle_dump.py
$ python2.7 pickle_load.py 
{'ascii': 'abc', 'text': u'\xe4bc', 'int': 42, 'date-time': 
datetime.datetime(2015, 10, 12, 13, 17, 42, 123456)}
$ python3.5 pickle_load.py 
Traceback (most recent call last):
  File "pickle_load.py", line 6, in 
data = pickle.load(file)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdf in position 1: ordinal 
not in range(128)

That error message is spectacularly useless.

--
nosy: +tan...@swing.co.at

___
Python tracker 

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



[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-12 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread R. David Murray

R. David Murray added the comment:

Actually, I take that back.  Shouldn't it be "the object passed *as* the 
exception object to raise?

--

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread R. David Murray

Changes by R. David Murray :


--
stage: commit review -> patch review

___
Python tracker 

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



[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-12 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Reopening because we're starting to see regressions caused by the fix for this 
bug, e.g.: https://bugs.launchpad.net/configglue/+bug/1504288

--
keywords: +3.4regression, 3.5regression -patch
status: closed -> open

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread R. David Murray

R. David Murray added the comment:

Looks good to me.

--
nosy: +r.david.murray
stage:  -> commit review
title: Doc: Use old description of raise in Python3 -> Doc: Use of old 
description of raise in Python3
versions: +Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L

L added the comment:

Mac OSX 10.8.5
Python 2.7.10 installed via macports

$ python2.7 io.openBugEx.py
Local pref:  UTF-8
LANG env:  en_US.UTF-8

Local pref:
LANG env has key:  False

Traceback (most recent call last):
  File "io.openBugEx.py", line 21, in 
print io.open(tmpfile).read()
LookupError: unknown encoding:

--
status: pending -> open
type: behavior -> crash

___
Python tracker 

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



[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-12 Thread R. David Murray

R. David Murray added the comment:

The linked bug doesn't include any information as to what the observed failure 
mode(s) are.  Can you provide details, please?

--

___
Python tracker 

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



[issue24575] timemodule build fail - missing definitions for _Py_BEGIN_SUPPRESS_IPH and _Py_END_SUPPRESS_IPH

2015-10-12 Thread Steve Dower

Steve Dower added the comment:

If they are compiled independently, they should have Py_BUILD_CORE set. 

That flag is meant for the headers, which serve dual purposes, not the module 
itself. *Any* C file that is part of core should expect that option to be set 
for when it includes its headers.

All that said, it seems that _datetimemodule.c forces Py_BUILD_CORE on to get 
access to some extra definitions, which presumably means that somebody at some 
point wanted to compile it into an extension module. I don't see the use case 
here though - is there something about its public API that is not stable?

--

___
Python tracker 

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



[issue25001] Make --nowindows argument to regrtest propagate when running with -j

2015-10-12 Thread Steve Dower

Steve Dower added the comment:

Between Victor's fix and #23919, is there anything left to do for this?

--

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread Xiang Zhang

Xiang Zhang added the comment:

With this sentence

A second global variable stores the “associated value” of the exception (the 
second argument to raise).

I think the phrase inside the parentheses is to explain the "associated value", 
which is usually a string passed to the exception object, not the exception 
object itself.

Do I misunderstand anything?

--

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread R. David Murray

Changes by R. David Murray :


--
type: crash -> behavior

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread R. David Murray

R. David Murray added the comment:

I cannot reproduce this on 10.10.3:

rdmurray@intel-vm-buildbot:~>sw_vers
ProductName:Mac OS X
ProductVersion: 10.10.3
BuildVersion:   14D136

rdmurray@intel-vm-buildbot:~>LANG=en_us.UTF-8 python temp
Local pref:  UTF-8
LANG env:  en_us.UTF-8

Local pref:  UTF-8
LANG env has key:  False
UTF-8


This is using the installed Apple python, but I get the same result using a 
recent local 2.7 build.

--
components: +Macintosh
nosy: +ned.deily, r.david.murray, ronaldoussoren

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread R. David Murray

R. David Murray added the comment:

Yes.  The second element of the sys.exc_info result is the exception instance, 
not the argument to the exception constructor.  The old raise syntax allowed 
you to specify the exception instance as the second argument to raise, but if 
you specified a string it converted it to an exception instance using the first 
argument as the constructor to call.  So, the 2.7 docs aren't entirely 
accurate, since it isn't the second argument to raise that is stored, but the 
object that results from raise *processing* its second argument.

--

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L

L added the comment:

The difference, and I believe the crux of the issue is that 
locale.getprefferedencoding() is still returning and encoding for you, mine 
returns and emtpy str.

Do you have any other envs set that getprefferedencoding my be using:
 'LANGUAGE', 'LC_ALL', 'LC_CTYPE', and 'LANG'
Perhaps if you wipe all of these?

--
components:  -Macintosh
type: behavior -> crash

___
Python tracker 

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



[issue24931] _asdict breaks when inheriting from a namedtuple

2015-10-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> it seems odd that it has disappeared.

It disappeared because it was fundamentally broken in Python 3, so it had to be 
removed.  Providing __dict__ broke subclassing and produced odd behaviors.

--
keywords:  -3.5regression
priority: high -> normal

___
Python tracker 

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



[issue25001] Make --nowindows argument to regrtest propagate when running with -j

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

We are good, I close the issue.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue18156] Add an 'attr' attribute to AttributeError

2015-10-12 Thread Shubham Dash

Changes by Shubham Dash :


Added file: http://bugs.python.org/file40757/client.py

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread Xiang Zhang

Xiang Zhang added the comment:

Oops, I misunderstand sys.exc_info all the time, sad :(

Now, both versions of doc are not correct. Please make them fixed.

--

___
Python tracker 

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



[issue25254] Idle: debugger source line highlighting fails again

2015-10-12 Thread Mark Roseman

Mark Roseman added the comment:

FYI, the new debugger UI has an option to only show highlights in already open 
files (i.e. don't open new ones)

--

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread Ned Deily

Ned Deily added the comment:

I can reproduce the problem using the MacPorts python2.7 but not the 
Apple-supplied Python 2.7 or the python.org one.  The difference seems to be 
that the MacPorts Python is built with the MacPorts-supplied GNU gettext and 
its libintl, whereas the others aren't (since Apple does not ship libintl).  I 
don't have time at the moment to dig into why the libintl version of setlocale 
retunes '' instead of 'US-ASCII'.  Perhaps locale.py or io could handle that 
case better?

--
type: crash -> behavior

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L

L added the comment:

Should I submit elsewhere?

--
type: behavior -> crash

___
Python tracker 

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



[issue25385] Spurious warning when compiling extension module

2015-10-12 Thread Antoine Pitrou

New submission from Antoine Pitrou:

I'm under Linux, but get the following warning when compiling an extension 
module.  This only happens with 3.5+.

$ python setup.py build_ext --inplace 
running build_ext
building 'numba._helperlib' extension
C compiler: gcc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv 
-O3 -Wall -Wstrict-prototypes -fPIC

compile options: 
'-I/home/antoine/35/lib/python3.5/site-packages/numpy/core/include 
-I/home/antoine/35/include/python3.5m -c'
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules winreg, win32api or win32con are installed.
gcc: numba/_helpermod.c
[...]

--
components: Distutils
messages: 252875
nosy: dstufft, eric.araujo, pitrou, steve.dower
priority: normal
severity: normal
status: open
title: Spurious warning when compiling extension module
type: behavior
versions: Python 3.5, Python 3.6

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread R. David Murray

R. David Murray added the comment:

Well, it might be a bug in libintl, but it would be a good idea to investigate 
further before reporting it upstream to them.  And we may want to deal with the 
possibility of a blank return regardless.

--

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There are two issues here.

1. datetime.datetime accepts only bytes, not str.
2. Unpickling non-ASCII str pickled in Python 2 raises an error by default.

The second issue usually hides the first one. The demonstration of the first 
issue:

>>> pickle.loads(b'cdatetime\ndatetime\n(U\n\x07l\x01\x01\x00\x00\x00\x00\x00\x00tR.')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: an integer is required (got type str)

The first issue can be solved by accepting str argument and encoding it to 
bytes. The second issue can be solved by changing an encoding or an error 
handler. Following patch uses the "surrogateescape" error handler.

>>> pickle.loads(b'cdatetime\ndatetime\n(U\n\x07l\x01\x01\x00\x00\x00\x00\xc3\xa4tR.')
datetime.datetime(1900, 1, 1, 0, 0, 0, 50084)

Unfortunately setting the "surrogateescape" error handler by default has a side 
effect. It can hide string decoding errors. In addition, unpickling datetime 
will not always work with different encodings.

>>> pickle.loads(b'cdatetime\ndatetime\n(U\n\x07l\x01\x01\x00\x00\x00\x00\xc3\xa4tR.',
>>>  encoding='latin1')
Traceback (most recent call last):
  File "", line 1, in 
UnicodeEncodeError: 'ascii' codec can't encode characters in position 8-9: 
ordinal not in range(128)
>>> pickle.loads(b'cdatetime\ndatetime\n(U\n\x07l\x01\x01\x00\x00\x00\x00\xc3\xa4tR.',
>>>  encoding='utf-8')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: an integer is required (got type str)

--
keywords: +patch
nosy: +serhiy.storchaka
versions: +Python 3.5, Python 3.6
Added file: 
http://bugs.python.org/file40758/unpickle_datetime_surrogateescape.patch

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please don't change the type of the issue to "crash". This is different type of 
issues. See classification in 
https://docs.python.org/devguide/triaging.html#type.

--
type: crash -> behavior

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

> The first issue can be solved by accepting str argument and encoding it to 
> bytes.

A strong -1 from me.  Accepting bytes objects for year in 3.x (and str in 2.x) 
is a gross hack.  In the long run, I would like to see a public named 
constructor, e.g. datetime.datetime.load to be used in datetime pickles.

Can someone explain succinctly what the problem is?  Does it only affect 
pickles transferred between 2.x and 3.x Pythons?  If not, how can I reproduce 
the problem in 3.5?

--

___
Python tracker 

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



[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L

L added the comment:

Type changed from cash to behavior.

--

___
Python tracker 

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



[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-12 Thread Mark Roseman

Mark Roseman added the comment:

No, I don't, sorry.  If it will be quick for you to do, no problem, otherwise 
I'd be happy to put it together.

--

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The problem is that you can't unpickle a data that contains both datetime 
classes (datetime, date, time) instances and strings (including attribute 
names, so actually this affects instances of any Python classes). Yes, it only 
affects pickles transferred between 2.x and 3.x Pythons.

Yet one possible solution is to change datetime classes in 2.x to produce more 
portable pickles. But new pickles will be larger, and pickling and unpickling 
will be slower, and this doesn't solve a problem with existing pickled data. 
We still are receiving bug reports for 2.7.3 and like.

--

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I wonder if this can be fixed using a fix_imports hook.  I agree, it would be 
nice to fix this issue by modifying 3.x versions only.

--

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

> .. pickling and unpickling will be slower

If we are concerned about performance, we should definitely avoid the 
decode-encode roundtrip.

--

___
Python tracker 

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



[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Go ahead then.

--

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch against 2.7 that makes datetime pickling portable.

It doesn't solve problem with existing pickled data, but at least it allows to 
convert existing pickled data with 2.7 to portable format.

--
Added file: http://bugs.python.org/file40759/datetime_portable_pickle-2.7.patch

___
Python tracker 

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



[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8e27f8398a4f by Victor Stinner in branch 'default':
Issue #25353: Optimize unicode escape and raw unicode escape encoders to use
https://hg.python.org/cpython/rev/8e27f8398a4f

--
nosy: +python-dev

___
Python tracker 

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



[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is alternative patch for 2.7. It makes datetime pickling produce the same 
data as in 3.x.

The side effect of this approach: it makes datetime pickling incompatible with 
Unicode disabled builds of 2.x.

--
stage:  -> patch review
versions: +Python 2.7
Added file: http://bugs.python.org/file40760/datetime_pickle_bytes-2.7.patch

___
Python tracker 

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



[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-12 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-12 Thread Mark Roseman

Mark Roseman added the comment:

Patch against head to change extensions dialog to a pane of main config dialog.

--
Added file: http://bugs.python.org/file40761/mergeext.patch

___
Python tracker 

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



[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-12 Thread Mark Roseman

Mark Roseman added the comment:

Same patch against 2.7

--
Added file: http://bugs.python.org/file40762/mergeext27.cfg

___
Python tracker 

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



[issue18769] argparse remove subparser

2015-10-12 Thread paul j3

paul j3 added the comment:

There's a partial overlap with this issue

http://bugs.python.org/issue22848

which seeks to hide a subparser - both in the help lines and the choices lists.

--

___
Python tracker 

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



[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 605eda657884 by Victor Stinner in branch '3.5':
Issue #25277: Use a longer sleep in test_eintr to reduce the risk of race
https://hg.python.org/cpython/rev/605eda657884

--

___
Python tracker 

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



[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

I hope that 2 seconds should be enough to workaround the lack of real 
synchronization between the parent and the child process.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eb0c76442cee by Victor Stinner in branch '3.5':
sys.setrecursionlimit() now raises RecursionError
https://hg.python.org/cpython/rev/eb0c76442cee

--

___
Python tracker 

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



[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

I pushed sys_setrecursionlimit-4.patch.

Thanks a lot Serhiy for your review and your help on this issue!

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue25207] ICC compiler warnings

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

I fixed some warnings.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

At least, test_pyclbr was fixed by my change. Most 3.x buildbots are green 
again.

--

___
Python tracker 

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



[issue25230] asyncio/Windows: Unix datagram sockets not supported

2015-10-12 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Unix datagram sockets not supported -> asyncio/Windows: Unix datagram 
sockets not supported

___
Python tracker 

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



[issue25210] Special-case NoneType() in do_richcompare()

2015-10-12 Thread STINNER Victor

STINNER Victor added the comment:

> TypeError: '<' not supported between instances of 'int' and 'NoneType'

Here is a patch for Python 3.6.

--
keywords: +patch
Added file: http://bugs.python.org/file40763/richcompare.patch

___
Python tracker 

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



[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-12 Thread Alexander Riccio

New submission from Alexander Riccio:

A minor issue (probably qualifies for the "easy" keyword):

All functions in msvcrtmodule.c (I'm looking at 
http://svn.python.org/projects/python/trunk/PC/msvcrtmodule.c) except 
msvcrt_putch and msvcrt_putwch properly check return values against error 
codes, and call one of the PyErr_Set* functions to properly bubble the error up 
the call stack.

_putch returns EOF on failure, and _putwch returns WEOF on failure.

Like the rest of the functions in that file, I imagine that the fix would 
involve something like:


if (_putch(ch) == EOF)
return PyErr_SetFromErrno(PyExc_IOError);


Note: the Python msvcrt documentation 
(https://docs.python.org/3/library/msvcrt.html) says:

"Changed in version 3.3: Operations in this module now raise OSError where 
IOError was raised."

...so if you were to backport this minor fix, you need to consider that (not 
sure what difference that makes).

Should I take a stab at patching this myself (I've never done this for the 
Python project) or shall I leave that to the devs?

--
components: Windows
messages: 252899
nosy: Alexander Riccio, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-12 Thread Alexander Riccio

Alexander Riccio added the comment:

For your convenience, the MSDN docs for the _putch/_putwch functions: 
https://msdn.microsoft.com/en-us/library/azb6c04e.aspx

--

___
Python tracker 

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



[issue25387] sound_msgbeep doesn't check the return value of MessageBeep

2015-10-12 Thread Alexander Riccio

Changes by Alexander Riccio :


--
components: Windows
nosy: Alexander Riccio, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: sound_msgbeep doesn't check the return value of MessageBeep
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue25387] sound_msgbeep doesn't check the return value of MessageBeep

2015-10-12 Thread Alexander Riccio

New submission from Alexander Riccio:

A really minor issue (probably qualifies for the "easy" keyword):

sound_msgbeep (in http://svn.python.org/projects/python/trunk/PC/winsound.c) 
doesn't check the return value of MessageBeep 
(https://msdn.microsoft.com/en-us/library/windows/desktop/ms680356.aspx). This 
is a very minor issue, but the possibility of failure is not mentioned in the 
winsound documentation. Invisible failures are quite surprising.


A message in the Gnome archives 
(https://mail.gnome.org/archives/commits-list/2010-November/msg01938.html) has 
an example "fix".

--

___
Python tracker 

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



[issue25210] Special-case NoneType() in do_richcompare()

2015-10-12 Thread Martin Panter

Martin Panter added the comment:

I like the patch.

It looks like some of the example sessions in the documentation will become out 
of date. Not sure if that is a problem.

--
nosy: +martin.panter
stage: needs patch -> patch review

___
Python tracker 

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



[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-12 Thread Zachary Ware

Zachary Ware added the comment:

Feel free to create a patch yourself, we'll be happy to review it.  Note though 
that the python project on svn.python.org is old and abandoned; we moved to 
Mercurial several years ago (see https://hg.python.org/cpython/).  I haven't 
checked to see whether the issue you report has already been fixed in the years 
since moving away from svn.

--

___
Python tracker 

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



[issue25210] Special-case NoneType() in do_richcompare()

2015-10-12 Thread Ezio Melotti

Ezio Melotti added the comment:

LGTM.
Updating examples is low-priority but I think it should be done.
I think it would be good to also add a couple of tests to make sure that the 
correct operator and types are included in the message.
Both make good bite-sized tasks for new contributors.

--

___
Python tracker 

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



[issue25388] tokenizer crash/misbehavior

2015-10-12 Thread Brian Cain

New submission from Brian Cain:

This issue is similar to (but I believe distinct from) the one reported earlier 
as http://bugs.python.org/issue24022.  Tokenizer failures strike me as 
difficult to exploit, but risky nonetheless.

Attached is a test case that illustrates the problem and the output from ASan 
when it encounters the failure.

All of the versions below that I tested failed in one way or another (segfault, 
assertion failure, printing enormous blank output to console).  Some fail 
frequently and some exhibit this failure only occasionally.

Python 3.4.3 (default, Mar 26 2015, 22:03:40) 
Python 2.7.9 (default, Apr  2 2015, 15:33:21) [GCC 4.9.2] on linux2
Python 3.6.0a0 (default:2a8a39640aa2+, Jul  9 2015, 12:28:50) [GCC 4.9.2] on 
linux

--
components: Interpreter Core
files: vuln.patch
keywords: patch
messages: 252905
nosy: Brian.Cain
priority: normal
severity: normal
status: open
title: tokenizer crash/misbehavior
versions: Python 2.7, Python 3.4, Python 3.6
Added file: http://bugs.python.org/file40764/vuln.patch

___
Python tracker 

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



[issue25388] tokenizer crash/misbehavior

2015-10-12 Thread Brian Cain

Brian Cain added the comment:

asan output

--
Added file: http://bugs.python.org/file40765/asan.txt

___
Python tracker 

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



[issue25388] tokenizer crash/misbehavior -- heap use-after-free

2015-10-12 Thread Brian Cain

Changes by Brian Cain :


--
title: tokenizer crash/misbehavior -> tokenizer crash/misbehavior -- heap 
use-after-free

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread Xiang Zhang

Xiang Zhang added the comment:

I fix my patch with David's comment.

--
Added file: http://bugs.python.org/file40766/doc_extending2.patch

___
Python tracker 

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



[issue25388] tokenizer crash/misbehavior -- heap use-after-free

2015-10-12 Thread Brian Cain

Changes by Brian Cain :


--
type:  -> crash

___
Python tracker 

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



[issue16151] Deferred KeyboardInterrupt in interactive mode

2015-10-12 Thread Martin Panter

Martin Panter added the comment:

I can’t reproduce this on 2.7.10 nor 3.4.3, on Arch Linux with Gnu Readline 
6.3.008-1. Instead, when I press , I see the y or n query printed, 
but it is immediately followed by all the possibilities (as if I said Y) 
without any chance to actually enter Y or N or hit Ctrl+C.

--
nosy: +martin.panter
stage:  -> test needed

___
Python tracker 

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



[issue16151] Deferred KeyboardInterrupt in interactive mode

2015-10-12 Thread Martin Panter

Martin Panter added the comment:

FWIW the “Display all possibilities” prompt works properly in Bash, so maybe I 
have a separate bug somewhere which is masking Serhiy’s bug.

--

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-10-12 Thread Zachary Ware

Changes by Zachary Ware :


--
versions: +Python 3.4, Python 3.6

___
Python tracker 

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



[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2015-10-12 Thread Martin Panter

Martin Panter added the comment:

This covers the same ground as Issue 14229, which was rejected with the 
argument that re-raising the signal is “ugly” and bypasses some things that are 
done by the standard OS exit() function.

--
nosy: +martin.panter

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6eb49f521336 by Zachary Ware in branch '3.4':
Issue #25093: Fix test_tcl's testloadWithUNC for paths with spaces
https://hg.python.org/cpython/rev/6eb49f521336

New changeset a557ec9c8b12 by Zachary Ware in branch '3.5':
Issue #25093: Merge with 3.4
https://hg.python.org/cpython/rev/a557ec9c8b12

New changeset a345d1c70d95 by Zachary Ware in branch 'default':
Closes #25093: Merge with 3.5
https://hg.python.org/cpython/rev/a345d1c70d95

--
nosy: +python-dev
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue13673] PyTraceBack_Print() fails if signal received but PyErr_CheckSignals() not called

2015-10-12 Thread Martin Panter

Changes by Martin Panter :


--
Removed message: http://bugs.python.org/msg185910

___
Python tracker 

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



[issue13673] PyTraceBack_Print() fails if signal received but PyErr_CheckSignals() not called

2015-10-12 Thread Martin Panter

Changes by Martin Panter :


--
Removed message: http://bugs.python.org/msg185911

___
Python tracker 

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



[issue25376] KeyboardInterrupt handling and traceback broken on Windows 10

2015-10-12 Thread Martin Panter

Martin Panter added the comment:

I am no Windows expert, but I read in Issue 18597 that Ctrl+C is treated as 
EOF, except that a SIGINT is also sent in the background. This would explain 
why you see an EOFError. The partial traceback may also be from the same 
EOFError. Or both cases could be truncated reports of KeyboardInterrupt chained 
onto EOFError.

I understand the code path for input() may bypass the usual stdin.read() and 
readline() methods. Issue 18597 is about readline(), so it may not be an exact 
duplicate.

See also Issue 17619, which hints that KeyboardInterrupt handling for input() 
was worked on and fixed in 3.3. So why is it broken again in 3.4? A regression 
test would be nice, if at all possible. Does Windows have an equivalent of 
pseudo terminals?

Possibly also related is Issue 13673, about functions (like input) raising an 
exception (like EOFError), when SIGINT has been received. It mentions the 
interpreter completely failing to report the entire traceback, or truncating 
the traceback. It might be worth trying out the patch there. It might also be 
interesting to check sys.last_value in the interactive case.

--
nosy: +martin.panter

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread Martin Panter

Martin Panter added the comment:

“Associated value” still seems a bit weird. I wonder if it would be clearer to 
say

The exception type is stored in a static global variable . . . A second global 
variable stores the exception instance passed to :keyword:`raise` . . .

Also further down that section it looks like there are other problems. 
“Exception object” is perhaps actually a C object referencing the exception 
class (type). ‘Python string object . . . stored as the "associated value" ’ 
should perhaps be the exception instance (object). I think a long time ago 
Python may have actually worked this way, but not any more, and the whole 
section probably needs updating.

--
nosy: +martin.panter

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Zachary. I couldn't test the patch myself.

--

___
Python tracker 

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



[issue16151] Deferred KeyboardInterrupt in interactive mode

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I can't reproduce original behavior anymore. In 3.4+  at the begin of the 
line inserts the tabulation character. In 2.7 and 3.3- double  causes the 
behavior described by Martin.

Yes, please open new issue about the “Display all possibilities” prompt Martin.

--

___
Python tracker 

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



[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Victor for fixing test_pyclbr. test_pyclbr looks fragile and may be 
there are bugs in pyclbr itself. But this is different issue.

Could you please look at proposed documentation changes?

--

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2015-10-12 Thread Xiang Zhang

Xiang Zhang added the comment:

Yes, you are right martin. It seems the whole chapter needs more updates, not 
only the bits I mentioned. I won't provide a new patch since I am not an 
English native and I am not sure I can provide an accurate and right 
description. Hope someone else may help.

--

___
Python tracker 

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



[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-12 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm about to hop on a plane to PyCon Poland, so David, how about you just go 
ahead and add your entry? After some reflection, I've realised we probably 
don't want to be too prescriptive regarding the personal bios, and can instead 
let patterns & themes emerge as folks add their own entries.

--

___
Python tracker 

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