New submission from Chris Fernald :
A fix was made to unify handling of the trailing slash in TarFile.getmember
related to https://bugs.python.org/issue21987. This change fixed the <100
character case, but made it so directories over 100 character which come from a
tar file can no longer
Chris Barker added the comment:
Yes -- it was on me years ago to do this.
Honestly, I haven't done it yet because I lost the momentum of PyCon, and I
don't personally use unittest at all anyway.
But I still think it's a good idea, and I'd like to keep it open with the
u
Chris added the comment:
found this issue while googling the error. Also having the same problem with
as_bytes() breaking on non-ascii characters.
I've tried policy=policy.default.clone(utf8=True) but it gives the same error.
My sample.py file attached contains a string sample
Chris Jerdonek added the comment:
For future reference, with Andrew's change merged above, the traceback for the
example snippet in my message above:
https://bugs.python.org/issue45390#msg403570
is now the following. Observe that (1) the call to sleep() continues to be
present, b
Chris Jerdonek added the comment:
I don't really understand all the hate around the idea of a cancel message. One
reason it's useful is that it provides a simple way to say *why* something is
being cancelled or *what* is cancelling it. It provides additional context to
the excepti
Chris Jerdonek added the comment:
Andrew, the approach I described would I feel be much better. It would result
in more concise, less verbose tracebacks, as opposed to more verbose -- not
just because the message won't be repeated, but also because it eliminates the
unneeded creati
Chris Jerdonek added the comment:
> I'm not sure yet (if anything I'd need it for a task, not a future).
(By future, I also meant task, as task inherits from future.) For now, I think
it would be safer to get the message from the CancelledError, if possible,
since how it gets t
Chris Jerdonek added the comment:
> I note that there is no documented way to retrieve the cancel message
Does retrieving it from the CancelledError that is bubbling up suffice? Or do
you need to be able to obtain it from the future object?
--
nosy: +chris.jerdo
Chris Larson added the comment:
Has there been any work/progress on this? Alternatively, what suggested work
around/mitigations are suggested?
--
nosy: +cklarson
___
Python tracker
<https://bugs.python.org/issue13
Chris Drake added the comment:
So it looks like a dependency error in the installer then?
It obviously makes no sense for pip to required before the python installer can
work - chicken-and-egg issue - the installer should install what it needs of
course, which I guess includes pip if that
New submission from Chris Drake :
See https://github.com/python/pythondotorg/issues/1774#issuecomment-1025250329
--
components: macOS
messages: 412257
nosy: cryptophoto, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Instructions do not work
versions
Chris Satterlee added the comment:
FYI, it appears that 8.6.11 works ok with MacOS 12.1 (released on 13-Dec-2021).
8.6.12 also works with MacOS 12.1. I have not tested either extensively,
however.
--
nosy: +csatt
___
Python tracker
<ht
Change by Chris Roberts :
--
nosy: +nasageek
___
Python tracker
<https://bugs.python.org/issue36225>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Webb :
Removed file: https://bugs.python.org/file17945/paths.patch
___
Python tracker
<https://bugs.python.org/issue1653457>
___
___
Python-bugs-list m
Chris Webb added the comment:
Irit Katriel added the comment:
> getpath.c has been rewritten (see Issue45582). reduce is no longer there.
Gosh, this is one I originally reported back in the late 1990s and then
again mid-2000s! I've carried a patch in my distribution to make pytho
Change by Chris Wesseling :
--
nosy: -CharString, CharString
___
Python tracker
<https://bugs.python.org/issue45664>
___
___
Python-bugs-list mailing list
Unsub
Chris Eykamp added the comment:
If we decide that this is a tkinter bug (and that the Python part is working
properly), does that mean that we close this ticket and rely on the upstream
provider to fix the problem? I don't know how jurisdiction works with core
libraries shipped with P
Chris Eykamp added the comment:
Thanks for the clarification. I don't want to belabor the point, but if you
observe what happens as you hit tab and cycle through the widgets, the way the
color changes cannot be intended behavior, and makes no sense from any rational
UI perspective.
Chris Eykamp added the comment:
The behavior I described is definitely a bug, though it may be (and I suspect
is) Windows specific. You may also be right that the problem is upstream, but
please don't declare this "not a bug" until you've tested it on Windows.
-
New submission from Chris Eykamp :
Attached is a slightly modifed example of the code sample in Bryan Oakley's
response to:
https://stackoverflow.com/questions/30337351/how-can-i-ensure-my-ttk-entrys-invalid-state-isnt-cleared-when-it-loses-focus
I have modified it by changing the styl
Chris Eykamp added the comment:
I'll add that when the red text incorrectly turns black, on my display, I can
see a very subtle red halo, as if the text is being printed first as red, then
as black in a second pass.
--
___
Python tracker
&
Change by Chris Wesseling :
--
nosy: +CharString
nosy_count: 6.0 -> 7.0
pull_requests: +27728
pull_request: https://github.com/python/cpython/pull/29478
___
Python tracker
<https://bugs.python.org/issu
Change by Chris Wesseling :
--
pull_requests: +27729
pull_request: https://github.com/python/cpython/pull/29478
___
Python tracker
<https://bugs.python.org/issue45
Chris Wesseling added the comment:
@Remi
I left the current behaviour for --json-lines untouched, on purpose.
My reasoning was that the json-lines format is often seen in JSON streaming,
and I didn't want to break the case where the input is an endless stream from
stdin or a named pipe
Chris Jerdonek added the comment:
Since issue 38323 is still open, I think you should just comment on that
instead of creating a new issue.
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue45
Change by Chris Wesseling :
--
pull_requests: +27577
pull_request: https://github.com/python/cpython/pull/29273
___
Python tracker
<https://bugs.python.org/issue45
Change by Chris Wesseling :
--
nosy: +CharString, CharString
nosy_count: 4.0 -> 5.0
pull_requests: +27569, 27570
pull_request: https://github.com/python/cpython/pull/29273
___
Python tracker
<https://bugs.python.org/issu
Change by Chris Wesseling :
--
nosy: +CharString
nosy_count: 4.0 -> 5.0
pull_requests: +27569
pull_request: https://github.com/python/cpython/pull/29273
___
Python tracker
<https://bugs.python.org/issu
Change by Chris Wesseling :
--
pull_requests: +27537
pull_request: https://github.com/python/cpython/pull/29273
___
Python tracker
<https://bugs.python.org/issue45
Change by Chris Wesseling :
--
keywords: +patch
pull_requests: +27532
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29269
___
Python tracker
<https://bugs.python.org/issu
New submission from Chris Wesseling :
json.tool is very cute and handy for making json readable.
But rewriting a file in place requires tools like sponge (on POSIX) or a
tmpfile, because
$ python -m json.tool foo.json foo.json
results in an empty foo.json.
I propose soaking up the infile
Chris Meyer added the comment:
Is there a way to reproduce this issue? I run the following code in Python 3.9
and it works as expected (prints "xyz" twice).
import asyncio
import gc
async def xyz():
print("xyz")
event_loop = asyncio.get_event_loop()
event_loop.c
Chris Meyer added the comment:
This looks like it a regression specific to Python 3.9.7 and has been fixed.
https://bugs.python.org/issue45081
https://github.com/python/cpython/pull/28132.
--
resolution: -> duplicate
stage: -> resolved
status: open -&g
New submission from Chris Meyer :
If I make a explicit subclass of a protocol that also inherits from a mixin and
calls super() in order to initialize the mixin, I get the "Protocols cannot be
instantiated" exception.
This case arises when having a hierarchy of both protocols an
Chris Jerdonek added the comment:
Here's a simplification of Marco's snippet to focus the discussion.
import asyncio
async def job():
# raise RuntimeError('error!')
await asyncio.sleep(5)
async def main():
task = asyncio.create_task(job())
a
Chris Jerdonek added the comment:
I still don't see you calling asyncio.Task.exception() in your new attachment...
--
___
Python tracker
<https://bugs.python.org/is
Chris Jerdonek added the comment:
> 2) Now: if I re-raise the asyncio.CancelledError as-is, I lose the message,
if I call the `asyncio.Task.exception()` function.
Re-raise asyncio.CancelledError where? (And what do you mean by "re-raise"?)
Call asyncio.Task.exception() where? Th
Chris Jerdonek added the comment:
> But, once the asyncio.Task is cancelled, is impossible to retrieve that
> original asyncio.CancelledError(msg) exception with the message, because it
> seems that *a new* asyncio.CancelledError() [without the message] is raised
> when asyncio
New submission from Chris Hills :
Similar to https://bugs.python.org/issue43466 for openssl, please add a
configure option to set rpath for sqlite3.
--with-sqlite-rpath=
Ideally, when any dpeendency is discovered with pkg-config, the correct rpath
should be set, but this would be a breaking
Chris Hills added the comment:
I tested this both with and without LDFLAGS="-Wl,-rpath
-Wl,/home/chaz/.local/local/python3.10.0/lib", and in both cases this patch
works as expected. Thank you!
--
nosy: +chaz6
___
Python track
Chris Hills added the comment:
If I set LDFLAGS as with previous versions, it works as expected. I do not know
if it is related, but I noticed that by default rpath does not get set for the
files in DESTDIR/bin/* (e.g. python3.10 or pip3.10) hence the inclusion of
/home/chaz/.local/local
Chris Hills added the comment:
The new behaviour seems broken on my system.
$ PYTHON_VERSION=3.10.0
$
PKG_CONFIG_PATH="/home/chaz/.local/local/sqlite3/lib/pkgconfig:/home/chaz/.local/local/openssl3/lib64/pkgconfig"
$ LLVM_PROFDATA=/home/chaz/.local/local/clang+llvm/bin/llvm-p
Chris Jerdonek added the comment:
Or frame_info (more readable), since FrameSummary is proposed to be
"Information about a single frame from a traceback."
--
___
Python tracker
<https://bugs.python.o
Chris Jerdonek added the comment:
I was suggesting keeping more similarity between FrameSummary and StackSummary
in addition to differentiating frame from FrameSummary. Since stack is used for
StackSummary, frame_sum is more similar than f_summary while still providing
the differentiation
Chris Jerdonek added the comment:
It might be good to have consistency with what will be used for StackSummary so
two different approaches to naming aren't used.
By the way, frame_sum is another possibility since I see frame_gen being used.
--
nosy: +chris.jer
Chris Jerdonek added the comment:
I agree with Serhiy that this API isn't necessarily the right one. It's just
what happens to be there now. Also, we're still not clear on our stance towards
cycles (see the issue25782 discussion). (Maybe the exposed version should
result in
Chris Jerdonek added the comment:
FYI, I tried myself, and setting PYTHONHASHSEED didn't make the failures
deterministic.
--
___
Python tracker
<https://bugs.python.org/is
Chris Jerdonek added the comment:
Last question: might trying different values of PYTHONHASHSEED help?
--
___
Python tracker
<https://bugs.python.org/issue44
Chris Jerdonek added the comment:
"How does this explain it not being non-deterministic on" -> "How does this
explain it not being deterministic on"
--
___
Python tracker
<https://
Chris Jerdonek added the comment:
> Maybe it's a very precise threshold which triggers the issue. Between Linux
> and macOS, the site module executes different code paths which produce
> different GC counters.
> Sometimes, the GC must happen in a very precise line, one
Chris Jerdonek added the comment:
Out of curiosity, is the failure deterministic in environments where it fails?
If not, what is the source of the indeterminism -- some kind of race condition
or something else?
--
nosy: +chris.jerdonek
___
Python
Chris Jerdonek added the comment:
> Preventing creation of the loop will fix all other code that iterate the
> __context__ chain.
We can still do / discuss that following Irit's proposed change, which is an
improvement, IMO.
--
___
Chris Jerdonek added the comment:
Okay, I'll close the issue and update it to reflect that it was restricted to
the narrower, originally reported issue.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
title: exception chain cycles cau
Chris Jerdonek added the comment:
> No, I meant C -> A -> B -> C -> A
Oh, good. I support your reasoning and approach, by the way.
--
___
Python tracker
<https://bugs.pyt
Chris Jerdonek added the comment:
> the result is C -> A -> B -> C
Did you mean C -> A -> B?
By the way, if you applied to this example your reasoning that PyErr_SetObject
shouldn't try to fix user bugs, should this example instead be C -> A -> B -> C
-&g
Chris Jerdonek added the comment:
That's okay. I didn't mean to suggest I thought your patch needed to handle
that case or that we needed to decide it before moving forward. I was just
wondering what would happen with your patch with it, even if it means a hang.
Or were you s
Chris Jerdonek added the comment:
Yes, that seems like a good approach. And how about with Serhiy's example from
above?
> If there is a chain A -> B -> C -> D -> E, after assignment C.__context__ = A
> ...
--
___
Chris Jerdonek added the comment:
Thanks, Irit. Can you show how your patch behaves using some representative
examples (maybe using arrow examples from above)? And if it behaves differently
from Dennis's patch, can you include an example showing that
Chris Withers added the comment:
New changeset abb08e3af6aa19928007a349592e95e6de38467f by Jack DeVries in
branch 'main':
bpo-44534: fix wording and docstring sync in unittest.Mock GH27000
https://github.com/python/cpython/commit/abb08e3af6aa19928007a349592e95e6de38467f
-
Chris Trent added the comment:
To put it bluntly, having me submit patches to that section of the docs is just
about the last thing you want. I know precious little about TKinter, which is
precisely why I'm calling for something more than a half-assed tutorial.
Regarding using the T
Change by Chris Trent :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue44485>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Chris Trent :
The documentation pages for the tkinter module are not actually documentation.
They are tutorials, which belong on the wiki. "Documentation" is not
documentation if it does not provide at bare minimum a structured list of all
names exposed by th
New submission from Chris Wagner :
In 3.8 the samesite attributes was added to http.cookies module.
However it hasn't been added to http.cookiejar module. The method:
_normalized_cookie_tuples seems to have a hardcoded list of allowable
attributes.
While the updated standard is sti
Chris Jerdonek added the comment:
> MultiLoopChildWatcher must ensures that the event loop is awaken when it
> receives a signal by using signal.setwakeup(). This is done by
> _UnixSelectorEventLoop.add_signal_handler(). Maybe MultiLoopChildWatcher
> could reuse this function,
Chris Jerdonek added the comment:
> This issue is not solved.
Yes, nothing was changed. After diagnosing this issue and trying some things
out in a draft PR, my conclusion is that an asyncio maintainer really needs to
weigh in on what to do (especially Andrew who authored the class).
New submission from Chris Mayo :
Current link is:
https://www.openssl.org/docs/manmaster/man1/ciphers.html
Manual page entries without the 'openssl-' prefix have been deprecated, and
this link is now directed to a generic page for openssl cmd.
Suggest an update to:
https://www.o
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue44112>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Burr :
--
keywords: +patch
pull_requests: +24888
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26282
___
Python tracker
<https://bugs.python.org/issu
New submission from Chris Burr :
When copying files between systems with different limits on the size of the
extended attributes that can be added to a file shutil.copystat can fail with:
/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2064/stable/linux-64/lib/python3.8/shutil.py
in copystat(src, dst
Chris Xiao added the comment:
I found this problem too.
expecting for fixing
--
nosy: +chrisxiao
___
Python tracker
<https://bugs.python.org/issue42627>
___
___
Chris Jerdonek added the comment:
> So maybe we should change the terminology while we’re at it.
When math is taught to elementary school students in the US, it's called "order
of operations": https://en.wikipedia.org/wiki/Order_of_operations
Since this was raised in the co
Chris Jerdonek added the comment:
> I think this is the same as issue37712.
This issue was first reported as issue24959. It would be better to close the
newer issues as duplicates of the first one, instead of keeping all the
duplicates open. Otherwise, the history and discussion g
Change by Chris Angelico :
--
keywords: +patch
nosy: +Rosuav
nosy_count: 5.0 -> 6.0
pull_requests: +23797
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25045
___
Python tracker
<https://bugs.python.org/i
Chris Angelico added the comment:
Can confirm. This changed in bpo-38038 and the fix isn't too difficult.
Adding 3.10 in case it's decided that this shouldn't be patched onto 3.9.
--
versions: +Python 3.10
___
Python
Change by Chris Angelico :
--
keywords: +patch
nosy: +Rosuav
nosy_count: 3.0 -> 4.0
pull_requests: +23793
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25045
___
Python tracker
<https://bugs.python.org/i
Chris Morton added the comment:
Is this change in behavior considered to be by design or is this issue an
unintended consequence? It seems inconsistent that comprehensions have no
visibility of variable previously defined in the same scoping for this
particular use-case. Is there a way to
Chris Morton added the comment:
Hi Terry, The reason why your code does not reproduce the issue is because you
first execute the code in a global context which then puts the definition of c
in that context. Subsequent calling in the local context then works. If you
remove the first exec
Chris Wilson added the comment:
Actually, octal is not a legal literal in Python 3, sorry.
--
resolution: -> rejected
___
Python tracker
<https://bugs.python.org/issu
New submission from Chris Wilson :
The documentation for the int() builtin says:
Base 0 means to interpret exactly as a code literal, so that the actual base is
2, 8, 10, or 16, and so that int('010', 0) is not legal, while int('010') is,
as well as int('010',
New submission from Chris Winkler :
When `turtle.textinput` is called in Python 3.9.2, the resulting dialog window
is not marked as transient. This is not a problem in 3.9.1.
The offending change seems to come from bpo-42630. Specifically,
`SimpleDialog.__init__` is being passed `parent=None
Chris Morton added the comment:
Root cause appears to be indexing c with [] operator. Replacing len(c) with 4
produces the same error.
--
___
Python tracker
<https://bugs.python.org/issue43
Chris Withers added the comment:
I agree that this should raise an exception.
Can the two failing tests in mock's own suite be easily fixed?
--
___
Python tracker
<https://bugs.python.org/is
Change by Chris Morton :
--
title: Py_AddPendingCall Function Never Called in 3.8, works in 3.6 ->
Py_AddPendingCall Inserted Function Never Called in 3.8, works in 3.6
___
Python tracker
<https://bugs.python.org/issu
Chris Morton added the comment:
I should add that Py_AddPendingCall returns 0 in both cases.
--
title: PyAddPendingCall Function Never Called in 3.8, works in 3.6 ->
Py_AddPendingCall Function Never Called in 3.8, works in 3.6
type: -> be
New submission from Chris Morton :
Building code on Mac OSX or Linux Ubuntu 16.04
#include
#include
#include
#include
// MacOSX build:
// g++ stop.cpp -I /include/pythonX.X -L /lib
-lpythonX.X -o stop
// Linuxe requires addtional linkage:
// -lpthread
void RunPythonScript
New submission from Chris Morton :
Compiling (Window 10, MSVS 16):
#include
int main(int argc, char* argv[])
{
const char* code = "c=[1,2,3,4]\nd={'list': [c[i] for i in
range(len(c))]}\nprint(d)\n";
Py_Initialize();
PyObject* pycode = Py_CompileString(cod
Change by Chris Griffith :
--
keywords: +patch
pull_requests: +23542
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24777
___
Python tracker
<https://bugs.python.org/issu
New submission from Chris Griffith :
It is possible to run into an IndexError in the subprocess module's
_communicate function.
```
return run(
File "subprocess.py", line 491, in run
File "subprocess.py", line 1024, in communicate
File "subprocess.p
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue31212>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Withers :
--
keywords: -easy
___
Python tracker
<https://bugs.python.org/issue3722>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Withers added the comment:
@iritkatriel - if Tim thinks this is hard, it probably is hard ;-)
--
___
Python tracker
<https://bugs.python.org/issue3
Change by Chris Gahagan :
--
files: SubClass.py
nosy: ccgahagan
priority: normal
severity: normal
status: open
title: __init_subclass__ only called for first subclass when class has multiple
inheritance
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49691
Chris Withers added the comment:
New changeset c598a04dd29b89ad072245ddaf738badcfb41ac7 by idanw206 in branch
'master':
bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its
__bool__ function (GH23613)
https://github.com/python
Chris Drake added the comment:
The specification specifically allows for the restriction of access to globals
via the second argument to eval.
While Christian and Victor make interesting, albeit suicidal, comments and
references to other efforts, the fact remains that this is a violation of
New submission from Chris Drake :
This should not work:-
python3.7 -c
'print(eval("().__class__.__base__.__subclasses__()[-1].__init__.__globals__",{"__builtins__":
{}},{"__builtins__": {}}))'
and should be properly fixed.
--
messages: 3
New submission from Chris Warrick :
When formatting decimal.Decimal using old-style formatting (%g), the output is
as short as possible, as expected. When using new-style formatting (str.format
or f-strings), the output uses the input precision. Floats behave correctly
with new-style
Chris Meyer added the comment:
>> I would like to request that this ability to dynamically load Python DLLs
>> remains even with any new initialization mechanism.
> I don't plan to remove any feature :-)
I am glad to hear that. I'm somewhat nervous about it neverthe
Chris Meyer added the comment:
> How do you configure sys.path currently? Do you parse a configuration file?
> Do you use a registry key on Windows?
We have several launch scenarios - but for the currently most common one, which
is to launch using a separate, existing Python environme
Chris Meyer added the comment:
Responding to your request for feedback on Python-Dev:
We embed Python dynamically by finding the libPython DLL, loading it, and
looking up the required symbols. We make appropriate define's so that the
Python headers (and NumPy headers) point to our func
Chris Xiao added the comment:
maybe,you can try to contact the webmaster of the University of Washington to
get the correct url
--
___
Python tracker
<https://bugs.python.org/issue42
1 - 100 of 2758 matches
Mail list logo