New submission from Richard Purdie :
We had a python hang at shutdown. The gdb python backtrace and C backtraces are
below. It is hung in the COND_WAIT(gil->switch_cond, gil->switch_mutex) call in
drop_gil().
Py_FinalizeEx -> handle_system_exit() -> PyGC_Collect ->
Richard Purdie added the comment:
I think the python code implementing pthread_sigmask already does trigger
interrupts if any have been queued before the function returns from blocking or
unblocking.
The key subtlety which I initially missed is that if you have another thread in
your
Richard Purdie added the comment:
This is a production backtrace after I inserted code to traceback if tid was
already in _blocking_on. It is being triggered by a warning about an unclosed
asyncio event loop and confirms my theory about nested imports, in the
production case I'd guess
New submission from Richard Purdie :
We've seen tracebacks in production like:
File "", line 1004, in
_find_and_load(name='oe.gpg_sign', import_=)
File "", line 158, in
_ModuleLockManager.__enter__()
File "", line 110, in _ModuleLock.acqu
New submission from Richard Purdie :
I've been struggling to get signal.pthread_sigmask to do what I expected it to
do from the documentation. Having looked at the core python code handling
signals I now (think?!) I understand what is happening. It might be possible
for python to improv
Change by Qualyn Richard :
--
components: email
files: PSX_20210903_080553.jpg
nosy: barry, oktaine57, r.david.murray
priority: normal
severity: normal
status: open
title: kids10yrsap...@gmail.com
type: behavior
versions: Python 3.11
Added file: https://bugs.python.org/file50463
New submission from Richard Decal :
In brief:
```
from collections import Counter
x = Counter({'a': 0, 'b': 1})
x.update(x) # works: Counter({'a': 0, 'b': 2})
x += x # expected: Counter({'a': 0, 'b': 3}) actual: Counter({'b
Richard Xia added the comment:
I'd like to provide another, non-performance-related use case for changing the
default value of Popen's close_fds parameters back to False.
In some scenarios, a (non-Python) parent process may want its descendant
processes to inherit a parti
Richard Hinerfeld added the comment:
I just get an error when I visit the URL
On Sun, Oct 24, 2021 at 4:57 PM Python tracker
wrote:
> To complete your registration of the user "rhinerfeld1" with
> Python tracker, please visit the following URL:
>
>
> https:/
Richard Hinerfeld added the comment:
running build_scripts
copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/pydoc3 ->
build/scripts-3.8
copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/idle3 ->
build/scripts-3.8
copying and adjusting /home/richard/Python
New submission from Richard Hinerfeld :
Please note that test_tk and test_ttk_guionly fail when running testall
when compiling 3.8.9 python from source code.
Compiling on Linux Debian 64-bit bullseye 11.1.0 on a 2008 Mac Book.
--
components: Build
files: TestTK.txt
messages: 404942
Richard van den Berg added the comment:
In that case Stijn Hope should create the PR since he wrote the patch. Anyone
else could get in trouble for using his code without proper permission.
--
___
Python tracker
<https://bugs.python.org/issue5
Richard added the comment:
Never mind, I found the root cause after some debugging. Adding
AES256-GCM-SHA384 to the cipher string resolved the issue.
And now I see that the release notes say this:
> The ssl module now has more secure default settings. Ciphers without forward
> secr
Richard van den Berg added the comment:
Here is the updated patch. Is python5004-test.c enough as a test case?
--
Added file: https://bugs.python.org/file50390/python2.7-socket-getfqdn.patch
___
Python tracker
<https://bugs.python.org/issue5
Richard van den Berg added the comment:
I just ran into this 12 year old issue. Can this be merged please?
--
nosy: +richard.security.consultant
___
Python tracker
<https://bugs.python.org/issue5
Richard added the comment:
Sorry, I mean it works fine with Python 3.9.2 from apt as well as Python 3.9.7
from pyenv. But 3.10.0 and 3.11-dev from pyenv are broken.
--
___
Python tracker
<https://bugs.python.org/issue45
Richard added the comment:
Note that the same happens with pyenv-compiled Python 3.9.7 (same way as I
compiled 3.10 and 3.11), to rule out issues with different installation methods:
```
❯ python3.9 -VV
Python 3.9.7 (default, Oct 8 2021, 10:30:22)
[GCC 10.2.1 20210110
New submission from Richard :
Starting in Python 3.10, TLS connections to certain servers (e.g.
websocket-cs.vudu.com:443) are failing when it worked fine on Python 3.9 and
earlier on the same system.
Minimal working example:
```
#!/usr/bin/env python3
import socket
import ssl
HOST
Richard added the comment:
I agree this would be nice. For now, I'm doing this as a hack:
class Path(type(pathlib.Path())):
...
--
nosy: +nyuszika7h
___
Python tracker
<https://bugs.python.org/is
Richard added the comment:
Sorry, that should have been:
log_dir = Path('logs/{date}')
--
___
Python tracker
<https://bugs.python.org/issue38222>
___
___
Richard added the comment:
I would like for this to be reconsidered. Yes, you can use str(), but
converting back and forth becomes really clunky:
log_dir = 'logs/{date}'
log_file = Path(str(path).format(time.strftime('%Y-%m-%d')) / 'log.txt'
Richard added the comment:
IMO comparing shlex.join() to str.join() is a mistake. Comparing it to
subprocess.run() is more appropriate.
What do you mean by "proposal"? subprocess.run() already converts Path
arguments to str since Python 3.6 (though IIRC this was broken on Windows
Richard added the comment:
While it may be primarily intended to combine output from shlex.split() again,
IMO it's useful for manually constructed command lines as well, for example
displaying instructions to a user where a path may contain spaces and special
characters and needs
New submission from Richard :
When one of the items in the iterable passed to shlex.join() is a pathlib.Path
object, it throws an exception saying it must be str or bytes. I believe it
should accept Path objects just like other parts of the standard library such
as subprocess.run() already
New submission from Richard Tollerton :
1. https://github.com/python/cpython/blob/3.9/Lib/pipes.py#L6
> Suppose you have some data that you want to convert to another format,
> such as from GIF image format to PPM image format.
2. https://docs.python.org/3.9/library/pipes.html
> Be
Change by Richard Sheridan :
--
nosy: +Richard Sheridan
___
Python tracker
<https://bugs.python.org/issue42560>
___
___
Python-bugs-list mailing list
Unsub
Change by Richard :
--
keywords: +patch
nosy: +immortalplants
nosy_count: 1.0 -> 2.0
pull_requests: +25274
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26686
___
Python tracker
<https://bugs.python.org/i
New submission from Richard Barnes :
PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords currently accept
`kwlist` as `char **`; however, is not modified by either function. Therefore,
a `const char **` might be better since this allows calling code to take
advantage of `const
Richard Mines added the comment:
If you need a proof that it is possible that locale.LC_MESSAGES doesn't exist,
I've attached a screenshot. Even more I'm showing that locale.LC_TIME may be
equal to 5 which is a placeholder for locale.LC_MESSAGES if there is an
Imp
New submission from Richard Mines :
Documentation page:
https://docs.python.org/3/library/locale.html#locale.LC_MESSAGES
Code comment saying that locale.LC_MESSAGES doesn't exist sometimes:
https://github.com/python/cpython/blob/62f1d2b3d7dda99598d053e10b785c463fdcf591/Lib/locale.py#L2
Richard Levasseur added the comment:
Here's a self-contained repro:
```
import pickle
class MyList(list):
def __init__(self, required, values):
self.required = required
super().__init__(values)
def __getstate__(self):
return self.required
def __setstate__(self,
New submission from Richard Wise :
I am trying to use wraps to delegate a call to a decorated patch mock to
another method. By examining the source code, I was able to achieve this using
the (apparently undocumented) `Mock._mock_wraps` attribute instead of the
`wraps` attribute which would
New submission from Richard Wise :
from datetime import datetime, timezone, timedelta
datetime_in_sgt = datetime(2021, 2, 16, 8, 0, 0,
tzinfo=timezone(timedelta(hours=8)))
datetime_in_utc = datetime(2021, 2, 16, 0, 0, 0, tzinfo=timezone.utc)
print(datetime_in_sgt == datetime_in_utc
Richard Neumann added the comment:
I just stumbled across this issue trying to resolve this:
https://bugs.python.org/issue42765?
While this fails:
from typing import NamedTuple
class Spamm(NamedTuple):
foo: int
bar: str
def __getitem__(self, index_or_key):
"&quo
Richard Neumann added the comment:
Okay, I found the solution. Not using super() works:
from typing import NamedTuple
class Spamm(NamedTuple):
foo: int
bar: str
def __getitem__(self, index_or_key):
if isinstance(index_or_key, str):
try
Richard Neumann added the comment:
Thank you all for your input.
I had a look at aforementioned discussion and learned something new.
So I tried to implement the dict data model by implementing keys() and
__getitem__() accordingly:
from typing import NamedTuple
class Spamm(NamedTuple
Richard Neumann added the comment:
I could have sworn, that this worked before, but it was obviously me being
tired at the end of the work day.
Thanks for pointing this out and sorry for the noise.
--
___
Python tracker
<https://bugs.python.
New submission from Richard Neumann :
When sublassing the built-in list, the invocation of super().__new__ will
unexpectedly expand the passed arguments:
class MyTuple(tuple):
def __new__(cls, *items):
print(cls, items)
return super().__new__(cls, items)
class MyList
New submission from Richard Neumann :
I have use cases in which I use named tuples to represent data sets, e.g:
class BasicStats(NamedTuple):
"""Basic statistics response packet."""
type: Type
session_id: BigEndianSignedInt32
motd: str
Richard added the comment:
Sorry for reviving a 9 months old issue, but IMO there was no good reason to
reject this especially when a patch was provided. Even if the context manager
can be replaced with 3 lines of code, I still don't consider that very
user-friendly.
My use case wou
Change by Richard Kojedzinszky :
--
keywords: +patch
pull_requests: +21487
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22461
___
Python tracker
<https://bugs.python.org/issu
New submission from Richard Kojedzinszky :
This code should run without errors:
```
#!/usr/bin/env python
import asyncio
async def task1():
cv = asyncio.Condition()
async with cv:
await asyncio.wait_for(cv.wait(), 10)
async def main(loop):
task = loop.create_task(task1
Richard Neumann added the comment:
Awesome, I didn't know that.
I tried it without the parens and it gave me a SyntaxError.
This can be closed then as it's obviously already implemented.
Let's get to refactoring.
--
___
Python
New submission from Richard Neumann :
I often write factory (deserialization) methods for ORM models for web
application backends that produce a number of records (ORM model instances) of
itself and related database tables:
@classmethod
def from_json(cls, json):
"&qu
Richard Purdie added the comment:
Even my hack to call _writer.close() doesn't seem to be enough, it makes the
problem rarer but there is still an issue.
Basically, if you call cancel_join_thread() in one process, the queue is
potentially totally broken in all other processes that m
Richard Purdie added the comment:
I should also add that if we don't use cancel_join_thread() in the parser
processes, things all work out ok. There is therefore seemingly something odd
about the state that is leaving things in.
This issue doesn't occur every time, its maybe 1
New submission from Richard Purdie :
We're having some problems with multiprocessing.Queue where the parent process
ends up hanging with zombie children. The code is part of bitbake, the task
execution engine behind OpenEmbedded/Yocto Project.
I've cut down our code to the pieces i
Change by Richard Sheridan :
--
nosy: +Richard Sheridan
___
Python tracker
<https://bugs.python.org/issue33479>
___
___
Python-bugs-list mailing list
Unsub
Richard Sheridan added the comment:
I stumbled into this in another project and I want to +1 the uncommenting
solution. The problem occurs on __del__ rather than specifically in the gc
somewhere (it happens when refs drop to zero too), so I wouldn't worry too much
about killing the ga
Richard Sheridan added the comment:
I stumbled into this in another project and I want to +1 the uncommenting
solution. The problem occurs on __del__ rather than specifically in the gc
somewhere (it happens when refs drop to zero too), so I wouldn't worry too much
about killing the ga
Richard Sheridan added the comment:
I stumbled into this in another project and I want to +1 the uncommenting
solution. The problem occurs on __del__ rather than specifically in the gc
somewhere (it happens when refs drop to zero too), so I wouldn't worry too much
about killing the ga
Richard Sheridan added the comment:
I stumbled into this in another project and I want to +1 the uncommenting
solution. The problem occurs on __del__ rather than specifically in the gc
somewhere (it happens when refs drop to zero too), so I wouldn't worry too much
about killing the ga
Richard Sheridan added the comment:
I'm planning to write the long-awaited Tkinter Internals section of the docs.
(https://github.com/python/cpython/blame/master/Doc/library/tk.rst#L48) I've
spent too much time at this point to let it all go down the memory hole.
Unfortunately, I
Richard Sheridan added the comment:
I'd like to consider one more possibility for future behavior that sort of came
to mind while discussing the PR. In current behavior, it is possible to use
`willdispatch` to trick `WaitForMainloop` into letting a thread pass through
the timeout, whe
Change by Richard Sheridan :
--
keywords: +patch
pull_requests: +20448
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21299
___
Python tracker
<https://bugs.python.org/issu
Richard Sheridan added the comment:
Removing `WaitForMainloop` would surely break some existing programs, but
that's why I suggested deprecation instead of just removing it suddenly. We
could issue a RuntimeWarning if `WaitForMainloop` actually waits and tell
the client to take responsib
New submission from Richard Sheridan :
This could also be considered a "behavior" type issue.
`TkappObject` has a member `dispatching` that could usefully be exposed by a
very simple read-only method for users to determine at runtime if the tkinter
mainloop is running. Matplotl
New submission from Richard Neumann :
Currently only plain strings can be used as docstrings, such as:
class Foo:
"""Spamm eggs."""
For dynamic class generation, it would be useful to allow format strings as
docstrings as well:
doc = 'egg
New submission from Richard King :
x = ['a']
x += ' ' results in ['a',' ']
x = x + ' ' results in an exception:
Traceback (most recent call last):
File "", line 1, in
TypeError: can only concatenate list (not "str") to
Richard K added the comment:
> I don't think the clang argument holds because clang is a command-line tool
> after all and it makes sense that it can produce several outputs while the
> ast module is exposes APIs that you can further process inside the language.
> Having js
Richard K added the comment:
Batuhan & Pablo thank you for your thoughts! Just wanted to reply to a few of
the comments to clarify my position on the issue.
> IMHO this is not a feature that has a general usage. If you want, as far as I
> can see, there are some packages for doi
Change by Richard K :
--
keywords: +patch
pull_requests: +17938
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18558
___
Python tracker
<https://bugs.python.org/issu
New submission from Richard K :
Currently within the ast module, `dump` generates a string representation of
the AST for example,
>>> ast.dump(node)
'Module(body=[], type_ignores=[])'
The proposed enhancement would provide a complementary function, `dump_json` as
in a
Richard Bruskiewich added the comment:
This "bug" is buzzing around my project head right now, interfering with the
operation of the Python Fire CLI library when it attempts to interrogate the
Python Pandas DataFrame using the inspect.getmembers() call. See
https://github.com/
Richard Warfield added the comment:
I think so, yes.
On Wed, Dec 18, 2019 at 1:10 AM Eric Snow wrote:
>
> Eric Snow added the comment:
>
> So resolving issue39042 would be enough, particularly if we backported
> th
Richard Warfield added the comment:
Thanks for looking into this. Changing the behavior of the
"threading" module to be consistent with the runtime and "signal" module
would be sufficient, at least for my particular case. If the "if
threading.current_thread()
Richard Warfield added the comment:
I should mention, this behavior is new in 3.8.0. It did not occur in 3.7.x.
--
___
Python tracker
<https://bugs.python.org/issue38
New submission from Richard Warfield :
I have an application (https://github.com/litxio/ptghci) using embedded Python,
which needs to set a signal handler (and use the prompt-toolkit library which
itself sets signal handlers).
My call to signal.signal is guarded by a check that we're ru
Change by Richard Pausch :
--
components: +Unicode
nosy: +ezio.melotti, vstinner
___
Python tracker
<https://bugs.python.org/issue38612>
___
___
Python-bug
New submission from Richard Pausch :
The issue was first reported in
https://github.com/ipython/ipython/issues/11918.
Some non-ascii characters like φ (\u03c6) and ϕ (\u03d5) map/link to the same
data/identifier.
```python
ϕ = 1
φ = 2
print(ϕ) # results in 2 - should be 1
print(φ
New submission from Richard Jayne :
In Lib/http/server.py
if args.cgi:
handler_class = CGIHTTPRequestHandler
else:
handler_class = partial(SimpleHTTPRequestHandler,
directory=args.directory)
Notice that CGIHTTPRequestHandler does not
Richard Musil added the comment:
It looks like I am resurrecting an old item, but I have been just hit by this
and was directed to this issue
(https://mail.python.org/archives/list/python-id...@python.org/thread/WT6Z6YJDEZXKQ6OQLGAPB3OZ4OHCTPDU/)
I wonder if adding something similar to what
Richard Neumann added the comment:
See also: https://en.wikipedia.org/wiki/Capital_%E1%BA%9E
--
___
Python tracker
<https://bugs.python.org/issue37113>
___
___
New submission from Richard Neumann :
Currently, calling the method .upper() on a string containing 'ß' will replace
this character by 'SS'. It should, however, be replaced by 'ẞ'.
--
components: Unicode
messages: 344065
nosy: Richard Neumann, ezio.melo
Richard Whitehead added the comment:
Thanks João.
We are working on a medical prototype, and I wouldn't want to rely on our own
version of something so fundamental without having a thorough test harness for
it, which would obviously be quite time-consuming, and something of a dead-end.
Richard Whitehead added the comment:
Condition.wait_for_any is still a desirable feature, e.g. to wait on multiple
command queues, or a work queue and a command queue.
Is there any chance of pulling this into the latest version?
--
nosy: +richardnwhitehead
Change by Richard Brooksby :
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue35342>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Richard Brooksby :
--
versions: +Python 3.6 -Python 3.7
___
Python tracker
<https://bugs.python.org/issue35342>
___
___
Python-bugs-list mailin
New submission from Richard Brooksby :
It is not possible to loop over the headers of a message with an unparseable
date field using the "default" policy. This means that a poison email can
break email processing.
I expect to be able to process an email with an unparseable date f
Richard Neumann added the comment:
I updated my pull request.
Since "_windll_getnode()" is only returning a (random?) node for a UUID, I
circumevented the value checking by introducing a new keyword-only argument
"strict" defaulting to "True&qu
Richard Neumann added the comment:
@xtreak Indeed. It fails on _windll_getnode().
==
ERROR: test_windll_getnode (test.test_uuid.TestInternalsWithoutExtModule
Richard Neumann added the comment:
Typos:
"For explicitely checking the version" → "For explicitely *setting* the
version".
"on not 1<= verision 1<=5" → "on not 1 <= version <= 5".
--
___
Richard Neumann added the comment:
@xtreak RFC 4122, section 4.1.3. specifies only versions 1 to 5.
For explicitely checking the version, there is already a test in UUID.__init__,
raising a ValueError on not 1<= verision 1<=5.
I moved it to the bottom of __init__, i.e. after setting th
Richard Neumann added the comment:
I'm not sure whether the property method should be changed.
I think it'd be more appropriate to raise a value error upon __init__ in this
case as it is done with other checks.
--
nosy: +conqp
___
Pyth
Change by Richard Evans :
--
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Richard Evans :
When reading the documentation for string formats I found that the conversion
examples had comments that didn't match the example.
--
assignee: docs@python
components: Documentation
messages: 324207
nosy: Richard Evans, docs@python
priority: n
New submission from Richard C :
The following exception is raised unexpectedly on macOS versions 10.13, 10.12 &
10.11 at least. It appears to be macOS specific (works okay on Linux).
Further information can be found at the following links:
https://github.com/benoitc/gunicorn/issues/1487
New submission from Richard Neumann :
The tempfile.TemporaryDirectory is incorrectly documented at
https://docs.python.org/3.6/library/tempfile.html#tempfile.TemporaryDirectory.
It is described as a function, though actually being a class (unlinke
tempfile.NamedTemporaryFile).
The respective
New submission from Richard Neumann :
In the documentation of the built-in exceptions hierarchy, there is a "|"
missing connecting ImportError and LookupError.
https://docs.python.org/3/library/exceptions.html#exception-hierarchy
>From LookupError.__mro__ we can tell, that i
Martin Richard added the comment:
FWIW, PyOpenSSL allows to load certificates and keys from a memory buffer and
much more. It's also fairly easy to switch from ssl to PyOpenSSL.
It's probably a viable alternative in many cases.
--
Richard Neumann added the comment:
Maybe there is no need to sacrifice performance, if a new, optional keyword
argument would be introduced to dict.items():
def items(self, named=False):
if named:
else:
Currently I need to define a namedtuple
New submission from Richard Neumann :
Currently, iterating over dict_items will yield plain tuples, where the first
item will be the key and the second item will be the respective value.
This has some disadvantages when e.g. sorting dict items by value and key:
def sort_by_value_len
Richard Aplin added the comment:
Hi there yes this is very much an issue on Arm linux (e.g. Armbian). Calling
any function that triggers a call to _ssize(..) - a function which is clearly
intended to have no side-effects - instead resets the number of channels (and
sample format?) by calling
New submission from Richard Gibson :
The content at docs.python.org seems to be inserting language-dependent "smart
quotes" in code blocks, which mangles backslashes and sequences like `'''`.
Observed at
https://docs.python.org/3/reference/lexical_analysis.html#
Changes by Richard Eames :
--
nosy: +Richard Eames
___
Python tracker
<https://bugs.python.org/issue21622>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Richard:
I'm building a Python library with a C++ component composed of a number of
source .cpp files.
After some changes today, compiling and loading in Python3 resulted in a
segfault:
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Martin Richard added the comment:
Yes, the goal is to isolate the blocking IO in __init__ into other methods so
Popen can be subclassed in asyncio.
The end goal is to ensure that when asyncio calls Popen(), it doesn't block the
process. In the context of asyncio, there's no need to
Richard S. Gordon added the comment:
FYI: Here is an update to my subsequent bug report to the Cygwin project team.
You might find my answers to their questions useful in the future.
> Begin forwarded message:
>
> From: "Richard S. Gordon" mailto:rigo...@comcast.net>&
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 4:57 PM, Masayuki Yamamoto wrote:
>
>
> Masayuki Yamamoto added the comment:
>
> @rigordo Are you using mintty? If I remember rightly, mintty hasn't been set
> 256 colors after installation (at least in
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 5:41 PM, Terry J. Reedy wrote:
>
>
> Terry J. Reedy added the comment:
>
> Richard, when replying by email, please strip quoted text except for an
> occasional line or two. (See example of limited in-context quo
1 - 100 of 1064 matches
Mail list logo