[issue46034] Patch-adding __init__ in a class takes no effect when called from a subinterpreter

2021-12-10 Thread Miro Hrončok
Error: TestClass() takes no arguments -- components: Subinterpreters messages: 408196 nosy: eric.snow, hroncok, vstinner priority: normal severity: normal status: open title: Patch-adding __init__ in a class takes no effect when called from a subinterpreter type: behavior versions: Python

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-08 Thread Chris Webb
Change by Chris Webb : Removed file: https://bugs.python.org/file17945/paths.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: > (Presumably this will land in Python 11 rather than get backported?) I believe so. > it'll feel like end of an era to finally be able to drop that local patch. You should mark the occasion somehow, it's not everyday you say goodbye to a 25 year old

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-07 Thread Chris Webb
Chris Webb added the comment: Irit Katriel added the comment: > getpath.c has been rewritten (see Issue45582). reduce is no longer there. Gosh, this is one I originally reported back in the late 1990s and then again mid-2000s! I've carried a patch in my distribution to make python w

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-07 Thread Irit Katriel
Irit Katriel added the comment: getpath.c has been rewritten (see Issue45582). reduce is no longer there. -- nosy: +iritkatriel resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue1778410] removeTest() method patch for unittest.TestSuite

2021-11-18 Thread Irit Katriel
Irit Katriel added the comment: I agree with Michael that it’s better not to include the test in the first place. This issue was abandoned 8 years ago, closing now. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed

[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-18 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-17 Thread Dong-hee Na
Dong-hee Na added the comment: https://github.com/libexpat/libexpat/pull/514 merged, The change is affected to libexpat 2.4.2 -- ___ Python tracker ___

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-15 Thread Dong-hee Na
Dong-hee Na added the comment: Please take a look at the patch file that it will be okay to CPython code base :) -- ___ Python tracker <https://bugs.python.org/issue45

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-15 Thread Dong-hee Na
Dong-hee Na added the comment: I will send this patch file, when I apply this patch file, my compiler did not raise _POSIX_C_SOURCE issue. (gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)) CPython affects - xmltok.c - xmlrole.c (Not yet applied to CPython code) Not affected - xmlfile.c

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-15 Thread Dong-hee Na
Dong-hee Na added the comment: Related PRs - https://github.com/python/cpython/commit/d413c503636cde2a6ab0ada25dccb0134633a8e6 by Dong-hee - https://github.com/python/cpython/commit/8177404d520e81f16324a900f093adf3856d33f8 by Pablo -

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-14 Thread Dong-hee Na
New submission from Dong-hee Na : Yesterday, I left an issue to libexpat project about what we solved yesterday to follow Christian suggestion. https://github.com/libexpat/libexpat/issues/513 The maintainer suggests sending a patch with reordering all headers files related to expat_config.h

[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: > tp_traverse is optional, so we should not add this assertion. It is required by types implementing the GC protocol. This assumption is non-obvious and was not documented. The documentation was completed in bpo-44263 by commit

[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: This issue was fixed differently in bpo-44263, by adding a test in PyType_Ready(): // bpo-44263: tp_traverse is required if Py_TPFLAGS_HAVE_GC is set. // Note: tp_clear is optional. if (type->tp_flags & Py_TPFLAGS_HAVE_GC &&

[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2021-05-14 Thread Irit Katriel
Irit Katriel added the comment: tp_traverse is optional, so we should not add this assertion. -- resolution: -> rejected stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue44052] patch object as argument should be explicit

2021-05-06 Thread Pierre Ossman
Pierre Ossman added the comment: I've always been cautious about running patch() manually since it was easy to miss the cleanup. But those fears might be irrelevant these days when we have addCleanup(). Still, decorators are a more robust in more complex setups since you don't have

[issue44052] patch object as argument should be explicit

2021-05-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: In my test cases I have ended up just ignoring the mock object with a placeholder if it's not needed. For the given use case you can do this using patch objects at setUp and tearDown like in https://docs.python.org/dev/library/unittest.mock

[issue44052] patch object as argument should be explicit

2021-05-06 Thread Pierre Ossman
many cases this gives the desired behaviour, but not in all. So this behaviour should be possible to explicitly controlled. One common case is when using patch() as a class decorator. If you want to avoid getting extra arguments to every test function, then "new" has to be speci

[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2021-04-28 Thread Bryan Silverthorn
Bryan Silverthorn added the comment: I submitted this patch 14 years ago and am sure of nothing. :) -- ___ Python tracker <https://bugs.python.org/issue1

[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2021-04-28 Thread Irit Katriel
Irit Katriel added the comment: Are you sure this assertion is correct? tp_traverse is optional. -- nosy: +iritkatriel ___ Python tracker ___

[issue22128] patch: steer people away from codecs.open

2021-04-16 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2889] curses for windows (alternative patch)

2021-04-05 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43615] [PATCH] Properly implement Py_UNREACHABLE macro using autoconf.

2021-03-24 Thread Cong Ma
Cong Ma added the comment: > If you consider that there is a bug, please open a new issue since you closed > this one. Please see the follow up in Issue 43617. Many thanks for bearing with me. -- ___ Python tracker

[issue43615] [PATCH] Properly implement Py_UNREACHABLE macro using autoconf.

2021-03-24 Thread STINNER Victor
STINNER Victor added the comment: > BTW, do we need to fix the missing definition of the AX_CHECK_COMPILE_FLAG > macro in configure.ac? This is a separate problem, if a problem at all. I'm not sure which problem you are trying to solve. If you consider that there is a bug, please open a new

[issue43615] [PATCH] Properly implement Py_UNREACHABLE macro using autoconf.

2021-03-24 Thread STINNER Victor
STINNER Victor added the comment: > The headers Python.h and also the ones pulled in by it were actually from > Python 3.8 release, which unconditionally defines the macro as a call to > Py_FatalError. Using __builtin_unreachable() is a recent change (bpo-38249), Python 3.9.0: * commit

[issue43615] [PATCH] Properly implement Py_UNREACHABLE macro using autoconf.

2021-03-24 Thread Cong Ma
Cong Ma added the comment: BTW, do we need to fix the missing definition of the AX_CHECK_COMPILE_FLAG macro in configure.ac? This is a separate problem, if a problem at all. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue43615] [PATCH] Properly implement Py_UNREACHABLE macro using autoconf.

2021-03-24 Thread Cong Ma
Cong Ma added the comment: Hello Victor, I think you're right. This is bogus on my part. TL;DR: The Python version is 3.8 but I was trying to understand what's going on using the latest source. Full version: I was trying to understand why the following C file when compiled with -shared

[issue43615] [PATCH] Properly implement Py_UNREACHABLE macro using autoconf.

2021-03-24 Thread STINNER Victor
STINNER Victor added the comment: > The current implementation tests the ``__GNUC__`` and ``__GNUC_MINOR__`` > macros as the logic (GCC version >= 4.5) for determining whether the compiler > intrinsic ``__builtin_unreachable()`` is present (see commits eebaa9bf, > 24ba3b0d). However, Clang

[issue43615] [PATCH] Properly implement Py_UNREACHABLE macro using autoconf.

2021-03-24 Thread Cong Ma
New submission from Cong Ma : (This is a summarized form of the commit message in the attached patch. I'm submitting a patch instead of a PR over GitHub, because it seems that the ``autoreconf`` output files are part of the repository. In order for the changes to take effect in the repo, I

[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2021-03-22 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22128] patch: steer people away from codecs.open

2021-03-17 Thread Irit Katriel
Irit Katriel added the comment: Since Martin corrected the docs in issue 19548 for python 3, and python 2 is no longer relevant, I believe this can be closed. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> 'codecs' module docs improvements

[issue1814] Victor Stinner's GMP patch for longs

2021-03-07 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- nosy: +Sergey.Kirpichev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

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

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2021-01-11 Thread STINNER Victor
STINNER Victor added the comment: The distutils bdist_wininst command has been removed in Python 3.10: see bpo-42802. -- nosy: +vstinner resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue1525806] Tkdnd mouse cursor handling patch

2020-11-18 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9499] DOC: C/API Execution namespace undocumented. (patch included)

2020-11-01 Thread Campbell Barton
Campbell Barton added the comment: This patch is still relevant, mentioning this since the patch is from a while ago. -- ___ Python tracker <https://bugs.python.org/issue9

[issue42159] AsyncMock restores stopped patch if same object stopped multiple times

2020-10-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is not a problem with AsyncMock. The patching is not done when the patch object is created to store reference to the original unpatched function. Hence patcher1, patcher2 that patch the same function don't store a reference to the original

[issue42159] AsyncMock restores stopped patch if same object stopped multiple times

2020-10-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42159] AsyncMock restores stopped patch if same object stopped multiple times

2020-10-26 Thread Lisa Roach
): patcher1 = patch(f"{__name__}.async_func") patcher2 = patch(f"{__name__}.async_func") patcher1.start() await async_func() patcher2.start() await async_func()

[issue9499] DOC: C/API Execution namespace undocumented. (patch included)

2020-10-22 Thread Irit Katriel
Change by Irit Katriel : -- components: +C API keywords: -patch stage: -> needs patch title: Python C/API Execution namespace undocumented. (patch included) -> DOC: C/API Execution namespace undocumented. (patch included) type: behavior -> enhancement versions: +Python 3.1

[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'

2020-10-19 Thread Éric Araujo
Change by Éric Araujo : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.o

[issue41541] [PATCH] Make pty.spawn set window size

2020-09-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Added file: https://bugs.python.org/file49458/script.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-09-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Added file: https://bugs.python.org/file49457/script.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-09-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49457/script.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-09-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Added file: https://bugs.python.org/file49455/before.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-09-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Added file: https://bugs.python.org/file49456/after.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-09-14 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: All images, test programs, and old patches have been removed. window resize test is now being performed using stty. On linux: stty -F rows x cols y On BSDs: stty -f rows x cols y to change window size. --

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49393/test.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49395/pty.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49391/before.png ___ Python tracker ___ ___ Python-bugs-list

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49390/pty.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49392/after.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49396/pty.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49402/pty.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-21 Thread Soumendra Ganguly
Change by Soumendra Ganguly : Removed file: https://bugs.python.org/file49386/pty.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2889] curses for windows (alternative patch)

2020-08-19 Thread Maarten
Maarten added the comment: Current ncurses master is buildable on Visual Studio, using msys2. It should be possible to create a vcxproject and integrate it in the Visual Studio build. -- nosy: +maarten ___ Python tracker

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-18 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: v0.5 had introduced minor mistakes + one hack [ was using master instead of slave to set window size ]. v0.6 removes all such mistakes. -- Added file: https://bugs.python.org/file49404/pty.diff ___ Python

[issue23802] patch: __deepcopy__ memo dict argument usage

2020-08-18 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue23802> ___ ___ Pyth

[issue23802] patch: __deepcopy__ memo dict argument usage

2020-08-18 Thread Irit Katriel
Irit Katriel added the comment: This seems resolved, can it be closed? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-17 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: Further note: login_tty will also enable us to set slave termios from the parent process in pty.spawn. Due to the fact that reviewing patches can be overwhelming, v0.5 removes a lot of stuff and instead simply performs window resize by calling ioctl

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-16 Thread Soumendra Ganguly
closes the slave end of the pty, making it unsuitable for situations where the slave end needs to be kept open; for example, in my patch, the slave end is used to set the window size; or, in case someone wants to do even better and register a SIGWINCH handler for situations in which the window

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-15 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: v0.4 puts try-except guards around imports so that existing code does not break. -- Added file: https://bugs.python.org/file49396/pty.diff ___ Python tracker

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-15 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: v0.3 removes _login_pty() and defines _login_tty() instead; the latter is based on login_tty(3) from glibc. -- Added file: https://bugs.python.org/file49395/pty.diff ___ Python tracker

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- title: Make pty.spawn set window size [ patch + before, after screenshots ] -> [PATCH] Make pty.spawn set window size ___ Python tracker <https://bugs.python.org/issu

[issue41541] Make pty.spawn set window size [ patch + before, after screenshots ]

2020-08-14 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: Additional note: I am using the i3wm window manager. No desktop environment. -- nosy: -mark.dickinson, meador.inge ___ Python tracker

[issue41541] Make pty.spawn set window size [ patch + before, after screenshots ]

2020-08-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- nosy: +mark.dickinson, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41541] Make pty.spawn set window size [ patch + before, after screenshots ]

2020-08-14 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: I am new to BPO. Just learned how to make someone nosy. @twouters, I have attached all resources. This is ready for a review. Thank you. -- nosy: +twouters ___ Python tracker

[issue41541] Make pty.spawn set window size [ patch + before, after screenshots ]

2020-08-14 Thread Soumendra Ganguly
rap around the xterm window. 2. Run test.py. 3. Run "ls". Solution: 1. Apply latest version of the patch [ pty.diff ]. 2. Run test.pty and run "ls". 3. Run "ls". -- Added file: https://bugs.python.org/file49393/test.py ___

[issue41541] Make pty.spawn set window size [ patch + before, after screenshots ]

2020-08-14 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- title: Make pty.spawn set window size [ + before, after screenshots ] -> Make pty.spawn set window size [ patch + before, after screenshots ] ___ Python tracker <https://bugs.python.org/issu

[issue16995] Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)

2020-08-10 Thread Paul Ganssle
Paul Ganssle added the comment: Thanks Filipe! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.or

[issue16995] Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)

2020-08-10 Thread Filipe Laíns
Filipe Laíns added the comment: Paul, the PR is now merged :). Can you close the bug? -- nosy: +p-ganssle ___ Python tracker ___

[issue16995] Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)

2020-08-10 Thread miss-islington
miss-islington added the comment: New changeset 4ce6faa6c9591de6079347eccc9e61ae4e8d9e31 by Filipe Laíns in branch 'master': bpo-16995: add support for base32 extended hex (base32hex) (GH-20441) https://github.com/python/cpython/commit/4ce6faa6c9591de6079347eccc9e61ae4e8d9e31 --

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2020-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: #41075 is specifically about history navigation. I tried Shift/Control/Alt - Up/Down and none worked. Rebinding just Up/Down did (in Shell, with Editor unchanged). But not having up/down work to move between lines in the Shell multiline statement entry

[issue23802] patch: __deepcopy__ memo dict argument usage

2020-07-09 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 3cbade7d309ab1ea97ec286d19d506df30bd1ab7 by Joannah Nanjekye in branch 'master': bpo-23802: patch: __deepcopy__ memo dict argument usage (GH-21326) https://github.com/python/cpython/commit/3cbade7d309ab1ea97ec286d19d506df30bd1ab7

[issue23802] patch: __deepcopy__ memo dict argument usage

2020-07-07 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: The Pr should sort this. I will merge it tommorrow if there is no objection. -- ___ Python tracker ___

[issue23802] patch: __deepcopy__ memo dict argument usage

2020-07-04 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah nosy_count: 3.0 -> 4.0 pull_requests: +20476 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21326 ___ Python tracker <https://bugs.python.org/i

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: bpo-1294959 added sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE to Python 3.9. The problem is that msg370655 use case seems to be a regression compared to Python 3.9. I now consider to backport the commit

[issue40854] [Patch] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- title: [Patch] Allow overriding sys.platlibdir -> [Patch] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var ___ Python tracker <https://bugs.python.org/issu

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19935 pull_request: https://github.com/python/cpython/pull/20725 ___ Python tracker ___

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread Sandro Mani
Sandro Mani added the comment: Many thanks! - I'll ask downstream to carry the patch for the 3.9 cycle, so I'm ok with closing. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: I merged the patch in master, future Python 3.10. I would prefer to leave Python 3.9 unchanged, if possible. Can we close this issue? -- ___ Python tracker <https://bugs.python.org/issue40

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f023a2f664f902a3d0b7a6f64d63afc0d1c15ae by Sandro Mani in branch 'master': bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var (GH-20605) https://github.com/python/cpython/commit/8f023a2f664f902a3d0b7a6f64d63afc0d1c15ae

[issue40805] Can no longer patch flask.g

2020-06-08 Thread Rob Taft
Rob Taft added the comment: https://github.com/pallets/flask/issues/3637 I've worked around the issue and accept that this will not work in the future. -- status: open -> closed ___ Python tracker

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2020-06-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-05 Thread Sandro Mani
Sandro Mani added the comment: I'm on Fedora. My use case is for the mingw-python package I maintain there, see [1] for the full details. I believe (though I haven't investigated) that the previous downstream lib64 patch behaved slightly differently, or that something else between python

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-05 Thread STINNER Victor
STINNER Victor added the comment: Fedora and OpenSUSE Linux distributions were using a downstream patch which replaced /lib/ with /lib64/ for like 15 years. Is this issue a new issue? Or did Fedora always had the issue for example? Which Linux distribution are you using? -- nosy

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Rob Taft
import patch import flask def some_function(): flask.g.somevariable = True return flask.g.somevariable @patch('flask.g') def test_patch(mock_flask_global): assert some_function() def test_no_patch(): assert some_function() $ pytest -vv temp_test.py

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Chris, I see no evidence in the *incomplete* traceback not posted here that there is a bug in mock. Mock calls "hasattr(obj, '__func__') and apparently flask, called via werkzeug, answers 'RuntimeError'. The overt bug is that calling

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Rob Taft
Change by Rob Taft : -- versions: +Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Rob Taft
Rob Taft added the comment: I have confirmed that using unittest.mock instead of the 3rd party mock library in python 3.8.3 and 3.9-dev fails to patch flask.g. 3.7.7 works correctly. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-03 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +19832 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20605 ___ Python tracker <https://bugs.python.org/i

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-03 Thread Sandro Mani
://src.fedoraproject.org/rpms/python3.9/pull-request/10 -- components: Interpreter Core messages: 370655 nosy: smani priority: normal severity: normal status: open title: [Patch] Allow overriding sys.platlibdir versions: Python 3.10 ___ Python tracker <ht

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Chris Withers
Chris Withers added the comment: Rob, you're welcome to dump `mock` and use `unittest.mock`, and that might be best for now, but this will then likely come back to bite you when you end up on the version of Python, probably 3.9, where it is present ;-) --

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Chris Withers
Change by Chris Withers : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Chris Withers
Chris Withers added the comment: Terry, mock is now a rolling backport of unittest.mock with all development taking place in cpython's repo. If issues are reported there, they need to be triaged here first, as it's most likely a bug in unittest.mock that needs fixing here. Rob, please can

[issue24880] ctypeslib patch for regular expression for symbols to include

2020-05-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40805] Can no longer patch flask.g

2020-05-30 Thread Rob Taft
Rob Taft added the comment: The test was supposed to patch the flask component during the unit test, the error indicates the patch did not work. The actual error message is not relevant to the actual issue. I don't know why I was directed to here. When I replace it with unittest.mock

<    1   2   3   4   5   6   7   8   9   10   >