[issue37674] Is imp module deprecated or pending deprecation?

2020-05-27 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 5.0 -> 6.0 pull_requests: +19729 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20480 ___ Python tracker

Ram memory not freed after executing python script on ubuntu system

2020-05-27 Thread Rahul Gupta
I am having a Ubuntu system which has 125 Gb of RAM. I executed few python scripts on that system. Those scripts uses numpy arrays and pandas. Now execution was over but still 50 gb of RAM and 2 Gb cache and 8.4 Gb of swap is occupied. At this moment nothing is running on the system. I have

[issue40800] asyncio.sleep(0) should "yield" back to the event loop, but it doesn't behave as expected

2020-05-27 Thread Davy Durham
New submission from Davy Durham : I was searching for a way to "yield" from task/coroutinue back to the event loop (not yielding a value in terms of a generator) and not finding anything documented, I found this bug report and PR: https://github.com/python/asyncio/issues/284 It states

[issue40275] test.support has way too many imports

2020-05-27 Thread hai shi
Change by hai shi : -- pull_requests: +19728 pull_request: https://github.com/python/cpython/pull/20479 ___ Python tracker ___ ___

Re: Custom logging function

2020-05-27 Thread zljubisic
> You create two stream handlers that both log to stderr -- one with > basicConfig() and one explicitly in your code. That's probably not what you > want. How can I just add terminator = '\r\n' to the code bellow? Where should I put it? import logging LOG_LEVEL = logging.getLevelName('DEBUG')

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
Greetings, .append(self) is a hit idea Updated the project with the button demo https://github.com/Abdur-rahmaanJ/hooman/ Next i will be attempting to add a grid system. I feel myself developing tkinter from scratch Thanks for the help everybody ^^_ Kind Regards, Abdur-Rahmaan Janhangeer

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: codeop._maybe_compile wraps each compile in try ... except SyntaxError. It can later reraise just once. I think it a bug that it is not similarly careful about SyntaxWarning and DeprecationWarning to only emit a particular warning just once. Cheryl,

[issue40790] Python should enable computed gotos on Mac by default

2020-05-27 Thread laike9m
laike9m added the comment: Hi Benjamin, do you mean that disabling computed gotos on Mac is the expected behavior? -- ___ Python tracker ___

[issue14562] urllib2 maybe blocks too long with small chunks

2020-05-27 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Kyle Stanley
Kyle Stanley added the comment: > The new test_sock_client_racing() test seems to have... a race condition... I'm also a bit skeptical about relying on `time.sleep(0.01)` at the end of the loop in `_basetest_sock_recv_racing()`, but I don't have an idea for a better approach at the moment.

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30665] pass big values for arg to fcntl.ioctl

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset de6b6841098e1a5967cb7a50b665ca7473d0ddad by Miss Islington (bot) in branch '3.9': bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473) (GH-20474)

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Fantix King
Fantix King added the comment: Not a simple one - FreeBSD is returning ECONNREFUSED immediately when trying to connect to a non-listening port on the loopback address: https://lists.freebsd.org/pipermail/freebsd-current/2005-May/049876.html Then all following connect attempts on the same

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +19727 pull_request: https://github.com/python/cpython/pull/20474 ___ Python tracker

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 56853d8ec6ed89bf5a9b81c3781a4df46ac391d3 by Elazar Gershuni in branch 'master': bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473)

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread Elazar Gershuni
Change by Elazar Gershuni : -- nosy: +elazar nosy_count: 8.0 -> 9.0 pull_requests: +19726 pull_request: https://github.com/python/cpython/pull/20473 ___ Python tracker ___

[issue37028] Implement asyncio repl

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: This issue is now closed. If someone wants to enhane the asyncio REPL, please open a new issue. -- resolution: -> fixed ___ Python tracker

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks YoSTEALTH. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23897] Update Python 3 extension module porting guide

2020-05-27 Thread Sumana Harihareswara
Sumana Harihareswara added the comment: Following the large rewrite in https://github.com/python/cpython/pull/9317 to point to other guides (including py3c) instead of providing a guide, should we a) add a pointer to Barry's notes as well b) migrate this bug to request enhancements to py3c

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40799: Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available. -- ___ Python tracker ___

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19724 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20472 ___ Python tracker ___

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread Ezio Melotti
Change by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40799] Create Lib/_pydecimal.py file to optimize "import datetime" when _decimal is available

2020-05-27 Thread STINNER Victor
New submission from STINNER Victor : Currently, "import datetime" starts by importing time, math, sys and operator modules, and then execute 2500 lines of Python code, define 7 classes, etc. For what? Just to remove all classes, functions, etc. to replace them with symbols from _decimal

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset aa890630bc877c73ec806c9982d8b7b2e7019723 by Victor Stinner in branch 'master': bpo-40275: test.support imports subprocess lazily (GH-20471) https://github.com/python/cpython/commit/aa890630bc877c73ec806c9982d8b7b2e7019723 --

Elegant hack or gross hack? TextWrapper and escape codes

2020-05-27 Thread Chris Angelico
Situation: A terminal application. Requirement: Display nicely-wrapped text. With colour codes in it. And that text might be indented to any depth. label = f"{indent}\U0010cc32{code}\U0010cc00 @{tweet['user']['screen_name']}: " wrapper = textwrap.TextWrapper( initial_indent=label,

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Attached count_imports.py script counts how many modules are imported by "import test.support". With PR 20471, we are down to 74 modules. It's way better than 171 (when I created this issue)! -- Added file:

[issue39073] [security] email module incorrect handling of CR and LF newline characters in Address objects.

2020-05-27 Thread Ned Deily
Ned Deily added the comment: New changeset 7df32f844efed33ca781a016017eab7050263b90 by Miss Islington (bot) in branch '3.6': bpo-39073: validate Address parts to disallow CRLF (GH-19007) (#19224) https://github.com/python/cpython/commit/7df32f844efed33ca781a016017eab7050263b90 --

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19723 pull_request: https://github.com/python/cpython/pull/20471 ___ Python tracker ___

Re: Behaviour of os.path.join

2020-05-27 Thread Chris Angelico
On Thu, May 28, 2020 at 7:07 AM BlindAnagram wrote: > You can define a path however you want but it won't change the fact that > on Windows a path that ends in '\\' is inherently a path to a directory. Citation needed. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

[issue40797] multiprocessing.Semaphore has undocumented get_value() method

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40798] The deprecated-removed Sphinx extension need to change the error message based on the Python version

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 9e3c583954f75a6396d1935e000df85d89b78a3d by Miss Islington (bot) in branch '3.9': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/9e3c583954f75a6396d1935e000df85d89b78a3d --

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 45ce0dbc4f8c68fe22ae97860faa8f2ec7faf27b by Miss Islington (bot) in branch '3.8': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/45ce0dbc4f8c68fe22ae97860faa8f2ec7faf27b --

Re: Behaviour of os.path.join

2020-05-27 Thread Roel Schroeven
BlindAnagram schreef op 27/05/2020 om 22:55: On 27/05/2020 18:42, Roel Schroeven wrote: BlindAnagram schreef op 27/05/2020 om 18:53: Its not my bug to fix - the semantics of what I send is very clear on any Windows system. That's the first time I see any mention of those semantics, and I've

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Fantix King
Fantix King added the comment: Ouch ... looks like FreeBSD also needs a few more retries than a single retry. I'll test on a FreeBSD and create a PR for that. -- ___ Python tracker

Re: Access an object to which being bound

2020-05-27 Thread DL Neil via Python-list
@AR, On 28/05/20 8:41 AM, Chris Angelico wrote: On Thu, May 28, 2020 at 6:27 AM Abdur-Rahmaan Janhangeer wrote: Thanks, Actually i want to keep a reference from B to all A instantiated like in the case of z I have class A and i want to call class B via A You can have def x(self, *args,

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0461e19b5ecb2d89917b23efb5ce1048fab1b22 by Victor Stinner in branch 'master': bpo-40275: test.support.check_impl_detail() uses sys.implementation (GH-20468) https://github.com/python/cpython/commit/b0461e19b5ecb2d89917b23efb5ce1048fab1b22

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +19722 pull_request: https://github.com/python/cpython/pull/20470 ___ Python tracker ___

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 10228bad0452d94e66c964b625a0b61befa08e59 by Victor Stinner in branch 'master': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/10228bad0452d94e66c964b625a0b61befa08e59 --

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +19721 pull_request: https://github.com/python/cpython/pull/20469 ___ Python tracker

[issue27779] Sync-up docstrings in C version of the the decimal module

2020-05-27 Thread Furkan Onder
Furkan Onder added the comment: Patches are prepared but not continued. It can be merge by small additions to the patches. -- nosy: +furkanonder ___ Python tracker ___

Re: Issues regarding running of application.

2020-05-27 Thread Barry
> On 27 May 2020, at 09:44, Souvik Dutta wrote: > > Do have the latest version of DirectX installed? If not then do that or you > can google out the dll file you need (or is missing) and download it and > cut - paste it wherever needed. Missing dll files is a very common issue in > windows

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19720 pull_request: https://github.com/python/cpython/pull/20468 ___ Python tracker ___

Re: Behaviour of os.path.join

2020-05-27 Thread DL Neil via Python-list
... Again, a pathname is never inherently a directory or a file. See previous contribution: until YOU define YOUR arena of operations, it will be difficult to select the correct tool or library - or for others to assist you. If dealing with strings (which happen to look as if they are

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: The new test_sock_client_racing() test seems to have... a race condition... AMD64 FreeBSD Non-Debug 3.9: https://buildbot.python.org/all/#/builders/750/builds/11 ERROR: test_sock_client_racing (test.test_asyncio.test_sock_lowlevel.KqueueEventLoopTests)

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset e80697d687b610bd7fb9104af905dec8f0bc55a7 by Hai Shi in branch 'master': bpo-40275: Adding threading_helper submodule in test.support (GH-20263) https://github.com/python/cpython/commit/e80697d687b610bd7fb9104af905dec8f0bc55a7 --

Re: Behaviour of os.path.join

2020-05-27 Thread BlindAnagram
On 27/05/2020 18:42, Roel Schroeven wrote: > BlindAnagram schreef op 27/05/2020 om 18:53: >> Its not my bug to fix - the semantics of what I send is very clear on >> any Windows system. > > That's the first time I see any mention of those semantics, and I've > been using Windows since the Windows

[issue40798] The deprecated-removed Sphinx extension need to change the error message based on the Python version

2020-05-27 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The new deprecated-removed extension in the documentation always produces text like this: Deprecated since version 3.4, will be removed in version 3.8: MD5 as implicit default digest This message should be used in the documentation of 3.4 to 3.7 and then

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d80b35af1ee03834ae4af83e920dee89c2bc273 by Pablo Galindo in branch 'master': Revert "bpo-32604: PEP 554 for use in test suite (GH-19985)" (#20465) https://github.com/python/cpython/commit/7d80b35af1ee03834ae4af83e920dee89c2bc273 --

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 76ef255bde772005bbd0761399b274c2240e61d3 by YoSTEALTH in branch 'master': bpo-37129: Add os.RWF_APPEND flag for os.pwritev() (GH-20336) https://github.com/python/cpython/commit/76ef255bde772005bbd0761399b274c2240e61d3 --

[issue2897] PyMemberDef missing in limited API / Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Matthias Braun added the comment: While working on the pull request I felt that the type and constants better fit `descrobject.h` rather than `object.h`. -- ___ Python tracker

[issue34204] Bump the default pickle protocol in shelve

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: I wrote a short script to see the impact of file size depending on the protocol: --- import shelve import os.path print("== Short value ==") for proto in (0, 1, 2, 3, 4, 5): filename = 'shelve-picklev%s' % proto with shelve.open(filename,

[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-27 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I checked and FunctionTestCase seems to completely break the loader. The tests for FunctionTestCase in the standard library instantiate the class from inside the method of a TestCase so the loader never see them but even the simple test file I attached

Re: Behaviour of os.path.join

2020-05-27 Thread BlindAnagram
On 27/05/2020 18:37, Roel Schroeven wrote: > BlindAnagram schreef op 27/05/2020 om 18:39: >> On 27/05/2020 16:49, Rhodri James wrote: >>> On 27/05/2020 16:12, BlindAnagram wrote: I'm sorry that you don't believe me but all I know is how I intend the path to be used.  And the os.path

Re: Behaviour of os.path.join

2020-05-27 Thread Ben Bacarisse
Roel Schroeven writes: > Ben Bacarisse schreef op 27/05/2020 om 17:53: >> There is well-known (*nix) software that relies on a/b/c/ meaning >> something different to a/b/c but I don't know anyone who thinks this is >> a good idea. It causes no end of confusion. > > rsync? I always have to look

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9b83829e7d476acecc86d48978acc5813ec51e65 by Pablo Galindo in branch '3.9': [3.9] bpo-40614: Respect feature version for f-string debug expressions (GH-20196) (GH-20464)

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
Hum yes a third class is a nice option! btw managed to do it with those in Hooman self._all_widgets = [] def button(self, *args, **kwargs): b = Button(*args, **kwargs) self._all_widgets.append(b) return b def update_all(self): for widget in

[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for 3.9 and later. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

Re: Access an object to which being bound

2020-05-27 Thread Chris Angelico
On Thu, May 28, 2020 at 6:27 AM Abdur-Rahmaan Janhangeer wrote: > > Thanks, > > Actually i want to keep a reference from B to all A > instantiated like in the case of z > > I have class A and i want to call class B via A > > You can have > > def x(self, *args, **kwargs): > return A(*args,

[issue37028] Implement asyncio repl

2020-05-27 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Compared to the vanilla REPL, this doesn’t include readline setup for tab > completion and history file. Was it on purpose? Not particularly, it was mostly to show it is possible. I'm guessing any improvement to make it more consistent with the

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Shantanu
Change by Shantanu : -- pull_requests: +19718 pull_request: https://github.com/python/cpython/pull/20466 ___ Python tracker ___ ___

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 3a2667d91e33493ccde113ddf5092afefc3c89fa by Miss Islington (bot) in branch '3.9': bpo-30064: Fix asyncio loop.sock_* race condition issue (GH-20369) https://github.com/python/cpython/commit/3a2667d91e33493ccde113ddf5092afefc3c89fa --

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Commit 9d17cbf33df7cfb67ca0f37f6463ba5c18676641 is causing all refleak buildbots to fail and is masking other issues and causing some confusion already in other PRs (like https://github.com/python/cpython/pull/20433) so I opened a revert in PR 20465

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
i have this: https://github.com/Abdur-rahmaanJ/hooman/blob/master/hooman/hooman.py someone PRed a Button class i want the class button to be available to the class Hooman via Human.button self.button = Button but button has update() which must be called individually one way to update all

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 13.0 -> 14.0 pull_requests: +19717 pull_request: https://github.com/python/cpython/pull/20465 ___ Python tracker

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19716 pull_request: https://github.com/python/cpython/pull/20464 ___ Python tracker ___

[issue40797] multiprocessing.Semaphore has undocumented get_value() method

2020-05-27 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The threading.Semaphore class does not have this method, it is undocumented and useless on some system (at least MacOS): >>> s.get_value() Traceback (most recent call last): File "", line 1, in File

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
Thanks, Actually i want to keep a reference from B to all A instantiated like in the case of z I have class A and i want to call class B via A You can have def x(self, *args, **kwargs): return A(*args, **kwargs) but was wondering if we could keep track while doing it via z = ... Kind

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c116c94ff119485761460f1033cdee425bed0310 by Shantanu in branch 'master': bpo-40614: Respect feature version for f-string debug expressions (GH-20196) https://github.com/python/cpython/commit/c116c94ff119485761460f1033cdee425bed0310

Re: Behaviour of os.path.join

2020-05-27 Thread Chris Angelico
On Thu, May 28, 2020 at 6:14 AM Roel Schroeven wrote: > > Ben Bacarisse schreef op 27/05/2020 om 17:53: > > There is well-known (*nix) software that relies on a/b/c/ meaning > > something different to a/b/c but I don't know anyone who thinks this is > > a good idea. It causes no end of

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I expect the best decision to be to get rid of tempfile.tempdir entirely. That would need be its own issue with a deprecation period involved. A process global that alters behavior of all calls into a module that don't explicitly opt-out is a bad API.

[issue2897] PyMemberDef missing in limited API / Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Change by Matthias Braun : -- pull_requests: +19715 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/20462 ___ Python tracker ___

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, the behavior for an existing bytes path was not unintended, but some people can depend on it. But before making it an official feature, we should also check other cases of an unintended behavior. What if set tempfile.tempdir to a Path object or to a

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19714 pull_request: https://github.com/python/cpython/pull/20461 ___ Python tracker ___

Re: Behaviour of os.path.join

2020-05-27 Thread Ben Bacarisse
BlindAnagram writes: > On 27/05/2020 16:53, Ben Bacarisse wrote: >> As it should. Relying on a trailing \ having the right effect is >> brittle to say the least. > > In my case less brittle than leaving it out. Brittle does not mean broken. I know you can fix it by making sure the trailing \

Re: Access an object to which being bound

2020-05-27 Thread Chris Angelico
On Thu, May 28, 2020 at 5:48 AM Abdur-Rahmaan Janhangeer wrote: > > Greetings, > > Lets say i have > > class A: > ... > > class B: >self.x = A > > then used > > b = B() > z = b.x() > > now how in A i get a reference to B when z is assigned to b.x? > Things are very tangled here. What

Re: Behaviour of os.path.join

2020-05-27 Thread Roel Schroeven
Ben Bacarisse schreef op 27/05/2020 om 17:53: There is well-known (*nix) software that relies on a/b/c/ meaning something different to a/b/c but I don't know anyone who thinks this is a good idea. It causes no end of confusion. rsync? I always have to look up whether or not I need to use a

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-05-27 Thread Ethan Furman
Ethan Furman added the comment: New changeset b5ecbf02e4dbdea6d1c9a6d7189137f76e70c073 by Miss Islington (bot) in branch '3.8': bpo-40025: Require _generate_next_value_ to be defined before members(GH-19763) https://github.com/python/cpython/commit/b5ecbf02e4dbdea6d1c9a6d7189137f76e70c073

Re: Behaviour of os.path.join

2020-05-27 Thread Roel Schroeven
BlindAnagram schreef op 27/05/2020 om 18:53: Its not my bug to fix - the semantics of what I send is very clear on any Windows system. That's the first time I see any mention of those semantics, and I've been using Windows since the Windows 3.1 days (and MS-DOS before that, since 3.2 IIRC).

Re: Behaviour of os.path.join

2020-05-27 Thread Roel Schroeven
BlindAnagram schreef op 27/05/2020 om 18:39: On 27/05/2020 16:49, Rhodri James wrote: On 27/05/2020 16:12, BlindAnagram wrote: I'm sorry that you don't believe me but all I know is how I intend the path to be used.  And the os.path functions aren't helpful here when they actually_change_  the

Re: Behaviour of os.path.join

2020-05-27 Thread Andrew Jaffe
Dear all, \On 26/05/2020 15:56, BlindAnagram wrote: I came across an issue that I am wondering whether I should report as an issue. If I have a directory, say: base='C:\\Documents' and I use os.path.join() as follows: join(base, '..\\..\\', 'build', '') I obtain as expected from the

Re: Phyton 32 or 64 bit?

2020-05-27 Thread Bischoop
On 2020-05-26, Alex Kaye wrote: > To all: > > The only stupid question is one that wasn't asked ! > > Alex > Well, visit FB and you'll change your mind. -- https://mail.python.org/mailman/listinfo/python-list

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Christian Heimes
Christian Heimes added the comment: New changeset db5aed931f8a617f7b63e773f62db468fe9c5ca1 by Christian Heimes in branch 'master': bpo-40791: Use CRYPTO_memcmp() for compare_digest (#20456) https://github.com/python/cpython/commit/db5aed931f8a617f7b63e773f62db468fe9c5ca1 --

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +19713 pull_request: https://github.com/python/cpython/pull/20460 ___ Python tracker

Re: Managing plug-ins

2020-05-27 Thread George Fischhof
DL Neil via Python-list ezt írta (időpont: 2020. máj. 26., K, 3:10): > On 26/05/20 11:35 AM, Benjamin Schollnick wrote: > > Did you ever find anything that met your requirements? > > > > If not, I have a prototype that I need to build out some more… > > > >

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 210a137396979d747c2602eeef46c34fc4955448 by Fantix King in branch 'master': bpo-30064: Fix asyncio loop.sock_* race condition issue (#20369) https://github.com/python/cpython/commit/210a137396979d747c2602eeef46c34fc4955448 --

Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
Greetings, Lets say i have class A: ... class B: self.x = A then used b = B() z = b.x() now how in A i get a reference to B when z is assigned to b.x? Thanks Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy | blog

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd feel fine doing that for 3.9 given 3.9.0 is only in beta and this changes no public APIs. For 3.8 and 3.7 i wouldn't. Be sure to update the versionchanged in the docs if you choose to do it for 3.9. -- ___

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Christian Heimes
Christian Heimes added the comment: Greg, is GH-20456 a bug fix / security enhancement or a new feature? I'm hesitant to backport it to 3.7 and 3.8. 3.9 might be ok. -- ___ Python tracker

[issue27657] urlparse fails if the path is numeric

2020-05-27 Thread Michał Górny
Michał Górny added the comment: I'm sorry but does this change mean that it's not final or...? My main concern is whether we should be adjusting our packages to the new behavior in py3.9, or wait for further changes. -- ___ Python tracker

Re: Write tables from Word (.docx) to Excel (.xlsx) using xlsxwriter

2020-05-27 Thread Peter Otten
BBT wrote: > I tried your code by replacing the Document portion: > But I received an error: > TypeError: __init__() takes 1 positional argument but 2 were given We seem to have different ideas of what replacing means. Here is the suggested script spelt out: import xlsxwriter from docx.api

[issue40787] Mysql + unittest crash

2020-05-27 Thread Lucas
Lucas added the comment: The problem was that I didn't close the 1st connection to the database and then made another request, which had to wait for the 1st to close, to be exact. -- ___ Python tracker

Re: Write tables from Word (.docx) to Excel (.xlsx) using xlsxwriter

2020-05-27 Thread BBT
On Thursday, 28 May 2020 02:40:49 UTC+8, Peter Otten wrote: > BBT wrote: > > > On Thursday, 28 May 2020 01:36:26 UTC+8, Peter Otten wrote: > >> BBT wrote: > >> > >> > I am trying to parse a word (.docx) for tables, then copy these tables > >> > over to excel using xlsxwriter. This is my code:

Re: Behaviour of os.path.join

2020-05-27 Thread Beverly Pope
I wasn’t going to say anything because I haven’t used MS Windows for years. The OP wants to add a path separator at the end of a path. Why the OP wants to do that doesn’t concern me. OTOH, as others have already mentioned, the documentation explicitly says, "If a component is an absolute

Re: Write tables from Word (.docx) to Excel (.xlsx) using xlsxwriter

2020-05-27 Thread BBT
On Thursday, 28 May 2020 02:40:49 UTC+8, Peter Otten wrote: > BBT wrote: > > > On Thursday, 28 May 2020 01:36:26 UTC+8, Peter Otten wrote: > >> BBT wrote: > >> > >> > I am trying to parse a word (.docx) for tables, then copy these tables > >> > over to excel using xlsxwriter. This is my code:

Re: Write tables from Word (.docx) to Excel (.xlsx) using xlsxwriter

2020-05-27 Thread Peter Otten
BBT wrote: > On Thursday, 28 May 2020 01:36:26 UTC+8, Peter Otten wrote: >> BBT wrote: >> >> > I am trying to parse a word (.docx) for tables, then copy these tables >> > over to excel using xlsxwriter. This is my code: >> > >> > from docx.api import Document >> > import xlsxwriter >> > >> >

[issue37028] Implement asyncio repl

2020-05-27 Thread Éric Araujo
Éric Araujo added the comment: Compared to the vanilla REPL, this doesn’t include readline setup for tab completion and history file. Was it on purpose? -- nosy: +eric.araujo ___ Python tracker

  1   2   3   >