[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-09-15 Thread Steve Dower
Steve Dower added the comment: It may be exploitable, but I doubt it can be exploited without providing arbitrary Python code. Anyone still running Python 3.3 on Windows must be building it from source. If they haven't noticed crashes from this issue yet, they aren't using the feature, and if

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

2016-09-15 Thread Matthew Barnett
Matthew Barnett added the comment: @Tim: Why are you using re.search with '^'? Does the pattern that's passed in ever contain '(?m)'? If not, re.match without '^' is better. -- ___ Python tracker _

[issue28170] SystemError: returned NULL without setting an error

2016-09-15 Thread Matt Wright
New submission from Matt Wright: I'm experiencing a strange error when connecting to a web server with a self signed certificate. I've added the Root and Intermediate certs to the system CA bundle, and can `curl` against the server without any errors or using the `k` flag. But Python (via requ

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-09-15 Thread Rafał Chłodnicki
Rafał Chłodnicki added the comment: In case it makes any difference, my query was prompted by this issue being noticed in Sublime Text editor. Its author bundles Python 3.3 so the bug reproduced there and it took a while to figure out what is the problem. Now that the Sublime Text issue was an

[issue28170] SystemError: returned NULL without setting an error

2016-09-15 Thread Christian Heimes
Christian Heimes added the comment: Do you happen to talk to an ElasticSearch cluster with a GEN_RID in the subject alternative name field? It's a known bug in Python's ssl code. The fix #27691 will be in the next releases of 2.7 and 3.5. In the mean time you can work around the bug by reconfi

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

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: > The feature is pretty much required these days. We have the feature. What Jim was asking is to make server_hostname argument optional when check_hostname is False in the ssl context -- ___ Python tracker

[issue28170] SystemError: returned NULL without setting an error

2016-09-15 Thread Matt Wright
Matt Wright added the comment: Ahh! Thanks much! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28137] Windows sys.path file should be renamed

2016-09-15 Thread Paul Moore
Paul Moore added the comment: I'd prefer not to hard code __main__.py, as I'd quite like to be able to have a number of copies of the executable, each running its own script. (I foresee putting all my little Python utility scripts in a directory with a Python installation and a set of launcher

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

2016-09-15 Thread Christian Heimes
Christian Heimes added the comment: It's a bad idea. An increasing amount of web servers require a TLS SNI extension. I'd rather make server_hostname a required argument for all client-side SSL sockets -- no matter how check_hostname is configured. -- _

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

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: > It's a bad idea. I thought so too :) I was actually going to ask you to review this request. In any case, feel free to close this issue. -- ___ Python tracker ___

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I'm going to commit the patch now (I'm going on vacation tomorrow, and I want to watch the buildbots). -- ___ Python tracker ___ __

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82e6017dc841 by Yury Selivanov in branch '3.6': Issue #26182: Raise DeprecationWarning for improper use of async/await keywords https://hg.python.org/cpython/rev/82e6017dc841 New changeset 3f8b75173543 by Yury Selivanov in branch 'default': Merge 3.

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Merged. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ 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 Roundup Robot
Roundup Robot added the comment: New changeset 8d80a4291ddc by Berker Peksag in branch '3.6': Issue #28114: Fix a crash in parse_envlist() when env contains byte strings https://hg.python.org/cpython/rev/8d80a4291ddc New changeset 8ad99fdc84a3 by Berker Peksag in branch 'default': Issue #28114:

[issue28156] [Patch] posixmodule: Make the presence of os.getpid() optional

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset d17ff867580f by Berker Peksag in branch '3.6': Issue #28156: Export os.getpid() conditionally https://hg.python.org/cpython/rev/d17ff867580f New changeset 33834105048e by Berker Peksag in branch 'default': Issue #28156: Merge from 3.6 https://hg.pyt

[issue28156] [Patch] posixmodule: Make the presence of os.getpid() optional

2016-09-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.7 ___ 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 Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Eryk! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: > > On the asyncio side, with debug turned on, we see nothing. > Does someone see a way to log a message in such case? Maybe only in debug > mode? I'm not sure we can do anything here. @kevinconway, did you try to find out if it's possible to log this someho

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

2016-09-15 Thread Tim Graham
Tim Graham added the comment: Looks like we could remove the '^', but it doesn't resolve the deprecation warnings. The inline flags in `pattern` still need to be moved before `_prefix`. -- ___ Python tracker _

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe with the new code it could log a message if it doesn't exit the loop via a break? Because that would mean the listen buffer is full. It would encourage people to configure a larger number. -- ___ Python tracke

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-15 Thread Brett Cannon
Brett Cannon added the comment: Sorry I didn't get around to reviewing; I'm sick. On Thu, Sep 15, 2016, 09:51 Yury Selivanov wrote: > > Yury Selivanov added the comment: > > Merged. > > -- > resolution: -> fixed > stage: needs patch -> resolved > status: open -> closed > > ___

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1dcfafed3cb0 by Yury Selivanov in branch '3.5': Issue #27906: Fix socket accept exhaustion during high TCP traffic. https://hg.python.org/cpython/rev/1dcfafed3cb0 New changeset 62948164ff94 by Yury Selivanov in branch '3.6': Merge 3.5 (issue #27906)

[issue27973] urllib.urlretrieve() fails on second ftp transfer

2016-09-15 Thread Sohaib Ahmad
Sohaib Ahmad added the comment: I manually reverted the issue26960 patch which fixed my issue of consecutive downloads but it also caused regression of issue26960. I am looking into what could be causing this hang when voidresp() is called using the demo available in issue26960 and it looks wh

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Mike Hagerty
New submission from Mike Hagerty: Here's the relevant code: opts, args = getopt.getopt(sys.argv[1:], "ih", ["help", "f1Hz","startdate=", "ndays="]) >main.py -i --f1H --startdat=2016-08-22 --ndays 2 Here's what getopt returns into opts: opts= [('-i', ''), ('--f1Hz', ''), ('--startdate', '2016-

[issue27354] SSLContext.load_verify_locations cannot handle paths on Windows which cannot be encoded using mbcs

2016-09-15 Thread STINNER Victor
STINNER Victor added the comment: Steve Dower added the comment: > TESTFN_UNENCODABLE will be invalid utf8 now, as the name is chosen by > attempting to encode a list of names and using the first one to fail. Oh, maybe we should reject filenames not encodable to utf8? Filenames containg surroga

[issue28172] Upper-case all example enum members

2016-09-15 Thread Chris Angelico
New submission from Chris Angelico: Discussion on python-ideas led to a firm ruling by Guido that enum members are functionally equivalent to constants, and should thus be named in upper-case. This is contrary to the current documentation. Solution? Change the docs. -- assignee: docs@p

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

2016-09-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread SilentGhost
SilentGhost added the comment: It's a documented behaviour: "Long options on the command line can be recognized so long as they provide a prefix of the option name that matches exactly one of the accepted options" -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved stat

[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: > #if defined(HAVE_WEXECV) || defined(HAVE_WSPAWNV) Hum, can't we use MS_WINDOWS here? Or maybe pass a parameter in parse_envlist() for Windows? -- ___ Python tracker

[issue28171] getopt.getopt error processing long_options

2016-09-15 Thread Mike Hagerty
Mike Hagerty added the comment: Huh ? "documented behaviour" ? How is silently failing to resolve input errors okay ? On Thu, Sep 15, 2016 at 3:04 PM, SilentGhost wrote: > > SilentGhost added the comment: > > It's a documented behaviour: "Long options on the command line can be > recognized

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-15 Thread STINNER Victor
STINNER Victor added the comment: Guido van Rossum: "Maybe with the new code it could log a message if it doesn't exit the loop via a break? Because that would mean the listen buffer is full. It would encourage people to configure a larger number." Hum, yes maybe. But I would suggest to only log

[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

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

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

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

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

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

[issue28172] Upper-case all example enum members

2016-09-15 Thread SilentGhost
Changes by SilentGhost : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[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

[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 is silently failing to re

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

[issue28172] Upper-case all example enum members

2016-09-15 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

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

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

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

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

[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 ___ ___ Python-bugs-list mailing list Uns

[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 #26654)

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

[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 p.r.i.n.t.e.

[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 N.u.m.b.e.r. -> Spam type: p

[issue28175] Spam

2016-09-15 Thread Zachary Ware
Changes by Zachary Ware : -- hgrepos: -355 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue28175] Spam

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

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

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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

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

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

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

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

[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) https://hg.pyt

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

[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 (?i:

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

[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 mailing list Unsubscribe: https://mail.pytho

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

[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

[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

[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

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

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

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

2016-09-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 asyncio.Sel

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

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

[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

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

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

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

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

[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 ___ ___ Python-bugs-list ma

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

[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

[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 ___ ___ Python-bugs-list ma

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

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

[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

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

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

[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

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

[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 ___ ___ Python-bugs-list mailing list

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

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

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

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

<    1   2   3   >