[issue35073] 'from app import __init__' behaves differently with native import and importlib

2018-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: `from app import __init__` is equivalent to `importlib.import_module('app').__init__`. `importlib.import_module('.__init__', 'app')` is equivalent to `import app.__init__`. -- nosy: +serhiy.storchaka ___

[issue35073] 'from app import __init__' behaves differently with native import and importlib

2018-10-25 Thread Quentin Agren
New submission from Quentin Agren : I'm running Python 3.6 on Ubuntu 16.04 I don't know if this should qualify as a bug, but I noticed the following behavior difference in the (contrived?) scenario of directly importing '__init__' from a package: ## Setup ## mkdir app echo

[issue35072] re.sub does not play nice with chr(92)

2018-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: I'm assuming you want to replace double backslashes with single backslashes in stringy_thing, so I defined stringy_thingy and tried both your snippets but they are both failing: >>> stringy_thingy = r'foo\\bar\\baz' >>> print(stringy_thingy) # stringy_thingy

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-25 Thread INADA Naoki
INADA Naoki added the comment: > I like the idea of using @functools.cached_property in an abstract class as > "documentation". To announce that the property will be cached, even if > technically it will not be cached. It's more to use the code as documentation > than to execute any code.

[issue35072] re.sub does not play nice with chr(92)

2018-10-25 Thread Samuel Warfield
New submission from Samuel Warfield : Bug with regex substitutions. When calling the re.sub() method directly char(92), the double backslash charecter as the replacement, throws an exception. Whereas compiling a regex object then calling its own .sub() method works completely fine. I did a

[issue1154351] add get_current_dir_name() to os module

2018-10-25 Thread Braden Groom
Change by Braden Groom : -- pull_requests: +9450 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: This should be it - https://github.com/python/cpython/pull/10116 https://github.com/python/cpython/pull/10114 https://github.com/python/cpython/pull/10113 https://github.com/python/cpython/pull/10115 Lets merge these simple PRs and close this issue.

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-25 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +9449 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-25 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +9448 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-25 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +9446, 9447 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-25 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +9446 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-25 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +9445 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35064] COUNT_ALLOCS build export inc_count() and dec_count() functions which don't have a "Py_" prefix

2018-10-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35007] Minor change to weakref docs

2018-10-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3ec9af75f6825a32f369ee182a388c365db241b6 by Victor Stinner in branch 'master': bpo-9263: _Py_NegativeRefcount() use _PyObject_AssertFailed() (GH-10109) https://github.com/python/cpython/commit/3ec9af75f6825a32f369ee182a388c365db241b6

[issue35062] io.IncrementalNewlineDecoder assign out-of-range value to bitwise struct field

2018-10-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9444 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9443 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9442 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Steven, Sure, I am going to explain, I was at the social event of PyCon Germany without my laptop and the code was not really clear on my smartphone. I wanted to know if there was an indentation issue. It's also the reason for my big reply with the

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9441 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35055] Error when we try to download the epub archive

2018-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: thanks ned -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35055] Error when we try to download the epub archive

2018-10-25 Thread Ned Deily
Ned Deily added the comment: @Stéphane, please leave this open for now until we have a better resolution. We'll make sure it gets closed. -- ___ Python tracker ___

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: all the PRs have been merged, we can close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9440 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-25 Thread Carl Meyer
Carl Meyer added the comment: FWIW, it seems to me (author of `cached_property` patch) that while just using `@property` on the abstract method plus a comment is a reasonable and functional workaround that sacrifices only a small documentation value, there's no reason why `@cached_property`

[issue35053] Enhance tracemalloc to trace properly free lists

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: Oh :-( I didn't expect that I would have to declare PyTraceMalloc_NewReference() in object.h even if Py_LIMITED_API is defined... Python currently leaks too much things even if Py_LIMITED_API is defined. It's time to break the C API! :-)

[issue35053] Enhance tracemalloc to trace properly free lists

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset c89a93271447ec65e83a1dc7605e62dbf272cafd by Victor Stinner in branch 'master': bpo-35053: Define _PyTraceMalloc_NewReference in object.h (GH-10107) https://github.com/python/cpython/commit/c89a93271447ec65e83a1dc7605e62dbf272cafd --

[issue35022] MagicMock should support `__fspath__`

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks Maxime Belanger for your contribution! Thanks Mario Corchero for the review. Oh, you added Python 3.7 to this issue, but sadly we don't add new features to minor Python versions (like Python 3.7.2) :-( Otherwise, it would mean that depending on the

[issue35022] MagicMock should support `__fspath__`

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6c83d9f4a72905d968418bef670bb3091d2744db by Victor Stinner (Max Bélanger) in branch 'master': bpo-35022: unittest.mock.MagicMock now also supports __fspath__ (GH-9960)

[issue35053] Enhance tracemalloc to trace properly free lists

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9439 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Ned Deily
Ned Deily added the comment: "on a vanilla-ish 10.8 VM" ?? I meant 10.14, of course. -- ___ Python tracker ___ ___

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread miss-islington
miss-islington added the comment: New changeset 3b87151879adb795c3c0372832c87da84ee93974 by Miss Islington (bot) in branch '3.6': bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread miss-islington
miss-islington added the comment: New changeset c64c4056c1fce0a18e5810fc6352712612a64010 by Miss Islington (bot) in branch '3.7': bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)

[issue34547] Wsgiref server does not handle closed connections gracefully

2018-10-25 Thread Petter S
Change by Petter S : -- pull_requests: +9437 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34547] Wsgiref server does not handle closed connections gracefully

2018-10-25 Thread Petter S
Change by Petter S : -- pull_requests: +9437, 9438 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +9436 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +9435 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread miss-islington
miss-islington added the comment: New changeset 1770d1c5121ed6c64d7072875738f97e07eede8a by Miss Islington (bot) (Stéphane Wirtel) in branch 'master': bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)

[issue21145] Add the @cached_property decorator

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: FYI there is discussion in bpo-34995 about the usage of @cached_property with abstract methods. -- nosy: +vstinner ___ Python tracker ___

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: Context: @functools.cached_property has been added by bpo-21145. -- ___ Python tracker ___ ___

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: Exmaple 1: --- import abc import functools class AbstractExpensiveCalculator(abc.ABC): @abc.abstractmethod @functools.cached_property def calculate(self): pass AbstractExpensiveCalculator() --- Exmaple 2: --- import abc import functools

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Ned Deily
Ned Deily added the comment: I've also tried building on a vanilla-ish 10.8 VM, both without and with installing the /usr/include headers, and I still don't see the failure you're seeing. If you look at Modules/posixmodule.c, you'll see there's a fair amount of Apple-specifc or -caused

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
James Hewitt added the comment: So just the fact that somewhere in the function a name is referenced, even if that code isn't actually executed, is enough to change the local namespace. I think I knew that, but didn't know that's what it meant :) I guess the moral is, pay attention to

[issue33944] Deprecate and remove pth files

2018-10-25 Thread Antony Lee
Antony Lee added the comment: There are a number of packages that can "self-import" into any Python process depending on the presence of an environment variable, by installing a pth file that contains something like `import os; __import__("thepkg") if os.environ.get("THEENVVAR") else None`.

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Yes, that's exactly right. That's how local variables work in Python: x = 999 # global x def demo(): if False: x = 1 x # local x has no value does the same thing. This is standard, documented behaviour, regardless of which kind of assignment

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 25, 2018, at 13:17, Ned Deily wrote: > > OK. When you asy "every version of Python 3", are those all versions you've > built yourself? If so, what ./configure arguments do you use? Yes, built myself from source (both .tar.gz and git tag). I don’t

[issue35052] Coverity scan: copy/paste error in Lib/xml/dom/minidom.py

2018-10-25 Thread Shivank Gautam
Shivank Gautam added the comment: Oh Sorry, it was like was more like a question. running test_minidom.py is giving an error for both (1 and 2), i am not sure even if "testRemoveAttributeNode (__main__.MinidomTest)" is related to _clone_node or not. should i first try solve for this error?

[issue35071] Canot send real string from c api to module (corrupted string)

2018-10-25 Thread Yhojann Aguilera
New submission from Yhojann Aguilera : The functios like as PyUnicode_FromString use a printf format in char array argument. Example: PyUnicode_FromString("a%22b"); in module interprete the %22 as 22 blank spaces. A double quote in module add a backslash. Poc: Y try send a string from c++ to

[issue35052] Coverity scan: copy/paste error in Lib/xml/dom/minidom.py

2018-10-25 Thread Tal Einat
Tal Einat added the comment: Shivank, your last comment is unclear. Are you asking a question or just reporting some progress? -- ___ Python tracker ___

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Ned Deily
Ned Deily added the comment: OK. When you asy "every version of Python 3", are those all versions you've built yourself? If so, what ./configure arguments do you use? -- ___ Python tracker

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
James Hewitt added the comment: I don't quite follow... the 'import logging.config' statement should never be executed, and if it is commented out the program works fine as written. It's as if the mere presence of the statement in the code causes 'logging' to be shadowed inside the

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Seems to fail for me with every version of Python 3 on Mojave. In master, it’s test_getgroups(). > Ned Deily added the comment: > > $ sw_vers > ProductName: Mac OS X > ProductVersion: 10.14 > BuildVersion: 18A391 Mine is exactly the same.

[issue35052] Coverity scan: copy/paste error in Lib/xml/dom/minidom.py

2018-10-25 Thread Shivank Gautam
Shivank Gautam added the comment: now when I am running test_minidom.py for both 1,2 1: e._call_user_data_handler(operation, n, entity) 2: n._call_user_data_handler(operation, n, notation) I am receiving the same following result. FAIL: testRemoveAttributeNode (__main__.MinidomTest)

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Stéphane, I'm curious why you asked for a pastebin when James already provided the code right here in the tracker? (Your email even included a copy of that code.) Why split the information into another website? --

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Ned Deily
Ned Deily added the comment: $ sw_vers ProductName:Mac OS X ProductVersion: 10.14 BuildVersion: 18A391 -- ___ Python tracker ___

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Ned Deily
Ned Deily added the comment: Hmm, I'm not seeing that behavior with either a freshly-built top of master 3.8 or with the python.org 3.7.1. $ ./python -c "import os;print(os.getgroups())" [20, 12, 61, 79, 80, 81, 98, 33, 100, 204, 250, 395, 398, 399] $ id -G 20 12 61 79 80 81 98 33 100 204

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is expected behaviour: import is a form of assignment. "import logging", like "logging = 1", tells the compiler to treat logging as a local variable (unless you declare logging as global). As the exception says, you are trying to access the logging

[issue35070] test_posix

2018-10-25 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : It looks like macOS 10.14 Mojave has changed the return value for getgroups(). On 10.13 it returns the set of GIDs give by `id -G` but afaict on 10.14 it returns only the primary GID. $ python3 -c "import os; print(os.getgroups())" [101] $ id -G 101

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Michael Saah
Michael Saah added the comment: Did a little digging. Seems that there are two versions of the datetime module, a C version (looks like an accelerator module) and a Py version. Both define a wrap_strftime function that replace %z, %Z and %f format codes before handing off to the timemodule.c

[issue35070] test_posix fails on macOS 10.14 Mojave

2018-10-25 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- title: test_posix -> test_posix fails on macOS 10.14 Mojave ___ Python tracker ___ ___

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-10-25 Thread Luna Chen
Change by Luna Chen : -- keywords: +patch pull_requests: +9434 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
James Hewitt added the comment: Sure, it's at https://pastebin.com/L1RMPD7K -James On 10/25/2018 12:30 PM, Stéphane Wirtel wrote: > > Stéphane Wirtel added the comment: > > Could you share a pastebin? Thank you > >> Le 25 oct. 2018 à 21:28, James Hewitt a écrit : >> >> >> New submission

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Could you share a pastebin? Thank you > Le 25 oct. 2018 à 21:28, James Hewitt a écrit : > > > New submission from James Hewitt : > > Having 'import logging.config' in an if statement in a function causes a > namespace issue, despite the fact that the

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
New submission from James Hewitt : Having 'import logging.config' in an if statement in a function causes a namespace issue, despite the fact that the import is not reached. Example code: --- #!/usr/bin/env python3 # Test weird import bug import logging config = {} config['log'] = {}

[issue34160] ElementTree not preserving attribute order

2018-10-25 Thread Tal Einat
Tal Einat added the comment: Thanks for the clarification, Raymond. I've spent a few minutes searching for uses of dump(), and have only come up with uses for debugging or printing helpful info in command line tools. So, it seems that changing this as suggested wouldn't break much existing

[issue33710] Deprecate gettext.lgettext()

2018-10-25 Thread Braden Groom
Braden Groom added the comment: What's the process for deprecating functions? Do we just start by adding a note in the docs? -- ___ Python tracker ___

[issue33710] Deprecate gettext.lgettext()

2018-10-25 Thread Braden Groom
Change by Braden Groom : -- nosy: +bradengroom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35052] Coverity scan: copy/paste error in Lib/xml/dom/minidom.py

2018-10-25 Thread Tal Einat
Tal Einat added the comment: The test code should fail with the current, unfixed code, due to the bug described here. You will need to: 1. figure out which conditions will trigger the wrong behavior 2. set up a scenario where you can detect whether the behavior is correct 3. code this as a

[issue34145] uuid3 and uuid5 hard to use portably between Python 2 and 3

2018-10-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Michael: I understand the inconsistency but since there is a test that says ValueError is platform dependent then making it as an intentional error there might be breakage. I am not against changing this but if it's done then it should be done

[issue34145] uuid3 and uuid5 hard to use portably between Python 2 and 3

2018-10-25 Thread Braden Groom
Change by Braden Groom : -- keywords: +patch pull_requests: +9433 stage: -> patch review ___ Python tracker ___ ___

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-10-25 Thread Steve Dower
Steve Dower added the comment: Thanks, Tim! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-10-25 Thread Steve Dower
Steve Dower added the comment: New changeset a7ffb663953bc84452af1e5f4089359d54e226b5 by Steve Dower in branch '3.7': [3.7] bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) https://github.com/python/cpython/commit/a7ffb663953bc84452af1e5f4089359d54e226b5 --

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-10-25 Thread Steve Dower
Steve Dower added the comment: New changeset 4aa1fda7069642c21c1ee570c4ba2a657e5e by Steve Dower in branch '3.6': bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) https://github.com/python/cpython/commit/4aa1fda7069642c21c1ee570c4ba2a657e5e --

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker ___ ___

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Michael Saah
Michael Saah added the comment: >From a pure usability standpoint I'd prefer for datetime to match the time behavior you're demonstrating, that is to not fail on a dangling %. Of course I defer to the dev team on this, but I want to make clear where I'm coming from. On Thu, Oct 25, 2018 at

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Eric V. Smith
Eric V. Smith added the comment: After a little more thinking: maybe we should just document this behavior, make it official, and not change it. -- ___ Python tracker ___

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Eric V. Smith
Eric V. Smith added the comment: Hmm, if there's a test for this, then that does complicate the decision. Is this behavior documented anywhere? If so, then we shouldn't change it. If we do decide to go forward with a change, it should be in the master branch, which will become 3.8.

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure time.strftime("%") should raise an error. There is an explicit test case and it's mentioned as platform dependent in the comment to raise a ValueError or succeed. So I don't know if it should be changed despite the inconsistency and

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Michael Saah
Michael Saah added the comment: Ok, seems reasonable. What branch would I submit a PR against? On Thu, Oct 25, 2018 at 1:11 PM Eric V. Smith wrote: > > Eric V. Smith added the comment: > > I think it would be a good idea to make this more consistent. We should > run through a multi-release

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Eric V. Smith
Eric V. Smith added the comment: I think it would be a good idea to make this more consistent. We should run through a multi-release deprecation cycle, since it might break existing, working code. And we could only start that in 3.8. -- nosy: +eric.smith versions: +Python 3.8

[issue34160] ElementTree not preserving attribute order

2018-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Consider this as a feature request. It is perfectly reasonable for a user to want to generate specific XML output and to want to control the order that the attributes are listed. It is perfectly reasonable for the API to preserve the order that the

[issue35068] [2.7] Possible crashes due to incorrect error handling in pyexpat.c

2018-10-25 Thread Zackery Spytz
New submission from Zackery Spytz : The attached PR fixes several error handling bugs in pyexpat.c. -- ___ Python tracker ___ ___

[issue35068] [2.7] Possible crashes due to incorrect error handling in pyexpat.c

2018-10-25 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +9432 stage: -> patch review ___ Python tracker ___ ___

[issue35068] [2.7] Possible crashes due to incorrect error handling in pyexpat.c

2018-10-25 Thread Zackery Spytz
Change by Zackery Spytz : -- components: Extension Modules nosy: ZackerySpytz priority: normal severity: normal status: open title: [2.7] Possible crashes due to incorrect error handling in pyexpat.c type: crash versions: Python 2.7 ___ Python

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-10-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -9424 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33533] Provide an async-generator version of as_completed

2018-10-25 Thread Michael DePalatis
Michael DePalatis added the comment: Is there any progress on this? I was thinking the exact same thing regarding the backwards-compatible approach and would like to work on it if no one else is. -- nosy: +mivade ___ Python tracker

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have proposed a PR. -- keywords: -patch nosy: +matrixise stage: patch review -> needs patch ___ Python tracker ___

[issue35038] AttributeError: 'frame' object has no attribute 'f_restricted'

2018-10-25 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9431 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-10-25 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +9430 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-10-25 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +9429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 626bff856840f471e98ec627043f780c111a063d by Victor Stinner in branch 'master': bpo-9263: Dump Python object on GC assertion failure (GH-10062) https://github.com/python/cpython/commit/626bff856840f471e98ec627043f780c111a063d --

[issue35067] Use vswhere instead of _distutils_findvs

2018-10-25 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +9428 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35067] Use vswhere instead of _distutils_findvs

2018-10-25 Thread Steve Dower
New submission from Steve Dower : We have much simpler needs for distutils that don't require the more complex build/dependencies we currently have. We should remove the extra native module and just shell out to vswhere.exe, which is always included in the VS installer in a known location.

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2018-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: for me, yep normally we should provide the same behavior. now, if you want, you can submit a PR but before your PR, you have to sign the CLA. thanks -- nosy: +matrixise ___ Python tracker

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 18618e652c56e61a134e596b315a13c7cb997a89 by Victor Stinner in branch 'master': bpo-35059: Add Py_STATIC_INLINE() macro (GH-10093) https://github.com/python/cpython/commit/18618e652c56e61a134e596b315a13c7cb997a89 --

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-10-25 Thread Steve Dower
Steve Dower added the comment: New changeset d03b7757811ae51277f8ed399a9a0fd78dfd3425 by Steve Dower (Tim Graham) in branch 'master': bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) https://github.com/python/cpython/commit/d03b7757811ae51277f8ed399a9a0fd78dfd3425

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9427 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >