[issue20418] socket.getaddrinfo fails for hostname that is all digits 0-9

2014-01-29 Thread Ariel Glenn

Ariel Glenn added the comment:

Verified that with AF_INET instead of AF_UNSPEC I get the error from my c 
program.  I'll take this to the glibc folks and see what's up. Thanks.

--

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



[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Vladimir Kerimov

New submission from Vladimir Kerimov:

In the file _io\fileio.c in function 

static PyObject *
fileio_readall(fileio *self)

this code is incorrect and crashes the process of Python:

 if (_PyBytes_Resize(result, newsize)  0) {
if (total == 0) {
Py_DECREF(result);
return NULL;
}
PyErr_Clear();
break;
}

In the call of _PyBytes_Resize there the result variable passed by reference 
and changes value to NULL-pointer when function fails and return  0. So on the 
line Py_DECREF(result); the Python process crashes.

--
components: Interpreter Core
messages: 209624
nosy: asvetlov, qualab
priority: normal
severity: normal
status: open
title: Process crashes if not enough memory to import module
type: crash
versions: Python 3.3

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



[issue20435] Discrepancy between io.StringIO and _pyio.StringIO with univeral newlines

2014-01-29 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

 import io, _pyio
 io.StringIO('a\nb\r\nc\rd', newline=None)
_io.StringIO object at 0xb707c734
 io.StringIO('a\nb\r\nc\rd', newline=None).getvalue()
'a\nb\nc\nd'
 _pyio.StringIO('a\nb\r\nc\rd', newline=None).getvalue()
'a\nb\r\nc\rd'
 s = io.StringIO(newline=None); s.write('a\nb\r\nc\rd'); s.getvalue()
8
'a\nb\nc\nd'
 s = _pyio.StringIO(newline=None); s.write('a\nb\r\nc\rd'); s.getvalue()
8
'a\nb\r\nc\rd'

--
components: IO
messages: 209625
nosy: benjamin.peterson, hynek, pitrou, serhiy.storchaka, stutzbach
priority: normal
severity: normal
status: open
title: Discrepancy between io.StringIO and _pyio.StringIO with univeral newlines
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

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



[issue20424] _pyio.StringIO doesn't work with lone surrogates

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Victor.

--
assignee:  - serhiy.storchaka

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



[issue20338] Idle: increase max calltip width

2014-01-29 Thread Stefan Krah

Stefan Krah added the comment:

Terry J. Reedy rep...@bugs.python.org wrote:
 and fixed fixed the first-line deletion somewhere in changes to about 30 
 other files.

Ah, so it was a Derby accident. Let's hope things stabilize soon.

--

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



[issue20424] _pyio.StringIO doesn't work with lone surrogates

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6ca9ba9eb76b by Serhiy Storchaka in branch '3.3':
Issue #20424: Python implementation of io.StringIO now supports lone surrogates.
http://hg.python.org/cpython/rev/6ca9ba9eb76b

New changeset 483096ef1cf6 by Serhiy Storchaka in branch 'default':
Issue #20424: Python implementation of io.StringIO now supports lone surrogates.
http://hg.python.org/cpython/rev/483096ef1cf6

--
nosy: +python-dev

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



[issue20424] _pyio.StringIO doesn't work with lone surrogates

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The test is backported to 2.7 in 3971e1b07af4.

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

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



[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

$ ./python -m test.regrtest
/home/serhiy/py/cpython-2.7/python: No module named test.regrtest

It worked several days ago.

--
components: Tests
messages: 209630
nosy: ezio.melotti, michael.foord, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test.regrtest is no more importable in 2.7
type: behavior
versions: Python 2.7

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



[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Bug can be reproduced if _PyBytes_Resize fails with out-of-memory error than 
NULL object decrefed.
Buggy modules are _io, binascii and zlib.

3.4 hasn't the problem.
Patch for 3.3 is attached.
Fix goes to mimic 3.4 -- (replace Py_DECREF with Py_CLEAR), while for 
_PyBytes_Resize that does not make sense, object has been set to NULL inside 
_PyBytes_Resize on fail.

Also 2.7 has the same issue for _PyString_Resize calls.

--
components: +Extension Modules -Interpreter Core
keywords: +patch
versions: +Python 2.7
Added file: http://bugs.python.org/file33791/issue20434.diff

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



[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Andrew Svetlov

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


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

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



[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread STINNER Victor

STINNER Victor added the comment:

Ah yes, the bytes object is set to NULL. In fact, you don't need to call 
Py_CLEAR(retval) in case of error, because retval is already NULL. Could you 
please update your patch to just do nothing on retval in case of error please?

 3.4 hasn't the problem.

Yes, I played some weeks with pyfailmalloc, a new tool for Python 3.4 to inject 
random MemoryError errors. I fixed many other different issues.

--
nosy: +haypo

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



[issue18321] Multivolume support in tarfile module

2014-01-29 Thread Lars Gustäbel

Lars Gustäbel added the comment:

I cannot yet go into the details, because I have not tested the patch.

The comments, docstrings and quoting are not very consistent with the rest of 
the module. There are a few spelling mistakes. The open_volume() method is more 
or less a copy of the open() method which is not optimal.

The patch adds a lot of complexity to the tarfile module for a use case that 
only a few connoisseurs benefit from. It seems to alter some inherent TarFile 
mechanics that people might rely on, e.g. the members attribute contains only 
the members stored in the current volume not the overall entirety of members. 
Does this patch reliably allow random-access?

Would it be possible/easier to add the same functionality using a separate 
class MultiVolumeTarFile instead?

--

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



[issue19281] add __objclass__ to the docs

2014-01-29 Thread Nick Coghlan

Nick Coghlan added the comment:

Huh, I thought we did this back when Ethan was working on enum stuff, but I 
guess we never figured out exactly where to put it.

Considering that question again now, I suggest adding it to the end of the 
subsection on implementing descriptors, since that's when it is most likely to 
be relevant:

http://docs.python.org/dev/reference/datamodel.html#implementing-descriptors

--
keywords: +easy
stage:  - needs patch
type:  - enhancement
versions: +Python 3.4

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



[issue18321] Multivolume support in tarfile module

2014-01-29 Thread Eduardo Robles Elvira

Eduardo Robles Elvira added the comment:

 I cannot yet go into the details, because I have not tested the patch.

 The comments, docstrings and quoting are not very consistent with the rest of 
 the module. There are a few spelling mistakes. 

I can try to take care of this, though it'd be best if you can point me out 
concrete examples.

 The open_volume() method is more or less a copy of the open() method which is 
 not optimal.

I know, but trying to do something else might be even worse..

 The patch adds a lot of complexity to the tarfile module for a use case that 
 only a few connoisseurs benefit from. It seems to alter some inherent TarFile 
 mechanics that people might rely on, e.g. the members attribute contains only 
 the members stored in the current volume not the overall entirety of members. 

Well, that doesn't make much sense to me. You say that people rely on something 
like  members attribute contains only the members stored in the current volume 
not the overall entirety of members, but as you know, python tarfile lib 
didn't support volumes before this patch, so I guess people couldn't be relying 
on that anyway.

Also please bear in mind that tarfile volumes support is part of the tar 
standard, and altough not everyone uses this, it has its niche uses (sliced 
backups etc).

 Does this patch reliably allow random-access?

Yes and no. 

No: when you open a volume for reading, the list of members is cleared as you 
pointed so you cannot access to them.

Yes: you can open any volume at the begining of a file, and it read the tarfile 
from there. I do that in my use-case.

 Would it be possible/easier to add the same functionality using a separate 
 class MultiVolumeTarFile instead?

If you find open_volume similar to open() and don't like, I'm quite sure you 
would like all the needed copy-paste having this a separate class would entail. 
Also as I said before, might not make much sense as this is part of the 
standard.

--

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



[issue20425] inspect.Signature should work on decorated builtins

2014-01-29 Thread Nick Coghlan

Nick Coghlan added the comment:

Patch looks good to me.

--

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



[issue19920] TarFile.list() fails on some files

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Well, good.

But I still have several nitpicks. Here is revised patch.

* Now ASCII encoding is used to test list() output. And tests now run even if 
sys.stdout is a StringIO.
* test_list_verbose now test that printed files are actually separated by one 
new line, not by just spaces and not by two new lines.
* safe_print was simplified and renamed to _safe_print. Now streams without the 
encoding attribute are supported.
* Minor style fixes.

--
Added file: 
http://bugs.python.org/file33792/fix_tarfile_list_print_lone_surrogate_v5.patch

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



[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Nick Coghlan

Nick Coghlan added the comment:

This proposal and patch look good to me. The current behaviour definitely isn't 
desirable:

 import inspect
 inspect.Signature.from_function(1)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/ncoghlan/devel/py3k/Lib/inspect.py, line 1888, in from_function
raise TypeError('{!r} is not a Python function'.format(func))
TypeError: 1 is not a Python function
 inspect.Signature.from_builtin(1)
 

Signature.from_function() and Signature.from_builtin() should both also be 
documented, but we may want to wait for PEP 457 and #17373 in Python 3.5 before 
sorting all that out.

--

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



[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread R. David Murray

R. David Murray added the comment:

Still works fine for me, and I just updated.

--
nosy: +r.david.murray

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Some time ago Victor proposed in issue16445 a large patch (275 changes) which 
replaces Py_DECREF(expr); expr = NULL; to safer Py_CLEAR(expr);. That patch 
contained was so large because it included cases where expr is just a local 
variable, which are safe in general.

Here are much simpler patches which make replacements only for complex 
expressions.

These patches (as Victor patch) are generated automatically by the Coccinelle 
tool (http://coccinelle.lip6.fr/).

--
components: Extension Modules, Interpreter Core
files: py_clear.spatch
messages: 209640
nosy: asvetlov, haypo, serhiy.storchaka, skrah
priority: normal
severity: normal
stage: patch review
status: open
title: Use Py_CLEAR to safe clear attributes
type: crash
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33793/py_clear.spatch

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file33795/py_clear-3.3.patch

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file33796/py_clear-2.7.patch

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka

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


--
keywords: +patch
Added file: http://bugs.python.org/file33794/py_clear-3.4.patch

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patches are generated by following command:

spatch --in-place --sp-file py_clear.spatch --dir .

--

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



[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There are other places where Py_DECREF is called after failed 
_PyBytes_Resize(). For example in PyBytes_FromObject():

if (_PyBytes_Resize(new, size)  0)
goto error;
...
  error:
/* Error handling when new != NULL */
Py_XDECREF(it);
Py_DECREF(new);
return NULL;

--
nosy: +serhiy.storchaka

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



[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Works here too. Are you sure you don't have a test.py somewhere on your path?

--

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



[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Are you sure you don't have a test.py somewhere on your path?

Oh, yes, I have.

Sorry for the noise.

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

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings

Larry Hastings added the comment:

Here's a complete patch, converts everything that I think should be converted 
for 3.4.  With this patch applied, all unit tests pass on my 64-bit Linux box.  
I plan to also run tests with the buildbots before checking it in.

The patch... well, it's 14,000 lines.  409k bytes.  Do we have any takers?

--
Added file: http://bugs.python.org/file33797/larry.clinicize.posixmodule.2.diff

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings

Larry Hastings added the comment:

By the way, my plan is to turn on the file preset just before checkin.  The 
patch is *much* easier to read without turning that on first; with the file 
preset, now you have to keep two windows in sync to compare calls to PyArg_*().

--

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Larry Hastings

Larry Hastings added the comment:

LGTM.  If it compiles cleanly and passes the unit test suite--which obviously 
it should--you may check the 3.4 patch to trunk.

--
nosy: +larry

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



[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-29 Thread Brian Quinlan

Changes by Brian Quinlan br...@sweetapp.com:


--
assignee:  - bquinlan

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings

Larry Hastings added the comment:

Sorry for the fresh update, but here's revision 3.  Only changes:

* Gave os.access a - bool return converter.

* Fixed up a lot of whitespace.  Now, major things are separated by
  two empty lines, but removed whitespace between

#ifdef HAVE_SOMETHING

  and

/*[clinic input]
os.something

  (I used to randomly have blank lines there.  No more!)

--
Added file: http://bugs.python.org/file33798/larry.clinicize.posixmodule.3.diff

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



[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Nick, thanks for the review. Committed.

--
resolution:  - fixed
status: open - closed

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



[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

 Signature.from_function() and Signature.from_builtin() should both also be 
 documented, but we may want to wait for PEP 457 and #17373 in Python 3.5 
 before sorting all that out.

I would like to wait till 3.5 too. Right now both of them are sort of private 
API, so we still have the liberty to adjust their behaviour in 3.5 if needed.

--

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



[issue20425] inspect.Signature should work on decorated builtins

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Thanks for the review!

--
resolution:  - fixed
status: open - closed

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



[issue20425] inspect.Signature should work on decorated builtins

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a9fedabb69e5 by Yury Selivanov in branch 'default':
inspect.signature: Add support for decorated (wrapped) builtins #20425
http://hg.python.org/cpython/rev/a9fedabb69e5

--
nosy: +python-dev

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



[issue20427] inspect.Signature should ensure that non-default params don't follow default ones

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca974997280d by Yury Selivanov in branch 'default':
inspect.Signature: ensure that non-default params don't follow default ones 
#20427
http://hg.python.org/cpython/rev/ca974997280d

--
nosy: +python-dev

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



[issue20427] inspect.Signature should ensure that non-default params don't follow default ones

2014-01-29 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9433b380ad33 by Yury Selivanov in branch 'default':
inspect.Signature: Make from_builtin to raise an exception if no signature can
http://hg.python.org/cpython/rev/9433b380ad33

--
nosy: +python-dev

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



[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Committed.
Thanks for the reviews!

--

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



[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0fa2750c7241 by Yury Selivanov in branch 'default':
inspect.test.getfullargspec: Add a unittest to ensure correct annotations
http://hg.python.org/cpython/rev/0fa2750c7241

--

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



[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6d1e8162e855 by Yury Selivanov in branch 'default':
inspect.getfullargspec: Use inspect.signature API behind the scenes #17481
http://hg.python.org/cpython/rev/6d1e8162e855

--
nosy: +python-dev

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Yury Selivanov

New submission from Yury Selivanov:

Should we finally deprecate getfullargspec? With the AC and positional-only 
parameters support, getfullargspec doesn't provide full information anymore.

By deprecation I mean changing its existing note Consider using the new 
Signature Object interface, which provides a better way of introspecting 
functions. to Deprecated since version 3.4: Use inspect.signature() instead.

--
messages: 209658
nosy: brett.cannon, larry, ncoghlan, yselivanov
priority: normal
severity: normal
status: open
title: inspect: Deprecate getfullargspec?
type: enhancement
versions: Python 3.4

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings

Larry Hastings added the comment:

Actually, forget about the file output preset.  It wouldn't work for 
posixmodule.   80% of the entry points are #ifdef conditional on platform 
functionality.  Which means the Clinic generated stuff needs to be #ifdef too.

It wouldn't be that hard to add the ability to #ifdef your generated code... 
but then what?  Should it generate an #endif too, right before the end of the 
block?

If it closed the #ifdef, then it'd look dumb:

/*[clinic input]*
ifdef HAVE_WHATNOT
os.whatnot
[clinic start generated code]*/
#ifdef HAVE_WHATNOT
...
static PyObject *
os_whatnot(PyModuleType *)
#endif /* HAVE_WHATNOT */
/*[clinic end generated code: output=... ]*/
#ifdef HAVE_WHATNOT
{
...
}
#endif /* HAVE_WHATNOT */


If it didn't close the #ifdef, well, that looks dumb too:

/*[clinic input]*
ifdef HAVE_WHATNOT
os.whatnot
[clinic start generated code]*/
#ifdef HAVE_WHATNOT
...
static PyObject *
os_whatnot(PyModuleType *)
/*[clinic end generated code: output=... ]*/
{
...
}
#endif /* HAVE_WHATNOT */

though maybe that's less dumb.

--

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



[issue20439] inspect.Signature: Add Signature.format method to match formatargspec functionality

2014-01-29 Thread Yury Selivanov

New submission from Yury Selivanov:

The ability to fine-tune formatting of Signature (currently Signature.__str__) 
might be useful for pydoc and idle.

--
assignee: yselivanov
messages: 209660
nosy: brett.cannon, larry, ncoghlan, terry.reedy, yselivanov
priority: normal
severity: normal
status: open
title: inspect.Signature: Add Signature.format method to match formatargspec 
functionality
type: enhancement
versions: Python 3.5

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

And here is a patch which replaces Py_XDECREF(identifier); identifier = NULL; 
to Py_CLEAR(identifier); (10 replaces in 7 files). It doesn't fix any bug 
(unless identifier is global variable), but makes a code a little cleaner. 
Compilers should generate equivalent code for both writing. It would be good to 
commit it too.

--
Added file: http://bugs.python.org/file33799/py_xdecref_clear-3.4.patch

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The curses module also has many conditionally implemented functions.

I think Argument Clinic can detect preprocessor instructions 
(#if/#ifdef/#ifndef/#else/#endif) and generate needed #if/#endif in generated 
file. This would be more robust than explicitly repeat condition in clinic 
declaration, because external conditions can be changed.

--
nosy: +serhiy.storchaka

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



[issue20418] socket.getaddrinfo fails for hostname that is all digits 0-9

2014-01-29 Thread Charles-François Natali

Changes by Charles-François Natali cf.nat...@gmail.com:


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

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Proposed patches replaced idiomatic code

Py_DECREF(ptr);
ptr = new_value;

to Py_REPLACE(ptr, new_value); which is expanded to

{
PyObject *__tmp__ = ptr;
ptr = new_value;
Py_DECREF(__tmp__);
}

(and same for Py_XDECREF - Py_XREPLACE).

Victor proposed large patch for issue16447, but this issue was closed after 
fixing particular bug. Here are updated patches, which Py_REPLACE/Py_XREPLACE 
macros for cleaner code. They are also generated automatically by the 
Coccinelle tool (http://coccinelle.lip6.fr/):

spatch --in-place --sp-file py_replace.spatch --dir .

Patch for every version contains about 50 replaces in about 21-24 files.

--
components: Extension Modules, Interpreter Core
files: py_replace.spatch
messages: 209663
nosy: benjamin.peterson, georg.brandl, haypo, larry, serhiy.storchaka, skrah
priority: normal
severity: normal
stage: patch review
status: open
title: Use Py_REPLACE/Py_XREPLACE macros
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33800/py_replace.spatch

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file33803/py_replace-2.7.patch

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file33802/py_replace-3.3.patch

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka

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


--
nosy: +benjamin.peterson, georg.brandl

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka

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


--
keywords: +patch
Added file: http://bugs.python.org/file33801/py_replace-3.4.patch

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Brett Cannon

Brett Cannon added the comment:

Although I say do it in 3.5.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Brett Cannon

Brett Cannon added the comment:

I vote deprecation with no stated plans of removal

--

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Something similar was proposed in issue3081.

--
nosy: +pitrou

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



[issue17727] document that some distributions change site.py defaults

2014-01-29 Thread Georg Brandl

Georg Brandl added the comment:

Matthias and I agreed this isn't necessary since on the relevant distribution 
it's already documented.

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

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



[issue20439] inspect.Signature: Add Signature.format method to match formatargspec functionality

2014-01-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

For an api, given that we have
formatargvalue(*getargvalues, ...)
formatargspec(*getfullargspec, ...)
we might add
formatsignature(signature, ...)
with the default being the same as str(signature).

I checked the first 80 hits at
http://code.ohloh.net/search?s=formatargspec%28p=7pp=0fl=Pythonmp=1ml=1me=1md=1ff=1filterChecked=true
(which I found with 'search code' on Google) and 10-15% used one of the 
extended args. Another at least 5% used [1:=1] to strip of '(' and ')', so any 
new function might have 'parens=True' option.

Idle uses the default formatargspec, like almost all other uses, and I presume 
str(sig) is the same except for where formatargspec is arguably wrong (bound 
methods).  A calltip is a tip, not a doc, so I am most concerned that parameter 
names not be misleading, as in pattern.match(string) having the parameter 
misnamed 'pattern' in the C code and I presume, in .signature (absent being 
fixed). But that is not .signature's fault.

--

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I do not understand why that issue was closed. Probably Py_SETREF is not the 
best name but this can be discussed. Adverse idea about Py_INCREF also looked 
questionable. But many people supported the introduction of a macro for safe 
replacement.

And now we see that sources contain 50 potential bugs which can be fixed either 
by using special macros or by manually inlining them.

--

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Brett Cannon

Brett Cannon added the comment:

It all seems like a good idea to me and I like the Py_REPLACE naming (I was 
going to suggest Py_SWAP, but Py_XSWAP looks too weird to me).

--
nosy: +brett.cannon

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



[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Terry J. Reedy

New submission from Terry J. Reedy:

My Win7, AMD64 Win7, Server 2003, but not x86 Win7 buildbot or any others that 
run test
==
FAIL: test_split (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File C:\buildbot.python.org\2.7.kloth-win64\build\lib\test\test_tcl.py, 
line 321, in test_split
self.assertEqual(split(arg), res)
AssertionError: Tuples differ: ('12', u'\u20ac', u'\u20ac', '... != (12, 
u'\u20ac', u'\u20ac', (3

First differing element 0:
12
12

- ('12', u'\u20ac', u'\u20ac', '3.4')
?  -  -^   ^

+ (12, u'\u20ac', u'\u20ac', (3.4,))
?^   ^ +


==
FAIL: test_splitlist (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File C:\buildbot.python.org\2.7.kloth-win64\build\lib\test\test_tcl.py, 
line 281, in test_splitlist
self.assertEqual(splitlist(arg), res)
AssertionError: Tuples differ: ('1', u'\u20ac', u'\u20ac', '3... != (1, 
u'\u20ac', u'\u20ac', (3.4...

First differing element 0:
1
1

- ('1', u'\u20ac', u'\u20ac', '3.4')
?  - -^   ^

+ (1, u'\u20ac', u'\u20ac', (3.4,))
?   ^   ^ +

I do not know which is correct and which wrong.

--
components: Tkinter
messages: 209671
nosy: serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.
type: behavior
versions: Python 2.7

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



[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What is Tcl/Tk patchlevel? It is reported somewhere in tests log.

--

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



[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am running tcl8.5.2.1 and tk8.5.2.0 as installed by 
Tools/buildbots/external.bat. I presume same for Windows buildbots. I did not 
find 'tcl' or 'tk' other than in test names in the log I checked.

--

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



[issue20406] Use application icon for IDLE

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

We can steal icon from http://www.python.org/favicon.ico. It contains three 
variants for different size (16, 32 and 48 pixels). Here is extracted and 
converted to GIF images. Please try them and original favicon on Windows. Or 
may be we even can cut larger icon from large official Python logo.

--
Added file: http://bugs.python.org/file33804/python_16x16.gif
Added file: http://bugs.python.org/file33805/python_32x32.gif
Added file: http://bugs.python.org/file33806/python_48x48.gif

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20406
___attachment: python_16x16.gifattachment: python_32x32.gifattachment: python_48x48.gif___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Stefan, is this one still relevant?

If it is, I can review it (I have a couple of things to improve) and push in 
3.4, as it doesn't really change any API.

--
nosy: +yselivanov
versions:  -Python 3.3

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



[issue20231] Argument Clinic accepts no-default args after default args

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Should this one be closed now?

FWIW, signature object validates this case now.

--
dependencies: +Argument Clinic rollup patch, 2014/01/25
nosy: +yselivanov

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



[issue20406] Use application icon for IDLE

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

As for desctop icon, see also issue1353344 and issue15869.

--

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



[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Sadly, there is nothing we can do about it, as we simply don't have absolute 
paths in __file__ attributes in your case.

--
nosy: +yselivanov
resolution:  - rejected
status: open - closed

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



[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is a duplicate of issue19320.

--
resolution:  - duplicate
superseder:  - Tkinter tests ran with wantobjects is false

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



[issue19320] Tkinter tests ran with wantobjects is false

2014-01-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Terry in issue20441 reported problems with same Tcl/Tk 8.5.2.

--

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



[issue8639] Allow callable objects in inspect.getfullargspec

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

This is now fixed in #17481.

--
dependencies: +inspect.getfullargspec should use __signature__
nosy: +yselivanov
resolution:  - fixed
status: open - closed

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



[issue20011] Changing the signature for Parameter's constructor

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

I don't think this is a good idea, as it would require those who read with the 
code to know about this default. Explicit is definitely better than implicit in 
this case.

--
nosy: +yselivanov
resolution:  - rejected
status: open - closed

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



[issue20442] inspect: Document Signature Parameter constructors' signatures

2014-01-29 Thread Yury Selivanov

New submission from Yury Selivanov:

inspect.Signature  inspect.Parameter classes lack clear documentation about 
their constructors. Patch is attached.

--
files: signature_docs_01.patch
keywords: patch
messages: 209684
nosy: eric.araujo, ezio.melotti, georg.brandl, larry, ncoghlan, yselivanov
priority: normal
severity: normal
status: open
title: inspect: Document Signature  Parameter constructors' signatures
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file33807/signature_docs_01.patch

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



[issue15869] IDLE: Include .desktop file and icon

2014-01-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Older issue has more patches and more discussion.

--
nosy: +terry.reedy
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - python.desktop

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



[issue1353344] python.desktop

2014-01-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I just closed #15869 as a duplicate of this. I has another patch and possibly 
useful discussion.

To move forward, a concrete repository patch is needed. I only see here pieces 
of such a patch. I do not know how much of the Windows installation files are 
in the repository and how much in separate files. I know even less about Linux, 
what 'installation' means on that system, and how multiple languages would be 
handled.

I should think that an addition could be made to all open branches. While 
anything outside of idlelib is not covered by PEP 434, I think the same 
principles apply.

--
versions: +Python 2.7, Python 3.4

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Nice work, LGTM!

--
nosy: +pitrou

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



[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Jeremy Kloth

Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:


--
nosy: +jkloth

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



[issue19320] Tkinter tests ran with wantobjects is false

2014-01-29 Thread Jeremy Kloth

Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:


--
nosy: +jkloth

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



[issue14512] Pydocs module docs server not working on Windows.

2014-01-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

On current 3.3.4 and 3.4.0 start menus, clicking Module Docs does nothing that 
I can see except add a useless entry to the Frequent Programs list. 

I think the entry should be removed from the menu until it is made to work. All 
it does now is frustrate people and make Python look bad.

--
nosy: +larry
versions: +Python 3.4 -Python 3.2

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



[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Antoine Pitrou

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


--
versions:  -Python 2.7

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



[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

There's not much point in changing the 2.7 tests at this point. It's reasonable 
to change both 3.3 and 3.x, so as to avoid divergence.

--

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



[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d844b31471b5 by Antoine Pitrou in branch '3.3':
Issue #20373: generalize use of test.script_helper in test_warnings.  Patch by 
Arfrever.
http://hg.python.org/cpython/rev/d844b31471b5

New changeset 04b658b3fe7c by Antoine Pitrou in branch 'default':
Issue #20373: generalize use of test.script_helper in test_warnings.  Patch by 
Arfrever.
http://hg.python.org/cpython/rev/04b658b3fe7c

--
nosy: +python-dev

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



[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thanks for the patch!

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

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



[issue20406] Use application icon for IDLE

2014-01-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Martin: is the medium 'python logo on white page' icon used in the Start menu 
in the repository or otherwise accessible? If not, could you upload it?
---

I closed #15869 in favor of #1353344.

Tk does not load .ico files (I tried). idle.gif is 16x16 because pc/py.ico is. 
That seems to be the standard default size for file lists, menus, including 
context menus, and title bars. On the other hand, I have my system set for 
larger type and gui objects, so I am better off with 24x24 or downscaled 32x32 
icons. (So python_32x32 looks better than the 16x16 version.)

I would like to use an 'idle' icon for Idle windows rather than the generic 
Python icon. I just noticed that there is a smaller 'white page with python 
logo' used for the Idle entry in the start menu#. It is not just a scaled-down 
version of the large white-page icon used on the taskbar. It is different from 
and better than py.ico. I think this is what we should use as menu and title 
bar icons are usually the same.

* The same icon is also used for the 'Module docs' entry, which is supposed to 
be bring up a tkinter window running a pydoc script (it does in 2.7).

--
nosy: +loewis

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Nick Coghlan

Nick Coghlan added the comment:

As Brett said - let's do a documented deprecation in 3.5.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
versions: +Python 3.5 -Python 3.4

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



[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread R. David Murray

R. David Murray added the comment:

Note that this is fixed in 3.4.  That is, in 3.4 __file__ paths are made 
absolute when the import happens.

--

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



[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Hm, maybe just for the imports? This simple script, run it directly:

test.py:

   def foo(): pass
   print(foo.__code__.co_filename)

$ python3.4 test.py will still print relative path test.py.

Hence, if you do 'os.chdir' in the above script, the introspection code will 
break.  There are many similar issues on the tracker, btw.

--

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



[issue20417] ensurepip should not be installed with --without-ensurepip

2014-01-29 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

Some distributions have policies about not bundling external code.
ensurepip currently bundles some versions of setuptools and pip.

--

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



[issue20417] ensurepip should not be installed with --without-ensurepip

2014-01-29 Thread Donald Stufft

Donald Stufft added the comment:

Yes I am aware of that. However ensurepip is also required to maintain 
functionality of the venv module in 3.4. See the guidelines in 
http://www.python.org/dev/peps/pep-0453/#recommendations-for-downstream-distributors
 which explicitly mentions the fact that this is functionality equivalent to 
the same bundling that occurs in virtualenv and I've yet to see a distribution 
not include that and not make an exception to the bundling policy.

--

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



[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread R. David Murray

R. David Murray added the comment:

__file__ is absolute for imports, yes.  I didn't check co_filename, maybe that 
needs to be fixed too.

--

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



[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Yes. I'll create an issue for that.

--

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



[issue20443] __code__. co_filename should always be an absolute path

2014-01-29 Thread Yury Selivanov

New submission from Yury Selivanov:

There are many issues on tracker related to the relative paths in co_filename. 
Most of them are about introspection functions in inspect module--which are 
usually broken after 'os.chdir'. 

Test case: create a file t.py:

   def foo(): pass
   print(foo.__code__.co_filename)

Execute it with '$ python t.py' - it will print 't.py'.

Ideally, when executing a python file, interpreter should expand all relative 
paths for __file__ and __code__.co_filename attributes.

--
messages: 209699
nosy: r.david.murray, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: __code__. co_filename should always be an absolute path
type: behavior
versions: Python 3.5

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



[issue20443] __code__. co_filename should always be an absolute path

2014-01-29 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
nosy: +ncoghlan

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



[issue16991] Add OrderedDict written in C

2014-01-29 Thread Yury Selivanov

Yury Selivanov added the comment:

Can we still merge this in 3.4?

--
nosy: +yselivanov

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



[issue20444] Reduce logging.config.Converting duplication of code

2014-01-29 Thread dongwm

Changes by dongwm ciici...@gmail.com:


--
components: Library (Lib)
files: logging_config.patch
keywords: patch
nosy: dongwm
priority: normal
severity: normal
status: open
title: Reduce logging.config.Converting duplication of code
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file33808/logging_config.patch

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Unless some known bugs are being fixed, this should be 3.4 only.

--
nosy: +rhettinger

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings

Larry Hastings added the comment:

That's a really good idea!  I'm still thinking about how I'd do it, but I think 
I'm gonna give it a try.

--

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



[issue20442] inspect: Document Signature Parameter constructors' signatures

2014-01-29 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue20442] inspect: Document Signature Parameter constructors' signatures

2014-01-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0a3201aab2b8 by Yury Selivanov in branch 'default':
inspect.docs: Document constructors for Signature  Parameter #20442
http://hg.python.org/cpython/rev/0a3201aab2b8

New changeset 885c709d0dde by Yury Selivanov in branch '3.3':
inspect.docs: Document constructors for Signature  Parameter #20442
http://hg.python.org/cpython/rev/885c709d0dde

--
nosy: +python-dev

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



  1   2   >