[issue47143] Add types.copy_class() which updates closures

2022-04-02 Thread Lumír Balhar
Lumír Balhar added the comment: Do you think it's a good idea to start a PR with a copy of the implementation from attrs for Python 3.11? We can then add tests for the new function and also some for dataclasses where this new function is needed and try to find all corner cases

[issue46404] 3.11a4: a small attrs regression

2022-03-15 Thread Lumír Balhar
Lumír Balhar added the comment: We have the same problem reported in attrs here in dataclasses and because it's not tested the way to manipulate __closure__ cells changes frequently. My plan is to implement something similar to this into dataclasses: https://github.com/python-attrs/attrs

[issue46404] 3.11a4: a small attrs regression

2022-03-15 Thread Lumír Balhar
Lumír Balhar added the comment: In my opinion, we should keep it simple for attrs and dataclasses to fix closure cells when a class is replaced and therefore it seems to be correct to have it mutable as it currently is in 3.11. My plan is to implement the fix for dataclasses and some tests

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue46404> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45460] distutils.sysconfig.get_python_lib() does not respect sysconfig/distutils install schemes

2021-10-18 Thread Lumír Balhar
Change by Lumír Balhar : ___ Python tracker <https://bugs.python.org/issue45460> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/o

[issue45413] Add install scheme for virtual environments

2021-10-18 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue45413> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44351] distutils.sysconfig.parse_makefile() regression in Python 3.10

2021-06-10 Thread Lumír Balhar
Change by Lumír Balhar : -- keywords: +patch pull_requests: +25223 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26637 ___ Python tracker <https://bugs.python.org/issu

[issue44351] distutils.sysconfig.parse_makefile() regression in Python 3.10

2021-06-09 Thread Lumír Balhar
Lumír Balhar added the comment: Thanks for the report. The regression is caused by the fact that the old implementation of parse_makefile in distutils.sysconfig was using feature-rich class TextFile which handles all the functionalities you reported as broken - stripping of comments

[issue44055] NamedTemporaryFile opened twice on Windows

2021-05-10 Thread Lumír Balhar
Lumír Balhar added the comment: I understand, thanks for the explanation. I'd like to improve the documentation to make it more clear that the file actually can be reopened on Windows when you use delete=False but I cannot find the right words :/ What about: That name can be retrieved from

[issue44055] NamedTemporaryFile opened twice on Windows

2021-05-06 Thread Lumír Balhar
New submission from Lumír Balhar : Hello. The documentation about tempfile.NamedTemporaryFile[0] contains: That name can be retrieved from the name attribute of the returned file-like object. Whether the name can be used to open the file a second time, while the named temporary file is still

[issue43976] Introduce mechanism to allow Python distributors to add custom site install schemes

2021-04-29 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue43976> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43752] [sqlite3] Fetching an empty value from date column raises ValueError

2021-04-13 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue43752> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43831] sqlite: convert_timestamp raises ValueError for empty columns

2021-04-13 Thread Lumír Balhar
New submission from Lumír Balhar : Hello. I've discovered this issue when I was debugging a test failure in IPython. See this issue for more details (not needed): https://github.com/ipython/ipython/issues/12906 I'm testing this on Fedora Linux with Python 3.10.0a7 from our RPM package

[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-10 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue42988> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2021-02-16 Thread Lumír Balhar
Change by Lumír Balhar : -- pull_requests: +23332 pull_request: https://github.com/python/cpython/pull/24549 ___ Python tracker <https://bugs.python.org/issue41

[issue43228] Regression in function builtins

2021-02-15 Thread Lumír Balhar
Lumír Balhar added the comment: I'm not an expert nor an author but this might help: Cloudpickle offers extended possibilities for pickling but uses the standard pickle module for unpickling: >>> import pickle, cloudpickle >>> cloudpickle.load is pickle.load True >

[issue43228] Regression in function builtins

2021-02-15 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue43228> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2021-02-09 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue41282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24908] sysconfig.py and distutils.sysconfig.py disagree on directory spelling on Windows

2020-10-23 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue24908> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39825] EXT_SUFFIX inconsistent between sysconfig and distutils.sysconfig (Windows)

2020-10-23 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker <https://bugs.python.org/issue39825> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38112] Compileall improvements

2020-05-18 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy nosy_count: 4.0 -> 5.0 pull_requests: +19475 pull_request: https://github.com/python/cpython/pull/20174 ___ Python tracker <https://bugs.python.org/issu

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Lumír Balhar
Change by Lumír Balhar : -- keywords: +patch pull_requests: +19214 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19901 ___ Python tracker <https://bugs.python.org/issu

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Lumír Balhar
Lumír Balhar added the comment: I forgot to mention that I am working on PR which should be ready soon because the implementation is already done and tested in compileall2. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-04 Thread Lumír Balhar
New submission from Lumír Balhar : We would like to include a possibility of hardlink deduplication of identical pyc files to compileall module in Python 3.9. We've discussed the change [0] and tested it in Fedora RPM build system via implementation in the compileall2 module [1

[issue38112] Compileall improvements

2019-09-11 Thread Lumír Balhar
Change by Lumír Balhar : -- keywords: +patch pull_requests: +15638 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16012 ___ Python tracker <https://bugs.python.org/issu

[issue21258] Add __iter__ support for mock_open

2018-02-15 Thread Lumír Balhar
Change by Lumír Balhar <frenzy.madn...@gmail.com>: -- nosy: +frenzy ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue21258> ___ _

[issue29144] Implicit namespace packages in Python 3.6

2017-07-31 Thread Lumír Balhar
Lumír Balhar added the comment: Thank you for the replies. I created an issue [0] on setuptools GitHub (without reply yet) because I also think that setuptools should install pkg_resources-style __init__.py files. [0] https://github.com/pypa/setuptools/issues/1097

[issue29144] Implicit namespace packages in Python 3.6

2017-07-19 Thread Lumír Balhar
Lumír Balhar added the comment: Hello. I've tried the build of python-moksha-common on Fedora rawhide [0] and Fedora 25 [1]. Fedora rawhide: Python 2.7.13 and 3.6.1, setuptools 36.2.0 Fedora 25: Python 2.7.13 and 3.5.3, setuptools 25.1.1 Source tarball of moksha.common contains pkg_resources

[issue29144] Implicit namespace packages in Python 3.6

2017-07-18 Thread Lumír Balhar
Lumír Balhar added the comment: Hello. I've met this issue again in moksha project [0] where namespace package is used. - module moksha.common is installed via RPM to site-packages and there isn't file moksha/__init__.py so the implicit way to create namespace package is used

[issue29144] Implicit namespace packages in Python 3.6

2017-01-03 Thread Lumír Balhar
New submission from Lumír Balhar: Hello. I've found a really strange difference between Python 3.5 and 3.6 related to namespace packages and I cannot find any note in changelogs. I've created a simple bash script which can reproduce my issue using virtual environments: http://pastebin.com