Re: Tkinter long-running window freezes

2021-02-25 Thread Christian Gollwitzer
Am 26.02.21 um 06:15 schrieb John O'Hagan: On Thu, 25 Feb 2021 21:57:19 +0100 Christian Gollwitzer wrote: I think it is not yet clear, if this is a bug in Tkinter or in Tcl/Tk, the underlying scripting language. It might also be platform dependent. Are you on Windows? Here is an equivalent Tcl

Re: name for a mutually inclusive relationship

2021-02-25 Thread Chris Angelico
On Fri, Feb 26, 2021 at 3:32 PM Ethan Furman wrote: > > On 2/25/21 7:06 PM, Joe Pfeiffer wrote: > > Ethan Furman writes: > > >> Like I said, at this moment I don't have a good example, only an awareness > >> that such a thing could exist and I don't know the name for it (if it has > >> one). >

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-25 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8 ___ Python tracker ___

Re: error of opening Python

2021-02-25 Thread Mladen Gogala via Python-list
On Thu, 25 Feb 2021 17:22:35 +, Botao Liu wrote: > Dear Python team, > > This is my first time using Python, I tried to launch Python and it > showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC > v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or >

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-25 Thread miss-islington
miss-islington added the comment: New changeset 6c4c11763fad106e43cdcfdbe3bd33ea2765a13f by Miss Islington (bot) in branch '3.9': bpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650) https://github.com/python/cpython/commit/6c4c11763fad106e43cdcfdbe3bd33ea2765a13f

Re: Tkinter long-running window freezes

2021-02-25 Thread John O'Hagan
On Thu, 25 Feb 2021 21:57:19 +0100 Christian Gollwitzer wrote: > Am 24.02.21 um 12:35 schrieb John O'Hagan: > > 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

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-02-25 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: PR available on GitHub and it's already more than one month since the PR was submitted, so I'm pinging this issue. -- ___ Python tracker

Re: name for a mutually inclusive relationship

2021-02-25 Thread Ethan Furman
On 2/25/21 7:06 PM, Joe Pfeiffer wrote: Ethan Furman writes: Like I said, at this moment I don't have a good example, only an awareness that such a thing could exist and I don't know the name for it (if it has one). So far I have seen that there are even fewer good use-cases than I might

[issue43278] unnecessary leading '\n' from Py_GetCompiler() when build with different complier

2021-02-25 Thread miss-islington
miss-islington added the comment: New changeset 28a30bc2e2d5a02d42e65ff7b7c6968fa966279d by Joseph Shen in branch 'master': closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606)

[issue41282] Deprecate and remove distutils

2021-02-25 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane nosy_count: 17.0 -> 18.0 pull_requests: +23442 pull_request: https://github.com/python/cpython/pull/24657 ___ Python tracker ___

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23441 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24656 ___ Python tracker ___

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Inada Naoki
Inada Naoki added the comment: I checked the warning, and now I think Python traceback is fine. PyArg_Parse*() is used on top of the C function. So python traceback is enough to find which function is using '#' without Py_SSIZE_T_CLEAN. -- ___

[issue43326] About Zipfile

2021-02-25 Thread Fcant
New submission from Fcant : When I Unzip a package using the zipfile module, the package’s filename has a newline character, which causes the Unzip to fail, so the UNZIP filename needs to be processed -- components: Library (Lib) files: Fcant_2021-02-26_11-26-37.jpg messages: 387705

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +23440 pull_request: https://github.com/python/cpython/pull/24655 ___ Python tracker

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-25 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset c6ccdfb479cb0a4a491575ef0bafaa0d29daae1a by Ammar Askar in branch 'master': bpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650) https://github.com/python/cpython/commit/c6ccdfb479cb0a4a491575ef0bafaa0d29daae1a

[issue43278] unnecessary leading '\n' from Py_GetCompiler() when build with different complier

2021-02-25 Thread Joseph Shen
Change by Joseph Shen : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: name for a mutually inclusive relationship

2021-02-25 Thread Joe Pfeiffer
Ethan Furman writes: > On 2/24/21 1:54 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: >> Ethan Furman wrote: > >>> I didn't say it was a good example. ;-) Hopefully it gets the idea across. >> Ditto. ;-) >> IMO, the whole idea of "my program has two options, and the user has >> to >> specify

Re: name for a mutually inclusive relationship

2021-02-25 Thread Joe Pfeiffer
Ethan Furman writes: > I'm looking for a name for a group of options that, when one is specified, > all of them must be specified. I don't fully understand the question (yes, I read the part I snipped). Why is this not just a single option? Or is it hierarchical or something so option 1

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread miss-islington
miss-islington added the comment: New changeset 07ab490a7a966ce00a61bf56ccd0604434b143a5 by Miss Islington (bot) in branch '3.8': bpo-43316: gzip: Fix sys.exit() usage. (GH-24652) https://github.com/python/cpython/commit/07ab490a7a966ce00a61bf56ccd0604434b143a5 --

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread miss-islington
miss-islington added the comment: New changeset 540749ed6d8e29a11368bc7f343baf7b7ea7e4a8 by Miss Islington (bot) in branch '3.9': bpo-43316: gzip: Fix sys.exit() usage. (GH-24652) https://github.com/python/cpython/commit/540749ed6d8e29a11368bc7f343baf7b7ea7e4a8 --

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

Re: Tkinter long-running window freezes

2021-02-25 Thread MRAB
On 2021-02-25 20:57, Christian Gollwitzer wrote: Am 24.02.21 um 12:35 schrieb John O'Hagan: 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

Re: error of opening Python

2021-02-25 Thread Alan Gauld via Python-list
On 25/02/2021 17:22, Botao Liu wrote: > Type "help", "copyright", "credits" or "license" for more information." Follow the instructions and type "help" at the >>> prompt. Then follow the instructions which it displays. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/

Where is the problem?

2021-02-25 Thread RD
Python 3.4.3 on WinXP. I create a Tk canvas and draw on it with create_text(), create_line(), and create_polygon with fill and stipple. So far, so good, looks fine on the screen. So I go to send it to a postsctript file: bmap.postscript(file="tmp.ps", colormode='color') It generates a file,

[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

2021-02-25 Thread itchyny
itchyny added the comment: @noormichael Thank you for submitting a patch, I confirmed the original issue is fixed. I'm ok this ticket is closed. Regarding the second issue, I learned it is a Turkish character (thanks!), but the error is same type so will not cause such a critical issue.

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +23439 pull_request: https://github.com/python/cpython/pull/24654 ___ Python tracker ___

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +23438 pull_request: https://github.com/python/cpython/pull/24653 ___ Python tracker ___

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset 9525a18b5bb317d9fb206c992ab62aa41559b0c8 by Inada Naoki in branch 'master': bpo-43316: gzip: Fix sys.exit() usage. (GH-24652) https://github.com/python/cpython/commit/9525a18b5bb317d9fb206c992ab62aa41559b0c8 --

[issue13559] Use sendfile where possible in httplib

2021-02-25 Thread Alex Willmer
Alex Willmer added the comment: I would like to take a stab at this. Giampaolo, would it be okay if I made a pull request updated from your patch? With the appropriate "Co-authored-by: Author Name " line. -- nosy: +Alex.Willmer ___ Python tracker

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset adea9b86a97794ca75054603497c195d5ba39aa5 by Miss Islington (bot) in branch '3.9': bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647) https://github.com/python/cpython/commit/adea9b86a97794ca75054603497c195d5ba39aa5 --

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23437 pull_request: https://github.com/python/cpython/pull/24652 ___ Python tracker ___

RE: name for a mutually inclusive relationship

2021-02-25 Thread Avi Gross via Python-list
YAGNI? True, Chris, I never have. And if I ever did, I might not even know someone has implemented similar functionality with 86 optional function arguments that fine-tune what happens in various cases and what error messages to supply, LOL! So, I would end up re-implementing it myself. But

[issue43314] [sqlite3] remove pre SQLite 3.7.7 support code

2021-02-25 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43314] [sqlite3] remove pre SQLite 3.7.7 support code

2021-02-25 Thread Berker Peksag
Berker Peksag added the comment: New changeset 3150754f91fc1d15e3888e22c065672838a9c069 by Erlend Egeberg Aasland in branch 'master': bpo-43314: Remove SQLITE_OPEN_URI ifdef (GH-24637) https://github.com/python/cpython/commit/3150754f91fc1d15e3888e22c065672838a9c069 --

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Inada Naoki
Inada Naoki added the comment: Thank you for reporting. @vstinner Can we provide a nice C traceback too? -- nosy: +vstinner ___ Python tracker ___

[issue43263] threading module unable to run

2021-02-25 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: That's a pity. I'm going to send the Python source code to my project to compile it, and see if it can solve the problem. Of course, I can also try compiling it into a static library -- ___ Python

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Tkinter long-running window freezes

2021-02-25 Thread John O'Hagan
On Thu, 25 Feb 2021 11:06:05 -0500 Richard Damon wrote: > On 2/24/21 6:35 AM, John O'Hagan wrote: > > Here is some minimal, non-threaded code that reproduces the problem > > on my system (Xfce4 on Debian testing): > > > > from tkinter import * > > from random import randint > > > > root = Tk()

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Berker Peksag
Berker Peksag added the comment: New changeset 91ea37c84af2dd5ea92802a4c2adad47861ac067 by Erlend Egeberg Aasland in branch 'master': bpo-43290: Remove workaround from pysqlite_step() (GH-24638) https://github.com/python/cpython/commit/91ea37c84af2dd5ea92802a4c2adad47861ac067 --

Re: Tkinter long-running window freezes

2021-02-25 Thread John O'Hagan
On Thu, 25 Feb 2021 09:54:15 -0500 Terry Reedy wrote: > On 2/24/2021 6:53 PM, John O'Hagan wrote: > > On Wed, 24 Feb 2021 11:03:30 -0500 > > Terry Reedy wrote: > > > >> On 2/24/2021 6:35 AM, John O'Hagan wrote: > > [...] > >> > >> I am trying this out on Windows 10, with a wider label

[issue43263] threading module unable to run

2021-02-25 Thread Steve Dower
Steve Dower added the comment: Sorry, I can't help. My employer has strict rules about reviewing GPL code like that in your linked repository. I'd suggest checking your thread management in native code. Each new thread created in Python will create a new native thread, and they're all

[issue43263] threading module unable to run

2021-02-25 Thread twoone3
Change by twoone3 <3197653...@qq.com>: -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware resolution: works for me -> wont fix type: -> behavior ___ Python tracker

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-02-25 Thread Anthony Flury
New submission from Anthony Flury : A frequent bug for beginners is to assume that 'is' is somehow 'better' then '==' when comparing values, and it is certainly a cause for confusion amongst beginners as to why: [1,2] is [1,2] evaluates to False but 'a' is 'a' evaluates to True

[issue43324] asyncio

2021-02-25 Thread Hasan
Change by Hasan : -- keywords: +patch pull_requests: +23436 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24651 ___ Python tracker ___

Re: error of opening Python

2021-02-25 Thread Christian Gollwitzer
Am 25.02.21 um 18:22 schrieb Botao Liu: Dear Python team, This is my first time using Python, I tried to launch Python and it showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more

[issue29399] python3.dll export forwarders not resolved in all situations due to missing python3?.dll dependency and DLL search path behavior

2021-02-25 Thread Paul Moore
Paul Moore added the comment: No, because I want to work with whatever version of Python the user puts there. Yes, I could search for "python3*.dll" and load the one I find, but I'm writing this in C, and I get a migraine whenever I have to write more than about 15 lines of C code these

[issue43324] asyncio

2021-02-25 Thread Hasan
New submission from Hasan : Added socket getfqdn and gethostbyaddr functions with threadpoolexecutor to asyncio library -- messages: 387690 nosy: AliyevH priority: normal severity: normal status: open title: asyncio type: enhancement versions: Python 3.10

[issue29399] python3.dll export forwarders not resolved in all situations due to missing python3?.dll dependency and DLL search path behavior

2021-02-25 Thread Steve Dower
Steve Dower added the comment: Yeah, but in that scenario, it is just as good to LoadLibrary("python39.dll") and use it as if it was LoadLibrary("python3.dll") because the interaction model is identical. The only reason to load python3.dll explicitly is if you are not keeping it adjacent

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Addendum to msg387641: > The latter only leaves a valid Cursor->statement->st pointer (sqlite3_stmt > pointer) if the Statement object was successfully created, and the > sqlite3_stmt successfully prepared. sqlite3_prepare_v2() actually returns

Re: error of opening Python

2021-02-25 Thread Michael F. Stemper
On 25/02/2021 11.22, Botao Liu wrote: Dear Python team, This is my first time using Python, I tried to launch Python and it showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more

Re: Tkinter long-running window freezes

2021-02-25 Thread Christian Gollwitzer
Am 24.02.21 um 12:35 schrieb John O'Hagan: 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 stops. Widgets in the frame

[issue29399] python3.dll export forwarders not resolved in all situations due to missing python3?.dll dependency and DLL search path behavior

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: > I'm not sure we ever meant for LoadLibrary("python3.dll") to > actively load the concrete python3X.dll. IIRC, Paul Moore was doing something like this to create a script runner that loads "python3.dll", which runs as a regular application, not as a launcher for

Does anyone know if there Is a 'Code Snippet' add-in for PyCharm

2021-02-25 Thread DonK
Thank you Don -- https://mail.python.org/mailman/listinfo/python-list

[issue29399] python3.dll export forwarders not resolved in all situations due to missing python3?.dll dependency and DLL search path behavior

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg387686 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29399] python3.dll export forwarders not resolved in all situations due to missing python3?.dll dependency and DLL search path behavior

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: > The APIs are the same, so you can (should) LoadLibrary the one > that you want. The issue is that python3.dll doesn't depend on python3x.dll in the normal way. For example, LoadLibraryExW("path/to/python3.dll", NULL, LOAD_WITH_ALTERED_SEARCH_PATH) doesn't

error of opening Python

2021-02-25 Thread Botao Liu
Dear Python team, This is my first time using Python, I tried to launch Python and it showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information." I don't know what this meant and how

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2021-02-25 Thread Anders Kaseorg
New submission from Anders Kaseorg : We ran into a UnicodeEncodeError exception using email.parser to parse this email , with full headers available in the raw archive

[issue29399] python3.dll export forwarders not resolved in all situations due to missing python3?.dll dependency and DLL search path behavior

2021-02-25 Thread Steve Dower
Steve Dower added the comment: I'm not sure we ever meant for LoadLibrary("python3.dll") to actively load the concrete python3X.dll. The APIs are the same, so you can (should) LoadLibrary the one that you want. It's when you use static imports in extensions that it matters, but in that

[issue26111] On Windows, os.scandir will keep a handle on the directory until the iterator is exhausted

2021-02-25 Thread Steve Dower
Steve Dower added the comment: > FYI, in Windows 10, deleting files and directories now tries a POSIX delete Yeah, FWIW, I haven't been able to get clear guidance on what I can/cannot publicly announce we've done in this space. But since you've found it I guess I can say sorry that I

[issue30979] the winapi fails to run shortcuts (because considers a shortcut not a valid Win32App)

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30460] file opened for updating cannot write after read

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29399] python3.dll export forwarders not resolved in all situations due to missing python3?.dll dependency and DLL search path behavior

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: This issue affects Windows 7 and earlier, so I'm changing the affected version to Python 3.8, the last version to support Windows 7. I don't have access to Windows 7 currently. If someone has access to an updated Windows 7 installation (all required and optional

[issue22302] Windows os.path.isabs UNC path bug

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: > figure out whether to do `Path.cwd() / path` Thus a UNC path is absolute, i.e. any path that starts with 2 or more slashes, and all other paths are relative unless they have both a drive and a root. For example: def isabs(s): """Test whether a path

[issue28708] Low FD_SETSIZE limit on Windows

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg387680 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28708] Low FD_SETSIZE limit on Windows

2021-02-25 Thread Anastasia Stefanyuk
Anastasia Stefanyuk added the comment: Hello! This piece of code is kind of a pain to solve, I guess you can somehow use the information here: https://mobilunity.com/blog/hire-sap-full-stack-developer/ - this will definitely help in some way or another. -- nosy: +stefanyuk.ana

[issue43322] Inconsistent '#include' notation in extensions tutorial doc

2021-02-25 Thread Matthew Hughes
New submission from Matthew Hughes : Just a small thing in these docs, there is a mix of "#include ", e.g. https://github.com/python/cpython/blame/master/Doc/extending/newtypes_tutorial.rst#L243 and '#include "structmember.h"', mostly in the included samples e.g.

GridSearchCV generates unexpected different best parameters by only changing the parameters order in param_grid. Please help!

2021-02-25 Thread Yi Li
I am using GridSearchCV to find the best parameter setting of my sklearn.pipeline estimator. The pipeline consists of data transformation, UMAP dimension reduction and Kmeans clustering. The final Kmeans clustering results are scored using silhouette_score. I tried to verify the whole

GridSearchCV generates unexpected different best parameters by only changing the parameters order in param_grid. Where did I make mistake and how to fix this unexpected results?

2021-02-25 Thread Yi Li
I am using GridSearchCV to find the best parameter setting of my sklearn.pipeline estimator. The pipeline consists of data transformation, UMAP dimension reduction and Kmeans clustering. The final Kmeans clustering results are scored using silhouette_score. I tried to verify the whole

Re: Tkinter long-running window freezes

2021-02-25 Thread Richard Damon
On 2/24/21 6:35 AM, 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 stops. Widgets in the

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Robert
New submission from Robert : When PY_SSIZE_T_CLEAN is not #defined in Py3.10, PyArg_ParseTuple() etc. sets a SystemError but the return value says 1 (=SUCCESS)! => Causes terrific crashes with unfilled variables - instead of a clean Python exception. Background: pywin32 suffers in masses

[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : Removed file: https://bugs.python.org/file48607/splitdrive.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42914] pprint numbers with underscore

2021-02-25 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-25 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +ammar2 nosy_count: 3.0 -> 4.0 pull_requests: +23435 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24650 ___ Python tracker

[issue42914] pprint numbers with underscore

2021-02-25 Thread Stéphane Blondon
Stéphane Blondon added the comment: I add the same idea but later than you, so I'm interested by such feature. Felipe: do you want to add a pull request to this issue (with Serhiy Storchaka implementation because it's the simplest one)? If not, I plan to write it. I will write it too if

[issue28824] os.environ should preserve the case of the OS keys ?

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: In Windows, maybe the os.environ mapping could use a case-insensitive subclass of str for its keys, such as the following: @total_ordering class _CaseInsensitiveString(str): def __eq__(self, other): if not isinstance(other, str):

Re: Tkinter long-running window freezes

2021-02-25 Thread Terry Reedy
On 2/24/2021 6:53 PM, John O'Hagan wrote: On Wed, 24 Feb 2021 11:03:30 -0500 Terry Reedy wrote: On 2/24/2021 6:35 AM, John O'Hagan wrote: [...] I am trying this out on Windows 10, with a wider label (so I can move the window) and a button that changes when pressed, and a sequential

[issue43263] threading module unable to run

2021-02-25 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: After adding GIL, the problem still exists. If you think this problem is incomprehensible, it may be because I used Google Translation .. -- Added file: https://bugs.python.org/file49835/Screenshot_20210225_224118.jpg

[issue43263] threading module unable to run

2021-02-25 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43263] threading module unable to run

2021-02-25 Thread Mark Dickinson
Mark Dickinson added the comment: @twoone3: Shouldn't you be calling PyGILState_Ensure() before calling into Python from the C++ code? In any case, I'm removing myself from the nosy list on this issue, because I don't have access to Windows to try to reproduce. --

[issue28654] sys.stdout.isatty() returns True even if redirected to NUL

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: Here's an example of how to change the isatty() method in Modules/_io/fileio.c to check for a console in Windows: _io_FileIO_isatty_impl(fileio *self) { long res; if (self->fd < 0) return err_closed();

[issue43320] test test_webbrowser "can't locate runnable browser" with enable-optimizations

2021-02-25 Thread Fabian Beitler
New submission from Fabian Beitler : I downloaded the sources for python 3.8.8 (not tested with Python3.9.2. so far)and compiled it with enabled-optimisations parameter on a fresh Ubuntu 20.04 machine. Beside the test_ssl error (there is an existing workaround, but still not happy with that

[issue43263] threading module unable to run

2021-02-25 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: Run Project1\x64\Release\Project2.exe -- ___ Python tracker ___ ___ Python-bugs-list

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: msg387668 was a little bit hasty. I'll try again: Dong-hee Na: > Hmm by the way the current implementation returns SQLITE_OK if the statement > is NULL, but it looks like return SQLITE_MISUSE if we apply this patch. > Does it not cause any behavior

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > int rc = sqlite3_reset(NULL); >printf("reset with NULL: %d %s\n", rc, sqlite3_errstr(rc)); Sorry, wrong test: int rc = sqlite3_step(NULL); printf("step with NULL: %d %s\n", rc, sqlite3_errstr(rc)); $ ./a.out step with NULL: 21 bad

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Ah, at last I found the source of the confusion: The SQLite changelog. Quoting from msg387619 and https://sqlite.org/changes.html: > From the SQLite 3.5.3 changelog: > - sqlite3_step() returns SQLITE_MISUSE instead of crashing when called with a >

[issue28364] Windows - Popen (subprocess.py) does not call _handle.Close() at all

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28356] Windows: os.rename different in python 2.7.12 and python 3.5.2

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: The documentation of os.rename() should mention that on Windows the "operation will fail if src and dst are on different filesystems". For POSIX, instead of "will" it says "may", but the failure is a certainty in Windows since MOVEFILE_COPY_ALLOWED isn't used.

[issue43318] pdb can't output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-02-25 Thread huzhaojie
huzhaojie added the comment: Accroding to my test, it appears in python 3.8.0 and the latest 3.10 master branch, and I think other versions also have this bug. The steps to reproduce the bug: 1. start pdb: python -m pdb foo.py 2. set a breakpoint on any line of the file: (Pdb) b 2

[issue27889] ctypes interfers with signal handling

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Christian Heimes
Christian Heimes added the comment: Back in the day I was of several core devs that took care of syncing code between Python 2 and 3 branches with a tool called "svnmerge". Commit 380532117c2547bb0dedf6f85efa66d18a9abb88 is a svnmerge commit. The tool synced changesets in batches, which

Announcing PyCon India 2021 Online

2021-02-25 Thread Chandan Kumar
Hello everyone, I am Chandan Kumar, from Python India Community. I would like to officially announce the 13th iteration of PyCon India[1] for 2021. Considering the health and safety of everyone involved, PyCon India 2021 will be taking place online as a 4-day event on Hopin[2] from 16th to 19th

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Introduced by Christian Heimes 2007-12-14 in commit 380532117c2547bb0dedf6f85efa66d18a9abb88, which is a merge from SVN (?) checkin r59471 by Gerhard Häring (https://mail.python.org/pipermail/python-checkins/2007-December/063968.html) This

[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Look at issue in which the workaround was added. Does it contain some > examples? I'll check. Thanks. -- ___ Python tracker ___

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Look at issue in which the workaround was added. Does it contain some examples? -- ___ Python tracker ___

[issue43318] pdb can't output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-02-25 Thread Irit Katriel
Irit Katriel added the comment: Please provide instructions how to reproduce the bug. The patch would need a unit test as well. -- nosy: +iritkatriel ___ Python tracker ___

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread miss-islington
miss-islington added the comment: New changeset 69906c505b139cbd892866dbceeb607eff53ab3b by Miss Islington (bot) in branch '3.8': bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647) https://github.com/python/cpython/commit/69906c505b139cbd892866dbceeb607eff53ab3b

[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2021-02-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23433 pull_request: https://github.com/python/cpython/pull/24648 ___ Python tracker

  1   2   >