[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-02 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the quick workaround! The problem could be caused by a downstream patch in Ubuntu's OpenSSL version. Vanilla OpenSSL doesn't fail like that. -- ___ Python tracker

[issue43384] Include regen-stdlib-module-names in regen-all

2021-03-02 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +23494 pull_request: https://github.com/python/cpython/pull/24713 ___ Python tracker ___

[issue43384] Include regen-stdlib-module-names in regen-all

2021-03-02 Thread Neil Schemenauer
New submission from Neil Schemenauer : While I was fixing the regen-frozen issue, I noticed it seems unnecessary to have regen-stdlib-module-names separate from regen-all. Maybe Victor knows why it needs to be separate. If it doesn't need to be separate, the CI scripts can be slightly

[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-02 Thread Neil Schemenauer
Neil Schemenauer added the comment: I think it may be related to bpo-41561. There is a bug in the Ubuntu tracker as well: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1899878 I agree with the temporary fix to use "ubuntu-18.04" for CI testing. -- nosy: +nascheme

[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-02 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +23493 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24715 ___ Python tracker ___

[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-02 Thread Brandt Bucher
Brandt Bucher added the comment: I forgot to mention that I confirmed that the last passing test run used 18.04 (click "set up job" -> "Operating System" to see): https://github.com/python/cpython/runs/2013210763?check_suite_focus=true The next one, which started the current chain of

[issue40059] Provide a toml module in the standard library

2021-03-02 Thread Eli Schwartz
Change by Eli Schwartz : -- nosy: +eschwartz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-02 Thread Brandt Bucher
Brandt Bucher added the comment: It seems that GitHub recently changed their "ubuntu-latest" image from Ubuntu 18.04 to Ubuntu 20.04. A good temporary workaround would probably be to change this line:

Re: editor recommendations?

2021-03-02 Thread Dan Stromberg
On Tue, Mar 2, 2021 at 8:11 PM Dan Stromberg wrote: > > On Tue, Mar 2, 2021 at 8:00 PM Russell wrote: > >> Ethan Furman wrote: >> > I'm currently using vim, and the primary reason I've stuck with it for >> so long is because I can get truly black screens with it. By which I mean >> that I

[issue43383] imprecise handling of weakref callbacks

2021-03-02 Thread Konrad Schwarz
New submission from Konrad Schwarz : I am seeing the following non-deterministic behavior: My code processes DeviceTree, a tree-based specification format for hardware descriptions, that includes cross-references ("phandles"). For all intents and purposes, this format is similar to XML;

[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-02 Thread Gregory P. Smith
New submission from Gregory P. Smith : https://github.com/python/cpython/pull/20442/checks?check_run_id=2018900756 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1122) [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer

Re: Why assert is not a function?

2021-03-02 Thread Chris Angelico
On Wed, Mar 3, 2021 at 2:06 PM Greg Ewing wrote: > > On 3/03/21 12:24 pm, Chris Angelico wrote: > > if PRODUCTION: > > def assert(*a, **kw): pass > > > > would work if it were a function :) > > But would cost you a useless function call for every assert > in production mode. > A

Re: editor recommendations?

2021-03-02 Thread Dan Stromberg
On Tue, Mar 2, 2021 at 8:00 PM Russell wrote: > Ethan Furman wrote: > > I'm currently using vim, and the primary reason I've stuck with it for > so long is because I can get truly black screens with it. By which I mean > that I have a colorful window title bar, a light-grey menu bar, and then

[issue43371] Mock.assert_has_calls works strange

2021-03-02 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: editor recommendations?

2021-03-02 Thread Russell
Ethan Furman wrote: > I'm currently using vim, and the primary reason I've stuck with it for so > long is because I can get truly black screens with it. By which I mean that > I have a colorful window title bar, a light-grey menu bar, and then a > light-grey frame around the text-editing

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2021-03-02 Thread Eryk Sun
Eryk Sun added the comment: > But on this particular issue, making the unconditional wait be > interruptable by signals shouldn't be impossible. PyThread_acquire_lock_timed() in Python/thread_nt.h currently ignores intr_flag. The current implementation calls EnterNonRecursiveMutex(), which

[issue43378] Pattern Matching section in tutorial refers to | as or

2021-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Another other thought, PEP 634 defines "|" as being an "or-pattern", so it part of the spec: https://www.python.org/dev/peps/pep-0634/#or-patterns -- ___ Python tracker

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-02 Thread Inada Naoki
Inada Naoki added the comment: > You can run "[WindowsFolder]System32\setx.exe" directly. It's not a shell > command. Thank you. I will do. > For modifying an environment variable, please clone the entire path MSI and > use an Environment element to update it. Should be a little simpler

[issue43371] Mock.assert_has_calls works strange

2021-03-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Why assert is not a function?

2021-03-02 Thread Greg Ewing
On 3/03/21 12:24 pm, Chris Angelico wrote: if PRODUCTION: def assert(*a, **kw): pass would work if it were a function :) But would cost you a useless function call for every assert in production mode. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[issue43075] ReDoS in urllib.request

2021-03-02 Thread Zachary Ware
Change by Zachary Ware : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43075] ReDoS in urllib.request

2021-03-02 Thread Zachary Ware
Change by Zachary Ware : -- keywords: +easy -easy (C), patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43363] memcpy writes to wrong destination

2021-03-02 Thread Josh Rosenberg
Josh Rosenberg added the comment: Agreed, stack is a PyObject**, so adding an integer (pto_nargs) to the pointer (stack) is implicitly by multiples of sizeof(PyObject*). This is how pointer arithmetic works in all versions of C I'm aware of. The code is correct. -- nosy: +josh.r

[issue43075] ReDoS in urllib.request

2021-03-02 Thread Éric Araujo
Change by Éric Araujo : -- title: ReDoS in request -> ReDoS in urllib.request ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2021-03-02 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +23492 pull_request: https://github.com/python/cpython/pull/24714 ___ Python tracker ___

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-02 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +23491 pull_request: https://github.com/python/cpython/pull/24714 ___ Python tracker ___

[issue43378] Pattern Matching section in tutorial refers to | as or

2021-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems fine to me. In pattern matching, it has both the meaning and pronunciation of "or": case "this" | "that": ... It has similar mean in the re module: r'abc|def' And it is also used the same way in typing: s: list | tuple We've

[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread jennydaman
jennydaman added the comment: Yes sorry that was a typo -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread jennydaman
jennydaman added the comment: # Example Consider these three examples, which are theoretically identical ``` a = 4 class A: a = a print(A.a) def createB(b): class B: z = b print(B.z) createB(5) def createD(d): class D: d = d print(D.d)

[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread Eric V. Smith
Eric V. Smith added the comment: Was def createD(D): supposed to be: def createD(d): ? Not that that changes your problem. I just want to understand the exact issue. -- nosy: +eric.smith ___ Python tracker

[issue43381] add small test for frozen module line number table

2021-03-02 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +23490 pull_request: https://github.com/python/cpython/pull/24712 ___ Python tracker ___

[issue43381] add small test for frozen module line number table

2021-03-02 Thread Neil Schemenauer
New submission from Neil Schemenauer : In bug #43372, we didn't notice that the code for the __hello__ module was not re-generated. Things seems to be okay but the line number table was corrupted. It seems a good idea to add a small test to ensure that doesn't happen again. I marked the

[issue43075] ReDoS in request

2021-03-02 Thread Senthil Kumaran
Change by Senthil Kumaran : -- keywords: +easy (C) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43288] test_importlib failure due to missing skip() method

2021-03-02 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> nascheme resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue43049] Use io.IncrementalNewlineDecoder for doctest newline conversion

2021-03-02 Thread Peter Donis
Peter Donis added the comment: Thanks for merging! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread jennydaman
New submission from jennydaman : # Example Consider these three examples, which are theoretically identical ``` a = 4 class A: a = a print(A.a) def createB(b): class B: z = b print(B.z) createB(5) def createD(D): class D: d = d print(D.d)

[issue42994] Missing MIME types for opus, AAC, 3gpp and 3gpp2

2021-03-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the this contribution, Nathan. -- assignee: -> orsenthil resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42994] Missing MIME types for opus, AAC, 3gpp and 3gpp2

2021-03-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 3a87e562ea21a5083e9f168e02e8ec3e6611e167 by Nathan Beals in branch 'master': bpo-42994: Add MIME types for opus, AAC, 3gpp and 3gpp2 (#24287) https://github.com/python/cpython/commit/3a87e562ea21a5083e9f168e02e8ec3e6611e167 -- nosy:

Re: Tkinter long-running window freezes

2021-03-02 Thread John O'Hagan
On Wed, 24 Feb 2021 22:35:32 +1100 John O'Hagan wrote: > Hi list > > I have a 3.9 tkinter interface that displays data from an arbitrary > number of threads, each of which runs for an arbitrary period of time. > A frame opens in the root window when each thread starts and closes > when it

[issue43355] __future__.annotations breaks inspect.signature()

2021-03-02 Thread Eric V. Smith
Eric V. Smith added the comment: Can you show the values of “expected” and “actual” for both the failures and successes? -- nosy: +eric.smith ___ Python tracker ___

Re: yield from () Was: Re: weirdness with list()

2021-03-02 Thread Cameron Simpson
On 02Mar2021 15:06, Larry Martell wrote: >I discovered something new (to me) yesterday. Was writing a unit test >for generator function and I found that none of the function got >executed at all until I iterated on the return value. Aye. Generators are lazy - they don't run at all until you ask

Re: Why assert is not a function?

2021-03-02 Thread Chris Angelico
On Wed, Mar 3, 2021 at 10:48 AM Hexamorph wrote: > > Am 03.03.2021 um 00:24 schrieb Chris Angelico: > > On Wed, Mar 3, 2021 at 10:22 AM Mirko via Python-list > > wrote: > >> > >> Am 02.03.2021 um 23:09 schrieb Stestagg: > >>> Ignoring the question about this feature being particularly useful, it

Re: Why assert is not a function?

2021-03-02 Thread Hexamorph
Am 03.03.2021 um 00:24 schrieb Chris Angelico: > On Wed, Mar 3, 2021 at 10:22 AM Mirko via Python-list > wrote: >> >> Am 02.03.2021 um 23:09 schrieb Stestagg: >>> Ignoring the question about this feature being particularly useful, it >> >> It is useful because "assert" is primarily (if not purely

Re: Why assert is not a function?

2021-03-02 Thread Chris Angelico
On Wed, Mar 3, 2021 at 10:22 AM Mirko via Python-list wrote: > > Am 02.03.2021 um 23:09 schrieb Stestagg: > > Ignoring the question about this feature being particularly useful, it > > It is useful because "assert" is primarily (if not purely and > exclusive) a debugging tool during development

Re: Why assert is not a function?

2021-03-02 Thread Mirko via Python-list
Am 02.03.2021 um 23:09 schrieb Stestagg: > Ignoring the question about this feature being particularly useful, it It is useful because "assert" is primarily (if not purely and exclusive) a debugging tool during development and testing. In production code you don't want any asserts, but logging.

[issue43284] Wrong windows build post version 2004

2021-03-02 Thread Steve Dower
Steve Dower added the comment: The reason to avoid the GetVersion API is that certain automatic compatibility modes will lie about what the version number is, and people complained that it was wrong (kind of like this complaint ;) ). Reading the version from a system DLL bypasses that risk.

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-03-02 Thread David Bolen
David Bolen added the comment: Yes, that was the idea (revert the PyDEBUG condition only); it sounds like everyone is on the same page. I've been doing buildbot duties only for a while (no code contributions since long before the current process), so there may be a short delay while I

Re: yield from () Was: Re: weirdness with list()

2021-03-02 Thread Larry Martell
On Tue, Mar 2, 2021 at 2:16 PM Chris Angelico wrote: > > On Tue, Mar 2, 2021 at 5:51 AM Alan Gauld via Python-list > wrote: > > > > On 28/02/2021 00:17, Cameron Simpson wrote: > > > > > BUT... It also has a __iter__ value, which like any Box iterates over > > > the subboxes. For MDAT that is

Re: yield from () Was: Re: weirdness with list()

2021-03-02 Thread Marco Sulla
On Mon, 1 Mar 2021 at 19:51, Alan Gauld via Python-list wrote: > Sorry, a bit OT but I'm curious. I haven't seen > this before: > > yield from () > > What is it doing? > What do the () represent in this context? It's the empty tuple. -- https://mail.python.org/mailman/listinfo/python-list

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-02 Thread Miro Hrončok
Miro Hrončok added the comment: When I run `PYTHON_FOR_REGEN=python3.10 make regen-frozen` with Python 3.10.0a5, I get the same diff and the same problem. When I run `PYTHON_FOR_REGEN=python3.9 make regen-frozen` with Python 3.9.2, I get no diff and no problem (similarly with Python 3.8.8).

[issue42994] Missing MIME types for opus, AAC, 3gpp and 3gpp2

2021-03-02 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +barry, maxking, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43367] submodule of c-extension module is quirky

2021-03-02 Thread Sebastian Koslowski
Sebastian Koslowski added the comment: >>> import parent.child first imports "parent" (successfully) but then fails, because the import code has no knowledge of were to find ".child". This is because a) the module "parent" is not marked as a package (hence the error message) b) even if it

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-02 Thread Steve Dower
Steve Dower added the comment: For modifying an environment variable, please clone the entire path MSI and use an Environment element to update it. Should be a little simpler than that one, because it's a constant. I'm always very hesitant to modify system-wide (or user-wide) settings like

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-02 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43284] Wrong windows build post version 2004

2021-03-02 Thread OrbitalHorizons
OrbitalHorizons added the comment: Node Js version of os wasnt affected. If this is having an issue then they used some bootleg method to fetch the build number in the first place. -- ___ Python tracker

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-02 Thread Miro Hrončok
New submission from Miro Hrončok : The following test failure happens on Python 3.10.0a6+ when we make regen-frozen with the same Python version we test: == FAIL: test_frozentable (ctypes.test.test_values.PythonValuesTestCase)

[issue43284] Wrong windows build post version 2004

2021-03-02 Thread bugale bugale
bugale bugale added the comment: Is there a good reason to not use GetVersionEx? -- ___ Python tracker ___ ___ Python-bugs-list

[issue43284] Wrong windows build post version 2004

2021-03-02 Thread Steve Dower
Steve Dower added the comment: So somehow Windows made a rebuild *without* having to touch kernel32.dll, which is fairly impressive. That version number comes from kernel32.dll, because there's no good way to get the build number via an API and also avoid compatibility settings lying about

[issue39448] Add regen-frozen makefile target

2021-03-02 Thread Miro Hrončok
Miro Hrončok added the comment: I think something is broken with this, full report in: https://bugs.python.org/issue43372 -- nosy: +hroncok ___ Python tracker ___

Python 3.10.0a6 is available, now with 100% more pattern matching

2021-03-02 Thread Pablo Galindo Salgado
Remember us? It's your friendly CPython release team and we have something we think you may like: The new alpha release of Python 3.10 is here, now with 100% more pattern matching. If I were you, I would download it and start playing with it. Extra points if you report us any bugs you find along

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-03-02 Thread Steve Dower
Steve Dower added the comment: Hmm, yeah, it seems like the debug-specific definition has gone. Wonder when that happened. In that case, go ahead and revert, but I'd suggest doing it by just removing the new Py_DEBUG condition rather than undoing all the changes. Should be nothing wrong

[issue43375] memory leak in threading ?

2021-03-02 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not sure that this counts as a bug. Each non-daemon thread adds a lock to the threading._shutdown_locks set: https://github.com/python/cpython/blob/8b795ab5541d8a4e69be4137dfdc207714270b77/Lib/threading.py#L933-L935. That lock is removed when the thread

Re: Why assert is not a function?

2021-03-02 Thread Barry
> On 2 Mar 2021, at 20:54, Marco Sulla wrote: > > I have a curiosity. Python, as many languages, has assert as a > keyword. Can't it be implemented as a function? Is there an advantage > to have it as a keyword? assert condition, expression Only is condition is false with expression be

[issue43371] Mock.assert_has_calls works strange

2021-03-02 Thread Dmitriy Mironiyk
New submission from Dmitriy Mironiyk : I think that behavior of Mock.assert_has_calls is misleading. - When I call Mock.assert_has_calls with any_order=False it checks that expected calls are the same calls as performed on mock and raise an error if mock has some calls other than expected. -

Python 3.10.0a6 is available, now with 100% more pattern matching

2021-03-02 Thread Pablo Galindo Salgado
Remember us? It's your friendly CPython release team and we have something we think you may like: The new alpha release of Python 3.10 is here, now with 100% more pattern matching. If I were you, I would download it and start playing with it. Extra points if you report us any bugs you find along

[issue43284] Wrong windows build post version 2004

2021-03-02 Thread OrbitalHorizons
OrbitalHorizons added the comment: Running `platform.platform()` on Windows 10 21H1 results in the build number 19041: Python 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2021-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I clarified the documentation in the PR and added a regression test. I chose to explicitly document that tempfile.tempdir may only be str or bytes and cannot be a path-like object. We already document that people really should not set it and instead pass

Re: yield from () Was: Re: weirdness with list()

2021-03-02 Thread Chris Angelico
On Tue, Mar 2, 2021 at 5:51 AM Alan Gauld via Python-list wrote: > > On 28/02/2021 00:17, Cameron Simpson wrote: > > > BUT... It also has a __iter__ value, which like any Box iterates over > > the subboxes. For MDAT that is implemented like this: > > > > def __iter__(self): > > yield

[issue43344] RotatingFileHandler breaks file type associations

2021-03-02 Thread Kevin Hollingshead
Kevin Hollingshead added the comment: Thanks Vinay, I was able to do this with: def namer(name): return name.replace(".log", "") + ".log" Then when initializing the logger: handler.namer = namer My full initializer script: import os import logging from logging.handlers import

Re: Why assert is not a function?

2021-03-02 Thread Stestagg
There is also the, I think seldom used, feature that calling python with '-O' removes all assert statements at parse/compile time (I believe for performance reasons) So for example: $ python -c 'assert False' Traceback (most recent call last): File "", line 1, in AssertionError But: $

[issue43374] Apple refuses apps written in Python

2021-03-02 Thread Ned Deily
Change by Ned Deily : -- type: security -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43374] Apple refuses apps written in Python

2021-03-02 Thread Adrian
New submission from Adrian : My company maintains several Python related projects, one of them being an application published for many years in the Mac App Store. During the submittion of the last update for the app, we were refused by Apple to publish the software with the following reason:

Re: is not recognized as an internal or external command, operable program or batch file.

2021-03-02 Thread Roland Mueller via Python-list
Hello, this is windows setup issue related to the fact that python binary is not in execution path. For setting up you may find instructions by searching for "windows 10 put python to path". One result is following page:

[issue43373] Tensorflow

2021-03-02 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Somehow the trailing dot became part of the second URL. Trying again: https://github.com/tensorflow/tensorflow/issues/44485 -- ___ Python tracker

[issue43373] Tensorflow

2021-03-02 Thread Mark Dickinson
Mark Dickinson added the comment: Wrong tracker. Try https://github.com/tensorflow/tensorflow. (See in particular https://github.com/tensorflow/tensorflow/issues/44485.) -- nosy: +mark.dickinson resolution: -> third party stage: -> resolved status: open -> closed

Re: yield from () Was: Re: weirdness with list()

2021-03-02 Thread Alan Gauld via Python-list
On 28/02/2021 23:47, Alan Gauld via Python-list wrote: > On 28/02/2021 00:17, Cameron Simpson wrote: > >> BUT... It also has a __iter__ value, which like any Box iterates over >> the subboxes. For MDAT that is implemented like this: >> >> def __iter__(self): >> yield from () > >

Re: yield from () Was: Re: weirdness with list()

2021-03-02 Thread Chris Angelico
On Wed, Mar 3, 2021 at 8:21 AM Dieter Maurer wrote: > > Alan Gauld wrote at 2021-2-28 23:47 +: > >yield from () > > "yield from iterator" is similar to "for i in iterator: yield i" (with > special handling when data/exceptions are injected into the generator). > > Thus, "yield from ()" does

[issue43374] Apple refuses apps written in Python

2021-03-02 Thread Adrian
Adrian added the comment: Hi Ned, Yes, I have submitted Python apps to Mac App Store since 2009, for 12 years. Each new push opens a new pandoras box with different questions asked than previously. There is no learning curve, is just walls with more walls behind each submission. The

[issue43373] Tensorflow

2021-03-02 Thread Gaming With Skytorrush
New submission from Gaming With Skytorrush : I was unable to install Tensorflow via pip in python 3.9 but its working fine with 3.8 -- components: Library (Lib) messages: 387944 nosy: clashwithchiefrpjyt priority: normal severity: normal status: open title: Tensorflow type: behavior

[issue43379] Pasting multiple lines in the REPL is broken since 3.9

2021-03-02 Thread Romain Vincent
New submission from Romain Vincent : DISCLAIMER: This is the first time I submit an issue here. In advance, my humble apologies if I missed something. Feel free to correct me :) -- I regularly test snippets of code by pasting them from a code editor to a shell REPL. It works perfectly well

[issue43375] memory leak in threading ?

2021-03-02 Thread Igor Mandrichenko
New submission from Igor Mandrichenko : There is an apparent memory leak in threading. It looks like memory grows when I create, run and destroy threads. The memory keeps adding at the rate of about 100 bytes per thread. I am attaching the code, which works for Linux. getMemory() function is

[issue20074] open() of read-write non-seekable streams broken

2021-03-02 Thread Ken Teh
Ken Teh added the comment: It works on macos but not on linux, ie, I have a usb-serial dongle connected to a serial device (a CAMAC controller), and I do an os.open() with 'wb+', followed by a io.fdopen(). I can talk to my device on macos BigSur 11.2, buffered, but not on Linux which

[issue43233] test_os: test_copy_file_range_offset fails on FreeBSD CURRENT

2021-03-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Buildbot is green! https://buildbot.python.org/all/#/builders/483/builds/841 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue43374] Apple refuses apps written in Python

2021-03-02 Thread Ned Deily
Ned Deily added the comment: > What am I suppose to do? I appreciate that it's a nasty problem. Unfortunately, this is unknown territory for me: I have no experience with the Mac App Store and this is the first time I've run across a report like this. So the question again is: what has

[issue23740] http.client request and send method have some datatype issues

2021-03-02 Thread Alex Willmer
Alex Willmer added the comment: First stab at characterising http.client.HTTPConnnection.send(). https://github.com/moreati/bpo-23740 This uses a webserver that returns request details, in the body of the response. Raw (TCP level) content is included. It shares a similar purpose to HTTP

[issue43378] Pattern Matching section in tutorial refers to | as or

2021-03-02 Thread Luciano Ramalho
New submission from Luciano Ramalho : Section 4.6. "match Statements" of the Python 3.10 tutorial says: """ You can combine several literals in a single pattern using | (“or”): """ For someone just learning Python, this may suggest that | is always "or", when in fact it is a bitwise operator

[issue43374] Apple refuses apps written in Python

2021-03-02 Thread Adrian
Adrian added the comment: Hi Ned, I have a ticket opened with Apple. They refuse the software as it, they are in a position of absolute power, to reject and drop many years of work on a dime. What am I suppose to do? I can fix my own software, but then there are dependencies like Python

[issue43378] Pattern Matching section in tutorial refers to | as

2021-03-02 Thread Luciano Ramalho
Change by Luciano Ramalho : -- nosy: ramalho priority: normal severity: normal status: open title: Pattern Matching section in tutorial refers to | as ___ Python tracker ___

yield from () Was: Re: weirdness with list()

2021-03-02 Thread Dieter Maurer
Alan Gauld wrote at 2021-2-28 23:47 +: >yield from () "yield from iterator" is similar to "for i in iterator: yield i" (with special handling when data/exceptions are injected into the generator). Thus, "yield from ()" does essentially nothing with the side effect that the containing

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-03-02 Thread Steve Dower
Steve Dower added the comment: We already have a separate recursion limit for debug builds on Windows, so it's probably best all around to reduce that (if it's only recursion tests that are failing). That way, we won't forget to fix up debugging later if/when we fix recursion. --

[issue43374] Apple refuses apps written in Python

2021-03-02 Thread Ned Deily
Ned Deily added the comment: BTW, if you haven't already, I would strongly suggest you ask on one of the Apple Developer Forums. My first guess is that the App Store validation process is trying to incorrectly apply rules to your local Python framework (from the Python.org installed

[issue42782] shutil.move creates a new directory even on failure

2021-03-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +23489 pull_request: https://github.com/python/cpython/pull/24711 ___ Python tracker ___

[issue43060] Convert _decimal C API from pointer array to struct

2021-03-02 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > But converting the decimal c api may breaks the compatibility, because some > macros like `PyDec_TypeCheck_INDEX` have been exposed in headers. True. Is there many external users of this API? I could not find any relevant examples using

[issue43367] submodule of c-extension module is quirky

2021-03-02 Thread Yannick Jadoul
Change by Yannick Jadoul : -- nosy: +YannickJadoul ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[RELEASE] Python 3.10.0a6 is available, now with 100% more pattern matching

2021-03-02 Thread Pablo Galindo Salgado
Remember us? It's your friendly CPython release team and we have something we think you may like: The new alpha release of Python 3.10 is here, now with 100% more pattern matching. If I were you, I would download it and start playing with it. Extra points if you report us any bugs you find along

[issue43366] Unclosed bracket bug in code.interact prevents identifying syntax errors

2021-03-02 Thread Andre Roberge
Andre Roberge added the comment: I understand the challenge of reproducing the behaviour of the Python interpreter for this case. If it cannot be reproduced, then the documentation for https://docs.python.org/3/library/code.html#code.InteractiveConsole.interact and others on that page

[issue43374] Apple refuses apps written in Python

2021-03-02 Thread Ned Deily
Ned Deily added the comment: Hmm, yours is the first report of this here that I'm aware of. I see other reports on the web of other non-Python projects running into similar problems. So one question is what has changed? Can you report the version info string of this Python? Have you

[issue43356] PyErr_SetInterrupt should have an equivalent that takes a signal number

2021-03-02 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +neologix, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-02 Thread Eryk Sun
Eryk Sun added the comment: > `cmd.exe /c "SETX PYTHONUTF8 1 You can run "[WindowsFolder]System32\setx.exe" directly. It's not a shell command. -- nosy: +eryksun ___ Python tracker

[issue36480] .strip() unexpected output on Windows

2021-03-02 Thread Zachary Ware
Change by Zachary Ware : Removed file: https://bugs.python.org/file49847/tac.eml ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >