Change by Thomas Wouters :
--
nosy: +twouters
___
Python tracker
<https://bugs.python.org/issue46885>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Thomas Wouters :
test_pathlib contains, in PosixPathTest.test_expanduser, a check that
expanduser on a nonexistent user will raise RuntimeError. Leaving aside the
question why that's a RuntimeError (which is probably too late to fix anyway),
the test performs this
New submission from Thomas Wouters :
The PyUnicode_FSConverter function has confusing reference semantics, and
confusing documentation.
https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_FSConverter says the
output argument "must be a PyBytesObject* which must be released when it
Thomas Wouters added the comment:
Py_CompileString() in Python 3.9 and later, using the PEG parser, appears to no
longer honours source encoding cookies. A reduced test case:
#include "Python.h"
#include
const char *src = (
"# -*- coding: Latin-1 -*-\n&quo
Change by Thomas Wouters :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue29941>
___
___
Python-bugs-list
Thomas Wouters added the comment:
Victor, what's the benefit of doing this work? Are there real problems this
fixes? I'm worried about the churn in third-party extensions, examples,
tutorials, etc, especially for audiences that upon seeing a compiler error
won't immediate
Thomas Wouters added the comment:
This was fixed back in 2018, in fact.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Thomas Wouters :
--
keywords: +patch
pull_requests: +25823
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27278
___
Python tracker
<https://bugs.python.org/issu
New submission from Thomas Wouters :
Objects/complexobject.c's complex_pow uses undefined behaviour, by casting a
float of unknown magnitude to a long:
int_exponent = (long)exponent.real;
At Google we build with clang and -fsanitize=float-cast-overflow by default,
which catches
Thomas Wouters added the comment:
New changeset 0b4704973dbef712d05bdd62349bb4244f545430 by Miss Islington (bot)
in branch '3.9':
bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc
(GH-27165) (GH-27175)
https://github.com/python/cpyt
Change by Thomas Wouters :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Thomas Wouters added the comment:
Fix extended to the other branch (and backported to 3.10), and both parts
backported to 3.9. I don't think it counts as a security issue, so not
backporting to 3.8.
--
___
Python tracker
<https://bugs.py
Thomas Wouters added the comment:
New changeset 6aa59c68dc7910c0675ad23c1f9d88edfb81dfcb by Miss Islington (bot)
in branch '3.10':
bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc
(GH-27165) (GH-27174)
https://github.com/python/cpyt
Thomas Wouters added the comment:
New changeset 074e7659f208051b6b973f7fdb654dd22b93aaa2 by T. Wouters in branch
'main':
bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc
(GH-27165)
https://github.com/python/cpython/commit/074e7659f208051b6b973f7fdb654d
Change by Thomas Wouters :
--
pull_requests: +25701
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/27165
___
Python tracker
<https://bugs.python.org/issu
Thomas Wouters added the comment:
Reopening this issue, as there is another branch (for non-GC heaptypes) earlier
in subtype_dealloc that I believe suffers from the same problem. Actually
triggering the error in a test has been difficult because as far as I can tell
it relies on garbage
Change by Thomas Wouters :
--
keywords: +patch
pull_requests: +25670
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27127
___
Python tracker
<https://bugs.python.org/issu
New submission from Thomas Wouters :
The csv module has some incorrect exception handling when dealing with dialect
objects that are not csv.Dialect subclasses (or that otherwise raise errors
when accessing the dialect attributes):
>>> csv.reader([], dialect=None)
python: ../.
Change by Thomas Wouters :
--
nosy: +gregory.p.smith, twouters
___
Python tracker
<https://bugs.python.org/issue42443>
___
___
Python-bugs-list mailing list
Unsub
Thomas Wouters added the comment:
The normal way to do this (for make/autoconf) is to add a --with-tzpath
argument to configure.ac, and a make variable to pass it to the compilation of
anything that needs it. You can then access it from Python code with
sysconfig.get_config_var().
In
Thomas Wouters added the comment:
New changeset 7dc72b8d4f2c9d1eed20f314fd6425eab66cbc89 by T. Wouters (Anthony
Shaw) in branch 'master':
bpo-28367: Add additional baud rates for termios (GH-13142)
https://github.com/python/cpython/commit/7dc72b8d4f2c9d1eed20f314fd6425
Change by Thomas Wouters :
--
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9 -Python 3.7
___
Python tracker
<https://bugs.python.org/i
Change by Thomas Wouters :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue38532>
___
___
Pyth
Thomas Wouters added the comment:
New changeset aa3efea9c5f4d25afc3fa4cfd5e6d789943893c9 by T. Wouters (Miss
Islington (bot)) in branch '3.8':
bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-17811)
https://github.com/python/cpython/commit/aa3efea9c5f4d25afc3fa4cfd5e6d7
Thomas Wouters added the comment:
New changeset e02ab59fdffa0bb841182c30ef1355c89578d945 by T. Wouters (Zackery
Spytz) in branch 'master':
bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-16857)
https://github.com/python/cpython/commit/e02ab59fdffa0bb841182c30ef1355
Thomas Wouters added the comment:
New changeset 54b32c987146123f2237f0e21b1d02b1c1ebdf6f by T. Wouters (Brandt
Bucher) in branch 'master':
bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236)
https://github.com/python/cpython/commit/54b32c987146123f2237f0e21b1d02
Thomas Wouters added the comment:
I'm pretty sure you meant nascheme, not nnorwitz.
--
nosy: +nascheme, twouters -nnorwitz
___
Python tracker
<https://bugs.python.org/is
Thomas Wouters added the comment:
The problem is _PyUnicode_CheckConsistency switched from being only defined
when Py_DEBUG is set, to being defined unconditionally. That was a good change,
but it made the API-compatibility hack of #defining _PyUnicode_CheckConsistency
in Include
Change by Thomas Wouters :
--
keywords: +patch
pull_requests: +16183
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16594
___
Python tracker
<https://bugs.python.org/issu
Thomas Wouters added the comment:
As mentioned in the code review for Victor's fix, it feels like the big
conditional on the use of self._posix_spawn in Popen._execute_child should
perhaps be pulled into _posix_spawn, or at least refactored so it's closer to
_posix_spawn,
Thomas Wouters added the comment:
New changeset faca8553425c231d867dcabf6a69a9dd21118b6c by T. Wouters (Victor
Stinner) in branch 'master':
bpo-36046: posix_spawn() doesn't support uid/gid (GH-16384)
https://github.com/python/cpython/commit/faca8553425c231d867dcabf6
Thomas Wouters added the comment:
New changeset 693aa80a434590ea7dcd35c000209e53d01b9425 by T. Wouters (Gregory
P. Smith) in branch 'master':
bpo-36046: Fix buildbot failures (GH-16091)
https://github.com/python/cpython/commit/693aa80a434590ea7dcd35c000209e53d01b9425
-
Thomas Wouters added the comment:
New changeset 04f0bbfbedf8d2bb69b012f853de6648b1a9f27f by T. Wouters (Dino
Viehland) in branch 'master':
bpo-38075: Port _randommodule.c to PEP-384 (GH-15798)
https://github.com/python/cpython/commit/04f0bbfbedf8d2bb69b012f853de6648b1a9f27f
-
Thomas Wouters added the comment:
Setting Py_SIZE of the bytes object is possible, but gross and not how you're
supposed to operate on bytes.
I'm also not entirely convinced lnotab isn't reused in ways it shouldn't. The
peephole optimizer already does gross thi
Change by Thomas Wouters :
--
keywords: +patch
pull_requests: +15701
pull_request: https://github.com/python/cpython/pull/16079
___
Python tracker
<https://bugs.python.org/issue38
Change by Thomas Wouters :
--
pull_requests: +15672
pull_request: https://github.com/python/cpython/pull/16050
___
Python tracker
<https://bugs.python.org/issue38
Thomas Wouters added the comment:
As mentioned in the PR (GH-15970), I don't think we should fix this bug. We
can, but it involves replacing PyCode_Optimize() (which is public but
undocumented, with confusing refcount effects) with a stub, and very careful
surgery on the code o
Thomas Wouters added the comment:
New changeset c9bc49c5f6e26a7c958307c2ac338951a7534d9a by T. Wouters (Christian
Heimes) in branch 'master':
bpo-34001: Fix test_ssl with LibreSSL (GH-13783)
https://github.com/python/cpython/commit/c9bc49c5f6e26a7c958307c2ac338951a7534d9a
-
Thomas Wouters added the comment:
Thanks, fix merged.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Thomas Wouters added the comment:
New changeset d126fbddc960afd93ff070bc34209be256152943 by T. Wouters (Miss
Islington (bot)) in branch '3.7':
bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15974)
https://github.com/python
Thomas Wouters added the comment:
New changeset 63eefc35674ec12ab4d00af4feaf21de4cb1c91c by T. Wouters (Miss
Islington (bot)) in branch '3.8':
bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15973)
https://github.com/python
Thomas Wouters added the comment:
New changeset 5209e586b7cac9a43b2c44349a26b1b0af06ead3 by T. Wouters (Daniel
Abrahamsson) in branch 'master':
bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330)
https://github.com/python
Change by Thomas Wouters :
--
pull_requests: +15603
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15970
___
Python tracker
<https://bugs.python.org/issu
Thomas Wouters added the comment:
There's also a bug where the optimizer may bail out on optimizing a code object
*after* updating the lnotab (the last 'goto exitUnchanged' in
Python/peephole.c). That bug has existed since Python 3.6, but it's not clear
to me how much t
New submission from Thomas Wouters :
The peephole optimizer in Python 2.7 and later (and probably a *lot* earlier)
has a bug where if the optimizer entirely optimizes away the last line(s) of a
function, the lnotab references invalid bytecode offsets:
>>> def f(cond1, cond2):
...
Thomas Wouters added the comment:
New changeset 580d2782f70f8e0bed7ec20abb03d740cb83b5da by T. Wouters (Gregory
P. Smith) in branch 'master':
bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490)
https://github.com/python/cpyt
Thomas Wouters added the comment:
New changeset 3f4db4a0bab073b768fae958e93288bd5d24eadd by T. Wouters (Gregory
P. Smith) in branch 'master':
bpo-28494: Test existing zipfile working behavior. (GH-15853)
https://github.com/python/cpython/commit/3f4db4a0bab073b768fae958e93288
Thomas Wouters added the comment:
New changeset a9b6033179b64b985394ad351501089a6a94fc9d by T. Wouters (Ben
Harper) in branch 'master':
bpo-36253: Remove use after free reference in ctypes test suite (GH-12257)
https://github.com/python/cpython/commit/a9b6033179b64b985394ad35150108
Thomas Wouters added the comment:
I don't think this should be backported to 3.7 at this point; if you disagree
feel free to reopen the bug.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python t
Thomas Wouters added the comment:
New changeset eb1bc48c74f4f8af88b5276729f9652201e46324 by T. Wouters (Miss
Islington (bot)) in branch '3.8':
bpo-37619: update_one_slot() should not ignore wrapper descriptors for wrong
type (GH-15838)
https://github.com/python/cpyt
Thomas Wouters added the comment:
New changeset 57ea33560662e0f20a3b0334bb20065771edf4da by T. Wouters (Jeroen
Demeyer) in branch 'master':
bpo-37619: update_one_slot() should not ignore wrapper descriptors for wrong
type (GH-14836)
https://github.com/python/cpyt
Thomas Wouters added the comment:
New changeset f1c19031fd5f4cf6faad539e30796b42954527db by T. Wouters (Benjamin
Peterson) in branch 'master':
bpo-38068: Clean up gettimeofday configure logic. (GH-15775)
https://github.com/python/cpython/commit/f1c19031fd5f4cf6faad539e30796b
New submission from Thomas Wouters :
New changeset 40a5313edfc18173d136bb5e19495880934b7d83 by T. Wouters (Dino
Viehland) in branch 'master':
bpo-38072: PEP-384 grpmodule (GH-15788)
https://github.com/python/cpython/commit/40a5313edfc18173d136bb5e19495880934b7d83
--
nosy:
New submission from Thomas Wouters :
New changeset bd0c7a12d9e28ce74bfc16244d7694aca906838c by T. Wouters (Dino
Viehland) in branch 'master':
bpo-38071: Make termios PEP-384 compatible (GH-15785)
https://github.com/python/cpython/commit/bd0c7a12d9e28ce74bfc16244d7694
Thomas Wouters added the comment:
New changeset a1ffad07195b8b976f8c371a92028240946d4e76 by T. Wouters (Dino
Viehland) in branch 'master':
bpo-38074: Make zlib extension module PEP-384 compatible (GH-15792)
https://github.com/python/cpython/commit/a1ffad07195b8b976f8c371a920282
Thomas Wouters added the comment:
New changeset 4f384af067d05b16a554bfd976934fca9f87a1cf by T. Wouters (Dino
Viehland) in branch 'master':
bpo-38076: Make struct module PEP-384 compatible (#15805)
https://github.com/python/cpython/commit/4f384af067d05b16a554bfd976934f
Thomas Wouters added the comment:
This doesn't feel like a change that's worth backporting to 3.8 at this point.
Do you agree? Is there anything left to do for this bug?
--
___
Python tracker
<https://bugs.python.o
Thomas Wouters added the comment:
New changeset 43c9731334470573209464b7f67914d386457efc by T. Wouters (Serhiy
Storchaka) in branch 'master':
bpo-38083: Minor improvements in asdl_c.py and Python-ast.c. (GH-15824)
https://github.com/python/cpyt
Thomas Wouters added the comment:
New changeset ccaea525885e41c5f1e566bb68698847faaa82ca by T. Wouters (Victor
Stinner) in branch '3.8':
Revert "bpo-33418: Add tp_clear for function object (GH-8058)" (GH-15826)
https://github.com/python/cpython/commit/ccaea525885e41c5f1e5
Thomas Wouters added the comment:
New changeset 92709a263e9cec0bc646ccc1ea051fc528800d8d by T. Wouters (Sergey
Fedoseev) in branch 'master':
bpo-37840: Fix handling of negative indices in bytearray_getitem() (GH-15250)
https://github.com/python/cpyt
Thomas Wouters added the comment:
New changeset 682107cf458578ee6bd92b7cc6862113034a4fad by T. Wouters (Zackery
Spytz) in branch 'master':
bpo-36279: Ensure os.wait3() rusage is initialized (GH-15111)
https://github.com/python/cpython/commit/682107cf458578ee6bd92b7cc68621
Thomas Wouters added the comment:
New changeset 3cbc23aa229bc5ec04845053df78eae5f54e0497 by T. Wouters (Greg
Price) in branch 'master':
bpo-37758: Cut always-constant conditionals on sys.maxunicode. (GH-15302)
https://github.com/python/cpython/commit/3cbc23aa229bc5ec04845053df78ea
Change by Thomas Wouters :
--
assignee: -> twouters
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python
Change by Thomas Wouters :
--
pull_requests: +15422
pull_request: https://github.com/python/cpython/pull/15769
___
Python tracker
<https://bugs.python.org/issue37
Thomas Wouters added the comment:
New changeset b4612f5d54aced5bc37f1b85bf50b4cafa2480f0 by T. Wouters in branch
'master':
bpo-37589: Add a few missing dependencies on .h files in the Makefile.
(GH-15757)
https://github.com/python/cpython/commit/b4612f5d54aced5bc37f1b85bf50b4
Change by Thomas Wouters :
--
keywords: +patch
pull_requests: +15410
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15757
___
Python tracker
<https://bugs.python.org/issu
Change by Thomas Wouters :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Thomas Wouters added the comment:
New changeset d9bf7f4198871132714cfe7d702baaa02206e9f1 by T. Wouters in branch
'2.7':
[2.7] bpo-36149 Fix potential use of uninitialized memory in cPickle (#12105)
https://github.com/python/cpython/commit/d9bf7f4198871132714cfe7d702baa
Thomas Wouters added the comment:
Ah, looks like I missed crypt_r getting added in 3.7. Sorry about that. Yes,
the error handling would be a behaviour change, a keyword argument may be a
good solution. As it is, crypt() returns None, throwing away the *reason* for
the failure (which is
New submission from Thomas Wouters :
(good first issue, I think.)
CPython currently uses a few functions that are thread-unsafe where thread-safe
version exist, at least in glibc (crypt() and ttyname(), at least). This isn't
an issue when looking at CPython in isolation because these
Change by Thomas Wouters :
--
keywords: +patch
pull_requests: +12112
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36149>
___
___
Py
New submission from Thomas Wouters :
There is a bug in cPickle that makes it use uninitialised memory when reading a
truncated pickle from a file (an actual C FILE*, not just any file-like
object). Using MemorySanitizer:
% ./python
Python 2.7.15 (default, redacted, redacted
Thomas Wouters added the comment:
This patch includes assertions that are easily triggered from user code:
https://bugs.python.org/issue35021
--
nosy: +twouters
___
Python tracker
<https://bugs.python.org/issue31
New submission from Thomas Wouters :
The fix for issue #31752 (changeset 5ef883b096895a84123760859f0f34ad37bf2277
for 2.7, as I ran into this while upgrading to 2.7.15) includes assertions that
are easily triggered from user code:
>>> import datetime, numpy
>>> datetime
Thomas Wouters added the comment:
New changeset 500a419a7a68c32650717b213f0f5ab0461bb16b by T. Wouters in branch
'3.6':
[3.6] bpo-32591: fix abort in _PyErr_WarnUnawaitedCoroutine during shutdown
(GH-5337) (#6536)
https://github.com/python/cpyt
Change by Thomas Wouters :
--
nosy: +ned.deily
priority: normal -> release blocker
___
Python tracker
<https://bugs.python.org/issue33497>
___
___
Python-
Change by Thomas Wouters :
--
pull_requests: +6232
___
Python tracker
<https://bugs.python.org/issue26153>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Thomas Wouters :
--
pull_requests: +6231
___
Python tracker
<https://bugs.python.org/issue32591>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Thomas Wouters :
--
pull_requests: +6213
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue26153>
___
___
Python-bugs-list mai
Thomas Wouters added the comment:
Looks like this was fixed in 3.7 by checking
PyThreadState_GET()->interp->modules before trying to use it. That leaves the
crash in 3.6 and earlier, though.
--
stage: patch review ->
___
Python tracke
Change by Thomas Wouters :
--
keywords: +patch
pull_requests: +6211
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue26153>
___
___
Py
Thomas Wouters added the comment:
We ran into this at work, with Python 3.6, where it involved extension types
with a reference to files, with the (open) files being deallocated during
interpreter exit and raising ResourceWarnings because of that. I tried to
create a simple reproducer and
Thomas Wouters added the comment:
Re: Petr: we can't expect extension module authors to retroactively fix
released modules. We can't even expect everyone to fix this for future
releases; moving away from globals (which may not be specific to the Python
extension module) may b
New submission from Thomas Wouters :
This is a continuation, of sorts, of issue16421; adding most of that issue's
audience to the noisy list.
When importing the same extension module under multiple names that share the
same basename, Python 3 will call the extension module's ini
Thomas Wouters added the comment:
FWIW, yes, this is because zipimport doesn't support ZIP64, and doesn't even
flag it as an error when the ZIP requires it. Instead it skips files; the ZIP64
format works by setting the fields that would overflow to the maximum value as
a signal tha
Thomas Wouters added the comment:
We do use Setup/Setup.local at Google (and have for many years now), and I find
it very useful. (FWIW, the 'we would use' comment in msg294174 was about the
new '*disabled*' feature, not about Setup files in general.) Avoiding local
chang
Changes by Thomas Wouters :
--
pull_requests: +1829
___
Python tracker
<http://bugs.python.org/issue29941>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Thomas Wouters :
--
pull_requests: +1821
___
Python tracker
<http://bugs.python.org/issue29941>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Wouters added the comment:
This feature would also be nice to have for Python at Google: we want builds to
be as reproducible as possible, avoid third-party libraries even when they are
available on the build system, and avoid certain extension modules in any form.
We currently delete
Changes by Thomas Wouters :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Thomas Wouters :
--
resolution: -> out of date
___
Python tracker
<http://bugs.python.org/issue17411>
___
___
Python-bugs-list mailing list
Un
Changes by Thomas Wouters :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue17411>
___
___
Python-bugs-list
Changes by Thomas Wouters :
--
resolution: -> out of date
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Thomas Wouters added the comment:
Well, what should the zipfile module do when you open a broken zipfile for
appending in the first place? :) There are many ways in which it could be
broken. I don't think a zipfile with incorrect offsets should be treated any
differently.
(I don't
Thomas Wouters added the comment:
... and yes, the changes to issue 26293 should be reverted; the changes
attached to this issue merely revert part of issue 26293's changes.
--
___
Python tracker
<http://bugs.python.org/is
Thomas Wouters added the comment:
The spec isn't very explicit about it, yes, but it does say this:
4.4.16 relative offset of local header: (4 bytes)
This is the offset from the start of the first disk on
which this file appears, to where the local header should
be
Thomas Wouters added the comment:
For the record, this new behaviour is wrong. It's not immediately obvious from
the ZIP spec, but offsets have to be from the start of the file, not the
archive, or ZIP64 can't work. And yes, that means you can't blindly concatenate
ZIP files
Thomas Wouters added the comment:
Eh, commit a00c3fd12d421e41b769debd7df717d17b0deed5 wasn't supposed to affect
any behaviour in release builds, just in non-debug builds *with asserts
enabled*, and only in making them build.
(There is a bug in that commit that was fixed right after, c
Thomas Wouters added the comment:
PR #980 adds a configure flag (--with-assertions), defaulting to the old
behaviour (no assertions by default, except when --with-pydebug is passed). I
would like to backport that to (at least) 3.6 so that we can set up a buildbot
with it, to prevent
Changes by Thomas Wouters :
--
pull_requests: +1153
___
Python tracker
<http://bugs.python.org/issue29941>
___
___
Python-bugs-list mailing list
Unsubscribe:
1 - 100 of 251 matches
Mail list logo