[issue28177] Compilation failure on Debian 4

2016-09-15 Thread Martin Panter
Martin Panter added the comment: For the record, there is more discussion of this in Issue 28092 -- nosy: +martin.panter superseder: -> Build failure for 3.6 on Centos 5.11 ___ Python tracker

[issue28177] Compilation failure on Debian 4

2016-09-15 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___

[issue28177] Compilation failure on Debian 4

2016-09-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: 3.5 probably works. On Thu, Sep 15, 2016, at 22:21, David wrote: > > David added the comment: > > Thanks. > > What is the last official version of Python which does support GCC > versions > < 4.3 ? > > On Fri, Sep 16, 2016 at 7:20 AM, Benjamin Peterson >

[issue28177] Compilation failure on Debian 4

2016-09-15 Thread David
David added the comment: Thanks. What is the last official version of Python which does support GCC versions < 4.3 ? On Fri, Sep 16, 2016 at 7:20 AM, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > We don't support GCC versions < 4.3 anymore. > >

[issue28177] Compilation failure on Debian 4

2016-09-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: We don't support GCC versions < 4.3 anymore. -- nosy: +benjamin.peterson resolution: -> wont fix status: open -> closed ___ Python tracker

[issue28177] Compilation failure on Debian 4

2016-09-15 Thread David
New submission from David: Hi there. On Debian 4, while running 'make' against a downloaded and extracted Python-3.6.0b1.tar.xz, I get this error: gcc -pthread -c -fno-strict-aliasing -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-std=c99 -Wextra

[issue28176] Fix callbacks race in asyncio.SelectorLoop.sock_connect

2016-09-15 Thread Berker Peksag
Changes by Berker Peksag : -- status: open -> closed ___ Python tracker ___ ___

[issue26149] Suggest PyCharm Community as an editor for Unix platforms

2016-09-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Mention Pycharm community edition, and provide link to the wiki -- keywords: +patch nosy: +Mariatta Wijaya Added file: http://bugs.python.org/file44686/docupdate.patch ___ Python tracker

[issue24363] httplib fails to handle semivalid HTTP headers

2016-09-15 Thread Martin Panter
Martin Panter added the comment: I pushed my Py 2 patch, since it is simpler and does not interfere with other modules. But it would still be good to get feedback on policy-flag.patch for Python 3. -- ___ Python tracker

[issue10765] Build regression from automation changes on windows

2016-09-15 Thread Zachary Ware
Zachary Ware added the comment: The build system has been completely rewritten at least once since this was opened; this should no longer be a problem. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python

[issue24363] httplib fails to handle semivalid HTTP headers

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c38e10ad7c89 by Martin Panter in branch '2.7': Issue #24363: Continue parsing HTTP header in spite of invalid lines https://hg.python.org/cpython/rev/c38e10ad7c89 -- nosy: +python-dev ___ Python tracker

[issue27374] Cygwin: Makefile does not install DLL import library

2016-09-15 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I found -L option addition at Lib/distutils/command/build_ext.py:222. This place is a process that finalize options for the build_ext command. Comment in there: for extensions under Cygwin and AtheOS Python's library directory must be appended to

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Nick Coghlan
Nick Coghlan added the comment: I've added Eric Smith to the nosy list as well, as he's been working on that part of the compilation pipeline for the f-string implementation. Eric, the context here is that the new deprecation warning for unknown escapes is currently being misattributed to the

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2016-09-15 Thread Martin Panter
Martin Panter added the comment: Just to clarify, the current status is that the revision that Koobs identified is still in place, meaning that the AST files are regenerated into the build tree, not the source tree. I don’t think there is much else to do for this bug, unless Koobs can provide

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Emanuel Barry
Emanuel Barry added the comment: Hmm, I see; I'll need to dig a bit deeper get to and understand that part of the compile process better. I'll look up where SyntaxErrors are generated (since they have access to at least the line number at that point), and try to hook it up from there.

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding when I think the error should be generated, we definitely want the warning to be happening at compile time, but the "compile step" is actually a series of substeps. The point where the string parser is processing string escapes is *not* the best

[issue27348] traceback (and threading) drops exception message

2016-09-15 Thread Martin Panter
Martin Panter added the comment: I plan to commit this soon, in time for the next release. -- stage: patch review -> commit review versions: +Python 3.7 ___ Python tracker

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Nick Coghlan
Nick Coghlan added the comment: I realised I wasn't entirely clear about the "warning misattribution" problem that's implied by Chi Hsuan's problem report, so here's the behaviour when using "-W all" rather than "-W error": $ echo "print('\d')" > bad_escape.py $ echo "import

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: BTW, this will also help to make warnings more friendly in #26182. -- ___ Python tracker ___

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Emanuel Barry
Emanuel Barry added the comment: Thank you Nick for the useful feedback! I think that a subclass of DeprecationWarning and SyntaxWarning would be a good idea; I'll play around with that. As far as when the warning should occur, I agree that erroring out at the compile step isn't optimal,

[issue28134] socket.socket(fileno=fd) does not work as documented

2016-09-15 Thread Martin Panter
Martin Panter added the comment: I agree the doc is far from perfect. The bit I was going off is just above , saying “these (read-only) attributes that correspond to the values given to the socket constructor”. My instinct

[issue28139] Misleading Indentation in C source code

2016-09-15 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file44684/indent.py3.patch ___ Python tracker ___

[issue28139] Misleading Indentation in C source code

2016-09-15 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file44683/indent.patch ___ Python tracker ___

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-09-15 Thread Martin Panter
Martin Panter added the comment: Another option I forgot to point out is that some of the other regeneration Python scripts (in Py 2 and/or 3; I forget which) have some autoconf magic to figure out the right installed python command to use. We should probably use that for Py 2’s ASDL script.

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Nick Coghlan
Nick Coghlan added the comment: Adding a "DeprecatedSyntaxWarning" that's a subclass of both DeprecationWarning and SyntaxWarning (and hence silenced by default while still having the extra SyntaxWarning attributes) strikes me as a reasonable step to take here, even though we're into the beta

[issue28139] Misleading Indentation in C source code

2016-09-15 Thread Martin Panter
Martin Panter added the comment: . I found more messed up indentation looking through Antoine’s large “untabify” commit r81029. These don’t trigger compiler warnings, but I think it may be worth restoring them. -- nosy: +martin.panter stage: resolved -> patch review status: closed ->

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-09-15 Thread R. David Murray
R. David Murray added the comment: Yes, by "fix this" I meant make it work under both python2 and python3. But failing that, the status quo wins. -- ___ Python tracker

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-09-15 Thread Martin Panter
Martin Panter added the comment: It seems a terrible idea to require Python 3 to be installed in order to regenerate the boot files for a Python 2 build. Maybe if we can figure out the minimum installed Python version expected for these ASDL scripts in 2.7, and maintain that while adding

[issue24366] Simple indentation

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8aa93fd7db2d by Martin Panter in branch '2.7': Issue #24366: Fix indentation https://hg.python.org/cpython/rev/8aa93fd7db2d -- ___ Python tracker

[issue28145] Fix whitespace in C source code

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a97b5ab6132 by Martin Panter in branch '2.7': Issue #28145: Spelling fixes https://hg.python.org/cpython/rev/2a97b5ab6132 New changeset 02dd99aeba7d by Martin Panter in branch '3.5': Issue #28145: Spelling fixes

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-15 Thread Matthew Barnett
Matthew Barnett added the comment: I downloaded Python 3.6.0b1 not long after it was released and it works for me: >>> re.match('(?i:CaseInsensitive)', 'caseinsensitive') <_sre.SRE_Match object; span=(0, 15), match='caseinsensitive'> -- ___ Python

[issue1284316] Win32: Security problem with default installation directory

2016-09-15 Thread Samuel Bronson
Samuel Bronson added the comment: Um, you know this still affects Python 2.7 right? Yes, I realize that it's not going to be very practical to change the default installation path for 2.7, but that doesn't make the issue disappear, nor is that the only way to close the hole. Which is to say,

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-15 Thread Tim Graham
Tim Graham added the comment: Adding an updated patch. I guess the (?i:CaseInsensitive) syntax isn't merged yet? I tried it but it didn't work. It might be premature to proceed with this deprecation if that alternative isn't already present. Is there an issue for it? -- Added file:

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-09-15 Thread STINNER Victor
STINNER Victor added the comment: Can you please post results of the performance benchmark suite? If you give me more time, I can review the patch. -- ___ Python tracker

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Emanuel Barry
Emanuel Barry added the comment: There definitely needs to be a better message for that. The problem is that the parser doesn't have access to the whole string (of course; it's being constructed!), so I think there are several possible venues here: - Change DeprecationWarning to display the

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I'm going to commit this patch tomorrow. -- ___ Python tracker ___ ___

[issue26797] Segafault in _PyObject_Alloc

2016-09-15 Thread STINNER Victor
STINNER Victor added the comment: > Closing this one. Haven't seen this in a while, probably it was a bug in > libuv. I told you so! :-D -- ___ Python tracker

[issue26797] Segafault in _PyObject_Alloc

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Haven't seen this in a while, probably it was a bug in libuv. -- resolution: -> works for me stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: It looks like this was fixed by #27759!. Jim, could you please verify? -- ___ Python tracker ___

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Tim Graham
Tim Graham added the comment: I hope the message can be improved for Python 3.6 as the warnings I see when running Django's test suite are rather useless to help find and fix the issues: cpython/Lib/importlib/_bootstrap.py:205: DeprecationWarning: invalid escape sequence '\:' Grepping for

[issue27759] selectors incorrectly retain invalid file descriptors

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I've fixed the remaining review comments & committed the patch. Thank you Mark! BTW, this also fixes http://bugs.python.org/issue27386. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue27759] selectors incorrectly retain invalid file descriptors

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8944fd09b9ca by Yury Selivanov in branch '3.5': Issue #27759: Fix selectors incorrectly retain invalid file descriptors. https://hg.python.org/cpython/rev/8944fd09b9ca New changeset 08a75f380699 by Yury Selivanov in branch '3.6': Merge 3.5 (issue

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > didn't find any existing place to put it into. Any suggestions? I would put it in Include/pymacconfig.h. -- ___ Python tracker

[issue10213] tests shouldn't fail with unset timezone

2016-09-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-15 Thread sashk
sashk added the comment: > You should really have a central config I planned to, but didn't find any existing place to put it into. Any suggestions? I'll provide updated version of the patch sometime tomorrow. -- ___ Python tracker

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-15 Thread Jeremy Sequoia
Jeremy Sequoia added the comment: Correction (bugfix and Tiger-compat): #if __has_include() #include #define APPLE_SUPPORTS_QUICKTIME (__MAC_OS_X_VERSION_MAX_ALLOWED < 101200) && !__LP64__ #else #define APPLE_SUPPORTS_QUICKTIME !__LP64__ #endif --

[issue19502] Wrong time zone offset, when using time.strftime() with a given struct_time

2016-09-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue15941] Time module: effect of time.timezone change

2016-09-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Closing in favor of #28157. -- status: open -> closed superseder: -> Document time module constants (timezone, tzname, etc.) as deprecated. ___ Python tracker

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2016-09-15 Thread paul j3
paul j3 added the comment: Clint, the problem is the argparse uses different argument allocation method than optparse. optparse gives the '--subscipt_args` Action all of the remaining strings, and says - 'consume what you want, and return the rest'. So you consume up to (and including) the

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-09-15 Thread Christian Heimes
Christian Heimes added the comment: Wouldn't it clear strptime_module when a subinterpreter shuts down, too? It's not a big deal because it can't cause a crash. -- ___ Python tracker

[issue24780] difflib.ndiff produces unreadable output when input missing trailing newline

2016-09-15 Thread Adrian Chan
Adrian Chan added the comment: I've attached a potential fix for this issue. While trying to fix this, I noticed that I coudn't assume that I just need to ensure that each line has a newline. If I always ensure each line in diffline has a newline, then the fourth test in

[issue27377] Add smarter socket.fromfd()

2016-09-15 Thread Christian Heimes
Christian Heimes added the comment: I opened #28134 because I was running into a similar issue with socket.socket(fileno). Since this new feature didn't make it into 3.6, can we at least change the constructor of socket.socket() to set a correct family, type and proto? Any fix is better than

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-09-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Yes, I think something like the attached patch may do the trick. -- assignee: -> belopolsky keywords: +patch versions: +Python 3.6, Python 3.7 -Python 3.5 Added file: http://bugs.python.org/file44678/issue27400.patch

[issue28176] Fix callbacks race in asyncio.SelectorLoop.sock_connect

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8550ab528a31 by Yury Selivanov in branch '3.5': Issue #28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect. https://hg.python.org/cpython/rev/8550ab528a31 New changeset 3d8ba65a0054 by Yury Selivanov in branch '3.6': Merge 3.5 (issue

[issue28176] Fix callbacks race in asyncio.SelectorLoop.sock_connect

2016-09-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed ___ Python tracker ___ ___

[issue28176] Fix callbacks race in asyncio.SelectorLoop.sock_connect

2016-09-15 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy issue for https://github.com/python/asyncio/pull/366 -- assignee: yselivanov components: asyncio messages: 276628 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Fix callbacks race in

[issue27415] regression: BaseEventLoop.create_server does not accept port=None

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like this is fixed now. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-09-15 Thread Christian Heimes
Christian Heimes added the comment: PEP 3121 is a big change. Can we use PyModuleDef->m_clear() for a clever hack? -- nosy: +christian.heimes ___ Python tracker

[issue27665] Make create_server able to listen on several ports

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I think this has been already fixed. Please reopen if I missed something. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue26050] Add new StreamReader.readuntil() method

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like we already have docs for readuntil. Mark, could you please check if we have some docs missing (or just close the issue)? -- ___ Python tracker

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I'm not sure this is still relevant for the latest asyncio in 3.6. Robert, could you please test if this is still the case? -- ___ Python tracker

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-09-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am not sure this is possible to fix without refactoring the datetime module according to PEP 3121. See #15390. -- ___ Python tracker

[issue28160] Python -V and --version output to stderr instead of stdout

2016-09-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In tests you can either add re.escape(), or escape special characters manually (r'\(\?i\)'). What you prefer. -- ___ Python tracker

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Tim, this is great idea! I consider this as usability bug and going to apply a fix to 3.6. But regular expression can be generated and be very long. I think it should be truncated before including in a warning message. As for Django, you can use

[issue26909] Asyncio: Pipes and socket IO is very slow

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Thank you Mark for discovering the issue and suggesting a solution (still hope we'll commit your patch in 3.7). Thank you INADA Naoki for the patch! -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue26909] Asyncio: Pipes and socket IO is very slow

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e6adc2448c3d by Yury Selivanov in branch '3.5': Issue #26909: Fix slow pipes IO in asyncio. https://hg.python.org/cpython/rev/e6adc2448c3d New changeset c462db8985d8 by Yury Selivanov in branch '3.6': Merge 3.5 (asyncio, issue #26909)

[issue24510] Make _PyCoro_GetAwaitableIter a public API

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one as no one has requested this for 2 years. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue24511] Add methods for async protocols

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I think we can close this one. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue26858] android: setting SO_REUSEPORT fails

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: This issue was fixed in #28174. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: fixed -> stage: resolved -> patch review status: closed -> open ___ Python tracker

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-15 Thread ppperry
Changes by ppperry : -- type: -> compile error ___ Python tracker ___ ___

[issue28165] The 'subprocess' module leaks roughly 4 KiB of memory per call

2016-09-15 Thread ppperry
Changes by ppperry : -- type: -> resource usage ___ Python tracker ___ ___

[issue27391] server_hostname should only be required when checking host names

2016-09-15 Thread Jim Fulton
Jim Fulton added the comment: SSL is used for more than just HTTP. The are applications in which clients have server public keys that they use to authenticate servers rather than using certificate authorities. For these applications, server host names are irrelevant. This is why it makes

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-15 Thread Jeremy Sequoia
Jeremy Sequoia added the comment: AvailabilityMacros.h is super deprecated and should not be used by anything current. Availability.h was added as replacement in 10.5. __MAC_OS_X_VERSION_MAX_ALLOWED should be checked instead of defined (DEPRECATED_IN_MAC_OS_X_VERSION_10_12_AND_LATER) You

[issue24780] difflib.ndiff produces unreadable output when input missing trailing newline

2016-09-15 Thread ppperry
Changes by ppperry : -- components: -Tests title: unittest assertEqual difference output foiled by newlines -> difflib.ndiff produces unreadable output when input missing trailing newline ___ Python tracker

[issue28175] Spam

2016-09-15 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg276612 ___ Python tracker ___

[issue28175] Spam

2016-09-15 Thread Zachary Ware
Changes by Zachary Ware : -- hgrepos: -355 ___ Python tracker ___ ___

[issue28175] Spam

2016-09-15 Thread Zachary Ware
Changes by Zachary Ware : -- components: -Build nosy: -himanshu jha resolution: -> not a bug stage: -> resolved status: open -> closed title: @^@^@^@1~8.5.5.7.0.9~2847 Lexmark P.r.i.n.t.e.r T.e.h S.u.p.p.O.r.T P.h.o.n.e n.u.m.b.e.r Lexmark p.h.o.n.e

[issue28175] @^@^@^@1~8.5.5.7.0.9~2847^^^^ Lexmark P.r.i.n.t.e.r T.e.h S.u.p.p.O.r.T P.h.o.n.e n.u.m.b.e.r Lexmark p.h.o.n.e N.u.m.b.e.r.

2016-09-15 Thread himanshu jha
New submission from himanshu jha: ((moti))Call @@@++ USA I8557O92847 LEXMARK p.r.i.n.t.e.r t.e.c.h s.u.p.p.o.r.t p.h.o.n.e n.u.m.b.e.r u.s.a. C.a.l.l LEXMARK h.e.l.p d.e.s.k n.u.m.b.e.r n.u.m.b.e.r C.a.n.a.d.a LEXMARK s.u.p.p.o.r.t p.h.o.n.e n.u.m.b.r usa USA 1 I8557O92847 LEXMARK

[issue26654] asyncio is not inspecting keyword arguments of functools.partial

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Merged! Thank you! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26654] asyncio is not inspecting keyword arguments of functools.partial

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ab64ea31d75 by Yury Selivanov in branch '3.5': Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__. https://hg.python.org/cpython/rev/4ab64ea31d75 New changeset 03257f04ee9f by Yury Selivanov in branch '3.6': Merge 3.5 (issue

[issue28160] Python -V and --version output to stderr instead of stdout

2016-09-15 Thread Yaron Goland
Yaron Goland added the comment: Fair enough. Thanks for looking at it! -- ___ Python tracker ___ ___

[issue28174] asyncio: Handle when SO_REUSEPORT isn't properly supported

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c1c247cf3488 by Yury Selivanov in branch '3.5': Issue #28174: Handle when SO_REUSEPORT isn't properly supported (asyncio) https://hg.python.org/cpython/rev/c1c247cf3488 New changeset f2fdb624074a by Yury Selivanov in branch '3.6': Merge 3.5 (issue

[issue28174] asyncio: Handle when SO_REUSEPORT isn't properly supported

2016-09-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed type: -> enhancement ___ Python tracker ___

[issue28174] asyncio: Handle when SO_REUSEPORT isn't properly supported

2016-09-15 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy issue for https://github.com/python/asyncio/pull/418 -- assignee: yselivanov components: asyncio messages: 276606 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: asyncio: Handle when

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: > argparse here I come! https://docs.python.org/2/library/argparse.html#argument-abbreviations-prefix-matching Prefix matching is a standard feature of all command line option parsers that I know of. -- ___

[issue27908] del _limbo[self] KeyError

2016-09-15 Thread Maciej Urbański
Maciej Urbański added the comment: To address @Dima.Tisnek concern I have changed exception message in case thread start process is merely in progress. I kept `self._started` check under a lock so we can avoid more extreme race condition of one thread checking `self._started` right before

[issue28172] Upper-case all example enum members

2016-09-15 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-09-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: Hmm... On checking down some of the code paths and realizing there were some issues in 3.5 (redundant code, and what looked like two memory leaks), I checked tip (to avoid opening bugs on stale code), and discovered that #22557 rewrote the import code,

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Mike Hagerty
Mike Hagerty added the comment: You win. It's not a bug, it's a feature ... that renders the module incorrect by any reasonable definition. argparse here I come! On Thu, Sep 15, 2016 at 3:20 PM, Steven D'Aprano wrote: > > Steven D'Aprano added the comment: > > > How

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: > How is silently failing to resolve input errors okay ? You haven't demonstrated that it fails to resolve input errors. You have demonstrated a *feature*, not a bug: getopt will accept prefixes if they unambiguously match ONE long option only. If the prefix

[issue28172] Upper-case all example enum members

2016-09-15 Thread SilentGhost
Changes by SilentGhost : -- stage: -> patch review ___ Python tracker ___ ___

[issue28173] Misspelled Assert

2016-09-15 Thread Ethan Furman
Ethan Furman added the comment: The misspelling is intentional. That section is talking about what happens when an "assert_" method is misspelled. -- nosy: +ethan.furman, michael.foord resolution: -> not a bug stage: -> resolved status: open -> closed

[issue28114] parse_envlist(): os.execve(), os.spawnve(), etc. crash in Python 3.6.0 when env contains byte strings

2016-09-15 Thread STINNER Victor
STINNER Victor added the comment: Ok fine ;-) Let's keep #if defined(HAVE_WEXECV) || defined(HAVE_WSPAWNV). -- ___ Python tracker ___

[issue28114] parse_envlist(): os.execve(), os.spawnve(), etc. crash in Python 3.6.0 when env contains byte strings

2016-09-15 Thread Steve Dower
Steve Dower added the comment: We already use HAVE_WEXECV and HAVE_WSPAWNV elsewhere to choose the wide-char versions of these functions. You've got a few changes to make if you want to maintain consistency. Personally I prefer feature flags to platform flags, then let pyconfig.h control

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-09-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: Nick: Looks like it's quite a bit more work than just a dict lookup. That PyImport_ImportModuleNoBlock call (which seems odd; the implementation of NoBlock is just to wrap the blocking function; guess we don't allow non-blocking imports anymore and this is

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Surely this isn't intended behavior (?) It is indeed. That's standard behaviour for GNU getopt, which the Python module is modelled after: [steve@ando ~]$ getopt --version getopt (enhanced) 1.1.4 [steve@ando ~]$ getopt --versi getopt (enhanced) 1.1.4

[issue28173] Misspelled Assert

2016-09-15 Thread Chris Rao
New submission from Chris Rao: In the second code block in the section on autospeccing in https://docs.python.org/3/library/unittest.mock.html#auto-speccing, assert is spelled as "assret" >>> mock = Mock(name='Thing', return_value=None) >>> mock(1, 2, 3) >>> mock.assret_called_once_with(4, 5,

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread SilentGhost
SilentGhost added the comment: It's not an error. Read the docs, there's a longer and more detailed explanation there. There is no chance of this being changed, not in a module like getopt. -- ___ Python tracker

  1   2   3   >