Re: PIP question

2019-09-27 Thread dieter
Gisle Vanem writes: > ... > All this *.dist-info stuff is alien stuff to me, but I guess > 'pip install --upgrade' uses these? Most of "pip" is using this. They contain important meta information (e.g. version number, dependencies, overview information, ...) about a distribution not directly

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-09-27 Thread Tim Peters
Tim Peters added the comment: tp_clear implementations are necessary to reclaim trash cycles. They're always best practice for objects that may be in trash cycles. tuples are just "cute rebels" that way ;-) Best guess is that the (some) extension isn't playing by the rules. A weakref

[issue38242] Revert the new asyncio Streams API

2019-09-27 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +16035 pull_request: https://github.com/python/cpython/pull/16455 ___ Python tracker ___

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New changeset 598f676880662fb453ff98fda42b7b7068e5be32 by Jesús Cea in branch '2.7': [2.7] bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446). (#16454)

Re: itertools query

2019-09-27 Thread Pradeep Patra
I don't need other combination except 6,7 On Saturday, September 28, 2019, Piet van Oostrum wrote: > Pradeep Patra writes: > > > Hi all, > > > > I have written a small program to generate all the combinations of a and > b > > of the array. I want (6,7) tuple also included. Can anybody suggest

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: Ok, the API should now be ABI future proof thanks to this change. I experimented a change locally: it's possible to support two sizes of the PyConfig structure (need to modify a few functions in initconfig.c). I sent an email to python-dev:

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6e128382b3e7f83d91d5e73d83a051ff5fb6469c by Victor Stinner in branch '3.8': bpo-38304: Add PyConfig.struct_size (GH-16451) (GH-16453) https://github.com/python/cpython/commit/6e128382b3e7f83d91d5e73d83a051ff5fb6469c --

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- pull_requests: +16034 pull_request: https://github.com/python/cpython/pull/16454 ___ Python tracker ___

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-09-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16033 pull_request: https://github.com/python/cpython/pull/16453 ___ Python tracker ___

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 441b10cf2855955c86565f8d59e72c2efc0f0a57 by Victor Stinner in branch 'master': bpo-38304: Add PyConfig.struct_size (GH-16451) https://github.com/python/cpython/commit/441b10cf2855955c86565f8d59e72c2efc0f0a57 --

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- pull_requests: +16032 pull_request: https://github.com/python/cpython/pull/16452 ___ Python tracker ___

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New changeset 6112b91bb827b07ab83e3e720aa055772a2c8b9d by Jesús Cea (Miss Islington (bot)) in branch '3.7': bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446) (#16450)

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New changeset 8750bce9884335d43ac06989f64473ed877c5b63 by Jesús Cea (Miss Islington (bot)) in branch '3.8': bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446) (#16449)

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: I updated the PEP 587: https://github.com/python/peps/commit/afa38c0bef7738b8fcc3173daee8488e0420833d -- ___ Python tracker ___

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-09-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16031 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16451 ___ Python tracker ___

[issue38303] Make audioop PEP-384 compatible

2019-09-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +16030 pull_request: https://github.com/python/cpython/pull/16450 ___ Python tracker ___

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +16029 pull_request: https://github.com/python/cpython/pull/16449 ___ Python tracker ___

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New changeset 52d1b86bde2b772a76919c76991c326384954bf1 by Jesús Cea in branch 'master': bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (#16446) https://github.com/python/cpython/commit/52d1b86bde2b772a76919c76991c326384954bf1

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16027 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16448 ___ Python tracker ___

[issue36274] http.client cannot send non-ASCII request lines

2019-09-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16028 pull_request: https://github.com/python/cpython/pull/16448 ___ Python tracker ___

[issue38279] multiprocessing example enhancement

2019-09-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +16026 pull_request: https://github.com/python/cpython/pull/16447 ___ Python tracker ___

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- keywords: +patch pull_requests: +16025 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16446 ___ Python tracker ___

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-09-27 Thread STINNER Victor
New submission from STINNER Victor : The current implementation of the PEP 587 is not ready for future evolutions of the PyPreConfig and PyConfig structure. Any change will break the ABI compatibility. Their _config_version field is useless. The first versions of the PEP 587 used a macro to

[issue38298] Base class of generic type has wrong `cls` argument in classmethods

2019-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: For performance reasons the implementation of generics changed completely in 3.7. I don't think we can restore the behavior you observed in 3.6. -- ___ Python tracker

[issue38293] Deepcopying property objects results in unexpected TypeError

2019-09-27 Thread Emmanuel Arias
Emmanuel Arias added the comment: I can confirm this behavior also on python 3.6 3.8 3.9 -- versions: +Python 3.6, Python 3.8, Python 3.9 ___ Python tracker ___

[issue38242] Revert the new asyncio Streams API

2019-09-27 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +patch pull_requests: +16024 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16445 ___ Python tracker ___

[issue38293] Deepcopying property objects results in unexpected TypeError

2019-09-27 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38161] AsyncMock add `.awaited` like `.called`

2019-09-27 Thread Lisa Roach
Change by Lisa Roach : -- keywords: +patch pull_requests: +16023 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16443 ___ Python tracker ___

[issue38161] AsyncMock add `.awaited` like `.called`

2019-09-27 Thread Lisa Roach
Lisa Roach added the comment: Looking at this more, I think I want to just remove the current `awaited` object. The PR in asyntest makes it seem pretty cool: https://github.com/Martiusweb/asynctest/issues/64 But I have issue with the naming (await_event is probably better for us), and I'm

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-27 Thread Ami Fischman
Change by Ami Fischman : -- nosy: +Ami Fischman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38303] Make audioop PEP-384 compatible

2019-09-27 Thread Tyler Kieft
Change by Tyler Kieft : -- components: Extension Modules nosy: Tyler Kieft priority: normal severity: normal status: open title: Make audioop PEP-384 compatible versions: Python 3.9 ___ Python tracker

[issue38009] Handle weakreference callbacks invoked indirectly in the middle of a gc collection

2019-09-27 Thread Neil Schemenauer
Neil Schemenauer added the comment: I think the problem with your logic is that the weakref to F is part of the garbage set. So, handle_finalizers() should detect that and clear the finalizer rather than call it. Once we get to delete_garbage() and start calling tp_clear(), we can't be

[issue38300] Documentation says destuction of TemporaryDirectory object will also delete it, but it does not.

2019-09-27 Thread Ian
Ian added the comment: I'm sorry, I should've thought to check my python version. I was on 3.6.3 which it would not be deleted, updated to 3.6.8 and it works as intended. -- resolution: -> not a bug stage: -> resolved status: open -> closed versions: -Python 3.7

[issue38136] Remove AsyncMock.assert_awaited_*

2019-09-27 Thread Lisa Roach
Lisa Roach added the comment: New changeset 52bdd414ed9da7c62c312c542803753986a0040a by Lisa Roach in branch '3.8': [3.8] bpo-38136: Updates await_count and call_count to be different things (GH-16192) (GH-16431)

Re: PIP question

2019-09-27 Thread Gisle Vanem
dieter wrote: directory with some possible leftovers. It there a connection between this mysterious '-ip' package and this directory? This is possible. A so called "distribution" can install packages of a different name (for example, the distribution "Zope" installs (among others) a package

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-27 Thread Ned Deily
Ned Deily added the comment: Perhaps this should be a release blocker for 3.5.8. Larry? -- nosy: +larry, ned.deily ___ Python tracker ___

[issue38302] __rpow__ not reached when __ipow__ returns NotImplemented

2019-09-27 Thread Adi
Adi added the comment: Meant to say "... 2 and 3 arguments forms of pow, ..." -- ___ Python tracker ___ ___ Python-bugs-list

[issue38302] __rpow__ not reached when __ipow__ returns NotImplemented

2019-09-27 Thread Adi
Change by Adi : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38298] Base class of generic type has wrong `cls` argument in classmethods

2019-09-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38292] tkinter variable classes don't link to widget if matplotlib's set_cmap() function is called before the tkinter GUI is instantiated

2019-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: You neglected to state the observation that led to the conclusion of 'not linked'. Using 3.8 on Win10, I replaced "plt.set_cmap('x')" with "tk.Tk()". Then, clicking the button prints 'False' even when the checkbutton is checked. After either removing

[issue38242] Revert the new asyncio Streams API

2019-09-27 Thread Kyle Stanley
Kyle Stanley added the comment: Currently focusing on the Lib/asyncio/* and Lib/test/* changes. Working on doc changes next, but that should be significantly easier. In addition to https://github.com/python/cpython/commit/23b4b697e5b6cc897696f9c0288c187d2d24bff2 (main commit from Andrew

[issue38302] __rpow__ not reached when __ipow__ returns NotImplemented

2019-09-27 Thread Adi
New submission from Adi : Due to shared code between the 2 and 3 forms of pow, the following code causes a TypeError: class A: def __init__(self, val): self.val = val def __ipow__(self, other): return NotImplemented class B: def __init__(self, val):

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread Dong-hee Na
Dong-hee Na added the comment: Sure! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38242] Revert the new asyncio Streams API

2019-09-27 Thread Kyle Stanley
Kyle Stanley added the comment: > You'll need to be careful to only revert the new functions & the > asyncio.Stream class. So far the trickiest part has proven to be the tests (specifically test_streams.py) and keeping the deprecation warning for passing explicit loop arguments. I've had

[issue38301] If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- title: If "_REENTARNT" is defined in the header file, we should use "-D_REENTRANT" when compiling -> If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling ___ Python tracker

[issue38301] If "_REENTARNT" is defined in the header file, we should use "-D_REENTRANT" when compiling

2019-09-27 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : When compiling on Solaris family, we define "_REENTRANT" in "Pyconfig.h". That file is included when compiling C extensions, but if the extension is made of several C files, it could be included only in the file that interfaces with python runtime.

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: As a note on the general pattern, a user at work diagnosed a ^C problem in their code when running on 2.7 to be due to Queue.get's acquire() try: ... finally: release() Pattern, with the KeyboardInterrupt triggering after acquire() but before the try

[issue38296] unittest expectedFailure does not differentiate errors from failures

2019-09-27 Thread Kit Yan Choi
Change by Kit Yan Choi : -- nosy: -Kit Choi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: > If I understand Victor's test case correctly, the problem is caused if you > have an extension type that implements tp_traverse but not tp_clear and that > there is also a weakref involved in the trash cycle. I'm not sure that "implements tp_traverse but

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: > Is the behavior of tp_clear the key to this bug? Once func_clear(my_func) is called, calling my_func() will crash: my_func() is unsuable. Because of a complex dance involving borrowed references, the function is called *after* it's cleared. Pablo's PR

[issue38296] unittest expectedFailure does not differentiate errors from failures

2019-09-27 Thread Kit Yan Choi
Kit Yan Choi added the comment: For your test: class T(unittest.TestCase): def test_f(self): raise TypeError() If you run this test with unittest test runner, you should get this result: E == ERROR: test_f (test_main.T)

Re: itertools query

2019-09-27 Thread Piet van Oostrum
Pradeep Patra writes: > Hi all, > > I have written a small program to generate all the combinations of a and b > of the array. I want (6,7) tuple also included. Can anybody suggest what > change I should make to get 6,7 included in my output? Any suggestions > Why (6,7)? What about (5,7), (5,8)

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16021 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16442 ___ Python tracker ___

[issue38296] unittest expectedFailure does not differentiate errors from failures

2019-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: A function can fail to return an expected object by either returning a wrong object or raising an (unexpected) exception. The assertXyz methods, which ultimately raise AssertionError or something similar, are mostly about catching the first kind of

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-09-27 Thread Neil Schemenauer
Neil Schemenauer added the comment: A few comments from the "peanut gallery". Thanks to Victor and Pablo for doing the hard work of investigating this bug. First, it has been a long time since Tim and I first developed gcmodule.c. So, some of my understanding may be inaccurate due to code

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-27 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

Re: Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Eli the Bearded
In comp.lang.python, Roy Hann wrote: > I am designing a mobile application to run on a Raspberry Pi 3 model B. > It will not have any Internet access. I need to generate a static image > consisting of a simple arc representing (say) a speedometer or a > pressure gauge. The image will need to be

[issue38014] Python 3.7 does not compile

2019-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: #38295 gives error reports for test_py_compile with 3.8, which implies that Python was compiled well enough to run and fail a test. -- nosy: +terry.reedy ___ Python tracker

[issue38295] macOS Catalina test failures

2019-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not a duplicate because Python *did* compile enough to fail a test. -- components: +macOS nosy: +ronaldoussoren, terry.reedy resolution: duplicate -> stage: resolved -> needs patch status: closed -> open superseder: Python 3.7 does not

[issue38295] macOS Catalina test failures

2019-09-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Python 3.7 does not compile type: -> compile error ___ Python tracker

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: @Dong-hee Na: Would you mind to try to backport the change to Python 2.7 which also has the bug? -- ___ Python tracker ___

[issue38280] Add support to compile to native binary like as with golang

2019-09-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Feature request: Add support to compile to native binary like as golang -> Add support to compile to native binary like as with golang ___ Python tracker

[issue38280] Feature request: Add support to compile to native binary like as golang

2019-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The PSF and the core developer group do not have the resources to do this. Pie in the sky proposals like this should be floated on python-list or perhaps python-ideas, where you can get more answers as to 'Why not ...?" or perhaps 'How to ...?". (Several

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread miss-islington
miss-islington added the comment: New changeset 6447b9f9bd27e1f6b04cef674dd3a7ab27bf4f28 by Miss Islington (bot) in branch '3.8': bpo-38243, xmlrpc.server: Escape the server_title (GH-16373) https://github.com/python/cpython/commit/6447b9f9bd27e1f6b04cef674dd3a7ab27bf4f28 --

[issue38242] Revert the new asyncio Streams API

2019-09-27 Thread Yury Selivanov
Yury Selivanov added the comment: > Since this has been elevated to a release blocker, I wouldn't mind helping to > revert this ASAP. I can open a PR to fix it today. Sure, by all means, any help would be hugely appreciated. Thank you, Kyle. You'll need to be careful to only revert the new

[issue37883] threading.Lock.locked is not documented

2019-09-27 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37883] threading.Lock.locked is not documented

2019-09-27 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg353402 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread miss-islington
miss-islington added the comment: New changeset 39a0c730e31c6941a78da19b6a5b61170687 by Miss Islington (bot) in branch '3.7': bpo-38243, xmlrpc.server: Escape the server_title (GH-16373) https://github.com/python/cpython/commit/39a0c730e31c6941a78da19b6a5b61170687 -- nosy:

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: -> enhancement versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue37883] threading.Lock.locked is not documented

2019-09-27 Thread Tal Einat
Tal Einat added the comment: Looking at Lib/threading.py and Modules/_threadmodule.c, it actually appears that RLock.locked() is only implemented by the C implementation, but not the Python implementation which is used as a backup. If we're going to make the locked() method more visible by

[issue38242] Revert the new asyncio Streams API

2019-09-27 Thread Kyle Stanley
Kyle Stanley added the comment: > Andrew, do you want me to submit a PR or you can do it? Since this has been elevated to a release blocker, I wouldn't mind helping to revert this ASAP. I can open a PR to fix it today. -- ___ Python tracker

[issue38291] Unclear status of the typing.io and typing.re pseudo-modules in docs and runtime

2019-09-27 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Guido, what is your final opinion on this? -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: I remove the "release blocker" priority since the regression has been fixed in Python 3.8. The main "regression" was the addition of the func_clear() function: I removed it. -- priority: release blocker -> ___

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: > I haven't been able to verify that the last patches are sufficient to prevent > Python from segfaulting. We need to wait until rc1 is out. I need a proper > release or RPM build to run the tests on our internal test infrastructure. I pushed two fixes in

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: Oh, the main issue has been fixed and I added a lot of tests. So I remove the "release blocker" priority. I would like to keep the issue open since I plan to do one more change: use PyWideStringList in _PyPathConfig for module_search_paths to support paths

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16020 pull_request: https://github.com/python/cpython/pull/16441 ___ Python tracker ___

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +16019 pull_request: https://github.com/python/cpython/pull/16440 ___ Python tracker ___

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +16018 pull_request: https://github.com/python/cpython/pull/16439 ___ Python tracker ___

[issue37883] threading.Lock.locked is not documented

2019-09-27 Thread Tal Einat
Tal Einat added the comment: For future reference, there's a nicer, more concise way to reference PRs: just type GH-16420 (using the relevant PR number). -- nosy: +taleinat ___ Python tracker

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Ricardo Bánffy
Change by Ricardo Bánffy : -- assignee: -> docs@python components: +Documentation -Regular Expressions nosy: +docs@python type: behavior -> enhancement ___ Python tracker ___

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset e8650a4f8c7fb76f570d4ca9c1fbe44e91c8dfaa by Victor Stinner (Dong-hee Na) in branch 'master': bpo-38243, xmlrpc.server: Escape the server_title (GH-16373) https://github.com/python/cpython/commit/e8650a4f8c7fb76f570d4ca9c1fbe44e91c8dfaa

[issue37883] threading.Lock.locked is not documented

2019-09-27 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +16017 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16420 ___ Python tracker ___

[issue38300] Documentation says destuction of TemporaryDirectory object will also delete it, but it does not.

2019-09-27 Thread Ammar Askar
Ammar Askar added the comment: Hmm, I can't recreate this locally: >>> import tempfile >>> import os >>> t = tempfile.TemporaryDirectory() >>> temp_dir = t.name >>> os.path.exists(temp_dir) True >>> del t >>> os.path.exists(temp_dir) False What version of Python are you using? --

[issue38300] Documentation says destuction of TemporaryDirectory object will also delete it, but it does not.

2019-09-27 Thread Ian
New submission from Ian : The documentation found here https://docs.python.org/3.7/library/tempfile.html#tempfile.TemporaryDirectory states the following "On completion of the context or destruction of the temporary directory object the newly created temporary directory and all its contents

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Ricardo Bánffy
Ricardo Bánffy added the comment: Indeed. It was easy to miss because of the joining and sorting. Being explicit on the 3.7 changes, that '!', '"', '%', "'", ',', '/', ':', ';', '<', '=', '>', '@', '`' were up to 3.6 but are no longer escaped since 3.7, would be nice. --

[issue38299] build errors - latest "git pull"

2019-09-27 Thread Geoge R. Goffe
New submission from Geoge R. Goffe : SUMMARY: AddressSanitizer: 240 byte(s) leaked in 3 allocation(s). -- components: Build files: build-python-3.log messages: 353391 nosy: grgo...@yahoo.com priority: normal severity: normal status: open title: build errors - latest "git pull" type:

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is already documented. There are even examples which contain "/" and ":". -- ___ Python tracker ___

[issue38293] Deepcopying property objects results in unexpected TypeError

2019-09-27 Thread Guðni Nathan
Change by Guðni Nathan : -- keywords: +patch pull_requests: +16016 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16438 ___ Python tracker ___

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Ricardo Bánffy
Ricardo Bánffy added the comment: Thanks for the clarification, Serhiy. Should we update the 3.7 docs to warn others about it? -- ___ Python tracker ___

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-27 Thread RobH
On 27/09/2019 15:28, Dennis Lee Bieber wrote: On Fri, 27 Sep 2019 10:48:29 +0100, RobH declaimed the following: Ok, the adafruit_character_lcd is in the same directory as yours, and so is Blinka and Purio. It seems to be a bit of a long path to type to get to the Adafruit_Charlcd directory,

[issue38293] Deepcopying property objects results in unexpected TypeError

2019-09-27 Thread Guðni Nathan
Guðni Nathan added the comment: This bug appears to also affect shallow copies and can be reproduced with the following code: >>> import copy >>> obj = property() >>> copy.copy(obj) Traceback (most recent call last): File "", line 1, in File "C:\Program

[issue38297] Imports at top of module is often not used

2019-09-27 Thread Eric V. Smith
Eric V. Smith added the comment: I think PEP 8 should say "Module-level imports are always put at the top of the file, ...". -- nosy: +eric.smith ___ Python tracker ___

[issue38298] Base class of generic type has wrong `cls` argument in classmethods

2019-09-27 Thread Kefei Lu
New submission from Kefei Lu : This is a new regression in Python3.7. Create the following file as `test.py` ``` # test.py import typing as t T = t.TypeVar("T") class BaseOfGeneric: @classmethod def f(cls): # when called from an instantiated generic type, e.g.,

[issue38297] Imports at top of module is often not used

2019-09-27 Thread Dominic Littlewood
New submission from Dominic Littlewood <11dlittlew...@gmail.com>: In PEP 8, it is stated that: "Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants." Note the word "always". This advice makes sense because it

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is deliberate. "/" and ":" do not have special meaning in regular expressions and do not need escaping. re.escape() now produces more human-readable result and works faster. -- nosy: +serhiy.storchaka

[issue38293] Deepcopying property objects results in unexpected TypeError

2019-09-27 Thread Guðni Nathan
Guðni Nathan added the comment: Function objects are considered "atomic" here and I believe you can also write to their __doc__ (among other attributes). -- ___ Python tracker

[issue38296] unittest expectedFailure does not differentiate errors from failures

2019-09-27 Thread Kit Choi
New submission from Kit Choi : I expect the following test to fail, because an "error" is not a "failure". Unexpectedly, the test passes: ``` class TestFailure(unittest.TestCase): @unittest.expectedFailure def test_expected_failure(self): raise TypeError() # for example, a

  1   2   >