Re: Detect naming typos (AttributeError) in function names

2023-11-07 Thread Thomas Passin via Python-list
On 11/7/2023 2:48 AM, Christian Buhtz via Python-list wrote: Hello Dieter, thanks for your reply. Am 06.11.2023 19:11 schrieb Dieter Maurer: One option is a test suite (--> Python's "unittest" package) with a sufficiently high coverage (near 100 %). Yes, that is the primary goal. But it is

Re: Detect naming typos (AttributeError) in function names

2023-11-06 Thread Christian Buhtz via Python-list
Hello Dieter, thanks for your reply. Am 06.11.2023 19:11 schrieb Dieter Maurer: One option is a test suite (--> Python's "unittest" package) with a sufficiently high coverage (near 100 %). Yes, that is the primary goal. But it is far away in the related project. I got a hint that "pylint"

Re: Detect naming typos (AttributeError) in function names

2023-11-06 Thread George Fischhof via Python-list
Dieter Maurer via Python-list ezt írta (időpont: 2023. nov. 6., H, 19:13): > c.bu...@posteo.jp wrote at 2023-11-6 12:47 +: > >I would like to know how to detect (e.g. via a linter) typos in function > >names imported from another module. > > One option is a test suite (--> Python's

Re: Detect naming typos (AttributeError) in function names

2023-11-06 Thread Dieter Maurer via Python-list
c.bu...@posteo.jp wrote at 2023-11-6 12:47 +: >I would like to know how to detect (e.g. via a linter) typos in function >names imported from another module. One option is a test suite (--> Python's "unittest" package) with a sufficiently high coverage (near 100 %). --

Detect naming typos (AttributeError) in function names

2023-11-06 Thread Christian Buhtz via Python-list
unction "baR()" does not exist in "foo". This cause an AttributeError when run with a Python interpreter. The described error is not detected in my IDE (Emacs with eglot, pylsp and flake8) and not by flake8 on the shell. Because the involved tools do not look inside the "

[issue532638] Better AttributeError formatting

2022-04-10 Thread admin
Change by admin : -- github: None -> 36293 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue221951] webbrowser.open() generates AttributeError on Mac

2022-04-10 Thread admin
Change by admin : -- github: None -> 33456 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue504714] hasattr catches only AttributeError

2022-04-10 Thread admin
Change by admin : -- github: None -> 35932 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue221951] webbrowser.open() generates AttributeError on Mac

2022-04-10 Thread admin
Change by admin : -- github: None -> 33456 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-04-07 Thread Gobot1234
Gobot1234 added the comment: I was just looking through the git diff for this PR and found a bug in this https://github.com/python/cpython/pull/30887/files#diff-2828caacf5c85c7bd6023ea0e4a381cc5c65179a9822398534c5e9ad9ccbd90dR73. There's a missing f on the io __getattr__'s message

[issue46134] Confusing error message for AttributeError with dataclasses

2022-04-05 Thread Alex Waygood
Alex Waygood added the comment: Closing due to lack of response from OP. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-02-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-02-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9b12b1b803d7b73640ab637a74a6f35f3fe9db21 by Thomas Grainger in branch 'main': bpo-46522: fix concurrent.futures and io AttributeError messages (GH-30887) https://github.com/python/cpython/commit/9b12b1b803d7b73640ab637a74a6f35f3fe9db21

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2022-01-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: I confirmed I get the same error as Anton on 3.9 and 3.11 . -- ___ Python tracker ___ ___

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2022-01-30 Thread Anton Khirnov
Anton Khirnov added the comment: Ping yet again. Can anyone please look at this? -- ___ Python tracker ___ ___ Python-bugs-list

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-01-25 Thread Thomas Grainger
Thomas Grainger added the comment: this also applies to io and _pyio -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-01-25 Thread Thomas Grainger
New submission from Thomas Grainger : >>> import types >>> types.ModuleType("concurrent.futures").missing_attribute Traceback (most recent call last): File "", line 1, in AttributeError: module 'concurrent.futures' has no attribute 'missing_at

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-24 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-23 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-23 Thread Irit Katriel
Irit Katriel added the comment: New changeset 1398dca838529e682c06b496cc1911d91334ff3a by Irit Katriel in branch '3.9': bpo-41403: Improve error message for invalid mock target (GH-30833) (GH-30835) https://github.com/python/cpython/commit/1398dca838529e682c06b496cc1911d91334ff3a

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-23 Thread Irit Katriel
Irit Katriel added the comment: New changeset e3ade66ec575e0cb4882cfdff155ef962e67c837 by Irit Katriel in branch '3.10': bpo-41403: Improve error message for invalid mock target (GH-30833) (GH-30834) https://github.com/python/cpython/commit/e3ade66ec575e0cb4882cfdff155ef962e67c837

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-23 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +29021 pull_request: https://github.com/python/cpython/pull/30835 ___ Python tracker ___

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-23 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +29020 pull_request: https://github.com/python/cpython/pull/30834 ___ Python tracker ___

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-23 Thread Irit Katriel
Irit Katriel added the comment: New changeset f7955a82e36d4c32ebdd7b7707cdf0e6ffa7a418 by Irit Katriel in branch 'main': bpo-41403: Improve error message for invalid mock target (GH-30833) https://github.com/python/cpython/commit/f7955a82e36d4c32ebdd7b7707cdf0e6ffa7a418 --

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-23 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 6.0 -> 7.0 pull_requests: +29019 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30833 ___ Python tracker

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset b37f3e993a978eacf05c5fddd716be2d31f18a8d by Miss Islington (bot) in branch '3.9': bpo-46463: Fixes escape4chm.py script used when building the CHM documentation file (GH-30768)

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset d548c871716dfda73714d9f38b4e4219878a414e by Miss Islington (bot) in branch '3.10': bpo-46463: Fixes escape4chm.py script used when building the CHM documentation file (GH-30768)

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +28958 pull_request: https://github.com/python/cpython/pull/30773 ___ Python tracker ___

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +28957 pull_request: https://github.com/python/cpython/pull/30772 ___ Python tracker

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread Steve Dower
Steve Dower added the comment: New changeset 57d1855682dbeb9233ef3a531f9535c6442e9992 by Steve Dower in branch 'main': bpo-46463: Fixes escape4chm.py script used when building the CHM documentation file (GH-30768)

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28953 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30768 ___ Python tracker ___

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread Steve Dower
New submission from Steve Dower : Exception occurred: File "D:\a\1\s\Doc\tools\extensions\escape4chm.py", line 44, in fixup_keywords with app.builder.open_file(outdir, outname + '.hhk', 'r') as f: AttributeError: 'HTMLHelpBuilder' object has no attribute 'open_file' The full tra

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread Steve Dower
Steve Dower added the comment: Thanks for the contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset 05063fa15c594012e6dc9c2c7a3ea72e7cb933f2 by Miss Islington (bot) in branch '3.10': bpo-46434: Handle missing docstrings in pdb help (GH-30705) https://github.com/python/cpython/commit/05063fa15c594012e6dc9c2c7a3ea72e7cb933f2 --

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +28946 pull_request: https://github.com/python/cpython/pull/30759 ___ Python tracker ___

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset c3ad850b57f92bd7c5515616b59afbd9e1c79538 by Miss Islington (bot) in branch '3.9': bpo-46434: Handle missing docstrings in pdb help (GH-30705) https://github.com/python/cpython/commit/c3ad850b57f92bd7c5515616b59afbd9e1c79538 --

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +28942 pull_request: https://github.com/python/cpython/pull/30755 ___ Python tracker ___

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread Steve Dower
Steve Dower added the comment: New changeset 60705cff70576482fea31dcafbf8a37cbb751ea5 by Tom Sparrow in branch 'main': bpo-46434: Handle missing docstrings in pdb help (GH-30705) https://github.com/python/cpython/commit/60705cff70576482fea31dcafbf8a37cbb751ea5 --

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28941 pull_request: https://github.com/python/cpython/pull/30754 ___ Python tracker

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread Steve Dower
Steve Dower added the comment: > the existing check in `do_help` didn't catch this case because > https://docs.python.org/3/library/sys.html#sys.flags only reflects command > line flags, rather than whether or not it was actually optimised. Precisely. Your check is much more appropriate for

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread sparrowt
sparrowt added the comment: Gottit thanks for explaining - so the existing check in `do_help` didn't catch this case because https://docs.python.org/3/library/sys.html#sys.flags only reflects command line flags, rather than whether or not it was actually optimised. --

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread Steve Dower
Steve Dower added the comment: See https://github.com/python/cpython/blob/b04dfbbe4bd7071d46c8688c2263726ea31d33cd/PC/layout/main.py#L256-L289 Basically, the .pyc files in the embeddable distro have been compiled with optimize=2, which is the equivalent of -OO. So yes, docstrings (and

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread sparrowt
sparrowt added the comment: Thanks, yes CLA should now be working its way through the system. I guess a side question is: is it expected for docstring to have been stripped from the windows embeddable distribution, and how is that done if not with -OO? (I found --without-doc-strings but not

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-19 Thread Steve Dower
Steve Dower added the comment: The PR looks good. I assume you've started the CLA process, so once that clears we'll be fine to merge. -- versions: -Python 3.7, Python 3.8 ___ Python tracker

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-19 Thread sparrowt
Change by sparrowt : -- keywords: +patch pull_requests: +28901 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30705 ___ Python tracker ___

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-19 Thread sparrowt
sparrowt added the comment: Perhaps we should have a more generic check for `command.__doc__` as it appears this is a case not handled by the existing `sys.flags.optimize >= 2` check? https://github.com/python/cpython/blob/v3.9.10/Lib/pdb.py#L1492-L1496 --

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-19 Thread sparrowt
quot;bdb.py", line 151, in dispatch_return File "pdb.py", line 294, in user_return File "pdb.py", line 357, in interaction File "pdb.py", line 322, in _cmdloop File "cmd.py", line 138, in cmdloop File "pdb.py", line 422, in onecmd Fil

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-14 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue46354] AttributeError: module 'collections' has no attribute 'Mapping'

2022-01-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi mareklachbc, What makes you think that this is a bug? Since at least version 3.7, you will have seen this warning: >>> import collections >>> collections.Mapping __main__:1: DeprecationWarning: Using or importing the ABCs from

[issue46354] AttributeError: module 'collections' has no attribute 'Mapping'

2022-01-12 Thread Alex Waygood
New submission from Alex Waygood : Hi -- thanks for the report! You haven't given us many details here, but I think this is intentional behaviour, not a bug -- this was changed in Issue37324. Importing `Mapping` (along with many other names) directly from `collections`, instead of from

[issue46354] AttributeError: module 'collections' has no attribute 'Mapping'

2022-01-12 Thread Marek Ľach
Change by Marek Ľach : -- nosy: mareklachbc priority: normal severity: normal status: open title: AttributeError: module 'collections' has no attribute 'Mapping' type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.

Re: AttributeError: 'NoneType' object has no attribute 'get'

2022-01-06 Thread Chris Angelico
On Fri, Jan 7, 2022 at 8:47 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2022-01-06 at 14:21:48 -0700, > Mats Wichmann wrote: > > > And at a more meta level: many functions in the Python world return > > None as an indication that the operation did not succeed. It's useful > > because

Re: AttributeError: 'NoneType' object has no attribute 'get'

2022-01-06 Thread 2QdxY4RzWzUUiLuE
On 2022-01-06 at 14:21:48 -0700, Mats Wichmann wrote: > And at a more meta level: many functions in the Python world return > None as an indication that the operation did not succeed. It's useful > because in many circumstances None is an "out of band" value - one > that could not happen

Re: AttributeError: 'NoneType' object has no attribute 'get'

2022-01-06 Thread Mats Wichmann
ib\tkinter\__init__.py", line >> 1705, in __call__ >> return self.func(*args) >> File "D:/Python/Book Bank/New folder/PyCharm/Final/Excel.py", line 57, in >> SaveBook >> e_pissue.get(), >> AttributeError: 'NoneType' object has no attribute 'ge

Re: AttributeError: 'NoneType' object has no attribute 'get'

2022-01-06 Thread Kushal Kumaran
eturn self.func(*args) > File "D:/Python/Book Bank/New folder/PyCharm/Final/Excel.py", line 57, in > SaveBook > e_pissue.get(), > AttributeError: 'NoneType' object has no attribute 'get' > > Process finished with exit code 0 The error means that e_pissue is Non

AttributeError: 'NoneType' object has no attribute 'get'

2022-01-05 Thread NArshad
el.py", line 57, in SaveBook e_pissue.get(), AttributeError: 'NoneType' object has no attribute 'get' Process finished with exit code 0 -- https://mail.python.org/mailman/listinfo/python-list

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-01 Thread Andrei Kulakov
Andrei Kulakov added the comment: More generally, split()/rsplit() are probably the most common operations done on expected string at the start of a function, i.e. most likely to be triggered on the wrong type passed in. At the same time to many new users split()/rsplit() does not imply

[issue43639] Do not raise AttributeError on instance attribute update/deletion if data descriptor with missing __set__/__delete__ method found on its type

2021-12-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43639] Do not raise AttributeError on instance attribute update/deletion if data descriptor with missing __set__/__delete__ method found on its type

2021-12-29 Thread Raymond Hettinger
through. That seems hazardous and error-prone to me. It is easier to reason about data descriptors being all or nothing. I like that AttributeError is raised while still allowing me to add the missing methods if I want to explicitly define some other behavior. * This has been open for 9

[issue46160] IPy->IPSet AttributeError: module 'collections' has no attribute 'MutableSet'

2021-12-23 Thread dafu-wu
dafu-wu added the comment: Many thanks,You help me to solve the problem! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46160] IPy->IPSet AttributeError: module 'collections' has no attribute 'MutableSet'

2021-12-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46160] IPy->IPSet AttributeError: module 'collections' has no attribute 'MutableSet'

2021-12-23 Thread Kumar Aditya
Kumar Aditya added the comment: In Python 3.10 these deprecated aliases where removed from collections module. To fix it you can change `collections.MutableSet` to `collections.abc.MutableSet`. See

[issue46160] IPy->IPSet AttributeError: module 'collections' has no attribute 'MutableSet'

2021-12-22 Thread dafu-wu
/python3.10/site-packages/IPy.py", line 1025, in class IPSet(collections.MutableSet): AttributeError: module 'collections' has no attribute 'MutableSet' I'm not sure it's a bug, could someone look at it for me? -- components: Library (Lib) messages: 409068 nosy: dafu-wu priority: norm

[issue46134] Confusing error message for AttributeError with dataclasses

2021-12-19 Thread Eric V. Smith
Eric V. Smith added the comment: Please show the error you're getting, including the traceback. -- status: pending -> open ___ Python tracker ___

[issue46134] Confusing error message for AttributeError with dataclasses

2021-12-19 Thread Alex Waygood
: int = field(init=False, repr=False) ... intelligence: int ... def __post_init__(self): ... self.sortindex = self.intelligence ... >>> c = Character(intelligence=50) >>> c Character(intelligence=50) >>> c.sortindex 50 >>> c.sort_index AttributeError:

[issue44896] AttributeError in ast.unparse

2021-12-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: #46073 may be a duplicate of this and perhaps should have the same resolution. -- nosy: +terry.reedy ___ Python tracker ___

[issue44896] AttributeError in ast.unparse

2021-12-14 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45985] AttributeError from @property inadvertantly flows into __getattr__

2021-12-12 Thread Alex Waygood
Change by Alex Waygood : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45985] AttributeError from @property inadvertantly flows into __getattr__

2021-12-05 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45985] AttributeError from @property inadvertantly flows into __getattr__

2021-12-05 Thread Ofer Koren
raise AttributeError(attr) # <--- let's pretend our getattr couldn't find the attr >>> A().foo Traceback (most recent call last): File "t.py", line 13, in A().foo File "t.py", line 10, in __getattr__ raise AttributeError(attr) Attrib

RE: Vnev issue - AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: 'get_default_scheme'?

2021-11-10 Thread pranesh kumar
ng How to fix this issue. Thanks in advance Regards Pranesh Kumar 9789411538 Sent from [2]Mail for Windows From: [3]OmPs Sent: 06 November 2021 00:01 To: [4]pranesh kumar Cc: [5]python-list@python.org Subject: Re: Vnev issue - AttributeError: module 'sysc

[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-05 Thread Éric Araujo
Éric Araujo added the comment: Also note that Python 3.6 only receives security updates now. Does your problem still happen with a current version? -- components: -Parser nosy: +eric.araujo status: open -> pending type: behavior -> ___ Python

Re: Vnev issue - AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: 'get_default_scheme'?

2021-11-05 Thread OmPs
pycharm community version 2021.2.2. > >Trying to import Open CV in pycharm but not able to complete > >When creating new virtual environment error I got is "AttributeError: >module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: >'ge

RE: Vnev issue - AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: 'get_default_scheme'?

2021-11-05 Thread pranesh kumar
Hi Facing problem in creating virtual environment and in importing modules in pycharm community version 2021.2.2. Trying to import Open CV in pycharm but not able to complete When creating new virtual environment error I got is "AttributeError: module 'sysconfig

[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-03 Thread Alex Waygood
Alex Waygood added the comment: Hi! It's very hard to work out what the problem might be here if you don't show us the code that caused the error. Also, this site is for reporting bugs in the Python programming language itself, and this doesn't look like a bug in Python to me. You might be

[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-03 Thread Kishor Pawar
64/python3.6/configparser.py", line 394, in before_get self._interpolate_some(parser, option, L, value, section, defaults, 1) File "/usr/lib64/python3.6/configparser.py", line 413, in _interpolate_some p = rest.find("%") AttributeError: 'list' objec

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: Marking this as "wont fix" since only documentation was updated. Thanks for reporting, Marek! -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 427ab124b3e9a54602b6f1d073a8e073159c0b51 by Miss Islington (bot) in branch '3.9': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29105)

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b2a989995e6b725c5c957927127832fd3fcecfa2 by Miss Islington (bot) in branch '3.10': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29104)

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +27373 pull_request: https://github.com/python/cpython/pull/29105 ___ Python tracker ___

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27372 pull_request: https://github.com/python/cpython/pull/29104 ___ Python tracker

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset dff0b713436e286bb1afdd7c6f3093c8e8db16dd by Łukasz Langa in branch 'main': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) https://github.com/python/cpython/commit/dff0b713436e286bb1afdd7c6f3093c8e8db16dd

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: More specific would be "Inheriting from multiple exceptions may fail due to instance layout conflicts. Such conflicts may depend on the Python version." This would effectively say "Don't bother reporting layout conflicts -- we know about them and they are

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 5.0 -> 6.0 pull_requests: +27364 pull_request: https://github.com/python/cpython/pull/29094 ___ Python tracker ___

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27279 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28995 ___ Python tracker

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Suggestion: At the end of https://docs.python.org/3/bugs.html, add Hummm, I am not sure that page is the most adecuate for this, no? That is how to deal with bugs in general, not about specific bugs. --

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Suggestion: At the end of https://docs.python.org/3/bugs.html, add "Creating a subclass that inherits from multiple exceptions may not work and the potential conflicts may change in new versions." -- assignee: -> docs@python components:

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, just to clarify something: there is no guarantee that multiple build-in, unrelated exceptions can be inherited and this is not supported. And this is not unique to this case. For example: >>> class A(StopIteration, OSError): ...... ...

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately there isn't much we can do here other than document this :( -- ___ Python tracker ___

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Christian Heimes
Christian Heimes added the comment: You are correct. To be more precise, it's caused by GH-16856. The commit introduced PyAttributeErrorObject struct. Since AttributeError and OSError now have an incompatible memory layout, it is no longer possible to create a subclass that has

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-13 Thread Marek Marczykowski-Górecki
New submission from Marek Marczykowski-Górecki : In Python 3.10 it is no longer possible to create an exception type that inherits from both OSError and AttributeError. This has worked in Python 3.9. I don't see anything in changelog/release notes that would suggest it being intentional

Re: OT: AttributeError

2021-09-29 Thread Greg Ewing
On 30/09/21 7:28 am, dn wrote: Oh yes! The D2 kit - I kept those books for years... https://www.electronixandmore.com/adam/temp/6800trainer/mek6800d2.html My 6800 system was nowhere near as fancy as that! It was the result of replacing the CPU in my homebrew Miniscamp. -- Greg --

Re: OT: AttributeError

2021-09-29 Thread Rob Cliffe via Python-list
Ah, Z80s (deep sigh).  Those were the days!  You could disassemble the entire CP/M operating system (including the BIOS), and still have many Kb to play with!  Real programmers don't need gigabytes! On 29/09/2021 03:03, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-09-29 at 09:21:34

Re: OT: AttributeError

2021-09-29 Thread dn via Python-list
On 29/09/2021 19.16, Greg Ewing wrote: > On 29/09/21 3:03 pm, 2qdxy4rzwzuui...@potatochowder.com wrote: >> Who thinks in little >> endian?  (I was raised on 6502s and 680XX CPUs; 8080s and Z80s always >> did things backwards.) > > The first CPU I wrote code for was a National SC/MP, which doesn't

Re: OT: AttributeError

2021-09-29 Thread MRAB
On 2021-09-29 03:03, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-09-29 at 11:38:22 +1300, > dn via Python-list wrote: > > > For those of us who

Re: OT: AttributeError

2021-09-29 Thread Greg Ewing
On 29/09/21 3:03 pm, 2qdxy4rzwzuui...@potatochowder.com wrote: Who thinks in little endian? (I was raised on 6502s and 680XX CPUs; 8080s and Z80s always did things backwards.) The first CPU I wrote code for was a National SC/MP, which doesn't have an endianness, since it never deals with more

  1   2   3   4   5   6   7   8   9   10   >