[issue42488] Mathematical error

2020-11-27 Thread Nishant Gautam
New submission from Nishant Gautam : Python language have some to solve mathematical problem. It gives wrong answer. This is the vulnerability, if you think this the vulnerability for your language. Remember this is the mathematical error and no computer language effort this. Otherwise it

[issue42452] Improve colorsys.rgb_to_hls code

2020-11-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change was a suggested TODO in the code itself. -- resolution: -> fixed stage: -> resolved status: open -> closed title: FIX Optimize 'rgb_to_hls' -> Improve colorsys.rgb_to_hls code ___ Python tracker

[issue42452] FIX Optimize 'rgb_to_hls'

2020-11-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset f9195318a863e237f41ed7665c767028cde1c9a3 by Julien Jerphanion in branch 'master': bpo-42452: Improve colorsys.rgb_to_hls code (GH-23306) https://github.com/python/cpython/commit/f9195318a863e237f41ed7665c767028cde1c9a3 -- nosy:

[issue41818] Lib/pty.py major revision

2020-11-27 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: Update: I closed PR 23533. PR 23536 is much better. It will help us detect exact behavior on each platform, which is necessary for making pty.spawn() successfully exit its copy loop. -- ___ Python tracker

[issue41818] Lib/pty.py major revision

2020-11-27 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- pull_requests: +22418 pull_request: https://github.com/python/cpython/pull/23536 ___ Python tracker ___

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would attach simple PRs based on the discussion here to this issue. If a particular change needs additional and particular discussion, I would open a separate PR, announce it here, and list it in the Dependencies box. Then this generic issue, 'Remove

[issue42436] Google use wrong "hightlight" argument

2020-11-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: With the same query, the first 4 responses for me are to the same page but for different Python versions. None of the URLs include the query string. `highlight=s` causes all the 's'es in the document to be highlighted, though with a different color than

[issue42447] robotsparser deny all with some rules

2020-11-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue tracker is for proposing changes to the github CPython repository, used to make python.org python releases. Your post does not propose a change and does not demonstrate that there is a bug in current Python, which is 3.9. So my current opinion

[issue42433] mailbox.mbox fails on non ASCII characters

2020-11-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: (The non-ascii chars are “ and ”, versus ascii ".) Florian, although you did not select a 'Type', selecting multiple versions implicitly claims that the current behavior is a bug. I believe R.David has explained that it is not, even if sub-optimal. Do you

[issue42433] mailbox.mbox fails on non ASCII characters

2020-11-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

filtering out warnings

2020-11-27 Thread Jason Friedman
The Box API is noisy ... very helpful for diagnosing, and yet for production code I'd like less noise. I tried this: warnings.filterwarnings( action='ignore', # category=Warning, # module=r'boxsdk.*' ) but I still see this: WARNING:boxsdk.network.default_network:"POST

Re: try/except in loop

2020-11-27 Thread Cameron Simpson
I had to do this with a different API the toehr year, and made this method: def auth_token(self): ''' Obtain a current auth token [...] Refreshes the cached token if stale. ''' while True: with self._auth_token_lock: token =

[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps

2020-11-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: I had a discussion with the release manager and we're good to backport to 3.9 but not 3.8. Serhiy, would you also take a look at this? -- assignee: -> rhettinger nosy: +lukasz.langa, rhettinger, serhiy.storchaka versions: +Python 3.9

Re: try/except in loop

2020-11-27 Thread Jason Friedman
> > >> I'm using the Box API ( >> https://developer.box.com/guides/tooling/sdks/python/). >> I can get an access token, though it expires after a certain amount of >> time. My plan is to store the access token on the filesystem and use it >> until it expires, then fetch a new one. In the example

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-27 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +22417 pull_request: https://github.com/python/cpython/pull/23535 ___ Python tracker ___

[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps

2020-11-27 Thread Raymond Hettinger
Change by Raymond Hettinger : -- type: behavior -> performance versions: -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps

2020-11-27 Thread Andreas Poehlmann
Change by Andreas Poehlmann : -- keywords: +patch pull_requests: +22416 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23534 ___ Python tracker

[issue41701] Buildbot web page: connection lost after 1 minute, then display "Connection restored" popup

2020-11-27 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: Apologies, wrong issue. I’ll have to take a closer look at this. -- ___ Python tracker ___

[issue41701] Buildbot web page: connection lost after 1 minute, then display "Connection restored" popup

2020-11-27 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: I am away from my computer at the moment, but there is a direct access hostname for the buildbot host that was announced to the build server owners. Configuring that bypasses the load balancer. -- ___

[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps

2020-11-27 Thread Andreas Poehlmann
New submission from Andreas Poehlmann : Hello, I encountered an issue with collections.ChainMap, that was introduced when https://bugs.python.org/issue32792 got fixed. Iterating a ChainMap will call __getitem__ on its underlying maps: >>> from collections import UserDict, ChainMap >>>

Re: try/except in loop

2020-11-27 Thread Bob Gailer
On Fri, Nov 27, 2020, 6:06 PM Jason Friedman wrote: > I'm using the Box API ( > https://developer.box.com/guides/tooling/sdks/python/). > I can get an access token, though it expires after a certain amount of > time. My plan is to store the access token on the filesystem and use it > until it

Re: Cannot marshal objects

2020-11-27 Thread Skip Montanaro
> Because the marshaling is happening in the guts of xmlrpc. Okay, I misunderstood your original message. You used the word "marshal" (and the xmlrpc error did as well). I thought you were referring to the marshal module. I didn't understand (and ignored) the references to the xmlrpc module. In

[issue29777] argparse arguments in main parser hide an argument in subparser

2020-11-27 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2.7 is no longer supported, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___

try/except in loop

2020-11-27 Thread Jason Friedman
I'm using the Box API (https://developer.box.com/guides/tooling/sdks/python/). I can get an access token, though it expires after a certain amount of time. My plan is to store the access token on the filesystem and use it until it expires, then fetch a new one. In the example below assume I have

[issue17083] can't specify newline string for readline for binary files

2020-11-27 Thread Alex Shpilkin
Change by Alex Shpilkin : -- nosy: +Alex Shpilkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Cannot marshal objects

2020-11-27 Thread D'Arcy Cain
On 11/27/20 4:05 PM, Skip Montanaro wrote: I am getting this error. I assume you mean the email subject. It doesn't work in 3.8 either: Yes I do and that's too bad. but that's not surprising to me. The marshal module is more-or-less meant to serialize Python byte code. Pickle is more

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Re-adding older versions. -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue41818] Lib/pty.py major revision

2020-11-27 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: PR-23533 should fix the test_master_read() issue on Solaris. Actually, instead of adding 'or PLATFORM == "SunOS"', I ended up removing the whole line and replaced it with 'if platform.system() != "Linux"' because I expect that test to fail on every

[issue41818] Lib/pty.py major revision

2020-11-27 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- pull_requests: +22415 pull_request: https://github.com/python/cpython/pull/23533 ___ Python tracker ___

Re: Environment vars

2020-11-27 Thread Bob van der Poel
On Fri, Nov 27, 2020 at 1:41 PM dn via Python-list wrote: > On 26/11/2020 05:46, Bob van der Poel wrote: > > I've got a program which accepts an optional env variable listing a > single > > or multiple directory for the app to use. I've done a bit of a search and > > see both a comma and

[issue41701] Buildbot web page: connection lost after 1 minute, then display "Connection restored" popup

2020-11-27 Thread STINNER Victor
STINNER Victor added the comment: We need someone of the PSF Infra team to increase the load balancer delay. Or fix the load balancer. -- ___ Python tracker ___

[issue41701] Buildbot web page: connection lost after 1 minute, then display "Connection restored" popup

2020-11-27 Thread David Bolen
David Bolen added the comment: I was wondering if there was any update on whether or not this new behavior can be corrected? I was attempting to review a buildbot failure today and it's actually pretty tough to "race the refresh" when trying to review the build steps and logs. --

[issue41818] Lib/pty.py major revision

2020-11-27 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: This is actually good news. I had not tested the code on Solaris; this confirms my suspicion that Linux is the only platform that "behaves differently". Sadly, the current Lib/pty.py code depends on such "different behavior" to exit from pty.spawn()'s

Re: Environment vars

2020-11-27 Thread dn via Python-list
On 26/11/2020 05:46, Bob van der Poel wrote: I've got a program which accepts an optional env variable listing a single or multiple directory for the app to use. I've done a bit of a search and see both a comma and semicolon being used/suggested as a path separator. Any consensus on which is

[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-27 Thread David Bolen
David Bolen added the comment: This change to the 3.8 branch appears to be consistently failing on the Windows 7 buildbot (first failing build at https://buildbot.python.org/all/#/builders/270/builds/126). It's all failures in the new test_configure_custom_copy and test_map_custom_copy

[issue39732] plistlib should export UIDs in XML like Apple does

2020-11-27 Thread Jon Janzen
Change by Jon Janzen : -- nosy: +bigfootjon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42483] Way working directory is added to sys.path differs between using -c or -m

2020-11-27 Thread Paolo Lammens
Paolo Lammens added the comment: Hmm I think that’s unrelated; it’s a discussion about whether to add or not the working directory at all. Here the issue is that the way it *is* added differs between -c and -m (which isn’t documented). In both cases it is added (I’m not discussing that) but

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Irit Katriel
Irit Katriel added the comment: I've added the refcount check that Victor suggested. -- ___ Python tracker ___ ___

Re: Cannot marshal objects

2020-11-27 Thread Skip Montanaro
> I am getting this error. I assume you mean the email subject. It doesn't work in 3.8 either: >>> import decimal >>> d = decimal.Decimal(3.5) >>> d Decimal('3.5') >>> import marshal >>> marshal.dumps(d) Traceback (most recent call last): File "", line 1, in ValueError: unmarshallable object

Why I always have invalid error when using "pip install matplotlib" in Python 3.9

2020-11-27 Thread SONAHI
    Sent from [1]Mail for Windows 10   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Cannot marshal objects

2020-11-27 Thread D'Arcy Cain
I am getting this error. I found this recipe to fix it: from xmlrpclib import Marshaller from decimal import Decimal def dump_decimal(self, value, write): write("") write(str(value)) write("\n") Marshaller.dispatch[Decimal] = dump_decimal That seems to be for Python 2. I am

[issue42486] Investigate docs.python.org egregious SEO performance on Google

2020-11-27 Thread Nelson Elhage
Nelson Elhage added the comment: Thanks! Filed https://github.com/python/pythondotorg/issues/1691 to follow-up there. -- ___ Python tracker ___

[issue42483] Way working directory is added to sys.path differs between using -c or -m

2020-11-27 Thread STINNER Victor
STINNER Victor added the comment: See https://discuss.python.org/t/python-flag-envvar-not-to-put-current-directory-to-sys-path-but-dont-ignore-pythonpath/4235 discussion. -- nosy: +vstinner ___ Python tracker

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread STINNER Victor
STINNER Victor added the comment: I consider PR 23531 change as a bugfix and IMO it's fine to backport it. TracebackException docstring is quite explicit: The traceback module captures enough attributes from the original exception to this intermediary form to ensure that no

[issue42486] Investigate docs.python.org egregious SEO performance on Google

2020-11-27 Thread STINNER Victor
STINNER Victor added the comment: > This request might be out-of-scope for this bugtracker Please report python.org issues to https://github.com/python/pythondotorg/ -- nosy: +vstinner resolution: -> third party stage: -> resolved status: open -> closed

[issue42486] Investigate docs.python.org egregious SEO performance on Google

2020-11-27 Thread Alex Gaynor
Change by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42486] Investigate docs.python.org egregious SEO performance on Google

2020-11-27 Thread Nelson Elhage
New submission from Nelson Elhage : This request might be out-of-scope for this bugtracker, but I suspect that something is causing Google to actively downweight docs.python.org in its search results, and want to request someone investigate. I would expect, for instance, a search for [python

Regarding Regex timeout behavior to minimize CPU consumption

2020-11-27 Thread Shahique Khan
Hi Team, I have noticed if our regex sometimes does not give a result and on that time regex took more time in returning response (empty response). My Question is can we set a timeout parameter (in seconds/millisecond) with re.find or anywhere in code to avoid CPU consumption if regex takes more

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Guido van Rossum
Guido van Rossum added the comment: For background, see https://github.com/iritkatriel/cpython/pull/3#issuecomment-734640036 -- it seems the link to exc_traceback was added with little concern for the original design of TracebackExceptionGroup. The question is, can we get rid of it, even

Re: Dispatch table of methods with various return value types

2020-11-27 Thread Loris Bennett
dn writes: > On 19/11/2020 02:13, Loris Bennett wrote: >> dn writes: >> >> Firsty, thanks for taking the time to write such a detailed reply. > > Bitte! > > >> I have a method for manipulating the membership of groups such as: >> >>def execute(self, operation, users, group):

[issue42474] improve test coverage for TracebackException's __eq__

2020-11-27 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 44ca05afc89c9967f5dbc6c3ad89fc298c460e93 by Irit Katriel in branch 'master': bpo-42474: test TracebackException comparison to non-equal instances (GH-23522) https://github.com/python/cpython/commit/44ca05afc89c9967f5dbc6c3ad89fc298c460e93

[issue42485] Full grammar specification should link to PEP 617

2020-11-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list

[issue42485] Full grammar specification should link to PEP 617

2020-11-27 Thread James Gerity
Change by James Gerity : -- keywords: +patch nosy: +SnoopJeDi2 nosy_count: 2.0 -> 3.0 pull_requests: +22414 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23532 ___ Python tracker

[issue42485] Full grammar specification should link to PEP 617

2020-11-27 Thread James Gerity
New submission from James Gerity : Now that CPython uses the new PEG parser, it would be helpful to include a reference to the guiding PEP (617) on the docs page (https://docs.python.org/3/reference/grammar.html) that gives the grammar. -- assignee: docs@python components:

[issue42481] Add to pathlib function to check permission similar to os.access

2020-11-27 Thread Christian Heimes
Christian Heimes added the comment: > That's interesting. In Linux, for example, I would expect the access() > and faccessat() system calls to also check mandatory permissions. I > know from experience that at least the [i]mmutable file attribute is > checked. access(2) takes extended file

[issue38768] [feature request] Add lldb equivalent to Tools/gdb

2020-11-27 Thread Ronald Oussoren
Change by Ronald Oussoren : -- title: Support lldb enhancement in MacOS -> [feature request] Add lldb equivalent to Tools/gdb versions: +Python 3.10 -Python 3.9 ___ Python tracker

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41015] warning: 'sqlite3_enable_shared_cache' is deprecated

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of #24464 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3 ___

[issue30053] Problems building with --enable-profiling on macOS using homebrew GCC

2020-11-27 Thread Ronald Oussoren
Change by Ronald Oussoren : -- title: Problems building with --enable-profiling on macOS -> Problems building with --enable-profiling on macOS using homebrew GCC ___ Python tracker

[issue24893] Tk occasionally mispositions Text() insert cursor on mouse click.

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is this still reproducible? A question to those that can reproduce this: does this happen with the built-in screen (assuming a laptop or iMac) or an external interface? If the latter, is that a retina display? And does this happen more when moving IDLE

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is incompatibility between upstream clang and Apple's headers. The same warning is not present when using Xcode's compiler. As a workaround this warning can be disabled when including pthread.h, something like: ``` #ifdef __clang__ #pragma clang

[issue31713] python3 python-config script generates invalid includes

2020-11-27 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> "python-config --includes" returns a wrong path (double prefix) ___ Python tracker

[issue42463] test_pty.test_openpty() failed on x86 Gentoo Installed with X 3.x: unexpected success

2020-11-27 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/464 is back to green. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue42481] Add to pathlib function to check permission similar to os.access

2020-11-27 Thread Eryk Sun
Eryk Sun added the comment: > os.access() is not a good and sufficient permission check. It > only checks DAC (discrete access control) permissions That's interesting. In Linux, for example, I would expect the access() and faccessat() system calls to also check mandatory permissions. I

[issue42484] parse_message_id, get_msg_id, get_obs_local_part is poorly written

2020-11-27 Thread Dickson Chan
New submission from Dickson Chan : parse_message_id in the email module crashes with bogus message-id Having a Message-ID '<[>' gives me an IndexError: list index out of range This happens when - creating an EmailMessage with the said Message-ID msg = EmailMessage() msg['Message-ID']

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Irit Katriel
Irit Katriel added the comment: >From the TracebackException docstring: "The traceback module captures enough attributes from the original exception to this intermediary form to ensure that no references are held, while still being able to fully print or format it." > If the tracebacks are

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: This would be a change of behaviour, and 3.8 and 3.9 are in feature freeze, so we could only add it in 3.10. You say: "it's supposed to capture the output without holding references to real things" Is this requirement documented somewhere, or is it just

[issue30388] ndbm can't iterate through values on OS X

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a C program that demonstrates the problem, and have filed an issue with Apple about this: FB8919203 It is not clear to me what we can do about this, other than not building the ndbm binding on macOS. The manpages for the ndbm APIs do not

[issue25479] Increase unit test coverage for abc.py

2020-11-27 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -easy (C), patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42481] Add to pathlib function to check permission similar to os.access

2020-11-27 Thread Christian Heimes
Christian Heimes added the comment: A word of warning: os.access() is not a good and sufficient permission check. It only checks DAC (discrete access control) permissions and suffers from TOCTOU issues. Operating systems have additional permission checks and security policies, for example

[issue42483] Way working directory is added to sys.path differs between using -c or -m

2020-11-27 Thread Paolo Lammens
New submission from Paolo Lammens : Tested on: - Python 3.8.6 for Windows 10 64 bit - Python 3.9.0 for Windows 10 64 bit - Python 3.8.6 for Ubuntu 20.04 - Python 3.9.0 for Ubuntu 20.04 Originally asked here: https://stackoverflow.com/q/65024647/6117426

[issue25538] Traceback from __exit__ method is misleading

2020-11-27 Thread Alexander Kurakin
Change by Alexander Kurakin : -- nosy: +kuraga ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +22413 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23531 ___ Python tracker ___

[issue31904] Python should support VxWorks RTOS

2020-11-27 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +22412 pull_request: https://github.com/python/cpython/pull/23530 ___ Python tracker ___

[issue41818] Lib/pty.py major revision

2020-11-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f5a19ead4ba8c81cc27d5a530f830f4709ce240e by Soumendra Ganguly in branch 'master': bpo-41818: Make test_openpty() avoid unexpected success due to number of rows and/or number of columns being == 0. (GH-23526)

[issue42481] Add to pathlib function to check permission similar to os.access

2020-11-27 Thread Piotr Kopalko
New submission from Piotr Kopalko : Path('example.toml').permissions() == Permissions(owner=(READ, WRITE, EXECUTE), group=(READ), other=(,)) -- ___ Python tracker ___

[issue24695] Don't print traceback header if traceback is None in TracebackException

2020-11-27 Thread Irit Katriel
Irit Katriel added the comment: The patch here added a reference from TracebackException to the actual traceback, which I think should be removed. Please see this issue: https://bugs.python.org/issue42482 -- nosy: +iritkatriel ___ Python tracker

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-27 Thread Irit Katriel
New submission from Irit Katriel : TracebackException holds a reference to the exc_traceback, which is wrong because (1) it's supposed to capture the output without holding references to real things. (2) it makes comparison wrong for equivalent exceptions, as in this example:

[issue42481] Add to pathlib function to check permission similar to os.access

2020-11-27 Thread Maciej Olko
Change by Maciej Olko : -- nosy: +Maciej Olko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42480] Python Tkinter crashes on macOS 11.1 beta

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that a python installation created using Mac/BuildScript/build-instalelr.py works fine on macOS 11.0 (I haven't tested on 11.1 beta yet). This may be a problem with homebrew or the way it builds Python and/or Tcl/Tk. --

[issue42480] Python Tkinter crashes on macOS 11.1 beta

2020-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: On macOS 11 the system version is reported as 11.x if the binary was build using Xcode 12, and as 10.16.x for older binaries. -- ___ Python tracker

[issue42480] Python Tkinter crashes on macOS 11.1 beta

2020-11-27 Thread Ned Deily
Change by Ned Deily : -- components: +macOS -Tkinter nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list

[issue42481] Add to pathlib function to check permission similar to os.access

2020-11-27 Thread Piotr Kopalko
Change by Piotr Kopalko : -- nosy: copalco priority: normal severity: normal status: open title: Add to pathlib function to check permission similar to os.access type: enhancement ___ Python tracker

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-27 Thread Wyko ter Haar
Wyko ter Haar added the comment: Starting at .1, not .0. Sincerely, Wyko ter Haar On Fri, Nov 27, 2020, 10:14 AM Wyko ter Haar wrote: > >>> X = ip_network("10.0.0.0/24") > >>> H= X.hosts(as_interfaces= True) > >>> next(H) > IPv4Interface('10.0.0.0/24') > >>> next(H) >

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-27 Thread Wyko ter Haar
Wyko ter Haar added the comment: >>> X = ip_network("10.0.0.0/24") >>> H= X.hosts(as_interfaces= True) >>> next(H) IPv4Interface('10.0.0.0/24') >>> next(H) IPv4Interface('10.0.0.1/24') Something like that. Sure, I could cast the output of hosts as an interface, but then it would be missing

[issue42480] Python Tkinter crashes on macOS 11.1 beta

2020-11-27 Thread Christopher Snowhill
New submission from Christopher Snowhill : The Tkinter module, in a freshly built copy of Python 3.9 built by Brew, using the latest Xcode 12.3 command line tools, crashes on Big Sur 11.1 beta. It emits the following error: macOS 11 or later required ! I believe I recently read on macOS

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-27 Thread Wyko ter Haar
Wyko ter Haar added the comment: Literally just the same thing as .hosts(), except outputting interface objects instead of addresses. Maybe it could be a flag in .hosts() instead, something like "cast_as_interface". Sincerely, Wyko ter Haar On Fri, Nov 27, 2020, 3:18 AM Eric V. Smith

[issue42470] DeprecationWarning triggers for sequences which happen to be sets as well

2020-11-27 Thread Xavier Morel
Xavier Morel added the comment: > Do you want to submit a PR for this? Sure. Do you think the code I proposed would be suitable? > * The current logic matches the logic before the warning was added. > * The proposed logic matches what the code will do after the > deprecation period (it

[issue41818] Lib/pty.py major revision

2020-11-27 Thread Jakub Kulik
Jakub Kulik added the comment: This change also broke Solaris (SunOS), where (similarly to BSDs and Darwin) OSError is not raised in the `new test_master_read()` test. Adding `or PLATFORM == "SunOS"` into the `expectedFailureOnBSD` function fixes this issue, but it's no longer just BSDs and

[issue42479] Canvas's create_image method not work in some situaction.

2020-11-27 Thread IceWorm
Change by IceWorm : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42479] Canvas's create_image method not work in some situaction.

2020-11-27 Thread IceWorm
New submission from IceWorm : create a window using Tk() create canvas create image using create_image enter main loop IT OK ABOVE - BUT BELOW WILL not show image. just extract code to a method. def setupUI(winddow): create canvas create image using