New submission from Tom E :
When compiling CPython 3.10 on Ubuntu 22.04, with GCC 11.2.0, it compiles
successfully, but when trying to run it it just gives Illegal Instrution (Core
Dumped). But when I build 3.9.9 its just fine... CPU is Intel Core i5-10400.
--
messages: 407330
nosy
Tom E added the comment:
Not yet... my configure flags are ./configure CFLAGS="-O3 -mtune=corei7-avx
-march=corei7-avx" LDFLAGS="-L/usr/local/ssl/lib64" CPP=cpp CXX=g++
--with-openssl=/usr/local/ssl --enable-optimizat
Tom E added the comment:
its defos fine because ive tried it without the CFLAGS and same error
--
___
Python tracker
<https://bugs.python.org/issue45
Tom E added the comment:
Well I updated the kernel to 5.15.0 and used my succeeding 3.9.9 build and now
it works.
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Tom Augspurger :
--
keywords: +patch
pull_requests: +17703
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18330
___
Python tracker
<https://bugs.python.org/issu
New submission from Tom Pohl :
Currently, the documentation of asyncio.wait gives the impression that using
FIRST_COMPLETED guarantees the completion of no more than one task. In reality,
the number of completed task after asyncio.wait can be larger than one.
While this behavior (exactly one
New submission from Tom Christie :
Raising an issue that's impacting us on `httpx`.
It appears that in some cases SSL unwrapping can cause `.wait_closed()` to hang
indefinately.
Trio are particularly careful to work around this case, and have an extensive
comment on it:
https://githu
Tom Middleton added the comment:
While I agree that it shouldn't be imposed on changing previous code, changing
the documentation isn't changing the previous code it is encouraging future
code. I think that the documentation should have a caveat. I'm seeing a lot of
new cod
New submission from Tom Birch :
After https://github.com/python/cpython/pull/12946, there exists an issue on
MacOS due to the two-level namespace for symbol resolution. If a C extension
links against libpython.dylib, all symbols dependencies from the Python C API
will be bound to libpython
Tom Birch added the comment:
> Does this affect unix-style builds with --enable-shared or framework builds?
I believe the answer is no, since in both those cases the `python` executable
doesn't contain definitions for any of the libpython symbols. In my testing I
was using a pytho
New submission from Tom Hale :
The os.path and Path implementations of samefile() do not allow comparisons of
symbolic links:
% mkdir empty && chdir empty
% ln -s non-existant broken
% ln broken lnbroken
% ls -i # Show inode numbers
19325632 broken@ 19325632 lnbroken@
% Yup, they
Tom Hale added the comment:
In summary:
The underlying os.stat() takes a follow_symlinks=True parameter but it can't be
set to False when trying to samefile() two symbolic links.
--
title: Add follow_symlinks=True to {os.path,Path}.samefile -> Add
follow_symlinks=True para
Tom Hale added the comment:
Related issue found in testing:
bpo-42778 Add follow_symlinks=True parameter to both os.path.samefile() and
Path.samefile()
--
___
Python tracker
<https://bugs.python.org/issue36
Change by Tom Goddard :
--
nosy: +tomgoddard
___
Python tracker
<https://bugs.python.org/issue42514>
___
___
Python-bugs-list mailing list
Unsubscribe:
Tom Birch added the comment:
Steve Dower: this issue is independent of distutils, reopening
--
components: -Distutils
status: closed -> open
___
Python tracker
<https://bugs.python.org/issu
Change by Tom Birch :
--
components: +C API, Extension Modules
___
Python tracker
<https://bugs.python.org/issue42616>
___
___
Python-bugs-list mailing list
Unsub
Tom Dougherty added the comment:
"erase all files"
--
nosy: +dtom9424
type: crash -> security
___
Python tracker
<https://bugs.python.org/issue43292>
___
___
New submission from Tom Hale :
Here is a minimal test case:
==
#!/bin/bash
cd /tmp || exit 1
dir=test-copy_tree
src=$dir/src
dst=$dir/dst
mkdir -p "$src"
touch "$src"/file
ln -s file "$src/symlink"
pyth
Tom Hale added the comment:
Related:
bpo-41134 distutils.dir_util.copy_tree FileExistsError when updating symlinks
WIP update:
I am just about to ask for feedback on my proposed solution at
core-mentors...@python.org
--
title: Please add race-free os.link and os.symlink wrapper
New submission from Tom Forbes :
`functools.lru_cache` has a maxsize=128 default for all functions.
If a function has no arguments then this maxsize default is redundant and
should be set to `maxsize=None`:
```
@functools.lru_cache()
def function_with_no_args():
pass
```
Currently you
Change by Tom Hale :
--
keywords: +patch
pull_requests: +20651
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14464
___
Python tracker
<https://bugs.python.org/issu
New submission from Tom Gringauz :
`contextlib.nullcontext` cannot be used with async conetext managers, because
it implements only `__enter__` and `__exit__`, and doesn't implement
`__aenter__` and `__aexit__`.
--
components: Library (Lib), asyncio
messages: 375346
nosy: asv
Change by Tom Gringauz :
--
keywords: +patch
pull_requests: +20995
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21870
___
Python tracker
<https://bugs.python.org/issu
New submission from Tom Most :
Given a class:
class Foo:
def bar(self):
pass
And an autospec'd mock of it:
foo_mock = mock.create_autospec(spec=Foo)
The result of `asyncio.iscoroutinefunction()` differs:
asyncio.iscoroutinefunction(Foo.bar)# -&g
Tom Most added the comment:
Note that this can interact poorly with AsyncMock, introduced in Python 3.8,
because it causes a mock generated from a mock produces an object with async
methods rather than regular ones. In Python 3.7 chaining mocks like this would
produce regular methods. (This
New submission from Tom Karzes :
If I create a sufficiently long chain of generators, I encounter a segmentation
fault. For example, the following works as expected:
% ./gen_bug3.py 1
1
%
But for sufficiently larger chain lengths, it seg faults:
% ./gen_bug3.py
Tom Karzes added the comment:
That is a good point, except I don't believe the value needed to expose this
bug is a "too-high limit" (as the documentation calls it). I set it to 100100
for convenience, but in practice even a value of 17000 is more than enough to
expose the b
Tom Karzes added the comment:
I tested this some more, and one thing became clear that I hadn't realized
before: This bug has nothing to do specifically with generators (as I had
thought), but is in fact due purely to the recursion limit.
I created a recursive test program that doesn&
Tom Karzes added the comment:
Thanks Tim and Terry. Stackless Python sounds interesting. It's nice to know
that others had the same idea I did, although I tend to shy away from exotic
variants since they tend to be less well-supported. Any chance that CPython
will go stackless at
New submission from Tom Kent :
According to the documentation
https://docs.python.org/3/using/windows.html#windows-embeddable
> When extracted, the embedded distribution is (almost) fully isolated
> from the user’s system, including environment variables, system registry
> sett
Tom Kent added the comment:
I'm not sure I agree with that. One possible use-case is to package it along
with another program to use the interpreter. In this case they could use the
other program's native language features (e.g. .Net's Process.Start(), Win32
API's C
Tom Kent added the comment:
A couple things...
>> One possible use-case is to package it along with another program to use the
>> interpreter.
> This is the primary use case. If you're doing something else with it, you're
> probably misusing it :)
Interesting,
Tom Kent added the comment:
Christian's message indicated that a workaround was possible by adding
mozilla's certs to windows cert store.
I'm sure there are sysadmins who will really hate this idea, but I've
successfully implemented it in a windows docker image, an
New submission from Tom Gringauz :
Related to this PR https://github.com/python/cpython/pull/21545
--
components: Library (Lib)
messages: 381296
nosy: tomgrin10
priority: normal
severity: normal
status: open
title: aclosing was not added to __all__ in contextlib
Change by Tom Gringauz :
--
keywords: +patch
pull_requests: +22249
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23356
___
Python tracker
<https://bugs.python.org/issu
Change by Tom Gringauz :
--
nosy: tomgrin10
priority: normal
severity: normal
status: open
title: Add a whatsnew entry about async contextlib.nullcontext
___
Python tracker
<https://bugs.python.org/issue42
Change by Tom Gringauz :
--
keywords: +patch
pull_requests: +22250
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23357
___
Python tracker
<https://bugs.python.org/issu
tom kel added the comment:
I changed the patch and made it a little bit better.
--
versions: +Python 3.1, Python 3.4 -Python 2.7
Added file: http://bugs.python.org/file24334/2012-1-26.diff
___
Python tracker
<http://bugs.python.org/issue13
New submission from Tom Christie :
json.dumps() documentation is slightly incorrect.
http://docs.python.org/library/json.html#json.dumps
Reads:
"If ensure_ascii is False, then the return value will be a unicode instance."
Should read:
"If ensure_ascii is False, then the r
Tom Christiansen added the comment:
I would encourage you to look at the Perl CPAN module Unicode::LineBreak,
which fully implements tr11. It includes Unicode::GCString, a class
that has a columns() method to determine the print columns. This is very
fancy in the case of Asian widths, but of
Tom Christiansen added the comment:
>Martin v. L=C3=B6wis added the comment:
>> Martin, I think you meant to write "if w =3D=3D 'A':".
>> Some very common characters have ambiguous widths though (e.g. the Greek =
>alphabet), so you can't just raise
Tom Christiansen added the comment:
>Martin v. L=C3=B6wis added the comment:
>> I would encourage you to look at the Perl CPAN module Unicode::LineBreak,
>> which fully implements tr11.
>Thanks for the pointer!
>> If you'd like, I can show you a program t
Tom Bachmann added the comment:
Hello,
[this is my first bug report, so I'm sorry if I'm not adhering to some
conventions]
in what versions of python is this supposed to be fixed? Consider:
% python
Python 2.7.2+ (default, Nov 30 2011, 19:22:03)
[GCC 4.6.2] on linux2
Tom Bachmann added the comment:
I see. Thank you.
On 12.04.2012 16:08, R. David Murray wrote:
>
> R. David Murray added the comment:
>
> It is fixed in Python3. Apparently Raymond was wrong about it having been
> fixed earlier (or perhaps he was referring to the unicode bei
Tom Christie added the comment:
> From my understanding, the correct code should close all transports and wait
> for their connection_lost() callbacks before closing the loop.
Ideally, yes, although we should be able to expect that an SSL connection that
hasn't been gracef
Tom Christie added the comment:
Right, and `requests` *does* provide both those styles.
The point more being that *not* having closed the transport at the point of
exit shouldn't end up raising a hard error. It doesn't raise errors in
sync-land, and it shouldn't do s
Change by Tom Hale :
--
title: Allow os.symlink(src, target, force=True) to prevent race conditions ->
Race conditions due to os.link and os.symlink POSIX specification
___
Python tracker
<https://bugs.python.org/issu
Tom Hale added the comment:
Serhiy wrote
> Detected problem is better than non-detected problem.
I agree. I also assert that no problem (via a shutil wrapper) is better than a
detected problem which may not be handled.
While it's up to the programmer to handle exceptions, it's
Tom Hale added the comment:
I've created a PR here:
https://github.com/python/cpython/pull/14464
Only shutil.symlink is currently implemented.
Feedback sought from Windows users.
@Michael.Felt please note that `overwrite=False` is the default.
@taleinat I hope that the new implement
New submission from tom kronmiller:
It is difficult to learn what decorators there are because there is no single
index which lists all of them (at least, I have been unable to find one).
Instead, one must stumble across them while reading library module
documentation. An index listing the
tom kronmiller added the comment:
I would not object if there was an index which contained the decorators among
other things, but I have found it difficult in practice to discover things like
@staticmethod and @contextmanager. Just as I browse the index of library
modules to for insight as
New submission from Tom Forbes:
The builtin http.server module does not support HTTP keep-alive when sending a
response without a content-length. This causes any clients to hang waiting on
more response data, while the server hangs waiting for the client to send
another request. This is
Tom Forbes added the comment:
Django recently switched to HTTP 1.1 on their development server, and it works
fine as long as the middleware is included that generates the content length.
Using a 'bare' Django project with no middleware the server will just hang.
It sounds like the e
Changes by Tom Viner :
--
nosy: +tomviner
___
Python tracker
<http://bugs.python.org/issue31193>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Tom Viner :
--
nosy: +tomviner
___
Python tracker
<http://bugs.python.org/issue31196>
___
___
Python-bugs-list mailing list
Unsubscribe:
Tom Dalton added the comment:
I've just come across this too, so would be great if the patch can be
progressed.
--
nosy: +tom.dalton.fanduel
___
Python tracker
<https://bugs.python.org/is
Tom Dalton added the comment:
Here's a minimal example so my comment is not totally vacuous:
```
import unittest
from unittest import mock
class Foo:
@classmethod
def bar(cls, baz):
pass
class TestFoo(unittest.TestCase):
def test_bar(self):
Tom Wilson added the comment:
Hi there. I get this behavior as well, although only in a venv.
Main Virtual
v3.7.1:260ec2c36a CompletesCompletes
v3.7.2:9a3ffc0492 Completes Hangs
Some other details of my setup:
- Windows 10 Pro, Version 1803 (OS
Tom Wilson added the comment:
In case this is a clue - the attached script "mp_hang2.py" adds a call to
qsize() and uses only a single consumer. When I run it from the command line it
does one of two things:
Option 1:
C:\TEMP\Py-3.7.2b-Venv\Scripts>.\python.exe
"C
Tom Goddard added the comment:
This Mac Tk bug was supposedly fixed in 2016 or 2017. Details are in the
following Tk ticket.
http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7
The previous URL to the Tk ticket no longer works. In case the above URL also
goes bad, the id number
New submission from Tom Hale :
I cannot find a race-condition-free way to force overwrite an existing symlink.
os.symlink() requires that the target does not exist, meaning that it could be
created via race condition the two workaround solutions that I've seen:
1. Unlink existing sy
Tom Hale added the comment:
The most correct work-around I believe exists is:
(updates at: https://stackoverflow.com/a/55742015/5353461)
def symlink_force(target, link_name):
'''
Create a symbolic link pointing to target named link_name.
Overwri
New submission from Tom Christie :
If an asyncio SSL connection is left open (eg. any kind of keep-alive
connection) then after closing the event loop, an exception will be raised...
Python:
```
import asyncio
import ssl
import certifi
async def f():
ssl_context
Tom Christie added the comment:
This appears somewhat related: https://bugs.python.org/issue34506
As it *also* logs exceptions occuring during `_fatal_error` and `_force_close`.
--
___
Python tracker
<https://bugs.python.org/issue36
Tom Hale added the comment:
Yes, but by default (because of difficulty) people won't check for this case:
1. I delete existing symlink in order to recreate it
2. Attacker watching symlink finds it deleted and recreates it
3. I try to create symlink, and an unexpected exception is r
Tom Hale added the comment:
Thanks Toshio Kuratomi, I raised it on the mailing list at:
https://code.activestate.com/lists/python-ideas/55992/
--
___
Python tracker
<https://bugs.python.org/issue36
Change by Tom Hale :
--
type: security -> enhancement
___
Python tracker
<https://bugs.python.org/issue36656>
___
___
Python-bugs-list mailing list
Unsubscrib
Tom Hines added the comment:
bump
--
___
Python tracker
<https://bugs.python.org/issue10685>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
New submission from Tom Christie :
The `contextvars` documentation, at
https://docs.python.org/3.7/library/contextvars.html starts with the following:
"This module provides APIs to manage, store, and access non-local state."
I assume that must be a documentation bug, right. The mo
Tom Christie added the comment:
Refs: https://github.com/python/cpython/pull/6617
--
___
Python tracker
<https://bugs.python.org/issue33366>
___
___
Python-bug
Tom Grigg added the comment:
I beleive this is caused by https://bugs.python.org/issue27987 in combination
with GCC 8.
Florian Weimer proposed a patch which is included in the Fedora build:
https://src.fedoraproject.org/cgit/rpms/python2.git/tree/00293-fix-gc-alignment.patch
It would be
Change by Tom Grigg :
--
nosy: +fweimer
___
Python tracker
<https://bugs.python.org/issue33374>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Tom Grigg :
--
nosy: +tgrigg
___
Python tracker
<https://bugs.python.org/issue27987>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Tom Floyer :
--
keywords: +patch
pull_requests: +4095
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue31811>
___
_
Change by Tom Floyer :
--
pull_requests: +4103
___
Python tracker
<https://bugs.python.org/issue31810>
___
___
Python-bugs-list mailing list
Unsubscribe:
Tom Floyer added the comment:
I've added those keywords to documentation master branch.
--
nosy: +tomfloyer
pull_requests: +4104
___
Python tracker
<https://bugs.python.org/is
Change by Tom Viner :
--
nosy: +tomviner
___
Python tracker
<https://bugs.python.org/issue28140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Tom Floyer :
--
pull_requests: -4095
___
Python tracker
<https://bugs.python.org/issue31811>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Tom Floyer :
--
pull_requests: +4299
___
Python tracker
<https://bugs.python.org/issue31810>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Tom Floyer :
--
pull_requests: +4300
___
Python tracker
<https://bugs.python.org/issue31810>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Tom Hale :
This comes from a question I raised on StackOverflow:
https://stackoverflow.com/q/47218313/5353461
I've copied the text
New submission from Tom Cook :
If nothing connects to it, `multiprocessing.connection.Listener.accept()` will
block forever with no good way to interrupt it.
Supposing that a thread implements a loop like this:
def run(self):
l = Listener(socket_path, 'AF_UNIX')
Tom Cook added the comment:
The same goes for `Connection.recv()`, as in the sample code another case where
the thread will never terminate is when a `Client` is connected to the socket
but never sends any messages; in this case, the call to `recv()` will block
forever. There is no way at
Tom Karzes added the comment:
I'm dismayed to see that this bug was reported in 2010, yet as of January 2018
has not yet been fixed. This option parsing behavior is contrary to Unix
option passing conventions. I certainly don't mind enhancements, but the last
thing that should
Tom Karzes added the comment:
Here's my situation: I originally used optparse, although some of the guys I
worked with at the time were starting to use argparse. At first I thought, I'm
sticking with optparse, it's more standard than argparse and probably better
supporte
Tom Viner added the comment:
I am looking at this, as part of the EuroPython 2018 sprint.
--
___
Python tracker
<https://bugs.python.org/issue28140>
___
___
Change by Tom Viner :
--
keywords: +patch
pull_requests: +8053
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue28140>
___
___
Python-
New submission from Tom Berry :
The listed installation location is incorrect in the 02 Sep 18 release of the
tutorial. It shows the default install path as C:\python36 vice C:\Program
Files\python37.
This may be related to an installer issue, as installing single-user places the
program
New submission from Tom Dawes :
re.finditer appears to fail to match within the first 7 characters in a string
when re.MULTILINE is used:
>>> REGEX = re.compile("y")
>>> [list(m.start() for m in REGEX.finditer("{}y".format("x
Tom Dawes added the comment:
Please ignore, re.finditer and REGEX.finditer aren't the same. I was passing
re.MULTILINE (= 8) to endPos.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python t
New submission from Tom Ashley :
Not sure if this goes in core or modules.
There is an inconsistency in the output of the attached script. From the docs I
read it's supposed to have the behavior of:
"If something happens to one of the worker processes to cause it to exit
unexpec
Tom Brown added the comment:
I found this work-around useful https://stackoverflow.com/a/32782927
--
nosy: +Tom.Brown
___
Python tracker
<https://bugs.python.org/issue12
Changes by Tom Tromey :
--
nosy: +tromey
___
Python tracker
<http://bugs.python.org/issue18213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Tom Prince added the comment:
> "this package performs heavy monkey-patching of distutils to make it
use the system's ssh command."
> I don't think this bodes well for immediate inclusion, especially in
a bugfix release.
It only needs monkey-patching to convince dis
Tom Pinckney added the comment:
FWIW, clang from Xcode 4.3.2 build 4E2002 w/ command line tools built
everything fine for me too (i.e., ./configure CC=clang).
LM-SJN-00377886:cpython tom$ uname -a
Darwin LM-SJN-00377886 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41
PST 2012
Tom Pinckney added the comment:
What if this gzip decompression was optional and controlled via a flag or
handler instead of making it automagic?
It's not entirely trivial to implement so it is nice to have the option of this
happening automatically if one wishes.
Then, the caller wou
Tom Pinckney added the comment:
Looking at the current docs for 3.3, it looks like there are a bunch of other
ways that the docs could be clarified:
1) Proper documentation of the complete profile.Profile() and
cProfile.Profile() interfaces.
2) Adding other examples to the quick start
Tom Pinckney added the comment:
I took a stab at updating the docs based on the current profiler source. See
attached patch for a first draft.
This is my first doc patch so would appreciate any feedback on style and
substance of my changes.
I tried to document more of the modules (for
New submission from Tom Tromey:
In gdb we supply a class whose nb_int method can throw
an exception.
A user wrote code like this:
return '%x' % value
... where "value" was an instance of this class.
This caused funny exception behavior later on.
You can see the origina
Tom Tromey added the comment:
Here is a patch that includes a test case.
The test fails before the stringobject.c patch is applied,
and passes after.
--
Added file: http://bugs.python.org/file26629/P
___
Python tracker
<http://bugs.python.
201 - 300 of 422 matches
Mail list logo