[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

[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

[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.)

[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

[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

[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

[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

[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

[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:

[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

[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

[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

[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

[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 _

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 ___ __

[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

[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

[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:

[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

[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). -- __

[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

[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 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 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

[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

[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:

[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

[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:

[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

[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 ___

[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 __

[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

[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

[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:

[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

[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

[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

[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

[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 ___ __

[issue19573] Fix the docstring of inspect.Parameter and the implementation of _ParameterKind

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Antony, the docstrings are fixed. Could you please provide a patch just for the _ParameterKind-Enum refactoring? I'll incorporate it into 3.5 then. -- assignee: docs@python -> yselivanov ___ Python tracker

[issue20423] io.StringIO newline param has wrong default

2014-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Using '\n' as default is normal: StringIOs are not stored on disk so there's no point in converting newlines by default (it's only slower while not improving interoperability). '\n' is the default line separator in Python. So we should just fix the docs here.

[issue19573] Fix the docstring of inspect.Parameter and the implementation of _ParameterKind

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

[issue15582] Enhance inspect.getdoc to follow inheritance chains

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:

[issue20379] help(instance_of_builtin_class.method) does not display self

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: FWIW, I solved the first arg consistency for inspect.getfullargspec in #17481. The latest patch always shows the first argument (self) for both python-defined and C-defined methods. -- nosy: +yselivanov ___ Python t

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

2014-01-28 Thread STINNER Victor
STINNER Victor added the comment: I agree that StringIO should accept lone surrogates as str += str accept them. The patch looks good, but please mention the issue number in the unit test. And add an empty line between the two parts of the test (reader, writer). -- ___

[issue20414] Python 3.4 has two Overlapped types

2014-01-28 Thread STINNER Victor
STINNER Victor added the comment: > See my review in Rietveld. Thanks Martin, but I cannot answer to your question. I didn't write this part of the code and I don't know it. Maybe Richard or Antoine would be able to answer? -- ___ Python tracker <

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

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: A patch is attached, please review. -- keywords: +needs review, patch stage: -> patch review Added file: http://bugs.python.org/file33784/from_builtin_errors_01.patch ___ Python tracker

[issue20425] inspect.Signature should work on decorated builtins

2014-01-28 Thread Yury Selivanov
New submission from Yury Selivanov: inspect.signature should work with decorated builtins. Suppose I want to create a cached version of 'min' builtin: cached_min = functools.lru_cache()(min) The signature of the 'cached_min' should match the signature of 'min'. The patch is attached.

[issue20425] inspect.Signature should work on decorated builtins

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

2014-01-28 Thread Christopher Welborn
Christopher Welborn added the comment: Using 'review' with pathlib.readwrite4.patch, it looks like it only modifies one file (test_pathlib.py), which can't be right. Maybe you edited the patch directly instead of generating a new one? (also, the line-counts haven't changed and I think they wer

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

2014-01-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Unlike to io.StringIO, _pyio.StringIO doesn't work with lone surrogates. >>> import io, _pyio >>> io.StringIO('\ud880') <_io.StringIO object at 0xb71426ec> >>> _pyio.StringIO('\ud880') Traceback (most recent call last): File "", line 1, in File "/home/s

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: Your test program works for VS2010 as well (/W4 is unnecessary, the default warning level gives the warning), but still doesn't answer the question of why the math module (specifically math.hypot) doesn't show the problem. I understand why both of your cases *do

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-28 Thread Zachary Ware
Changes by Zachary Ware : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20423] io.StringIO newline param has wrong default

2014-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other hand, may be the behavior of io.StringIO is wrong. Because it is different from io.TextIOWrapper. >>> io.TextIOWrapper(io.BytesIO(b'abc\r\ndef\nghi\rklm')).readlines() ['abc\n', 'def\n', 'ghi\n', 'klm'] >>> io.TextIOWrapper(io.BytesIO(b'abc\r\ndef\ng

[issue20423] io.StringIO newline param has wrong default

2014-01-28 Thread couplewavylines
couplewavylines added the comment: Serhiy, you're right, I now see the default behavior is "newline='\n'". So, the header is still wrong, and the text is "The default is to do no newline translation" may be incorrect too? Or just unclear (to me anyway)? -- ___

[issue20423] io.StringIO newline param has wrong default

2014-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, actual default is '\n'. >>> io.StringIO('abc\r\ndef\nghi\rklm').readlines() ['abc\r\n', 'def\n', 'ghi\rklm'] >>> io.StringIO('abc\r\ndef\nghi\rklm', newline=None).readlines() ['abc\n', 'def\n', 'ghi\n', 'klm'] >>> io.StringIO('abc\r\ndef\nghi\rklm', newlin

[issue20414] Python 3.4 has two Overlapped types

2014-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: See my review in Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20423] io.StringIO newline param has wrong default

2014-01-28 Thread couplewavylines
Changes by couplewavylines : Added file: http://bugs.python.org/file33780/no_translation_output.txt ___ Python tracker ___ ___ Python-bugs-lis

[issue20423] io.StringIO newline param has wrong default

2014-01-28 Thread couplewavylines
New submission from couplewavylines: In io.StringIO, the newline argument's default is currently documented as "newline=None" in the section header. However, it's described this way: "The default is to do no newline translation." The behavior of io.StringIO is consistent with this descriptio

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-28 Thread Brecht Van Lommel
Brecht Van Lommel added the comment: For Visual Studio 2013, here's how to redo the problem. Take this simple program: #include int main(int argc, char **argv) { return (int)hypot(rand(), rand()); } And compile it: cl.exe test.c -I include/python3.3 lib/python33.lib /W4 c:\program file

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Georg. I'll leave it until after the 3.3.4 release. For simplicity's sake I'll leave it for 3.4.1 as well unless Larry says otherwise. -- priority: release blocker -> deferred blocker ___ Python tracker <

[issue18846] python.exe stdout stderr issues again

2014-01-28 Thread SSmith
SSmith added the comment: Interestingly to me, you 're right! Powershell interpreter does the same. Ironically, failure to launch python from Powershell ISE(Integrated Scripting Environment) was what triggered this bug report. And as I see know, PowershellISE doesnt support launching a 'nes

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

2014-01-28 Thread Ariel Glenn
Ariel Glenn added the comment: Yes, I had checked that just in case; getaddrinfo(3) works for the all-digit hostname, returning no error. I'm using these hints: memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_flags

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: Sorry, I wasn't entirely clear. By "compile fine", I meant "compiles without warnings, and actually works when you try to use it". Both math and cmath make use of hypot (as defined in pyconfig.h), but don't have any problems. They also have no problems with yo

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-28 Thread Tabrez Mohammed
Tabrez Mohammed added the comment: My extension doesn't compile because I treat warnings as errors. I believe Blender compiles fine, but crashes at runtime because of the infinite recursion (see the second code snippet in Brecht's response (http://bugs.python.org/msg208981). -- _

[issue17481] inspect.getfullargspec should use __signature__

2014-01-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: Attaching a conglomerate patch consisting of clinic_resource_v2.patch, clinic_typeobject_v2.patch, clinic_listobject_v3.patch, clinic_marshal_v4.patch, and clinic_floatobject_v2.patch, with updated (post-#20326) clinic output, for easier review. -- Adde

[issue17481] inspect.getfullargspec should use __signature__

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Larry and Nick, Please review the final patch (getargsspec_04.patch). I'd like to commit it tomorrow. This one is the last one (hopefully), and it supports builtin methods properly -- i.e. works around 'self' parameter correctly. To do that, I check if the '

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

2014-01-28 Thread R. David Murray
R. David Murray added the comment: getaddrinfo is a thin wrapper around the system call. Have you tried the same thing in a C program and had it work? My guess would be that the all-numeric 'hostname' is being treated as the integer form of an IP address. I can't immediately find any documen

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thank you, Terry. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3544827d42e6 by Yury Selivanov in branch 'default': inspect.signature: Handle bound methods with '(*args)' signature correctly #20401 http://hg.python.org/cpython/rev/3544827d42e6 -- nosy: +python-dev __

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

2014-01-28 Thread Yury Selivanov
New submission from Yury Selivanov: Right now it may return `None` if no signature can be returned for the given builtin. If we decide to implement #17373 in 3.5, I'd like all three methods -- from_builtin, from_function, from_callable -- to either return a signature or to raise an exception.

[issue20421] expose SSL socket protocol version

2014-01-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: SSL sockets should provide a way to query the current protocol version (e.g. "TLSv1.2"). OpenSSL makes it easy through SSL_get_version(). Open question is whether we return the string returned by SSL_get_version(), or we convert it to one of the constants ss

[issue20414] Python 3.4 has two Overlapped types

2014-01-28 Thread STINNER Victor
STINNER Victor added the comment: Can please someone review overlapped_dealloc.patch? I would like to apply it on Python 3.4. -- ___ Python tracker ___ _

[issue20420] BufferedIncrementalEncoder violates IncrementalEncoder interface

2014-01-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The documentation of IncrementalEncoder.getstate() says: """ Return the current state of the encoder which must be an integer. The implementation should make sure that 0 is the most common state. (States that are more complicated than integers can be conve

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

2014-01-28 Thread Michael Gubser
New submission from Michael Gubser: One can only set the ECDH curve name via SSLContext.set_ecdh_curve(). ssl.wrap_socket() doesn't have a parameter to use it for the wrapping of the basic socket. Therefore one always has to do the detour over SSLContext. -- components: Library (Lib) m

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: I have high hopes for this latest update :) -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20075] help(open) eats first line

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: With #20326 fixed, this is no longer an issue. Gennadiy, thank you for the patch, and I'm sorry it ended up being unused. -- resolution: -> out of date stage: commit review -> committed/rejected status: open -> closed ___

[issue20075] help(open) eats first line

2014-01-28 Thread Larry Hastings
Larry Hastings added the comment: Yup, sorry about that. We're moving pretty fast with the Derby right now, and sometimes we don't figure out something important until later, and sometimes that means wasted effort. Sorry! -- ___ Python tracker

[issue18846] python.exe stdout stderr issues again

2014-01-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Hmm, I'm not sure what the precedence is for that. Where do other interactive languages print their header to? -- ___ Python tracker ___ ___

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: I'm having difficulty wrapping my head around why the math and cmath modules (both of which use hypot) compile fine, but your extensions don't. Anyone have any insight into why that is? -- ___ Python tracker

[issue20414] Python 3.4 has two Overlapped types

2014-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: I'm fine with this refactoring. The upstream tulip/asyncio repo will keep its own _overlapped for the purpose of supporting Python 3.3. (I'm not sure what Victor wants to do with Trollius but probably the same.) -- __

[issue3158] Doctest fails to find doctests in extension modules

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: Does this patch fix things for you? -- resolution: fixed -> status: closed -> open Added file: http://bugs.python.org/file33776/issue3158.__objclass__-fix.diff ___ Python tracker ___

[issue18846] python.exe stdout stderr issues again

2014-01-28 Thread SSmith
SSmith added the comment: r/3.4b4/3.4b3 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue18846] python.exe stdout stderr issues again

2014-01-28 Thread SSmith
SSmith added the comment: Please pay some attention to this. This ISSUE is still valid in 3.4b4! Issue #18338 resolves only part of the problem. Look at this part of the OP: invoking python.exe prints its default output to stderr: [ in]>python 1> null [out]>Python 3.4.0a1 (v3.4.0a1:46535f65e7

[issue20414] Python 3.4 has two Overlapped types

2014-01-28 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

  1   2   >