[issue43160] argparse: add extend_const action

2021-02-08 Thread Tony Lykke
Tony Lykke added the comment: Sorry, there's a typo in my last comment. --store --foo a Namespace(foo=['a', 'b', 'c']) from the first set of examples should have been --store --foo c Namespace(foo=['a', 'b', 'c']) --

[issue43160] argparse: add extend_const action

2021-02-08 Thread Tony Lykke
Tony Lykke added the comment: Perhaps the example I added to the docs isn't clear enough and should be changed because you're right, that specific one can be served by store_const. Turns out coming up with examples that are minimal but not too contrived is hard! Let me try again with a

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-02-08 Thread Iurii Kemaev
New submission from Iurii Kemaev : Dataclasses derived from empty frozen bases skip immutability checks. Repro snippet: ``` import dataclasses @dataclasses.dataclass(frozen=True) class Base: pass @dataclasses.dataclass class Derived(Base): a: int d = Derived(2) # OK ``` Usecase:

Re: Convert MBOX thunderbird to PST outlook

2021-02-08 Thread Christian Gollwitzer
Am 08.02.21 um 11:08 schrieb J.O. Aho: On 08/02/2021 10.22, Paul Rubin wrote: "J.O. Aho" writes: I think most migrated to use IMAP like 30 years ago That handles email but not calendar or the other stuff.  I think there are starting to be standards for that, but no idea whether either

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2021-02-08 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Gregory I'm the worker owner and can coordinate buildbot worker changes with Zach or Victor FreeBSD has: editline (in FreeBSD base, installed in /usr/ ) libedit in ports/packages (installs in /usr/local) readline in ports/packages (installs in /usr/local)

[issue43171] Counter not supported add in Python 3.x

2021-02-08 Thread Irit Katriel
Irit Katriel added the comment: That’s correct. This changed in python 3. See section about ordering comparisons in https://docs.python.org/3.0/whatsnew/3.0.html -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -> closed

[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-08 Thread suresh
New submission from suresh : Python base package filecmp is not working properly for 'UTF-8 BOM' css files. I am using python version 3.6 and windows 10 OS. while running the below code getting as False always.However the file content are same. Code : import filecmp filecmp.clear_cache()

[issue43173] Python Windows DLL search paths

2021-02-08 Thread Eryk Sun
Eryk Sun added the comment: > What's the correct way to set the DLL search path when running a python > script? If possible, the simplest approach is to put dependent DLLs in the same directory as the extension module. In 3.8+, the search path for the dependent DLLs of a normally imported

[issue43160] argparse: add extend_const action

2021-02-08 Thread paul j3
paul j3 added the comment: It's not clear what your patch does that the existing 'store_const' doesn't. Even 'append_const' does the same except for a extra level of list/tuple nesting. But I'll admit that I didn't much need for 'extend' addition, but others, including the original

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-08 Thread Inada Naoki
New submission from Inada Naoki : When building Python on Windows Japanese environment, several warnings are shown. ``` C:\Users\songo\source\repos\cpython\Modules\_sha3\kcp\KeccakSponge.h(1,1): warning C4819: ファイルは、現在のコード ページ (932) で表示できない文字を含んでいます。データの損失を防ぐために、ファイルを Unicode 形式で保存してください。

[issue43173] Python Windows DLL search paths

2021-02-08 Thread Jeff Moguillansky
New submission from Jeff Moguillansky : Hi, What's the correct way to set the DLL search path when running a python script? It seems that it doesn't search the directories specified in PATH environment variable. FYI: For debugging the DLL loading issues, I'm using "Process Monitor" from

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +23277 pull_request: https://github.com/python/cpython/pull/24487 ___ Python tracker ___

[issue43172] Fix test_readline when compiled using --with-readline=edit

2021-02-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: examining the behaviors being tested, it seems there are differences in 0 and 1 based indexing behaviors between libreadline and libedit. libedit frankly seems more consistent. but the Python readline module docs document the 0 and 1 based quirks as part

Re: Files can only be modified in IDLE, but not via Powershell

2021-02-08 Thread MRAB
On 2021-02-08 21:33, Stefan Ritter wrote: Hi, It would be highly appreciated if you could offer me some advice to solve a problem I'm currently facing: I have a Windows 10 ADM64 desktop and a Windows 10 AMD64 Laptop. I wrote some code to insert text in a .txt-file. It works perfectly on my

[issue42377] allow typing.cast with TYPE_CHECKING

2021-02-08 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-08 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset da21f7b6e1fd5bd3e78931a06c5eb694f6335233 by Ken Jin in branch 'master': bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) https://github.com/python/cpython/commit/da21f7b6e1fd5bd3e78931a06c5eb694f6335233 -- nosy:

[issue43171] Counter not supported add in Python 3.x

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

[issue43172] Fix test_readline when compiled using --with-readline=edit

2021-02-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://github.com/python/buildmaster-config/pull/229 tracks my buildbot config update -- ___ Python tracker ___

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2021-02-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: That seems like a good idea to prevent regressions if anyone knows how to do that. For python.org/dev/'s buildbot fleet, the configuration of what configure and make flags happens via https://github.com/python/buildmaster-config/tree/master/master/custom

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Ethan Furman
Ethan Furman added the comment: Dylan, it's not the `from_str()` method, but the `__str__` method that is the problem. Instead of def __str__(self): if self is self.EXITCODE: return 'exitcode' it should be def __str__(self): cls = self.__class__

[issue43172] Fix test_readline when compiled using --with-readline=edit

2021-02-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Motivation: I want to add --with-readline=edit to the configure flags of one of my buildbot configs via an edit to https://github.com/python/buildmaster-config/tree/master/master/custom -- ___ Python tracker

[issue43172] Fix test_readline when compiled using --with-readline=edit

2021-02-08 Thread Gregory P. Smith
New submission from Gregory P. Smith : https://bugs.python.org/issue13501 added configure --with-readline=edit support so that the readline module can build and link against libedit on any platform instead of only using libreadline. Building Python that way on Debian Linux and running

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Ethan Furman
Ethan Furman added the comment: New changeset d65b9033d6d092552775f6f5e41e7647100f9f2c by Ethan Furman in branch 'master': bpo-43162: [Enum] deprecate enum member.member access (GH-24486) https://github.com/python/cpython/commit/d65b9033d6d092552775f6f5e41e7647100f9f2c --

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2021-02-08 Thread Kubilay Kocak
Kubilay Kocak added the comment: Would we like the freebsd worker CI configurations to be modified to use ports/package versions of libedit (or readline, or whatever) to ensure converage? Right now the defaults are used (whatever edit library that entails) --

[issue43068] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2021-02-08 Thread Kubilay Kocak
Kubilay Kocak added the comment: Rebuilding bash & gdb now to pickup new/updated ncurses library. Still suggest picking up "subprocess.CalledProcessError" generically in test framework for tests that use subprocess/external commands -- ___ Python

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2021-02-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm closing this as I believe everything we need done is done at this point. Open new issues if there are remaining libedit vs libreadline things to take care of. Thanks everyone! -- resolution: -> fixed stage: patch review -> commit review

[issue38634] Symbol resolution conflict when embeding python in an application using libedit

2021-02-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e1f77695132e814728cda982f11342a2e3c7272c by Roland Hieber in branch 'master': bpo-13501: allow choosing between readline and libedit (GH-24189) https://github.com/python/cpython/commit/e1f77695132e814728cda982f11342a2e3c7272c --

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2021-02-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e1f77695132e814728cda982f11342a2e3c7272c by Roland Hieber in branch 'master': bpo-13501: allow choosing between readline and libedit (GH-24189) https://github.com/python/cpython/commit/e1f77695132e814728cda982f11342a2e3c7272c --

RE: Convert MBOX thunderbird to PST outlook

2021-02-08 Thread pjfarley3
I can recommend the commercial product Aid4Mail from my personal experience moving from another mbox-based email client (not Thunderbird) to Outlook (though that was a few years back, well before Outlook 365 became available). Very well supported and responsive, very reasonably priced at the

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Miro Hrončok
Miro Hrončok added the comment: Ethan, should the depreciation exist for 2 releases prior to removal? Dylan, even in that case, I guess the proper way to access the other members is supposed to be type(self).FOO or ClassName.FOO, not self.FOO. --

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-08 Thread Guido van Rossum
Guido van Rossum added the comment: The PEP has been accepted. I propose that we use separate PRs for docs (and incremental improvements to the code) but tie them all together using the same issue number (this will require adding "skip news" to later PRs). --

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Dylan Baker
Dylan Baker added the comment: Author of said meson code here. I use this pattern when the enum names and values are implementation details, but the string values are user visible. In this case the enum itself is used internally to represent what kind of test we're doing, but we're

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +23276 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24486 ___ Python tracker

Files can only be modified in IDLE, but not via Powershell

2021-02-08 Thread Stefan Ritter
Hi, It would be highly appreciated if you could offer me some advice to solve a problem I'm currently facing: I have a Windows 10 ADM64 desktop and a Windows 10 AMD64 Laptop. I wrote some code to insert text in a .txt-file. It works perfectly on my laptop. On my desktop it works only if i

Re: Convert MBOX thunderbird to PST outlook

2021-02-08 Thread J.O. Aho
On 07/02/2021 15.06, Kr4ck ALI wrote: Hello, I have to migrate multiple mailbox (emails, contacts, calendar, tasks) from thunderbird to outlook Office 365. I'm sorry to hear that. I plan to export all items from thunderbird files (.mbox for email, .sqlite or .sdb for calendar, .mab to

[issue13508] ctypes' find_library breaks with ARM ABIs

2021-02-08 Thread Trevor Newton
Trevor Newton added the comment: I am still encountering this issue when using pyudev on Python 3.8.5. -- nosy: +trevor.newton ___ Python tracker ___

[issue43170] wintypes.SIZE is 8bytes on 32 bit machines

2021-02-08 Thread Eryk Sun
Eryk Sun added the comment: The SIZE [1] type for a rectangle has nothing to do with SIZE_T [2], the integer type that's returned by C sizeof(). SIZE_T isn't defined in wintypes. A new issue can be opened to add more of the common data types to wintypes. Here's an example for defining

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the idea and Matthew's version. This continuing problem is worth doing experiments. I marked this as 'enhancement' and 3.10 only because this might break code that hardcodes the complete name. This might also, unfortunately, be a reason to

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Installation, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch versions: +Python 3.10 ___ Python tracker

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Miro Hrončok
Miro Hrončok added the comment: Thanks. In the meantime, I've opened https://github.com/mesonbuild/meson/issues/8318 -- ___ Python tracker ___

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23275 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24483 ___ Python tracker

[issue43171] Counter not supported add in Python 3.x

2021-02-08 Thread Frank AK
New submission from Frank AK : In python 3.10, you couldn't plus two Counter instance, you will got the below tip: ``` >>> from collections import Counter >>> x={1:['a','b','c']} >>> y={1:['d','e','f'],2:['g']} >>> Counter(y) + Counter(x) Traceback (most recent call last): File "", line 1,

Re: Python cannot count apparently

2021-02-08 Thread Michael F. Stemper
On 08/02/2021 13.12, Schachner, Joseph wrote: This code works: mystr = "hello" for ch in mystr: print(ch, end="") result is: hello Note that the for loop does not use range. Strings are iterable, that is they support Python's iteration protocol. So, for ch in mystr:

[issue43170] wintypes.SIZE is 8bytes on 32 bit machines

2021-02-08 Thread Noah Steinberg
New submission from Noah Steinberg : Noticed while debugging a problem with a test running on Windows 10 x86 that sizeof(wintypes.SIZE)==8 when I believe it should be 4. While using kernel32.CreateRemoteThread.argtypes = [wintypes.HANDLE, wintypes.LPCVOID, wintypes.DWORD, wintypes.LPCVOID,

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > (I think it would be good if a C expert compared it to the *current* C code.) That would be very beneficial but is quite a big task, specially given that codeop design is quite surprising. I personally find quite confusing the way codeop is

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-02-08 Thread John Reese
John Reese added the comment: Is there an ETA for having Big Sur support backported to the 3.8 branch, or is it already there and I'm just not seeing it here? -- nosy: +jreese ___ Python tracker

[issue43169] argparse: support options similar to find's -exec

2021-02-08 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Ned Deily
Ned Deily added the comment: > I was wondering what the bottom text box was for. [...] I suggest you take that UX issue up with Apple as we have no control over the macOS Installer app and it has worked that way for a long, long time :) If the proposed solution in Issue43167 of adding some

[issue43169] argparse: support options similar to find's -exec

2021-02-08 Thread pkkm
New submission from pkkm : This is a feature request for options that would work like the "find" program's "-exec" option, which takes the arguments following it unconditionally until it encounters a ";" or a "+". There are multiple ways to achieve this, but I think a good general solution

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: I was wondering what the bottom text box was for. The usual UX for check boxes is to toggle when the text of the control is clicked. Because of that I avoid clicking on check boxes that I do not know if I want to change. Hence I did not get to see the

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when closer is needed -> codeop prematurely raises on 2nd line when closer is needed ___ Python tracker

[issue42778] Add follow_symlinks=True parameter to both os.path.samefile() and Path.samefile()

2021-02-08 Thread Ross Rhodes
Ross Rhodes added the comment: Thanks for sharing the alternative approach, Serhiy. Sounds like the proposed changes aren’t necessary if the combined use of samestat and lstat achieve the desired behaviour. Any objections if I close the open PR? --

[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: test.test_codeop's test_incomplete is incomplete in that it tests several missing-closer single lines, like the above and "[x for x in (", all of which pass, but no corresponding multiple line snippets, like the above. The only multiple line snippets are

[issue42916] Support for DICOM image file format in imghdr module

2021-02-08 Thread Ross Rhodes
Ross Rhodes added the comment: Looking for input from other contributors here. Naturally with a PR already open I’m inclined to keep these changes, but if the majority agree that it is too specific a format then I’m happy to hear alternative suggestions? Ross --

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Ned Deily
Ned Deily added the comment: On the Installation Type -> Customize window in the installer, there is an explanation of a package when you can click on it. For Unix command-line tools package, the explanation (at the bottom of the window) is: "This package installs the unix tools in

[issue43167] Add a note to the macOS installer welcome window about customize options

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: The readme page is a good 2nd best is PKG install has not option to control the text on the INstallation type page. My guess is that the info would need be in visible without scrolling for people to notice it. (UX is hard). --

[issue43167] Add a note to the macOS installer welcome window about customize options

2021-02-08 Thread Ned Deily
Change by Ned Deily : -- assignee: -> ned.deily stage: -> needs patch title: macOS python install need mechanism to prevent editing shell profile files -> Add a note to the macOS installer welcome window about customize options ___ Python

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: >From "UNIX command-line tools" its not clear to me that that prevents symlinks in /usr/local/bin. Maybe word it as "Add python to /usr/local/bin". Is this documented anywhere? I just looked at the download page https://www.python.org/downloads/macOS and

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Ned Deily
Ned Deily added the comment: I'm not sure that the text on the "Installation Type" window can be customized but we could add something to either the "Introduction" or "Read Me" windows. -- ___ Python tracker

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: It was not obvious that I could do that with Customise. Indeed I installed 3.10a5 just so that I could remind myself of what the installer did. It would help is the Installation type page told the user why they might want to use the Customise for.

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Ned Deily
Ned Deily added the comment: Similar to Issue43167, there already is a mechanism to do that: on the "Installation Type" window of the macOS installer app sequeence, select "Customize" and then deselect the "UNIX command-line tools" package. Another option is to use the macOS "installer"

[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when ']' is needed -> codeop prematurely raises SyntaxError when closer is needed ___ Python tracker

[issue43163] codeop prematurely raises SyntaxError when ']' is needed

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE is a Python program that wraps the Python interpreter. Before blaming IDLE for how code is executed, one should first execute the same code directly in Python. The example above shows that one should also try code.interact, especially for

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Ned Deily
Change by Ned Deily : -- components: +macOS nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Ned Deily
Ned Deily added the comment: There already is a mechanism to do that: on the "Installation Type" window of the macOS installer app sequeence, select "Customize" and then deselect the "Shell profile update" package. Another option is to use the macOS "installer" command line tool instead and

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
New submission from Barry Alan Scott : The popular homebrew system installs its binaries into /usr/local/bin. The macOS python install also defaults to /usr/local/bin where it puts symlinks to Python like: % ls -l /usr/local/bin/python3.10 lrwxr-xr-x 1 root 73 8 Feb 19:45:50 2021

[issue42861] ipaddress - add ability to get next closet network of any prefix size

2021-02-08 Thread Faisal Mahmood
Faisal Mahmood added the comment: Bump :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43166] Unused letters in Windows-specific pragma optimize

2021-02-08 Thread Zachary Ware
Change by Zachary Ware : -- assignee: -> steve.dower components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Barry Alan Scott
New submission from Barry Alan Scott : By default the python macOS installer will edit .bash_profile and .zsh_profile to add Python to the path. For many users this is a problem that requires the added lines to be removed after each install. I suggest that there is a mechanism that the user

[issue43166] Unused letters in Windows-specific pragma optimize

2021-02-08 Thread Guido van Rossum
New submission from Guido van Rossum : A coworker happened to look at our use of #pragma optimize() for Windows (VS 2017) and noticed: unless there’s something I’m missing, the ‘a’ and ‘w’ portions of the string being passed to the optimize pragma are not doing anything; I’m pretty sure

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

2021-02-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: In my opinion, an array of pointers is a bad API; using a struct (like most of the other API's) is an improvement. Ref. discussions on GH-24186 (https://github.com/python/cpython/pull/24186#discussion_r560834060) and bpo-43009. --

RE: Python cannot count apparently

2021-02-08 Thread Schachner, Joseph
This code works: mystr = "hello" for ch in mystr: print(ch, end="") result is: hello Note that the for loop does not use range. Strings are iterable, that is they support Python's iteration protocol. So, for ch in mystr: assigns one character from mystr to ch each time, each

[issue43101] Add deprecation of float limits for resource to documentation

2021-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Maybe the better fix is to have better reporting of the `preexec_fn` error, so that it's not entirely hidden by the `SubprocessError`? On the other hand, given that `preexec_fn` may be going away entirely soon (see #38435), that may not be worth it.

[issue43101] Add deprecation of float limits for resource to documentation

2021-02-08 Thread Gereon Kremer
Gereon Kremer added the comment: Hm, I see. For methods that do not intercept exceptions or run code in a different process or alike, the deprecation warning and the TypeError should be sufficient. Given that identifying this issue can be particularly nasty for setrlimit (if used within

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Ethan Furman
Ethan Furman added the comment: The code for that `__str__` seems very inefficient -- why doesn't it just do: return self.name ? - The issue is not being able to access class attributes, the issue is whether one enum member should be seen as an attribute of another:

[issue43165] Support the same files with new param in shutil.copyfile

2021-02-08 Thread Milan Balazs
Milan Balazs added the comment: Sure, you can use try/except but it would be nice if the "shutil.copyfile" function supports the same files. If I have many files (more thousand), I don't want to check them with a try/except. Furthermore if I want to cover the unexpected exceptions as well

[issue43161] Taking sum of massive list comprehension results in total system crash.

2021-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: > 28 bytes for the actual object Gah. I should proof-read before hitting "Submit Changes". That should say "28 bytes for each int object". -- ___ Python tracker

[issue43161] Taking sum of massive list comprehension results in total system crash.

2021-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: The list you're attempting to create needs around 41GB of RAM (28 bytes for the actual object, rounded up to 32 bytes per object for alignment reasons, plus 8 bytes for each pointer in the list). Assuming you don't have that much memory on your system,

[issue43165] Support the same files with new param in shutil.copyfile

2021-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use try/except. try: shutil.copyfile("test.txt", "test.txt") except SameFileError: pass -- nosy: +serhiy.storchaka ___ Python tracker

[issue43165] Support the same files with new param in shutil.copyfile

2021-02-08 Thread Milan Balazs
Change by Milan Balazs : -- keywords: +patch pull_requests: +23274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24482 ___ Python tracker ___

[issue43101] Add deprecation of float limits for resource to documentation

2021-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed with Serhiy that it's not practical to document all the affected functions. -- ___ Python tracker ___

[issue43101] Add deprecation of float limits for resource to documentation

2021-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change was indirectly documented in What's New for 3.8 (deprecation) https://docs.python.org/3.8/whatsnew/3.8.html#build-and-c-api-changes: """ Functions that convert Python number to C integer like PyLong_AsLong() and argument parsing functions like

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

2021-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Can you explain what problem this would be solving? -- ___ Python tracker ___ ___

[issue43165] Support the same files with new param in shutil.copyfile

2021-02-08 Thread Milan Balazs
New submission from Milan Balazs : The "shutil.copyfile" raises a "SameFileError" exception if the src and dts files are the same. There is no option to allow the same files(like in case of shutil.copytree(dirs_exist_ok=False)). For example: import shutil shutil.copyfile("test.txt",

[issue43134] (list have item) instate (item in list)

2021-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: @Masoud: There's a significant cost to introducing new syntax into Python; there need to be really significant benefits to justify that cost. In this case, the benefits are slight, and nowhere near the threshold needed to justify introducing a new keyword

[issue40361] Darwin systems using win settings for webbrowser.py

2021-02-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2021-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it possible that your PATH contains a non-directory? Because it can give results a NotADirectoryError: >>> subprocess.check_output(['xdg-settings', 'get', 'default-web-browser'], >>> env={'PATH': '/etc/hosts'}) Traceback (most recent call last): File

[issue43164] test_nntplib.NetworkedNNTP_SSLTests fails on "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-02-08 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : This is one of the unstable buildbots, running under FIPS mode. One of the tests is failing at the moment. == ERROR: setUpClass (test.test_nntplib.NetworkedNNTP_SSLTests)

[issue43163] code.interact() unexpectedly raises exception when there may be more code

2021-02-08 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43163] code.interact() unexpectedly raises exception when there may be more code

2021-02-08 Thread Xie Jingyi
Change by Xie Jingyi : -- title: code.interact() unexpected raises exception when there may be more code -> code.interact() unexpectedly raises exception when there may be more code ___ Python tracker

[issue40168] import pandas error[python 3.8.]

2021-02-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43163] code.interact() unexpected raises exception when there may be more code

2021-02-08 Thread Xie Jingyi
Change by Xie Jingyi : -- assignee: -> terry.reedy components: +IDLE, Library (Lib) nosy: +terry.reedy ___ Python tracker ___ ___

[issue43163] code.interact() unexpected raises exception when there may be more code

2021-02-08 Thread Xie Jingyi
New submission from Xie Jingyi : In Python3.10.0a5, `code.interact()` will raise unexpected SyntaxError even if there should be more code. ``` Python 3.10.0a5 (default, Feb 7 2021, 20:14:10) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue43163] code.interact() unexpected raises exception when there may be more code

2021-02-08 Thread Xie Jingyi
Change by Xie Jingyi : -- nosy: hsfzxjy priority: normal severity: normal status: open title: code.interact() unexpected raises exception when there may be more code type: behavior versions: Python 3.10 ___ Python tracker

Re: Python cannot count apparently

2021-02-08 Thread Michael F. Stemper
On 07/02/2021 13.34, Philipp Daher wrote: Hello, I recently coded this snippet of code: myString=„hello“ for i in range(len(myString): print(string[i]) And now for the weird part: SOMETIMES, the output is this: hello Strange. When I fix the errors in what you posted: - wrong

[issue42683] asyncio should handle keyboard interrupt while the event loop is running

2021-02-08 Thread Gianni Tedesco
Change by Gianni Tedesco : -- nosy: +scaramanga ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42901] [Enum] move member creation to __set_name__ in order to support __init_subclass__

2021-02-08 Thread Miro Hrončok
Miro Hrončok added the comment: I found a possible regression: https://bugs.python.org/issue43162 -- nosy: +hroncok ___ Python tracker ___

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-08 Thread Miro Hrončok
Miro Hrončok added the comment: Git bisect: c314e60388282d9829762fb6c30b12e2807caa19 is the first new commit commit c314e60388282d9829762fb6c30b12e2807caa19 Author: Ethan Furman Date: Tue Jan 12 23:47:57 2021 -0800 bpo-42901: [Enum] move member creation to `__set_name__` (GH-24196)

  1   2   >