Change by Michael Anckaert :
--
keywords: +patch
pull_requests: +15071
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/15359
___
Python tracker
<https://bugs.python.org/issu
Michael Anckaert added the comment:
I would support this addition. The timedelta class already has accessors for
days and seconds, why not for hours and minutes?
The implementation should make use of the idiomatic way as Serhiy mentioned.
>>> timedelta(hours=25).seconds // 3
Michael Anckaert added the comment:
I would be very interested and motivated to work on this. I'll start by taking
a look at the pointers Raymond gave. If anyone can chime in with some more
information / guidance that would be awesome.
--
nosy: +michaelanc
New submission from Michael Anckaert :
When importing an ABC from the collections module in Python 3.9 there is a
warning that this is deprecated since Python 3.3 and will stop working in
Python 3.9.
Should this warning be removed and lead to an ImportError?
Python 3.9.0a0 (heads
Michael Anckaert added the comment:
Thank you for the clarification Paul. It makes sense to me now to not
include those accessors.
On Thu, 22 Aug 2019 at 17:46, Paul Ganssle wrote:
>
> Paul Ganssle added the comment:
>
> > I would support this addition. The timedelta cl
New submission from Michael Yoo :
Version: Python 3.7.3
When I run this code:
import asyncio
class TestAsyncGenerator:
def __init__(self):
pass
async def aiter(self):
yield 1
yield 2
async def main():
gen = TestAsyncGenerator()
async for number in
New submission from Michael Felt :
PEP425 stats the platform tag is what distutils.util.get_platform() (and
sysconfig.get_platform()) returns.
By that definition - anything is okay, as long as something is returned.
However, in practice, it is insufficient. Simplest case - there is no
Michael Felt added the comment:
Thank you Ned.
Not a justification perhaps, but a way to specify that it is support. Three+
years ago when I first worked on something for Lib/ctypes to get find_library()
et al working for AIX I was also asked to add it as _aix.py similar to the
macos
Change by Michael Felt :
--
keywords: +patch
pull_requests: +15337
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15678
___
Python tracker
<https://bugs.python.org/issu
Michael Felt added the comment:
When testing the PR with --with-pydebug I started getting the following error:
root@x066:[/data/prj/python/git/pr-test]./python '-X' 'tracemalloc' -m test
test_venv
Run tests sequentially
0:00:00 [1/1] test_venv
test test_venv failed -- Tr
Michael Foord added the comment:
I'm in favour of a default and "Unconditionally skipped" is fine with me.
Although "Skipped" would also be fine.
Making @skip work with no arguments is fine. Having to pass in arguments
message arguments you don't want is a pai
Change by Michael Foord :
--
assignee: -> michael.foord
components: +Extension Modules -Library (Lib), Tests
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python
Michael Burt added the comment:
This is still a problem when shutil gets a errno.ENOSYS
I hit this bug on Microsoft Azure when I mount an Azure File (managed NFS) into
an AKS cluster (managed Kubernetes offering) and try to copy a file from the
NFS over to the local disk on the node using
Michael Foord added the comment:
I'd like spec to have signature validation. I don't think the use case for
"attribute validation only" (current spec behaviour) is very strong and I'd
rather not add new keywords. The mock API is already too complex.
I'll take
Michael Foord added the comment:
This will affect spec and spec_set.
--
___
Python tracker
<https://bugs.python.org/issue30587>
___
___
Python-bugs-list mailin
Michael Foord added the comment:
That may change though, right?
In general I dislike the proliferation of keyword arguments if it's at all
possible to avoid. I added way too many of them originally and the mock API is
really big.
--
___
P
Michael Foord added the comment:
The code around whether or not to swallow self is hairy. Even if the original
spec object is a class we may still be mocking an instance of the class (we
don't want users to have to create an instance just to be able to use it as a
spec). So we have to
Michael Foord added the comment:
(The code that generated functions was originally borrowed from the decorator
module by Michele Simionato. When I first started in Python, around 2002, I was
impressed by the Python community as it had two very prominent women amongst
the part of the
Michael Foord added the comment:
As discussed with Karthik, I think this is a nice feature enhancement for the
wraps functionality and worth fixing. It has the great advantage that the fix
is nice and isolated and simple.
--
___
Python tracker
Michael Foord added the comment:
The previous behaviour was unspecified and clearly due to missing
functionality, so the advantages of fixing it outweigh any potential
compatibility issues. But I'd see it as a feature enhancement fo
Michael Foord added the comment:
I'm particularly concerned that we have call_count "sane" for AsyncMock and
avoid adding "await_count" if possible. I think we've decided on that.
I'm more agnostic on the assert_await* methods. I agree they're a nic
Michael Mol added the comment:
I wound up writing it in C++ instead, and my then-employer eventually opened my
code. https://github.com/VirtualInterconnect/diskstress
--
___
Python tracker
<https://bugs.python.org/issue5
Michael Foord added the comment:
I like assertPermutation (with or without the Is, slight preference for
without).
--
___
Python tracker
<https://bugs.python.org/issue27
Michael Tippie added the comment:
I am getting this error now, too. I'm not sure what's causing it - when I use
multiprocessing with a Manager.Queue, if I am passing around an object on the
queue stack, I get this error.
Would really like it to "just work".
Ido Michael added the comment:
Hi Lisa,
I can take this (first commit), where can I edit the dev guide?
I could see someone did update the easy keyword in it?
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/issue38
Ido Michael added the comment:
Hey,
Is someone working on this issue?
Can I take it?
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/issue36
Ido Michael added the comment:
Hey,
Is it still open?
What else needs to be done?
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/issue27
Ido Michael added the comment:
I can add those changes if someone didn't take it already?
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/is
Ido Michael added the comment:
Thanks Karthikeyan!
Found it, so for the last one pep3121, would you like to describe PEP in
general or Extension Module Initialization and Finalization?
Ido
--
___
Python tracker
<https://bugs.python.
Michael Felt added the comment:
Hi all,
Now that I have finally noticed that the 3.8 branches are active for AIX bots I
see something that I had always thought was in the 3.8 branch, but is not yet.
https://github.com/python/cpython/pull/12202
Seems the backport never succeeded. Although
Change by Michael Felt :
--
pull_requests: +15955
pull_request: https://github.com/python/cpython/pull/16376
___
Python tracker
<https://bugs.python.org/issue36
Michael Felt added the comment:
Added a backport for 3.8.
p.s. - what is the file "name of the past"?
--
___
Python tracker
<https://bugs.python.o
Ido Michael added the comment:
Hey Remi,
I've fixed it and created PR on the issue.
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/is
Ido Michael added the comment:
P.S PR: https://github.com/python/cpython/pull/16420
--
___
Python tracker
<https://bugs.python.org/issue37883>
___
___
Python-bug
Change by Ido Michael :
--
keywords: +patch
pull_requests: +16017
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16420
___
Python tracker
<https://bugs.python.org/issu
Change by Ido Michael :
--
pull_requests: +16037
pull_request: https://github.com/python/cpython/pull/16457
___
Python tracker
<https://bugs.python.org/issue37
Ido Michael added the comment:
Fixed this issue since the CLA of the past user wasn't signed.
Added a check for the socket type in each of the methods:
sock_recv, sock_recv_into, sock_sendall, sock_connect, sock_accept.
PR: GH-16457
--
nosy: +Ido Mi
Change by Ido Michael :
--
keywords: +patch
pull_requests: +16039
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/16458
___
Python tracker
<https://bugs.python.org/issu
Ido Michael added the comment:
Committed a PR: GH-16458
I've read all of the thread and changed the docstring to the latest suggestion
by @zach.ware
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/is
Ido Michael added the comment:
@ned.deily any thoughts?
I can start working on it.
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/issue38
Change by Ido Michael :
--
keywords: +patch
pull_requests: +16048
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16463
___
Python tracker
<https://bugs.python.org/issu
Ido Michael added the comment:
I've fixed the documentation according to the thread.
Here's the PR: GH-16463
Ido
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.o
Change by Michael Everitt :
--
nosy: +veremitz
___
Python tracker
<https://bugs.python.org/issue23284>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michael Everitt :
tinfo library detection as part of ncurses is inconsistent, and causes build
failure when expected symbols aren't found at link-time.
This breaks compilation of the 'readline' module as the attached log shows.
It seems to work in some con
Michael Everitt added the comment:
May have confused the '_readline' extension with the '_ncurses' extension ..
apologies!
attaching build.log from x86_64.
--
Added file: https://bugs.python.org/file48632/build-x86_64-uclibc.log
__
Michael Everitt added the comment:
Attached patch seems to fix build failure for python2.7 with uclibc-ng.
--
keywords: +patch
Added file:
https://bugs.python.org/file48639/fix-tinfo-probably-python-2_7.patch
___
Python tracker
<ht
Michael Everitt added the comment:
Attached patch seems to fix build with python3.6 withh uclibc-ng.
Tested on x86_64 and ARMv6zk.
--
Added file:
https://bugs.python.org/file48640/fix-tinfo-probably-python-3_6.patch
___
Python tracker
<ht
Ido Michael added the comment:
So what was decided?
I can fix this issue and I can wait for a final conclusion as it wasn't clear
from the thread.
--
nosy: +Ido Michael
___
Python tracker
<https://bugs.python.org/is
New submission from Michael Jaquier :
x = [1,2,3]
Case (1)
*b, = x
*b == [1, 2, 3]
Case(2)
*b, _ = x
b = [1,2]
Is it not more logical for this to give consistent values regardless.
i.e.,
*b, = [1,2,3] ; b == [1,2]
*b, _ = [1,3,2] ; b == [1,2] ; _ == [3]
--
components
Michael Felt added the comment:
Please let me be much more specific.
This specific bot failure is from when I ran the bot using XLC as a compiler.
Because I could not solve it on my own, and did not get any hints in time (see
issue35828) Since my work schedule intensified I switched the bot
New submission from Michael Zhang :
Discovered this while trying to use a function in `boto3`. Seems like when
tzlocal() is passed with a 0 to datetime.datetime.fromtimestamp(), it throws an
"[Errno 22] Invalid argument" error. Using 3.7.4 via Anaconda on Windows 10,
and tzlocal()
Michael Zhang added the comment:
I think it might be something Windows specific; the original comment includes
the version and code to reproduce.
--
___
Python tracker
<https://bugs.python.org/issue38
Michael Zhang added the comment:
Yeah, seconded with my own tracing as well.
--
___
Python tracker
<https://bugs.python.org/issue38645>
___
___
Python-bug
New submission from Michael Felt :
Since issue42789 the AIX bot's have crashed - to the extent that the bot's did
not even return results.
Part of this has been resolved, for now, by using:
$ export TERM=unknown
$ buildbot start buildarea
However, the test still crash because A
Change by Michael Felt :
--
keywords: +patch
pull_requests: +23824
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25074
___
Python tracker
<https://bugs.python.org/issu
Michael Felt added the comment:
backports needed for 3.8 and 3.9
--
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue43
Michael Felt added the comment:
my default TERM=xterm
I'll also use 'ansi'
The filenames will be ${TERM}.err and ${TERM}.out
for TERM in xterm ansi; do
./python -m test -vuall test_curses 2>${TERM}.err >${TERM}.out
done
After TERM=ansi - my terminal is in raw mode
New submission from Michael Felt :
Since issue43517 test_importlib 'fails' (bot status) with ENV_CHANGED.
The core dump is caused by SIGTRAP. I need help to learn how to stop the core
dump from being cleaned up so I can load it into dbx and hopefully
understand/learn with s
New submission from Michael Felt :
When working in a WPAR (workload partition) the routines supporting
aix_platform() may fail if there is no related builddate for bos.mp64.
a) the fileset queried is changed to `bos.rte`
b) an extreme value (9988) is returned for any similar (unexpected
Michael Felt added the comment:
./python -m test -vuall -i test_output_string -i test_insert_delete test_curses
2>test.err 1>test.out
returns four failures: see attached
'-i test_output_string' stops the crash
--
Added file: https://bugs.python.org/fi
Change by Michael Felt :
--
keywords: +patch
pull_requests: +23845
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25095
___
Python tracker
<https://bugs.python.org/issu
Michael Osipov <1983-01...@gmx.net> added the comment:
Just wasted two hours for this. Can someone really update the documentation of
it if this is not going to change.
--
nosy: +michael-o
___
Python tracker
<https://bugs.python.org/i
Michael Felt added the comment:
FYI: from a core dump - top of where is:
Segmentation fault in winsnstr at 0xd3ebc050
0xd3ebc050 (winsnstr+0x190) a4190002 lhzu r0,0x2(r25)
(dbx) where
winsnstr(??, ??, ??) at 0xd3ebc050
unnamed block in IPRA.$_curses_window_insstr_impl(self
Michael Felt added the comment:
On 30/03/2021 09:40, STINNER Victor wrote:
> STINNER Victor added the comment:
>
> A core dump is a very bad sign of health.
>
> Can you please try to bisect which test is causing the segfault using
> bisect_cmd? Try the command:
>
> ./p
Michael Felt added the comment:
Sure. Probably have to rebase first.
--
___
Python tracker
<https://bugs.python.org/issue28276>
___
___
Python-bugs-list mailin
Michael Felt added the comment:
On 31/03/2021 18:46, STINNER Victor wrote:
> STINNER Victor added the comment:
>
> test.test_importlib.test_threaded_import.ThreadedImportTests.test_multiprocessing_pool_circular_import
>
> This test comes from bpo-41567 and it simply runs a scri
Michael Felt added the comment:
Adding 3.10.
While a (sort of) duplicate I also would like to add that before revision
"7cb033c423b65def1632d6c3c747111543b342a2" this was not showing up as an issue
with test_importlib.
my issue was with test_importlib suddenly going into error
Michael Felt added the comment:
OK: further.
Two options are suggested:
There are different options to solve this issue:
* Reset _tstate_lock before using it... not sure that it's worth it, since we
are going to delete the threading.Thread object with its _tstate_lock object
an
Michael Felt added the comment:
OK. Please explain. Looking at tstate assignment
In posixmodule.c:PyOSAfterFork_Child()
PyStatus status;
_PyRuntimeState *runtime = &_PyRuntime;
...
PyThreadState *tstate = _PyThreadState_GET();
and later calls
st
New submission from Michael Osipov <1983-01...@gmx.net>:
When working with proxies and HTTP CONNECT I came across these lines:
https://github.com/python/cpython/blob/63c69440c7adb0de1d191a8d3d100b335d5c2f81/Lib/http/client.py#L901-L903
I truly fail to see why this is an OSError. OS
New submission from Michael Osipov <1983-01...@gmx.net>:
Looking at
https://github.com/python/cpython/blob/63c69440c7adb0de1d191a8d3d100b335d5c2f81/Lib/http/client.py#L898
self.debuglevel is not passed to response_class() and for debugging purposes I
miss to see:
> send: b'CON
Michael Felt added the comment:
Willing to spend more time on this - but the variable names chosen blind me -
looks like a circle.
And, thinking about the address in the core dump starting with 0xd (segment 13)
- confuses me somewhat - as from memory - I thought the shared library
code
Change by Michael Hall :
--
versions: +Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue39232>
___
___
Python-bugs-list mailing list
Unsub
Michael Curran added the comment:
I can also reproduce this. I will attach my own testcase below.
So far I see it when the callback is __stdcall (WINFUNCTYPE) and it takes an
larger than 4 bytes (E.g. a long long or a VARIANT), with one or more arguments
preceeding it such that this argument
Michael Curran added the comment:
This bug is reproduceable on both Python 3.8 and 3.9. But not 3.7.
Ths bug is seen in the real world, in the context of providing Python callbacks
to Win32 API functions, or when implementing comtypes COM objects in Python.
For example, we see this crash in
New submission from Michael Dudley :
On my machine platform.win32_ver() and sys.getwindowsversion() are returning
different Windows build numbers. I have confirmed this with Python 3.7.6,
3.8.5, and 3.9.2 (all 64-bit) on Windows 10.
platform.win32_ver() returns:
('10', &
Michael Felt added the comment:
Disregard the last mail -seems many routines go to unresolved.
On 15/08/2020 20:43, Stefan Krah wrote:
> Change by Stefan Krah :
>
>
> --
> assignee: -> skrah
> resolution: -> fixed
> stage: patch review -> resolved
&
Michael Felt added the comment:
Dome some 'dumb' testing - and I hope this helps understand why it is failing:
With the the last two func() calls commented out, the function passes:
def test_output_string(self):
stdscr = self.stdscr
encoding = stdsc
Change by Michael Felt :
--
type: -> crash
___
Python tracker
<https://bugs.python.org/issue43659>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Michael Cuthbert :
The What's New in Python 3.10 docs demonstrates a richer SyntaxError for this
set comprehension:
>>> {x,y for x,y in range(100)}
File "", line 1
{x,y for x,y in range(100)}
^
SyntaxError: did you forget parentheses
New submission from Michael Forney :
When subwin() is used to create a subwindow for an original window, it does not
keep a reference to the original window object. This can result in the original
window getting deleted with delwin() before the subwindow.
According to the X/Open curses
Change by Michael Forney :
--
keywords: +patch
pull_requests: +24843
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26226
___
Python tracker
<https://bugs.python.org/issu
Michael Robellard added the comment:
The sample I uploaded doesn't do any processing, but the use case originally
had some logic inside the property getter/setter, would the alias idea allow
for that? The purpose of the property is to add some logic to compute the value
if it ha
Michael Osipov <1983-01...@gmx.net> added the comment:
Thanks Andrei, please ahead and provide the PR. You'll do it faster than I do.
--
___
Python tracker
<https://bugs.python.
Michael Cuthbert added the comment:
It may be helpful for the enum module to come with transitional functions like
"pre310_str()" "pre310_repr()" "pre310_flag_str()" etc. so that people who are
writing doctests that need to function on both < 3.10 and
New submission from Michael Amrhein :
While int, float, complex and Decimal implement __int__, Fraction does not.
Thus, checking for typing.SupportsInt for fractions fails, although
int() succeeds, because Fraction implements __trunc__.
This looks inconsistent.
Easiest fix seems to be
Michael Amrhein added the comment:
The background is an implementation of __pow__ for a fixed-point decimal number:
SupportsIntOrFloat = Union[SupportsInt, SupportsFloat]
def __pow__(self, other: SupportsIntOrFloat, mod: Any = None) -> Complex:
if isinstance(other, Supports
Change by Michael Hofmann :
--
nosy: +mhofmann
___
Python tracker
<https://bugs.python.org/issue39820>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michael Wang :
Ultimately it seems that deep recursion after setting the recursion limit
actually crashes python
--
components: Interpreter Core
files: bug.py
messages: 398619
nosy: michaeljwang10
priority: normal
severity: normal
status: open
title: Recursion
New submission from Michael Förderer :
Using os.path.realpath(...) in the MVFS of Clearcase SCM (virtual file system)
in Windows 10 a exception occures:
X:\my_view\tools\python\3_8>python.exe
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit
(AMD64)] on win32
T
Change by Michael Förderer :
--
keywords: +patch
pull_requests: +26081
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27574
___
Python tracker
<https://bugs.python.org/issu
Michael Förderer added the comment:
Updated with ERROR_BAD_NETPATH (53).
What about following errors:
- ERROR_LOCK_VIOLATION (33)
- ERROR_DEV_NOT_EXIST (52)
- ERROR_BAD_NET_RESP (58)
- ERROR_UNEXP_NET_ERR (59)
- ERROR_NETNAME_DELETED (64)
- ERROR_NETWORK_ACCESS_DENIED (65)
- ERROR_BAD_DEV_TYPE
Michael Förderer added the comment:
Done.
--
___
Python tracker
<https://bugs.python.org/issue44817>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michael Rans :
Now that dict is ordered, it is a bit confusing that set isn't as well. I
suggest making set ordered too.
--
messages: 400974
nosy: mcarans
priority: normal
severity: normal
status: open
title: Make set ordered like dict
type: behavior
ver
New submission from Michael Rans :
I suggest adding a method that allows comparing dicts taking into account the
order - an ordered compare (since == does not do that).
(Also for my other issue (https://bugs.python.org/issue45092) where I suggested
that set be ordered to reduce confusion
Change by Michael Rans :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45093>
___
___
Python-bugs-list mailing list
Unsubscrib
Michael Rans added the comment:
My use case is in testing. Currently I use an OrderedDict, but since dict
introduced ordering in 3.7, I was considering switching. For my test, I need to
check that the dictionary is the same both in content and order. I can indeed
use your one liner, but
Michael Rans added the comment:
Thank you. Another case is in round trip processing of JSON or YML. Other cases
are where you would prefer an OrderedDict over a dict.
I think the method would help clarify things because it would make it obvious
that it is for ordered comparisons while the
Michael Rans added the comment:
Thanks for all your help and advice.
--
___
Python tracker
<https://bugs.python.org/issue45093>
___
___
Python-bugs-list mailin
Michael Sullivan added the comment:
I tend to agree with Carl that making Final imply ClassVar for dataclass would
make things worse.
For better or worse (mostly better, but there are downsides like this!),
dataclass class bodies are essentially written in their own domain specific
701 - 800 of 3015 matches
Mail list logo