[issue1764286] inspect.getsource does not work with decorated functions

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ __

[issue19140] inspect.Signature.bind() inaccuracies

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- assignee: -> yselivanov nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue3158] Doctest fails to find doctests in extension modules

2014-01-28 Thread Julian Taylor
Julian Taylor added the comment: the patch seems to work for me in ipython. -- nosy: +jtaylor ___ Python tracker ___ ___ Python-bugs-li

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

2014-01-28 Thread Charles-François Natali
Charles-François Natali added the comment: The culprint isn't Python, but the libc: """ $ ./python -c "import socket; print(socket.getaddrinfo('836937931829', 80, socket.AF_INET, 0, socket.SOL_TCP))" Traceback (most recent call last): File "", line 1, in socket.gaierror: [Errno -2] Name or s

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-28 Thread Ram Rachum
Ram Rachum added the comment: You're right Chris, I edited the patch naively and didn't know it wouldn't work. Your patch looks great except you probably want to change "except" to "accept" :) I hope I'll have time to work on the documentation addition soon. I'm assuming we want nothing more

[issue20389] clarify meaning of xbar and mu in pvariance/variance of statistics module

2014-01-28 Thread Julian Taylor
Changes by Julian Taylor : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20426] Compiling a regex with re.DEBUG should force a recompile

2014-01-28 Thread leewz
New submission from leewz: Compiling a regex with the `re.DEBUG` flag indicates that the user wants to see the debug output. `re.compile` is cached, though, so there is the possibility of no output. Example: import re re.compile('1',re.DEBUG) #expected output re.compile('1',re.DEBUG) #no outpu

[issue20426] Compiling a regex with re.DEBUG should force a recompile

2014-01-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> test needed versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

[issue19140] inspect.Signature.bind() inaccuracies

2014-01-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9cb32426d580 by Yury Selivanov in branch 'default': inspect.Signature.bind: Fix pos-only params with defaults; fix *args in named args #19140 http://hg.python.org/cpython/rev/9cb32426d580 -- nosy: +python-dev __

[issue19140] inspect.Signature.bind() inaccuracies

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Pushed in 3.4. Yann, thank you for the bug report and the patch! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2014-01-28 Thread Yury Selivanov
New submission from Yury Selivanov: Right now it's possible to manually create signatures like "(a=1, b)". Patch is attached. -- assignee: yselivanov files: sig_validation_01.patch keywords: needs review, patch messages: 209598 nosy: brett.cannon, larry, ncoghlan, yselivanov priority: n

[issue11770] inspect.dir_static

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19281] add __objclass__ to the docs

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Should we commit this in 3.4? -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list maili

[issue16808] inspect.stack() should return list of named tuples

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16808] inspect.stack() should return list of named tuples

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20428] _Py_open does not work with O_CREAT

2014-01-28 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: The _Py_open function in Python/fileutils.c cannot be given correctly the flag O_CREAT. According to the POSIX spec, open(2) _must_ be given an additional mode argument when O_CREAT is used. _Py_open should be fixed to either to use a reasonable defaul

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2014-01-28 Thread STINNER Victor
STINNER Victor added the comment: The new asyncio module doesn't have this performance issue: it allows to wait asynchronously for the process exit without busy loop. Right now, there is no high-level API for that, but it is very likely that Python 3.4 final will provide a simple proc.wait() m

[issue20428] _Py_open does not work with O_CREAT

2014-01-28 Thread STINNER Victor
STINNER Victor added the comment: I already search the "default mode" but I didn't see it in the manual page. Is it 0666? > The _Py_open function in Python/fileutils.c cannot be given correctly the > flag O_CREAT. What is the current behaviour? A new _Py_open_mode() function can be added. Wh

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2014-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Right now, there is no high-level API for that, but it is very likely > that Python 3.4 final will provide a simple proc.wait() method for > that. We aren't supposed to merge new features in 3.4 anymore. I know Tulip uses a separate repo, but you should only m

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2014-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: I am trying to be conservative in changing existing Tulip APIs, but I hope to get an exemption from Larry for the "convenience" process API that we are currently adding in Tulip issue 115 (http://code.google.com/p/tulip/issues/detail?id=115). -- __

[issue12916] Add inspect.splitdoc

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue12916] Add inspect.splitdoc

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19239] add inspect functions to retrieve attributes from both old dir() and overridden dir()

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20429] 3.3.4rc1 install deleted Windows taskbar icons

2014-01-28 Thread Terry J. Reedy
New submission from Terry J. Reedy: When I installed 3.3.4rc1, it unpinned all the icons from my Win 7 taskbar. Since I have about 15, is took several minutes to recreate by setup. Unless this is a unique glitch, this should be a release blocker until fixed. This happened after the install pau

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-28 Thread Christopher Welborn
Changes by Christopher Welborn : Removed file: http://bugs.python.org/file33782/pathlib.readwrite3_with_exclusive.patch ___ Python tracker ___ __

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-28 Thread Christopher Welborn
Christopher Welborn added the comment: hah, i did. I was working with 'except'ions and accidentally wrote 'except' instead of 'accept'. rookie mistake, its fixed now. As far as the docs I really can't say. Antoine would have the answers. -- Added file: http://bugs.python.org/file33786

[issue20419] it's not possible to set ECDH curve name via ssl.wrap_socket

2014-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: ssl.wrap_socket is pretty much a legacy API. It has too many parameters already, and I don't really want to make it worse. The SSLContext API is designed to be more palatable, even though it's a bit less compact. (also, ssl.wrap_socket will implicitly create a

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2014-01-28 Thread Larry Hastings
Larry Hastings added the comment: I expect to be pretty lenient when it comes to asyncio, as it has no installed base yet and is marked provisional. Also it has a lot of eyes on it right now, so I'm kind of assuming the vetting process for changes at this late date is getting a lot of scrutin

[issue20428] _Py_open does not work with O_CREAT

2014-01-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > What is the current behaviour? I don't think the behaviour is defined. At least, I know it causes recent GCC/glibc combination to throw a compilation error when _FORTIFY_SOURCE is defined: http://www.eglibc.org/cgi-bin/viewvc.cgi/trunk/libc/io/open_2

[issue20338] Idle: increase max calltip width

2014-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 1/28/2014 8:09 AM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > On 1/28/2014 4:48 AM, Stefan Krah wrote: >> >> Stefan Krah added the comment: >> >> I think test_idle is failing on many build slaves following this >> commit. > > The two failu

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-28 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20430] argparse.SUPPRESS

2014-01-28 Thread jzwinck
New submission from jzwinck: argparse.SUPPRESS is a special object which can be used in various parts of argparse to say "do nothing." One place where it does not seem to work is in an argument's "dest". This is despite some of the plumbing using "dest=SUPPRESS" internally. It can be made t

[issue20430] Make argparse.SUPPRESS work as an argument "dest"

2014-01-28 Thread jzwinck
Changes by jzwinck : -- title: argparse.SUPPRESS -> Make argparse.SUPPRESS work as an argument "dest" ___ Python tracker ___ ___ Pytho

[issue15216] Support setting the encoding on a text stream after creation

2014-01-28 Thread Nikolaus Rath
Nikolaus Rath added the comment: I'm about 40% done with translating Victor's patch into C. However, in the process I got the feeling that this approach may not be so good after all. Note that: * The only use-case for set_encoding that I have found was changing the encoding of sys.{stdin,std

[issue20431] Should posix functions that accept fd also accept objects with .fileno()?

2014-01-28 Thread Larry Hastings
New submission from Larry Hastings: While working on posixmodule.c today I noticed that some functions that accept file descriptors call PyObject_AsFileDescriptor(). This function accepts ints. It *also* accepts objects that expose a .fileno() attribute, calling that attribute and using the

[issue20431] Should posix functions that accept fd also accept objects with .fileno()?

2014-01-28 Thread Larry Hastings
Larry Hastings added the comment: The functions that use PyObject_AsFileDescriptor() also call _PyVerify_fd(), which magically determines whether or not the file descriptor is valid. Only works on Windows though. -- ___ Python tracker

[issue20432] Argument Clinic: when cloning functions with path_t, path_t retains the old name

2014-01-28 Thread Larry Hastings
New submission from Larry Hastings: If you have: module.f1 path: path_t ... module.f2 = module.f1 Then the initializer for "path" in module_f2 will supply "f1" as the function name for error messages. -- assignee: larry messages: 209615 nosy: larry priority: norma

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

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: New patch version: sig_validation_02.patch This one is a bit more correct--it uses Parameter's private '_partial_kwarg' to correctly validate partial signatures. -- Added file: http://bugs.python.org/file33787/sig_validation_02.patch _

[issue16808] inspect.stack() should return list of named tuples

2014-01-28 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue11770] inspect.dir_static

2014-01-28 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue12916] Add inspect.splitdoc

2014-01-28 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20426] Compiling a regex with re.DEBUG should force a recompile

2014-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue17441. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-lis

[issue18228] AIX locale parsing failure

2014-01-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20431] Should posix functions that accept fd also accept objects with .fileno()?

2014-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6650] sre_parse contains a confusing generic error message

2014-01-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue20433] add aliasedname() and namedaliases() methods to unicodedata module

2014-01-28 Thread Shriramana Sharma
New submission from Shriramana Sharma: Currently we have unicodedata.name() which returns the formal character name of the character chr as per the second column in UnicodeData.txt from http://www.unicode.org/Public/UNIDATA/. However, there are a few characters where the formal character name

[issue7262] codecs.open() + eol (windows)

2014-01-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Documentation -Library (Lib) keywords: +easy stage: -> needs patch versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6 ___ Python tracker

[issue8264] hasattr doesn't show private (double underscore) attributes exist

2014-01-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review stage: needs patch -> patch review versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker __

[issue15216] Support setting the encoding on a text stream after creation

2014-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: The specific motivating use cases I'm aware of involve the standard streams (for example, "How would you implement the equivalent of iconv in Python 3?"). There's actually the workaround for the missing feature right now: replace the standard streams with new strea

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

2014-01-28 Thread Larry Hastings
Larry Hastings added the comment: Submitting this just so I beat the deadline. I'm *about* half done, but I'm still working on it, so I'm just going to keep going--should only be another couple of hours. (If somebody else pulls this stunt, I guess I'll accept their final patch too.)

[issue20433] add aliasedname() and namedaliases() methods to unicodedata module

2014-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue18234. -- nosy: +serhiy.storchaka resolution: -> duplicate status: open -> pending superseder: -> Unicodedata module should provide access to codepoint aliases ___ Python tracker

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

2014-01-28 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch to accommodate Serhiy's request. I added new test soutside CommandLineTest. The fix always uses sys.stdout.encoding. The test_list_command and test_list_command_verbose uses testtarnames now. -- Added file: http://bugs.python.org/file3

<    1   2