[issue21016] trace: $prefix and $exec_prefix improperly replaced on Fedora

2020-02-12 Thread Ben Boeckel
Ben Boeckel added the comment: Thanks! Should I file a new issue for the other (less urgent) problem mentioned at the bottom or is it not really worth fixing? > It also erroneously replaces things like '$prefixpath'. It should probably do > split the path on the path separators and only

[issue39184] Many command execution functions are not raising auditing events

2020-02-12 Thread Steve Dower
Steve Dower added the comment: New changeset 7514f4f6254f4a2d13ea8e5632a8e5f22b637e0b by Saiyang Gou in branch 'master': bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, `resource`, `shutil`, `signal`, `syslog` (GH-18407)

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

2020-02-12 Thread Zhibin Dong
New submission from Zhibin Dong : As shown in the code, when 0 is passed to asyncio.sleep function, sometimes the program does not exit when I press . I must press again to close the program. However, when a number, such as 0.01, which is bigger than 0, is passed to the sleep function, the

[issue39567] Add audit for os.walk(), os.fwalk(), Path.glob() and Path.rglob()

2020-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I did not know about the audit-event directive. Thanks Karthikeyan. As for backporting this to 3.8 I left it on to the RM. -- nosy: +lukasz.langa resolution: fixed -> stage: resolved -> patch review status: closed -> open

[issue39567] Add audit for os.walk(), os.fwalk(), Path.glob() and Path.rglob()

2020-02-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +17873 pull_request: https://github.com/python/cpython/pull/18499 ___ Python tracker ___

Re: Load python from different plugin dlls

2020-02-12 Thread R.Wieser
Eko, > which needs also access to python3.dll but cannot load it itself as it has > been already loaded by plugin1 > > Is such a scenario actually possible? Yes. Normally a DLL can be loaded in as many processes (and threads thereof) as you like. However, it is possible that the DLLs

[issue39601] brace escapes are not working in formatted string literal format specifications

2020-02-12 Thread JitterMan
JitterMan added the comment: Ah, that make sense. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39620] PyObject_GetAttrString and tp_getattr do not agree

2020-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was reverted because it is backward incompatible change. It breaks a code which assigns to the tp_getattr field without explicit type cast to getattrfunc. -- nosy: +serhiy.storchaka ___ Python tracker

[issue39621] md5_compress() in Modules/md5module.c can take a const buf

2020-02-12 Thread miss-islington
miss-islington added the comment: New changeset 669981b3b14dd16dec42089d6ac8d6449fde8abd by Miss Islington (bot) in branch '3.8': closes bpo-39621: Make buf arg to md5_compress be const. (GH-18497) https://github.com/python/cpython/commit/669981b3b14dd16dec42089d6ac8d6449fde8abd --

[issue39621] md5_compress() in Modules/md5module.c can take a const buf

2020-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +17872 pull_request: https://github.com/python/cpython/pull/18498 ___ Python tracker ___

[issue39621] md5_compress() in Modules/md5module.c can take a const buf

2020-02-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 597ebed748d0b0c061f8c108bd98270d103286c1 by Andy Lester in branch 'master': closes bpo-39621: Make buf arg to md5_compress be const. (GH-18497) https://github.com/python/cpython/commit/597ebed748d0b0c061f8c108bd98270d103286c1 --

[issue39601] brace escapes are not working in formatted string literal format specifications

2020-02-12 Thread Vedran Čačić
Vedran Čačić added the comment: I can't help with the issue itself (though I must say that I philosophically don't believe in "sailed off ships" -- in the limit, Python must be the best it can be, though it can take decades to get there), but I can help you with the error message. It simply

[issue39621] md5_compress() in Modules/md5module.c can take a const buf

2020-02-12 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +17871 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18497 ___ Python tracker ___

[issue39621] md5_compress() in Modules/md5module.c can take a const buf

2020-02-12 Thread Andy Lester
New submission from Andy Lester : The function md5_compress does not modify its buffer argument. static void md5_compress(struct md5_state *md5, unsigned char *buf) buf should be const. -- components: Extension Modules messages: 361932 nosy: petdance priority: normal severity: normal

[issue39620] PyObject_GetAttrString and tp_getattr do not agree

2020-02-12 Thread Andy Lester
Andy Lester added the comment: Do you know why it was reverted? (Granted, it was 15 years ago...) It looks like the original changeset is trying to address at least two different problems with non-const string literals. My ticket here is focusing only on getattrfunc and setattrfunc. The

[issue39620] PyObject_GetAttrString and tp_getattr do not agree

2020-02-12 Thread Ammar Askar
Ammar Askar added the comment: Note that there was an earlier attempt to make it const https://github.com/python/cpython/commit/af68c874a6803b4e90b616077a602c0593719a1d but this was reverted as part of https://github.com/python/cpython/commit/15e62742fad688b026ba80bf17d1345c4cbd423b

[issue39620] PyObject_GetAttrString and tp_getattr do not agree

2020-02-12 Thread Andy Lester
New submission from Andy Lester : PyObject_GetAttrString(PyObject *v, const char *name) typedef PyObject *(*getattrfunc)(PyObject *, char *) The outer PyObject_GetAttrString takes a const char *name, but then casts away the const when calling the underlying tp_getattr. This means that an

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: C99 is not disallowed in headers. -- nosy: +benjamin.peterson resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-12 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +17870 pull_request: https://github.com/python/cpython/pull/18496 ___ Python tracker ___

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-02-12 Thread Éric Araujo
Éric Araujo added the comment: Ah, I got it wrong, get_data itself uses `rb`, not default `r`. It makes sense given that package data could be any kind of file, not necessarily text. Too bad there isn’t a `get_text(encoding)` method in the loader API! With Python 3’s rich IO system, isn’t

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-02-12 Thread Éric Araujo
Éric Araujo added the comment: Allow me to ask a maybe very naive question: Wouldn't it be possible to fix the problem at the source, that is, use `open(filename, "rU")` in the two spots you found rather than doing ad-hoc line ending translation? (I get that the second one uses `rb` at the

[issue39298] add BLAKE3 to hashlib

2020-02-12 Thread Larry Hastings
Larry Hastings added the comment: Personally I'm enjoying these BLAKE3 status updates, and I wouldn't mind at all being kept up-to-date during BLAKE3's development via messages on this issue. But, given the tenor of the conversation so far, I'm guessing Python is gonna hold off until

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread DL Neil via Python-list
On 13/02/20 9:17 AM, Michael Torrie wrote: On 2/12/20 7:44 AM, Ethan Furman wrote: On 02/11/2020 04:38 PM, Michael Torrie wrote: ... True. Costs can be calculated and planned for. But Technical debt is often impossible to quantify in a real, meaningful, business sense, other than the that

[issue39584] multiprocessing.shared_memory: MacOS crashes by running attached Python code

2020-02-12 Thread Davin Potts
Davin Potts added the comment: My sense is that it would be nice if we can catch this before ftruncate does something nasty. Where else is ftruncate used in CPython that this could similarly trigger a problem? How is it handled there (or not)? --

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8c3aee65ed3aff3668da330ccd6f9ba7b2aa4567 by Victor Stinner in branch 'master': bpo-35134: Add Include/cpython/fileutils.h header file (GH-18493) https://github.com/python/cpython/commit/8c3aee65ed3aff3668da330ccd6f9ba7b2aa4567 --

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 98921aeaf5879b51e2dd1870c9285cfa8d1a52c7 by Victor Stinner in branch 'master': bpo-35134: Add Include/cpython/bytesobject.h file (GH-18494) https://github.com/python/cpython/commit/98921aeaf5879b51e2dd1870c9285cfa8d1a52c7 --

[issue39619] os.chroot is not enabled on HP-UX builds

2020-02-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18495 ___ Python tracker ___

[issue39619] os.chroot is not enabled on HP-UX builds

2020-02-12 Thread Ian Norton
New submission from Ian Norton : When building on HP-UX using: The configure stage fails to detect chroot(). This is due to setting _XOPEN_SOURCE to a value higher than 500. The fix for this is to not set _XOPEN_SOURCE when configuring for HP-UX -- components: Interpreter Core

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2020-02-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17867 pull_request: https://github.com/python/cpython/pull/18494 ___ Python tracker ___

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2020-02-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17866 pull_request: https://github.com/python/cpython/pull/18493 ___ Python tracker ___

[issue35081] Move internal headers to Include/internal/

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset e9e7d284c434768333fdfb53a3663eae74cb995a by Victor Stinner in branch 'master': bpo-35081: Move dtoa.h header to the internal C API (GH-18489) https://github.com/python/cpython/commit/e9e7d284c434768333fdfb53a3663eae74cb995a --

[issue39474] col_offset for parenthesized expressions looks weird

2020-02-12 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2020-02-12 Thread Jack O'Connor
Jack O'Connor added the comment: Version 0.2.0 of the BLAKE3 repo includes optimized assembly implementations. These are behind the "c" Cargo feature for the `blake3` Rust crate, but included by default for the internal bindings crate. So the easiest way to rerun our favorite benchmark is:

[issue35081] Move internal headers to Include/internal/

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 45876a90e2663f12b90c2090ec3e48bd97841aae by Victor Stinner in branch 'master': bpo-35081: Move bytes_methods.h to the internal C API (GH-18492) https://github.com/python/cpython/commit/45876a90e2663f12b90c2090ec3e48bd97841aae --

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Eric V. Smith
Eric V. Smith added the comment: I'd suggest mentioning this on python-dev, if you want to change the policy. -- ___ Python tracker ___

[issue39474] col_offset for parenthesized expressions looks weird

2020-02-12 Thread miss-islington
miss-islington added the comment: New changeset 2076d4f97ef514bb4dc4ca768fbaa3f538ce7f1f by Miss Islington (bot) in branch '3.8': bpo-39474: Fix AST pos for expressions like (a)(b), (a)[b] and (a).b. (GH-18477) https://github.com/python/cpython/commit/2076d4f97ef514bb4dc4ca768fbaa3f538ce7f1f

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
Peter Eisentraut added the comment: That's fair for code internal to CPython itself, but these are header files included by third-party code that is embedding Python, so a bit more flexibility and adaptability would be welcome there. -- ___

[issue39613] IsolatedAsyncioTestCase closes default event loop

2020-02-12 Thread Zsolt Dollenstein
Change by Zsolt Dollenstein : -- nosy: +zsol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35081] Move internal headers to Include/internal/

2020-02-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17865 pull_request: https://github.com/python/cpython/pull/18492 ___ Python tracker ___

[issue39474] col_offset for parenthesized expressions looks weird

2020-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +17864 pull_request: https://github.com/python/cpython/pull/18491 ___ Python tracker ___

[issue39474] col_offset for parenthesized expressions looks weird

2020-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6e619c48b8e804ece9521453fc8da0640a04d5b1 by Serhiy Storchaka in branch 'master': bpo-39474: Fix AST pos for expressions like (a)(b), (a)[b] and (a).b. (GH-18477)

[issue37685] Fix equality checks for some types

2020-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Łukasz. I considered this as a bug fix, but was not sure that we should fix these bugs. They were here from the beginning. Josh, as for using total_ordering, I think it is a different issue. I did not want to change the behavior except fixing

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2020-02-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17863 pull_request: https://github.com/python/cpython/pull/18490 ___ Python tracker ___

[issue35081] Move internal headers to Include/internal/

2020-02-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17862 pull_request: https://github.com/python/cpython/pull/18489 ___ Python tracker ___

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Michael Torrie
On 2/12/20 7:44 AM, Ethan Furman wrote: > On 02/11/2020 04:38 PM, Michael Torrie wrote: > >> It's all just different ways of accounting for the same things. In >> the olden days before the term "technical debt" was invented, we >> called this "total cost of ownership." > > TCO is not a fixed

[issue18819] tarfile fills devmajor and devminor fields even for non-devices

2020-02-12 Thread Ethan Furman
Ethan Furman added the comment: New changeset 674935b8caf33e47c78f1b8e197b1b77a04992d2 by William Chargin in branch 'master': bpo-18819: tarfile: only set device fields for device files (GH-18080) https://github.com/python/cpython/commit/674935b8caf33e47c78f1b8e197b1b77a04992d2 --

[issue24916] In sysconfig, don't rely on sys.version format

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: The "py_version" variable of sysconfig is discussed since 2015 but... it's unused. It is supposed to build paths. Does it really make sense to build a path which contains "+"? It can confuse some application which may associate a special meaning to "+".

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Rhodri James
On 12/02/2020 17:46, Python wrote: On Wed, Feb 12, 2020 at 01:16:03PM +, Rhodri James wrote: On 12/02/2020 00:53, Python wrote: In pretty much every job I've ever worked at, funding work (e.g. with humans to do it) with exactly and precisely the resources required is basically impossible,

[issue39618] logger.exception with default message

2020-02-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: Links on Debian Multiarch: * https://wiki.debian.org/Multiarch/HOWTO * https://lwn.net/Articles/711199/ -- ___ Python tracker ___

[issue39618] logger.exception with default message

2020-02-12 Thread Denis Vieira
New submission from Denis Vieira : On my Python projects i like to use the logger.exception() method without any other message. I'm forced to send an empty string on every call. logger.exception('') It would be nice the exception method have the expected parameter "msg" with an default

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: lib64_tests.py: test suite hardcoded for Fedora, SuSE and PR 18381 with --with-python-libdir=lib64. I wrote it to help me to understand differences between Fedora, SuSE and PR 18381. On Fedora, the test fails because we have an additional patch on distutils

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Python
On Wed, Feb 12, 2020 at 01:16:03PM +, Rhodri James wrote: > On 12/02/2020 00:53, Python wrote: > > In pretty much every job I've ever worked at, funding work (e.g. with > > humans to do it) with exactly and precisely the resources required is > > basically impossible, and management prefers to

[issue39617] max_workers argument to concurrent.futures.ProcessPoolExecutor is not flexible enough

2020-02-12 Thread sds
sds added the comment: cf https://github.com/joblib/joblib/issues/1006 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39617] max_workers argument to concurrent.futures.ProcessPoolExecutor is not flexible enough

2020-02-12 Thread sds
New submission from sds : The number of workers (max_workers) I want to use often depends on the server load. Imagine this scenario: I have 64 CPUs and I need to run 200 processes. However, others are using the server too, so currently loadavg is 50, thus I will set `max_workers` to (say) 20.

RE: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Avi Gross via Python-list
I have to wonder if this is a bit like what happens when something like Windows offers you an upgrade if you pay for it. Some people have noticed how after such things come out, a series of rapid bug fixes come along. So, they wait. Some wait long enough until another entire version has come along

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-12 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +17861 pull_request: https://github.com/python/cpython/pull/18488 ___ Python tracker ___

[issue24916] In sysconfig, don't rely on sys.version format

2020-02-12 Thread Daniel Bengtsson
Change by Daniel Bengtsson : -- pull_requests: +17860 pull_request: https://github.com/python/cpython/pull/18487 ___ Python tracker ___

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-12 Thread Dong-hee Na
Dong-hee Na added the comment: FYI, I am working on to add Py_IS_TYPE macro. :) -- nosy: +corona10 ___ Python tracker ___ ___

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: Ooops, SuSE has 2 patches. SuSE currently uses these patches for lib64 in the Python 3 package: (1) https://build.opensuse.org/package/view_file/devel:languages:python:Factory/python3/F00102-lib64.patch?expand=1 (2)

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: SuSE currently uses this patch for lib64 in the Python 3 package: https://build.opensuse.org/package/view_file/devel:languages:python:Factory/python3/F00102-lib64.patch?expand=1 -- ___ Python tracker

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread Miro Hrončok
Miro Hrončok added the comment: > > Also note that the extension modules have archful suffix, so they will not > > collide in $HOME, unless they are installed as name.so. > > Yeah, it seems like pip install adopted Debian multiarch naming: > "x86_64-linux-gnu" triplet in

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: > posix_user: > > * stdlib: '~/.local/lib64/python3.9' > * platstdlib: '~/.local/lib64/python3.9' > * platlib: '~/.local/lib64/python3.9/site-packages' Honestly, I have no idea how posix_user is used. ~/.local/lib64/ directory doesn't exist on my work

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread Miro Hrončok
Miro Hrončok added the comment: Also note that the extension modules have archful suffix, so they will not collide in $HOME, unless they are installed as name.so. -- ___ Python tracker

[issue39474] col_offset for parenthesized expressions looks weird

2020-02-12 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Are you going to work on a patch then, Batuhan? Serhiy already submitted a PR, which looks great. -- ___ Python tracker ___

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread Matej Cepl
Matej Cepl added the comment: > posix_user: > > * stdlib: '~/.local/lib64/python3.9' > * platstdlib: '~/.local/lib64/python3.9' > * platlib: '~/.local/lib64/python3.9/site-packages' I am still not sure about the this one. I know that I have mentioned a possibility of multiplatform $HOME on

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Ethan Furman
On 02/11/2020 04:38 PM, Michael Torrie wrote: It's all just different ways of accounting for the same things. In the olden days before the term "technical debt" was invented, we called this "total cost of ownership." TCO is not a fixed number. For example, if a loan is taken to help fund a

ghostscripts in python with watchdog

2020-02-12 Thread legaulph
I'm trying to use ghostscripts with python watchdog. I want to duplicate the last page of a pdf to another directory using the same name as the source pdf + page number. So watchdog will monitor the directory for the pdf and ghostscript will copy the last page to another directory. I have this,

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-02-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Welcome to work on the patch, Amir. * We shouldn't be encoding anything. * Create reject for Unicode control characters and reject the request if the request contains any control character. Write tests for this. It will similar to one of the examples

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-02-12 Thread hai shi
Change by hai shi : -- pull_requests: +17859 pull_request: https://github.com/python/cpython/pull/18486 ___ Python tracker ___

[issue25753] Reference leaks in test_smtplib

2020-02-12 Thread Dong-hee Na
Dong-hee Na added the comment: +1 for me to close this issue. On the master branch, this issue is not reproducible. I am closing this issue, if someone wants to open this issue, please re-open this :) -- nosy: +corona10 resolution: -> out of date stage: -> resolved status: open ->

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-02-12 Thread Amir Mohamadi
Change by Amir Mohamadi : -- pull_requests: +17858 pull_request: https://github.com/python/cpython/pull/18485 ___ Python tracker ___

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: Default with prefix=/usr: * posix_prefix: * stdlib: '/usr/lib/python3.9' * platstdlib: '/usr/lib/python3.9' * platlib: '/usr/lib/python3.9/site-packages' * posix_user: * stdlib: '~/.local/lib/python3.9' * platstdlib: '~/.local/lib/python3.9' *

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: Summary: * This issue is mostly about pushing a 16-years old patch from Fedora and SuSE to Python upstream. Other Linux distributions use different solutions to support multiple architectures in the same filesystem. For example, Debian and Ubuntu uses

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Rhodri James
On 12/02/2020 00:53, Python wrote: In pretty much every job I've ever worked at, funding work (e.g. with humans to do it) with exactly and precisely the resources required is basically impossible, and management prefers to underfund the work than to overfund it, for cost-savings reasons. This

Load python from different plugin dlls

2020-02-12 Thread Eko palypse
Assuming there is an CppApp which allows extending its functionality by adding plugins. Now let's assume there are plugin developer which use cython to create such a plugins. How can one check if there has been already a plugin loaded which itself loaded a python interpreter? And if this is

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2020-02-12 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch pull_requests: +17857 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18484 ___ Python tracker ___

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2020-02-12 Thread Ville Skyttä
New submission from Ville Skyttä : Doc says "Whether to match the peer cert’s hostname with match_hostname() in SSLSocket.do_handshake()." but match_hostname() is no longer used to do that in the first place, OpenSSL is used for that. check_hostname affects the OpenSSL usage, too. --

[issue21016] trace: $prefix and $exec_prefix improperly replaced on Fedora

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks Ben Boeckel for the bugfix. Sorry for the delay (6 years)! But it's now fixed in 3.7, 3.8 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread miss-islington
miss-islington added the comment: New changeset ac6f4d2db703c0ff88e496bcb7b7fe55cf2ac458 by Miss Islington (bot) in branch '3.8': bpo-21016: pydoc and trace use sysconfig (GH-18476) https://github.com/python/cpython/commit/ac6f4d2db703c0ff88e496bcb7b7fe55cf2ac458 --

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread miss-islington
miss-islington added the comment: New changeset ca133e53fafdec1aa77613fcb7558deed959383f by Miss Islington (bot) in branch '3.7': bpo-21016: pydoc and trace use sysconfig (GH-18476) https://github.com/python/cpython/commit/ca133e53fafdec1aa77613fcb7558deed959383f -- nosy:

[issue21016] trace: $prefix and $exec_prefix improperly replaced on Fedora

2020-02-12 Thread miss-islington
miss-islington added the comment: New changeset ac6f4d2db703c0ff88e496bcb7b7fe55cf2ac458 by Miss Islington (bot) in branch '3.8': bpo-21016: pydoc and trace use sysconfig (GH-18476) https://github.com/python/cpython/commit/ac6f4d2db703c0ff88e496bcb7b7fe55cf2ac458 --

[issue21016] trace: $prefix and $exec_prefix improperly replaced on Fedora

2020-02-12 Thread miss-islington
miss-islington added the comment: New changeset ca133e53fafdec1aa77613fcb7558deed959383f by Miss Islington (bot) in branch '3.7': bpo-21016: pydoc and trace use sysconfig (GH-18476) https://github.com/python/cpython/commit/ca133e53fafdec1aa77613fcb7558deed959383f -- nosy:

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-02-12 Thread Maximilian Peters
Maximilian Peters added the comment: Ran into the same issue using Python 3.6.8 [GCC 5.4.0 20160609] on Linux. The same code worked on Windows 10 with Python 3.7 32-bit and 64-bit. -- nosy: +Maximilian Peters ___ Python tracker

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Jon Ribbens via Python-list
On 2020-02-12, Chris Angelico wrote: > But you CAN rewrite code such that it reduces technical debt. You can > refactor code to make it more logical. ... but if doing so costs more than the debt, you shouldn't do it. -- https://mail.python.org/mailman/listinfo/python-list

[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2020-02-12 Thread Floris Lambrechts
Floris Lambrechts added the comment: This is the new chapter: https://github.com/florisla/cpython/commit/c146ad3d086fe9e401284c12fc670ea4f9398f3b -- ___ Python tracker ___

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Eric V. Smith
Eric V. Smith added the comment: PEP 7 says that this is allowed: Python versions greater than or equal to 3.6 use C89 with several select C99 features: ... - intermingled declarations So I don't think these changes should be accepted. -- nosy: +eric.smith

[issue39567] Add audit for os.walk(), os.fwalk(), Path.glob() and Path.rglob()

2020-02-12 Thread Steve Dower
Steve Dower added the comment: Yes, they should be. They can also be backported to 3.8 - it was deliberate in the original PEP that adding new events is not a breaking change or a new feature. -- ___ Python tracker

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +17856 pull_request: https://github.com/python/cpython/pull/18483 ___ Python tracker ___

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +17854 pull_request: https://github.com/python/cpython/pull/18482 ___ Python tracker ___

[issue1294959] Problems with /usr/lib64 builds.

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4fac7ed43ebf1771a8fe86fdfe7b9991f3be78cd by Victor Stinner in branch 'master': bpo-21016: pydoc and trace use sysconfig (GH-18476) https://github.com/python/cpython/commit/4fac7ed43ebf1771a8fe86fdfe7b9991f3be78cd --

[issue21016] trace: $prefix and $exec_prefix improperly replaced on Fedora

2020-02-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4fac7ed43ebf1771a8fe86fdfe7b9991f3be78cd by Victor Stinner in branch 'master': bpo-21016: pydoc and trace use sysconfig (GH-18476) https://github.com/python/cpython/commit/4fac7ed43ebf1771a8fe86fdfe7b9991f3be78cd -- nosy: +vstinner

[issue21016] trace: $prefix and $exec_prefix improperly replaced on Fedora

2020-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +17855 pull_request: https://github.com/python/cpython/pull/18483 ___ Python tracker ___

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
Change by Peter Eisentraut : -- keywords: +patch pull_requests: +17851 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18481 ___ Python tracker

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
New submission from Peter Eisentraut : Some inline functions use mixed declarations and code. These end up visible in third-party code that includes Python.h, which might not be using a C99 compiler. Example: In file included from

[issue39567] Add audit for os.walk(), os.fwalk(), Path.glob() and Path.rglob()

2020-02-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Do these new audit events have to be documented? -- nosy: +xtreak ___ Python tracker ___

[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2020-02-12 Thread Paul Moore
Paul Moore added the comment: You've provided links to your branches, but not to the specific text you're proposing to add. Can you link to a diff or something that shows what you've added more precisely? -- ___ Python tracker

[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2020-02-12 Thread Floris Lambrechts
Floris Lambrechts added the comment: I've written an "Absolute paths" section based on the knowledge I found in the various threads. Any review is appreciated. https://github.com/florisla/cpython/tree/pathlib-chapter-absolute-paths With some related documentation changes:

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-02-12 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +17850 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18480 ___ Python tracker ___

  1   2   >