[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Bharat Solanki
Bharat Solanki added the comment: When you run this test.py in 2.7. you will get output (10 11 20), But in 3.7, Its getting failed. Its showing below error: "Traceback (most recent call last): File "test.py", line 14, in function process_pool.map(add, l1, 1) File "C:\Users\Bharat Sol

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Bharat Solanki
Bharat Solanki added the comment: u1 is global variable. So I can use it any where. Rigth! Thanks Bharat On Thu, Mar 19, 2020, 2:09 AM Bharat Solanki wrote: > > Bharat Solanki added the comment: > > When you run this test.py in 2.7. you will get output (10 11 20), But in > 3.7, Its getting

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Tim Peters
Tim Peters added the comment: u1 is a global _only_ in a process that runs `function()`, which declares u1 global and assigns it a value. You have no sane expectation that a worker process (none of which run `function()`) will know anything about it. Are you sure you're running 2.7 and 3.7

[issue40007] An attempt to make asyncio.transport.writelines (selector) use Scatter I/O

2020-03-18 Thread tzickel
New submission from tzickel : I have a code that tries to be smart and prepare data to be chunked efficiently before sending, so I was happy to read about: https://docs.python.org/3/library/asyncio-protocol.html#asyncio.WriteTransport.writelines Only to see that it simply does: self.write(b'

[issue39980] importlib.resources.path() may return incorrect path when using custom loader

2020-03-18 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue39980] importlib.resources.path() may return incorrect path when using custom loader

2020-03-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: How's that for service ;) Glad to hear it worked. I'm going to close this as won't fix (as it was reported against 3.7 and 3.8 and changing it for them would be backward-incompatible, even if more correct). Please report back if that outcome is unsatisfact

[issue28686] py.exe ignored PATH when using python3 shebang

2020-03-18 Thread Riccardo Polignieri
Riccardo Polignieri added the comment: Three years later, this problem seems on the way to fix itself (https://xkcd.com/1822/). Versioned shebangs (and versioned "/env" shebangs) used to be a more prominent issue when you needed a way to tell Python 2 / Python 3 scripts apart. With the suns

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-03-18 Thread Tal Einat
Tal Einat added the comment: Your fix LGTM, Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue40002] Cookie load error inconsistency

2020-03-18 Thread Bar Harel
Bar Harel added the comment: Patch done, ready for upload. No http experts for nosy, triage needed. -- type: -> behavior ___ Python tracker ___ __

[issue40008] Best Mac Cleaner Software and Optimization Utilities

2020-03-18 Thread Jack Reigns
New submission from Jack Reigns : Mac Optimizer Pro a bunch of tools that can be used to perform various actions on your Mac. A number of the tools on offer can be used to clean your Mac. -- files: MacOptimizerPro.jpg messages: 364570 nosy: Jack Reigns priority: normal severity: normal

[issue39917] new_compiler() called 2nd time causes error

2020-03-18 Thread Todd Levi
Todd Levi added the comment: In looking through the setup.py file for uvloop, I see that they purposely do not call super().initialize_options() or super().finalize_options() in their code if they've already been called once. I think that is why their code is revealing this problem - the 2nd

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18417 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19063 ___ Python tracker ___ _

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: This issue became a blocker issue while working on bpo-39984, when I tried to move pending calls from _PyRuntimeState to PyInterpreterState. I wrote PR 19063 to deny calling Py_FinalizeEx() from a subinterpreter. Eric: > On the other hand, if the "main" int

[issue40009] Best Mac Cleaner Apps to Optimize and Speed up your Mac

2020-03-18 Thread Jack Reigns
New submission from Jack Reigns : Mac Optimizer Pro's simple drag and drop functionality makes it the best program to clean up Mac. Apart from this, you can also select an app and view its detailed information so that you know what is hogging up your device’s space. Moreover, it lets you clean

[issue40008] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : Removed file: https://bugs.python.org/file48980/MacOptimizerPro.jpg ___ Python tracker ___ ___ Python-bugs-list mai

[issue40008] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : -- nosy: -Jack Reigns title: Best Mac Cleaner Software and Optimization Utilities -> Spam type: performance -> ___ Python tracker ___ ___

[issue40008] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg364570 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue40009] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg364572 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue40009] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : -- nosy: -Jack Reigns title: Best Mac Cleaner Apps to Optimize and Speed up your Mac -> Spam type: performance -> ___ Python tracker ___

[issue40009] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : Removed file: https://bugs.python.org/file48981/MacOptimizerPro.jpg ___ Python tracker ___ ___ Python-bugs-list mai

[issue40009] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue40008] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue22699] cross-compilation of Python3.4

2020-03-18 Thread Steve Dower
Steve Dower added the comment: I'm now hitting this too, on nearly all the compiled modules in the stdlib. One example: building '_codecs_jp' extension x86_64-my-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/opt/my-generic/0.0.1-dev/sysroots/core2-64-my-linux -fPIC

[issue22699] Module source files not found when cross-compiling

2020-03-18 Thread Steve Dower
Steve Dower added the comment: Trimmed a bit from setup.py here, but I think this is the cause: def build_extensions(self): self.srcdir = sysconfig.get_config_var('srcdir') self.srcdir = os.path.abspath(self.srcdir) [SNIP] # Fix up the autodetected modules

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d112c600ab3f5e2910345bcc4bfc39439917ed87 by Pablo Galindo in branch 'master': bpo-39220: Do not optimise annotation if 'from __future__ import annotations' is used (GH-17866) https://github.com/python/cpython/commit/d112c600ab3f5e2910345

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue22699] Module source files not found when cross-compiling

2020-03-18 Thread Steve Dower
Steve Dower added the comment: Perhaps sysconfig needs an overhaul to be able to handle _PYTHON_PROJECT_BASE properly? I see so many values in there that are taken from the running interpreter (sys.prefix, for example) that ought to come from the cross-compilation target. Wouldn't surprise m

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will try to investigate that but it think this is because without OBJECT_MODE=64 the value of decimal.MAX_PREC is much lower (42500 instead 99) so whatever is happening downstream with the higher does not happen with the lower one

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue39985] str.format and string.Formatter subscript behaviors diverge

2020-03-18 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- keywords: +patch pull_requests: +18418 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19065 ___ Python tracker __

[issue39984] Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18420 pull_request: https://github.com/python/cpython/pull/19066 ___ Python tracker ___ __

[issue39982] FreeBSD: SCTP tests of test_socket fails on AMD64 FreeBSD Shared 3.x

2020-03-18 Thread Kubilay Kocak
Kubilay Kocak added the comment: I've been in touch with the FreeBSD SCTP maintainer and will continue to investigate that avenue. In the meantime, I'm re-running the last successful 3.x build (382 [1]) to see if that fails or not to isolate Cpython code changes as contributing causes [1]

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-18 Thread STINNER Victor
New submission from STINNER Victor : When a thread gets a signal, SIGNAL_PENDING_SIGNALS() sets signals_pending to 1 and eval_breaker to 1. In this case, _PyEval_EvalFrameDefault() calls handle_signals(), but since it's not the main thread, it does nothing and signals_pending value remains 1.

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: If no one has started, I can draft such a PEP. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-18 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18421 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19067 ___ Python tracker ___ _

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2020-03-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset e176e0c105786e9f476758eb5438c57223b65e7f by Matěj Cepl in branch '2.7': [2.7] closes bpo-38576: Disallow control characters in hostnames in http.client. (GH-19052) https://github.com/python/cpython/commit/e176e0c105786e9f476758eb5438c57223b65

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: I found this issue while working on PR 19066 of bpo-39984. -- stage: patch review -> ___ Python tracker ___

[issue39984] Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 50e6e991781db761c496561a995541ca8d83ff87 by Victor Stinner in branch 'master': bpo-39984: Move pending calls to PyInterpreterState (GH-19066) https://github.com/python/cpython/commit/50e6e991781db761c496561a995541ca8d83ff87 -- ___

[issue40011] Widget events are of type Tuple

2020-03-18 Thread Hênio Tierra Sampaio
New submission from Hênio Tierra Sampaio : I'm maintainer for a project for the RaspberryPi, a GUI for OMXPlayer called TBOPlayer. This GUI was originally made for Python 2, but with Python 2 deprecation, I decided to convert it to Python 3. After (supposedly) converting all of it I had a surp

[issue40011] Tkinter widget events are of type Tuple

2020-03-18 Thread Hênio Tierra Sampaio
Change by Hênio Tierra Sampaio : -- title: Widget events are of type Tuple -> Tkinter widget events are of type Tuple ___ Python tracker ___ ___

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-36225: "Lingering subinterpreters should be implicitly cleared on shutdown". -- ___ Python tracker ___

[issue36225] Lingering subinterpreters should be implicitly cleared on shutdown

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-38865: "Can Py_Finalize() be called if the current interpreter is not the main interpreter?". -- nosy: +vstinner ___ Python tracker ___

[issue36479] Exit threads when interpreter is finalizing rather than runtime.

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: I suggest to close this issue, I don't think that it can be implemented because of daemon threads. -- > This behavior should instead be triggered by the thread's interpreter > finalizing rather than the runtime. What is the motivation for that? -- take_g

[issue31200] address sanitizer build fails

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: FYI there is bpo-1635741 which tries to cleanup more things at Python exit. -- nosy: +vstinner ___ Python tracker ___ ___

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: I added PyInterpreterState_Get() and PyThreadState_GetInterpreter() functions to get the interpreter. -- ___ Python tracker ___

[issue38500] PEP 523: Add private _PyInterpreterState_SetEvalFrameFunc() function to the C API (Python 3.8 regression)

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

[issue40011] Tkinter widget events are of type Tuple

2020-03-18 Thread Hênio Tierra Sampaio
Hênio Tierra Sampaio added the comment: I'm maintainer for a project for the RaspberryPi, a GUI for OMXPlayer called TBOPlayer. This GUI was originally made for Python 2, but with Python 2 deprecation, I decided to convert it to Python 3. After (supposedly) converting all of it I had a surpri

[issue40011] Tkinter widget events are of type Tuple

2020-03-18 Thread Hênio Tierra Sampaio
Hênio Tierra Sampaio added the comment: Sorry for the similar messages. The second one was to remove the paragraph stating that it would be possible to circumvent the problem of the Listbox - it is not. -- ___ Python tracker

[issue39984] Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval

2020-03-18 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue39974] A race condition with GIL releasing exists in stringlib_bytes_join

2020-03-18 Thread Bruce Merry
Bruce Merry added the comment: +tzickel I'd suggest reading the discussion in issue 36051, and maybe raising a new issue about it if you still have concerns. In short, dropping the GIL in more bytes.join cases wouldn't necessarily be wrong, but it might break code that made the assumption th

[issue40007] An attempt to make asyncio.transport.writelines (selector) use Scatter I/O

2020-03-18 Thread tzickel
tzickel added the comment: BTW, if wanted a much more simpler PR can be made, where writelines simply calls sendmsg on the input if no buffer exists, and if not only then concats and acts like the current code base. -- ___ Python tracker

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Bharat Solanki
Bharat Solanki added the comment: Hi Tim, Thank you for clearing that up. I ran the same code in 2.7 and 3.7 on Windows, Its showing the same error. Yes, Its running in Linux-y systems. It depends on OS. Regards, Bharat On Thu, Mar 19, 2020 at 2:25 AM Tim Peters wrote: > > Tim Peters add

<    1   2