Re: polar coordinates?

2018-12-18 Thread Brian Christiansen
I don't think what I am currently doing is heat maps, but at least from what I have read, they could be adapted to "visualiztions of PI." Toward that end I decided to put a link to the video that inspired me, a link to where I got the graphics.py package (or at least where I think I got it),

[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker ___

[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1e47fbcf78c4d66fbe1fc7b4ea91a6b147ff83d2 by Serhiy Storchaka in branch '3.7': [3.7] bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174). (GH-11232)

Re: setup.py, how to find main program/module?

2018-12-18 Thread dieter
ant writes: > ... > yet not quite all the way yet. i run the > commands to make the sdist and wheels and upload > it using twine to my test account, but when > i install it and try to run it the ngfp.py is > not found (i've also tried nfgp and main). > ... > i suspect i've not really

[issue35509] Unable to inherit from logging.Formatter

2018-12-18 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Oh so that's a simple Python question. Yep it works if `self` is removed. Thank you very much for the comment and sorry for bothering. I'll fix the code I'm using. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10466 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2b57c43f21f891df4c6f2294a3b9e1b9029a16b6 by Serhiy Storchaka in branch 'master': bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174) https://github.com/python/cpython/commit/2b57c43f21f891df4c6f2294a3b9e1b9029a16b6

[issue10320] printf %qd is nonstandard

2018-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 838645dc4191c4109e2b300cf9ed9d481b55509f by Serhiy Storchaka (Zackery Spytz) in branch '2.7': bpo-10320: Use PY_FORMAT_LONG_LONG in ctypes' PyCArg_repr(). (GH-11230)

Mask two images with python

2018-12-18 Thread Umar Yusuf
Hello there, How do I supper impose an image design on a transparent png image? I have tried to use OpenCV's "cv2.bitwise_and" function to no success. I posted the detail question here: https://stackoverflow.com/questions/53791510/python-opencv-mask-and-glow Thank you for your time. --

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-18 Thread Ma Lin
Ma Lin added the comment: comes from html.escape(s, quote=True) https://github.com/python/cpython/blob/4a9ee26750aa8cb37b5072b2bb4dd328819febb4/Lib/html/__init__.py#L24 Of course, it's not a bug. It would be better to patch in Sphinx, I will do it at some point. --

setup.py, how to find main program/module?

2018-12-18 Thread ant
hello, i'm getting there... yet not quite all the way yet. i run the commands to make the sdist and wheels and upload it using twine to my test account, but when i install it and try to run it the ngfp.py is not found (i've also tried nfgp and main). test upload:

[issue35531] xml.etree.ElementTree Elment.find bug, fails to find tag

2018-12-18 Thread Justin
Justin added the comment: Issue was user error. I though that find did a full search of the tree when it only searches children. Solution is: ele = xml.find('.//faultstring') -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue35531] xml.etree.ElementTree Elment.find bug, fails to find tag

2018-12-18 Thread Justin
New submission from Justin : When the following text it loaded in to an ElementTree Element, the find method is unable to find one of the elements without a namespace assigned to it. ``` import xml.etree.ElementTree as ElementTree xml_text = """

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-12-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: For M1 and M2 - #22703. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: But the `build_all_generate_profile` build is an intermediate instrumented interpreter build, it isn't shipped and things like PGO often require flags that the linker sees in order to generate the instrumented binary. If those are left off of the link

[issue10320] printf %qd is nonstandard

2018-12-18 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +10465 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35530] Counter-intuitive logging API

2018-12-18 Thread Victor Porton
New submission from Victor Porton : The following script: #/usr/bin/env python3 import logging logger = logging.getLogger(name='main') logger.setLevel(logging.INFO) logger.error('XXX') logging.error('ZZZ') logger.error('XXX') outputs XXX ERROR:root:ZZZ ERROR:main:XXX That is

[issue10320] printf %qd is nonstandard

2018-12-18 Thread miss-islington
miss-islington added the comment: New changeset 53e2248a94cd89e65326c5cfd400f74a88552d8c by Miss Islington (bot) in branch '2.7': bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)

[issue35529] A reference counting bug in ctypes

2018-12-18 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +10464 stage: -> patch review ___ Python tracker ___ ___

[issue35529] A reference counting bug in ctypes

2018-12-18 Thread Zackery Spytz
New submission from Zackery Spytz : In PyCFuncPtr_FromDll(), "dll" will leak if an error occurs in _validate_paramflags() or GenericPyCData_new(). -- components: Extension Modules, ctypes messages: 332101 nosy: ZackerySpytz priority: normal severity: normal status: open title: A

[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset c74e7c48ba4f8437d4c8b402098b8cefc33a28a9 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-35424: Fix test_multiprocessing_main_handling (GH-11223) (GH-11227)

[issue10320] printf %qd is nonstandard

2018-12-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +10463 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31731] [2.7] test_io: race condition in test_interrupted_write_text() (test_io hangs on x86 Gentoo Refleaks 2.7)

2018-12-18 Thread miss-islington
miss-islington added the comment: New changeset 729fc5d2acab9eb672c4804092236af5362a4c66 by Miss Islington (bot) in branch '3.7': bpo-31731: Fix test_io.check_interrupted_write() (GH-11225) https://github.com/python/cpython/commit/729fc5d2acab9eb672c4804092236af5362a4c66 -- nosy:

[issue31731] [2.7] test_io: race condition in test_interrupted_write_text() (test_io hangs on x86 Gentoo Refleaks 2.7)

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: The test can be fixed in Python 2.7 by exposing pthread_sigmask() somehow, or at least pthread_sigmask(SIG_BLOCK, [SIGALARM]), but honestly, I don't think that it's worth it. The test only very rarely hangs, and the bug has already been fixed in Python 3.

[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +10462 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6cdce3ddef805e11d75142f3e20e23c3fe21fdf4 by Victor Stinner in branch 'master': bpo-35424: Fix test_multiprocessing_main_handling (GH-11223) https://github.com/python/cpython/commit/6cdce3ddef805e11d75142f3e20e23c3fe21fdf4 --

[issue31731] [2.7] test_io: race condition in test_interrupted_write_text() (test_io hangs on x86 Gentoo Refleaks 2.7)

2018-12-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +10461 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31731] [2.7] test_io: race condition in test_interrupted_write_text() (test_io hangs on x86 Gentoo Refleaks 2.7)

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 05c9d31eb62cc45dc3c55a5cdb7cbc713d0421db by Victor Stinner in branch 'master': bpo-31731: Fix test_io.check_interrupted_write() (GH-11225) https://github.com/python/cpython/commit/05c9d31eb62cc45dc3c55a5cdb7cbc713d0421db --

[issue35012] [3.7] test_multiprocessing_spawn hangs randomly on AppVeyor

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: I haven't seen this bug for 2 months, I'm unable to reproduce the bug and I don't know how to fix it. I close the bug as out of date. Reopen it if it comes back. -- resolution: -> out of date stage: -> resolved status: open -> closed

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: Any update on this issue? -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___

[issue31731] [2.7] test_io: race condition in test_interrupted_write_text() (test_io hangs on x86 Gentoo Refleaks 2.7)

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: > AMD64 FreeBSD 10.x Shared 3.7 issue: I wrote PR 11225 which may fix it. -- ___ Python tracker ___

[issue35528] [DOC] [LaTeX] Sphinx 2.0 uses GNU FreeFont as default for xelatex

2018-12-18 Thread jfbu
New submission from jfbu : Not sure if any issue at all, but as said in title, starting with Sphinx 2.0 (Spring 2019), XeLaTeX will be configured to use by default GNU FreeFont, (see https://github.com/sphinx-doc/sphinx/blob/master/CHANGES), and this means new dependency (for documentation

[issue31731] [2.7] test_io: race condition in test_interrupted_write_text() (test_io hangs on x86 Gentoo Refleaks 2.7)

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10460 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-18 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +10459 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-18 Thread Steve Dower
Steve Dower added the comment: I've got an alternate PR to do the fixup in an extension, as well as fixing two other minor build problems for docs (on Windows). -- ___ Python tracker

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this is a Sphinx bug. It should work around limitations of the CHM compiler. -- ___ Python tracker ___

Re: Python, the stack, and the heap

2018-12-18 Thread eryk sun
On 12/17/18, Chris Angelico wrote: > > Hang on, you're conflating two different things here. You're probably right that I misinterpreted what the OP meant by references winding up "on the stack". It's more common for a Python developer to think of the call stack instead of the implementation

[issue35394] Add __slots__ = () to asyncio protocols

2018-12-18 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2018-12-18 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.6, Python 3.7 ___ Python tracker ___

[issue32706] test_check_hostname() of test_ftplib started to fail randomly

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: Ok, let's keep this permanent temporary fix (test skipped until someone finds a solution). I close the issue. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: Even if the code isn't perfect, I didn't see the failure recently. So I close the bug again. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2018-12-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b5c8cfa1da17c6f3acac80a0afca7f7104fb9589 by Andrew Svetlov (Vladimir Matveev) in branch 'master': bpo-23057: add loop self socket as wakeup fd for signals (#11135)

[issue35527] Make fields selectively immutable in dataclasses

2018-12-18 Thread Yury Selivanov
Yury Selivanov added the comment: +1. I've tried to use `field(frozen=True)` today and was surprised it's not supported. -- nosy: +yselivanov ___ Python tracker ___

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-18 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 12f3979b3807b448ca070b44bbc1597cf800f8a4 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145) (GH-11221)

[issue34833] [CI] Azure Pipeline: Initialize Agent failed

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: I didn't see the failure recently, so I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-18 Thread Steve Dower
Steve Dower added the comment: It looks like generally the entity does not work in the CHM index - there should be b' and u' entries as well, but they show up as b and u (whereas b" and u" are fine). Substituting seems to work fine, but I had to do that manually in the hhk file and then

[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10458 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34764] Improve documentation example for using iter() with sentinel value

2018-12-18 Thread ChrisRands
Change by ChrisRands : -- keywords: +patch pull_requests: +10457 stage: -> patch review ___ Python tracker ___ ___

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-18 Thread miss-islington
miss-islington added the comment: New changeset 60c919b58bd3cf8730947a00ddc6a527d6922ff1 by Miss Islington (bot) in branch '3.7': bpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170) https://github.com/python/cpython/commit/60c919b58bd3cf8730947a00ddc6a527d6922ff1

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-18 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue35520] Python won't build with dtrace enabled on some systems.

2018-12-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +10456 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-18 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e3666fc8effb05b555121f4ab7388df59e21f8b4 by Yury Selivanov (Hrvoje Nikšić) in branch 'master': bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145)

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35527] Make fields selectively immutable in dataclasses

2018-12-18 Thread Raymond Hettinger
New submission from Raymond Hettinger : The unsafe_hash option is unsafe only because it doesn't afford mutability protections. This can be mitigated with selective immutability. @dataclass class Person: ssn: int = field(immutable=True) birth_city: int = field(immutable=True)

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10455 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: Oh wait, "make build_all_generate_profile" and "make profile-opt" have another issue. They modify LDFLAGS, whereas PGO flags seem to be very specific to the compiler, not to the linker. I reopen the issue. build_all_generate_profile: $(MAKE)

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-18 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +10454 stage: -> patch review ___ Python tracker ___ ___

[issue17561] Add socket.create_server_sock() convenience function

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +10453 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d2a75c67830d7c9f59e4e9b60f36974234c829ef by Serhiy Storchaka in branch 'master': bpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170) https://github.com/python/cpython/commit/d2a75c67830d7c9f59e4e9b60f36974234c829ef

[issue35461] Document C API functions which swallow exceptions

2018-12-18 Thread miss-islington
miss-islington added the comment: New changeset f265afec1c2a5acb8cb9c9ddb6cd45f7465c6eb5 by Miss Islington (bot) in branch '3.7': bpo-35461: Document C API functions which suppress exceptions. (GH-9) https://github.com/python/cpython/commit/f265afec1c2a5acb8cb9c9ddb6cd45f7465c6eb5

[issue17561] Add socket.create_server_sock() convenience function

2018-12-18 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17561] Add socket.create_server_sock() convenience function

2018-12-18 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- pull_requests: +10452 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22703] Idle Code Context menu entrie(s)

2018-12-18 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +10451 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35516] platform.system_alias(): add macOS support

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35516] platform.system_alias(): add macOS support

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 60875db2f67815d7d181c552bfac59e8c97619e3 by Victor Stinner in branch 'master': bpo-35516: platform.system_alias() don't replace Darwin (GH-11207) https://github.com/python/cpython/commit/60875db2f67815d7d181c552bfac59e8c97619e3 --

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Let's extend the "joke" and make it mandatory in Python 4! :) -- ___ Python tracker ___ ___

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2018-12-18 Thread Yury Selivanov
Yury Selivanov added the comment: Dima, we'll likely address this in 3.8, when we land new SSL implementation. Meanwhile you can use uvloop where all these bugs should be fixed. -- ___ Python tracker

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2018-12-18 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35524] using/windows launcher image might be deprecated

2018-12-18 Thread Steve Dower
Steve Dower added the comment: That option is only for the py.exe launcher and not the whole installation (notice the target path is still under C:\Users). Having an updated image would be fine, though the only difference should be the version number. If you can provide a similar sized

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-18 Thread Eric Snow
Change by Eric Snow : -- nosy: +barry, brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35524] using/windows launcher image might be deprecated

2018-12-18 Thread Zachary Ware
Change by Zachary Ware : -- assignee: docs@python -> steve.dower components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been fixed, I close the issue. Thanks for the review and feedback! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: A few minor tests are still failing when the uid doesn't exist in the password database, but the main issue in pwdhas been fixed and distutils should work more or lesss. I close this 8 years old issue. Thanks to everyone who has been involved in helping to

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea6b322829c62951362f267d7afdd262aa2b3e2c by Victor Stinner in branch '2.7': bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) (GH-11213) https://github.com/python/cpython/commit/ea6b322829c62951362f267d7afdd262aa2b3e2c

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-18 Thread ChrisRands
ChrisRands added the comment: SO question where this derived from: https://stackoverflow.com/questions/53830960/can-all-future-statements-be-removed-from-a-python-code-without-affecting-i -- ___ Python tracker

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-18 Thread ChrisRands
New submission from ChrisRands : A festive bug report: >>> from __future__ import barry_as_FLUFL >>> barry_as_FLUFL.mandatory (3, 9, 0, 'alpha', 0) So barry_as_FLUFL is documented to become mandatory for Python 3.9. Note that mandatory here means that the feature becomes permanent without

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread miss-islington
miss-islington added the comment: New changeset 6e96fb44f12c2e9d7ab0d14a21f2aa85ecaa2f83 by Miss Islington (bot) in branch '3.7': bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) https://github.com/python/cpython/commit/6e96fb44f12c2e9d7ab0d14a21f2aa85ecaa2f83

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10450 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2018-12-18 Thread Colin McPhail
New submission from Colin McPhail : The library documentation for nntplib.NNTP.starttls() says that it takes a keyword parameter called ssl_context. The source code referenced via the link at the top of the nntplib documentation shows the keyword is actually called context. The result is a

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 17d0c0595e101c4ce76b58e55de37e6b5083e6cd by Victor Stinner in branch 'master': bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) https://github.com/python/cpython/commit/17d0c0595e101c4ce76b58e55de37e6b5083e6cd

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +10449 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: Complex 'compare'

2018-12-18 Thread Avi Gross
Frank, Thanks for explaining. It looks like you might want a shortcut compare done in an iterative or recursive way that returns as soon as a discrepancy happens in the direction you are comparing. If they are equal, you fall off the end. A pythonic way is to use a loop as in: >>> flag = True

Re: Why do data descriptors (e.g. properties) take priority over instance attributes?

2018-12-18 Thread Ian Kelly
On Mon, Dec 17, 2018, 12:09 PM Paul Baker When Python looks up an attribute on an object (i.e. when it executes > `o.a`), it uses an interesting priority order [1]. It looks for: > > 1. A class attribute that is a data-descriptor (most commonly a property) > 2. An instance attribute > 3. Any

[issue34238] When BROWSER is set on Mac webbrowser.register_standard_browsers doesn't work

2018-12-18 Thread Jason
Jason added the comment: Yes, it does. I haven't tried that code, but it looks similar to a fix I implemented locally. Jason O'Gray On Sun, Dec 2, 2018 at 2:41 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > > However, I

RE: Complex 'compare'

2018-12-18 Thread Avi Gross
Frank, I am not commenting on your specific code, just asking a question. If you have two tuples of the same size it does seem that python evaluates them in the order you want just by doing something like this example I made with a 2-tuple: >>> (1, 2) > (2,1) False >>> (1, 2) > (1,1) True >>>

[issue17679] sysconfig generation uses some env variables multiple times

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: build.diff: Difference without/with the patch on Python build from source. Example: - CPPFLAGS = "-I. -I./Include" + CPPFLAGS = "-I. -I/Include" This change is wrong: /Include directory doesn't exist. Another example: - LIBPL =

[issue17679] sysconfig generation uses some env variables multiple times

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: I don't think that the attached patch is correct. See attached install.diff: difference without/with 00178-dont-duplicate-flags-in-sysconfig.patch on Python installed in /usr/bin/python3. Example of bug: 'TESTRUNNER':

[issue35523] Remove old ctypes callback workaround: creating the first instance of a callback

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: I will keep an eye on buildbots next days. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30525] Expose SCTs on TLS connections

2018-12-18 Thread Christian Heimes
Christian Heimes added the comment: I looked into the matter. It's certainly doable to have simple CT validation. A custom CT policy is a bit more work, as I would have to provide a callback and two new types. * a method to load CT log config, SSL_CTX_set_ctlog_list_file() * a method to

[issue35523] Remove old ctypes callback workaround: creating the first instance of a callback

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset e6b247c8e524dbe5fc03b3492f628d0d5348bc49 by Victor Stinner in branch 'master': bpo-35523: Remove ctypes callback workaround (GH-11211) https://github.com/python/cpython/commit/e6b247c8e524dbe5fc03b3492f628d0d5348bc49 --

[issue35509] Unable to inherit from logging.Formatter

2018-12-18 Thread Luna Chen
Luna Chen added the comment: Hi Chih-Hsuan Yen, I have noticed in your `__init__` method, you have `super().__init__(self)`, I'm just wondering if the `self` argument is intentional, as the `Foo` object is to become the format itself? Because inheritance seems to work fine for me with

[issue35523] Remove old ctypes callback workaround: creating the first instance of a callback

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- title: Remove ctypes old workaround: creating the first instance of a callback -> Remove old ctypes callback workaround: creating the first instance of a callback ___ Python tracker

[issue35523] Remove ctypes old workaround: creating the first instance of a callback

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10448 stage: -> patch review ___ Python tracker ___ ___

Re: How to use multiple instances of the same COM object at the same time

2018-12-18 Thread h . kheti . serpentcs
On Friday, March 22, 2013 at 11:43:50 PM UTC+5:30, Jan wrote: > Dear Usenet readers, > > Our company wants to implement about 40 biometric access control devices > which have a proprietary DLL with a COM object in it. > > I've done some research about COM objects and how to use them. > Now, I

[issue35509] Unable to inherit from logging.Formatter

2018-12-18 Thread Luna Chen
Luna Chen added the comment: Hi Chih-Hsuan Yen, I will check this out and let you know the outcome. Thanks! :) -- ___ Python tracker ___

[issue35524] using/windows launcher image might be deprecated

2018-12-18 Thread Jules Lasne
Jules Lasne added the comment: There is also a conflict between the image and the text: Under `Selecting a custom install`, a line says ``` To perform an all-users installation, you should select “Customize installation”. In this case: ``` But the screenshot of the installer shows that you

[issue35524] using/windows launcher image might be deprecated

2018-12-18 Thread Jules Lasne
New submission from Jules Lasne : https://docs.python.org/3/_images/win_installer.png This image corresponds to the Python 3.5 installer. Would it be useful to get a new screenshot of the latest installer ? I can do it if needed -- assignee: docs@python components: Documentation

[issue35523] Remove ctypes old workaround: creating the first instance of a callback

2018-12-18 Thread STINNER Victor
New submission from STINNER Victor : ctypes._reset_cache() contains the following code: # XXX for whatever reasons, creating the first instance of a callback # function is needed for the unittests on Win64 to succeed. This MAY # be a compiler bug, since the problem occurs only

  1   2   >