New submission from Martin Wheatley :
I'm installin Python 3.91. on a Solaris 10 system (I known it's 'old' but I
have a legacy installation to support).
Running ./configure the following errors are seen...
checking PROFILE_TASK... -m test --pgo
checking for --with-lto... no
checking
Martin Winks added the comment:
> Perhaps the use case is already served by re.finditer()
def split_whitespace_ascii(s: str):
return (pt.group(0) for pt in re.finditer(r"[A-Za-z']+", s))
solution above does not cover all possible data and is incorrect for bytes-like
obje
New submission from Martin Winks :
Split string by given separator and return iterator as a result.
The naive and not very efficient solution would be using current str.split:
def split_iter(self: str, sep: str) -> 'Iterator[str]':
return iter(self.split(sep))
Probably, need we'll s
Change by Martin Burger :
--
nosy: -mburger
___
Python tracker
<https://bugs.python.org/issue9694>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Chase added the comment:
Ah! So then the proper code for me would be e.g.:
```
>>> globals()[unicodedata.normalize("NFKC", "µmeow")]
1e-06
```
Yes, it's clear when I read https://www.python.org/dev/peps/pep-3131/ that the
normalization is going to ha
Martin Chase added the comment:
Oh, I just gave a cursory using `locals()`, and the same misbehavior is present.
A workaround, for anyone needing to assign or access unicode globals, is to use
`exec`, e.g. `exec("µmeow = 1e-6"
New submission from Martin Chase :
This behavior is best described by the code below:
```
>>> meow = 1
>>> 'meow' in globals()
True
>>> µmeow = 1e-6
>>> 'µmeow' in globals()
False
>>> globals()['woof'] = 1
>>> woof
1
>>> globa
Martin Altmayer added the comment:
Thanks for the explanation, I did not know re.VERBOSE. I still think the
behavior is a bit confusing, but it's probably not worth the effort to change
this.
--
type: behavior -> enhancement
___
Python trac
New submission from Martin Altmayer :
re.escape('\n') returns '\\\n', i.e. a string consisting of a backslash and a
newline. I believe it should return '\\n', i.e. a backslash and an 'n'. If the
escape-result still contains a verbatim newline, why escape this character at
all?
Note
Martin Natano added the comment:
How would calling `outer.exception()` suppress the message? This happens when
the outer task is cancelled while the inner task is still running. In that case
the exception is never set on outer.
--
___
Python
Martin Natano added the comment:
I'm not sure how to fix this, but here is a regression test for the issue.
(failing on the current master branch)
--
keywords: +patch
Added file: https://bugs.python.org/file49680/regression-test.patch
___
Python
New submission from Martin Natano :
A task created with asyncio.shield() never retrieves the task exception, which
results in a log message being generated. See the attached script for a minimal
example. Output looks something like this:
Task exception was never retrieved
future: exception
Martin Natano added the comment:
I just verified that this is not an issue in python 3.8.6 and python 3.9.0. In
those versions a normal stacktrace is generated, as expected.
--
nosy: +natano
___
Python tracker
<https://bugs.python.org/issue42
Martin Panter added the comment:
Maybe this is related to (or duplicate of) Issue 37788? Python 3.7 has a
regression where threads that are never joined cause leaks; previous code was
written assuming you didn't need to join threads.
Do you still see the leak even if you don't clear
Change by Martin Panter :
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue42263>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Gfeller added the comment:
Thanks again Steve.
I will copy the installation. I require a lot of pip packaged, so the
embeddable distro doesn't look right for my case.
I still think the /targetdir should issue some kind of warning if used with an
existing installation
Martin Gfeller added the comment:
Thank you, Steve, for your rapid response and explanation!
I would like to have my installation fully isolated in case somebody (running
the machine) fiddles with the installation in the standard location. I used to
do that without problems with the 2.7 .msi
Martin Gfeller added the comment:
Windows Version is Windows 10, version 1803 (build 17134.1726).
--
___
Python tracker
<https://bugs.python.org/issue42
New submission from Martin Gfeller :
I would like to install Python in a new location, completely separate and not
affecting an existing installation of the same version.
Despite I use /TargetDir=newdir, the installer goes into the "Modify Setup"
dialog. If I chose "Modif
Martin Panter added the comment:
There is related discussion in Issue 41254, about duration formats more
generally.
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue42
Martin Panter added the comment:
According to the documentation at
<https://docs.python.org/3.8/library/socket.html#socket.AF_PACKET> and Issue
25041 it is only available on Linux. What documentation are you looking at?
--
nosy: +martin.
Martin Panter added the comment:
There is a comment in the HTTPResponse class regarding these methods:
# For compatibility with old-style urllib responses.
They were there for the "urlopen" API in "urllib.request", not for the
"http.client" module on its own
Change by Grady Martin :
--
versions: +Python 3.6, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue39273>
___
___
Python-bugs-list mailin
Grady Martin added the comment:
This baffled me, as well. Does the reason involve bit-field width?
By the way, look at what my Python installation does when just *pressing*
button 5 (mouse wheel down) after calling `curses.mousemask()`:
```
_curses.error: getmouse() returned ERR
Martin Panter added the comment:
Perhaps a duplicate of Issue 2651, closed because it was too hard to fix
without breaking compatibility.
--
nosy: +martin.panter
superseder: -> Strings passed to KeyError do not round trip
___
Python trac
Martin Panter added the comment:
Perhaps this is a duplicate of Issue 27674, where I think parsing is aborted
when a double-quote is seen?
--
nosy: +martin.panter
superseder: -> Quote mark breaks http.cookies, Cookie.py processing
___
Pyt
Daniel Martin added the comment:
See also https://bugs.python.org/issue40961 - that bug is not about thread
safety, but another quirk around env. variable setting that needs to be
documented in the documentation for os.putenv and os.getenv, and so anyone
addressing this bug should probably
Martin added the comment:
While I appreciate your suggestion, it does not help me much.
The problem that people usually have is that the output is scrambled. That is
not the problem I'm dealing with.
I'm experiencing a deadlock caused by the print statement which seems like a
python bug
Change by Martin :
--
keywords: +patch
pull_requests: +20993
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21869
___
Python tracker
<https://bugs.python.org/issu
New submission from Martin :
Although multiprocessing.Process has a `daemon` parameter,
multiprocessing.dummy.Process doesn't.
As multiprocessing.dummy is meant to replicate the API of multiprocessing and
the daemon parameter is readily available in threading.Thread, it should also
Martin added the comment:
python experiments/mp_problem.py also fails for:
- 3.8.3, 3.8.2, 3.8.1, 3.8.0
- 3.7.7
- 3.6.10
--
___
Python tracker
<https://bugs.python.org/issue41
New submission from Martin :
I experience a problem with multiprocessing and print.
I tried to make a minimal working example, please see the attached file.
WITHOUT the offending print statement in the queue filler thread, everything
works:
- pytest experiments/mp_problem.py
- pytest
Martin Panter added the comment:
Issue 31122 is also open about fixing this long-term, but I agree it would be
good to document this quirk / bug.
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue41
Martin Panter added the comment:
Previous report about Requests to the Python bug tracker: Issue 33620.
I suspect this is an unavoidable race condition with trying a POST (or other
non-idempotent) request on an idle HTTP connection. I think it has to be up to
the higher-level application
Change by Martin Panter :
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue18861>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Borus added the comment:
Changed "component" from "resource" to "crash" because it seems to fit better.
--
type: resource usage -> crash
___
Python tracker
&l
New submission from Martin Borus :
I just installed Python 3.9.0b5 using the provided beta installer
python-3.9.0b5-amd64 on a Windows7, 64bit machine.
I did the installation without the Py Launcher update, into the folder
"c:\python39"
The installer finished without problem
Martin Panter added the comment:
I don't know how much support this will get since there is already a
str(timedelta) operation defined with a different format. But I don't like that
format much. The day[s] part is too verbose, the H:MM:SS part could too easily
be interpreted as D:HH:MM
martin w added the comment:
Absolutely, go ahead Amir
--
___
Python tracker
<https://bugs.python.org/issue41004>
___
___
Python-bugs-list mailing list
Unsub
martin w added the comment:
Forgot to add, this applies to all versions, 3.10, 3.9, 3.8, 3.7, 3.6, 3.5
--
versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue41
Change by martin w :
--
versions: +Python 3.10 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue41004>
___
___
Python-bugs-list mailing list
Unsub
Change by martin w :
--
type: -> security
___
Python tracker
<https://bugs.python.org/issue41004>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from martin w :
In the ipaddress library there exists two classes IPv4Interface, and
IPv6Interface. These classes' hash functions will always return 32 and 64
respectively. If IPv4Interface or IPv6Interface objects then are put in a
dictionary, on for example a server storing
New submission from Daniel Martin :
I find this behavior extremely surprising:
$ ABC=def python
Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more infor
Martin Panter added the comment:
Perhaps this is the same as Issue 37788, introduced in 3.7.
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue40
New submission from Paul Martin :
According to the docs:
"
There are several ways to enable asyncio debug mode.
Setting the PYTHONASYNCIODEBUG environment variable to 1.
Using the -X dev Python command line option.
Passing debug=True to asyncio.run().
Calling loop.set_debug().
Change by Martin Laus :
--
nosy: +Martin Laus
___
Python tracker
<https://bugs.python.org/issue38884>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
The file descriptor created by "os.dup" is not inherited by child processes by
default since Python 3.4.
https://docs.python.org/3/library/os.html#os.dup
Does it work if you use "os.set_inheritable" or "os.dup2" (which a
Martin Panter added the comment:
I’m not an expert on the topic, but it sounds like this might be a duplicate of
Issue 23434, which has more discussion.
--
nosy: +martin.panter
resolution: -> duplicate
status: open -> pending
superseder: -> support encoded filename i
Martin Ni added the comment:
Hello sir! I got exactly same issue when compile some ipk in Openwrt. Would
tell how to add "-lz" to python-config? I am not so familiar with Python
coding. Thanks!
--
nosy: +Martin Ni
___
Python track
Martin Panter added the comment:
See also Issue 39509, proposing to add 103 and "425 Too Early"
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.o
Martin Panter added the comment:
Please don’t use “from None” in library code. It hides exceptions raised by the
calling application that would help debugging. E.g.
<https://bugs.python.org/issue30097#msg293185>
--
nosy: +martin.panter
___
Martin Panter added the comment:
Closing in favour of Issue 39574 where a new wording is proposed
--
nosy: +martin.panter
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> str.__doc__ is misleading
__
Martin Panter added the comment:
Thanks Victor
--
___
Python tracker
<https://bugs.python.org/issue39353>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
Of course I would prefer “crc_hqx” to stay, because we use it at work. But I
understand if you think it is not popular enough to justify maintaining it.
But I was more asking if the deprecation notice should point the way forward.
This function is no longer
Martin Panter added the comment:
Building and verifying the checksum in "RTA protocol" that uses this:
<https://rms.nsw.gov.au/business-industry/partners-suppliers/documents/specifications/tsi-sp-003.pdf>.
But I understand CRC-CCITT is one of the two popular 16-bit CRC po
Martin Panter added the comment:
Is there a recommended replacement for calculating CRC-CCITT? Do it yourself in
Python code, or use a particular external module?
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue39
New submission from Jonathan Martin :
I'm trying to use SSL to validate clients connecting a an asyncio socket server
by specifying CERT_REQUIRED and giving a `cafile` containing the client
certificate to allow. client and server code attached.
Certificates are generated with:
openssl req
Martin Panter added the comment:
FTR I have been trialling a patched Python 3.7 based on Maru's changes
(revision 6ac217c) + review suggestions, and it has reduced the size of the
leak (hit 1 GB over a couple days, vs only 60 MB increase over three days). The
remaining leak could
Change by Martin Panter :
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue37788>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Meo :
"""
Unexpected behavior report
Dictionary get(key, default-expression) not short circuit behavior
MacOS 10.14.6
sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
BACKGROUND
A python dictionary is a data structure
Martin Panter added the comment:
Another workaround might be to set the new "block_on_close" flag (Issue 33540)
to False on the server subclass or instance.
Victor: Replying to <https://bugs.python.org/issue37193#msg345817> "What do I
think of also using a weakref
Change by Martin Liška :
--
keywords: +patch
pull_requests: +16942
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17462
___
Python tracker
<https://bugs.python.org/issu
New submission from Martin Liška :
The test-case is stuck after update to GCC 10.
I've got a patch for that.
--
messages: 357778
nosy: Martin Liška
priority: normal
severity: normal
status: open
title: test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck
with GCC10
Martin Teichmann added the comment:
I do not think that exposing the lists of futures does any good. I cannot come
up with a semantics that could be implemented with that other than the one
proposed.
Also I think that close() or cancel() is something a reader intuitively
understands, while
Martin Teichmann added the comment:
Yes, in the one-producer-many-consumers situation on can indeed to the trick
with the None. But this is just a clumsy hack, cancelling the tasks is IMHO
more in line with asyncio.
In the many-producers-one-consumer scenario this does not work. The one
Martin Teichmann added the comment:
Hi Andrew,
I still don't get your point. First, this is an extension to the asyncio
library, so concurrency is not an issue. And sure, if you call random methods
of an object without any reason the outcome won't be anything useful, why, in
your example
Martin Panter added the comment:
Previously Issue 12215 and a couple of other duplicates were opened about this.
Writing after reading with TextIOWrapper doesn't work as people expect. The
report was closed apparently because Victor thought there wasn't enough
interest in it.
FWIW the seek
Martin Panter added the comment:
I suggest to keep the discussion with Issue 12455
--
nosy: +martin.panter
superseder: -> urllib2 forces title() on header names, breaking some requests
___
Python tracker
<https://bugs.python.org/issu
Change by Martin Panter :
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue29979>
___
___
Python-bugs-list mailing list
Unsubscribe:
Paul Martin added the comment:
Good points. I made a mistake in run
Should be:
async def run(self, func, *args, **kwargs):
call = functools.partial(func, *args, **kwargs)
return await self._loop.run_in_executor(self._executor, call)
Also in this case run awaits
Paul Martin added the comment:
Run method should be:
async def run(self, func, *args, **kwargs):
call = functools.partial(func, *args, **kwargs)
return await self._loop.run_in_executor(None, call)
--
___
Python tracker
<ht
Paul Martin added the comment:
I don't think changing the default executor is a good approach. What happens,
if two or more thread pools are running at the same time? In that case they
will use the same default executor anyway, so creating a new executor each time
seems like a waste
Change by Paul Martin :
--
pull_requests: +16408
pull_request: https://github.com/python/cpython/pull/16863
___
Python tracker
<https://bugs.python.org/issue38
Change by Paul Martin :
--
keywords: +patch
pull_requests: +16341
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16779
___
Python tracker
<https://bugs.python.org/issu
Change by Paul Martin :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue38471>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Paul Martin :
Expected behaviour for DatagramTransport (from_SelectorDatagramTransport):
transport.close() called.
If there is data in the write buffer, don't call connection_lost.
When all data is written and the buffer is empty, check if connection has been
lost
Paul Martin added the comment:
Should singledispatchmethod and cached_property be added?
--
nosy: +primal
___
Python tracker
<https://bugs.python.org/issue37
Martin Panter added the comment:
Looks like the change causing this is revision cc3fa20. I would remove the
reference to pdict['CONTENT-LENGTH'].
--
keywords: +3.7regression
nosy: +martin.panter
___
Python tracker
<https://bugs.python.
Paul Martin added the comment:
run_in_executor doesn't necessarily create a new thread each time so
create_thread would be misleading. run_in_thread might be better.
--
nosy: +primal
___
Python tracker
<https://bugs.python.org/issue38
New submission from Paul Martin :
I found these two methods in the windows_events code for asyncio. Is there a
reason why they don't seem to be documented, and are not included in
AbstractServer? They provide a good Windows alternative to create_unix_server &
create_unix_connection for i
New submission from Martin Bammer :
When building Python 3.7.4 from source on Ubuntu 18.10 I'm getting the
following error:
0:04:38 load avg: 2.40 [ 78/416] test_complex
0:04:39 load avg: 2.40 [ 79/416] test_concurrent_futures
Traceback:
Thread 0x7f936b7fe700 (most recent call first
Change by Martin Panter :
--
resolution: -> duplicate
superseder: -> tempfile module misinterprets access denied error on Windows
___
Python tracker
<https://bugs.python.org/i
Martin Panter added the comment:
Perhaps a duplicate of Issue 22107?
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue37477>
___
___
Martin Panter added the comment:
Same thing going on as in Issue 30154. The shell is probably spawning the
“sleep” command as a child process (grandchild of Python), and waiting for it
to exit. When Python times out, it will kill the shell process, leaving the
grandchild as an orphan
Martin Teichmann added the comment:
Given the reactions I gather "close" is a better name for the method, so I
changed it accordingly.
In the current implementation, items that had been put on the queue but not
processed yet still get processed after the close, a
Martin Teichmann added the comment:
I also thought about `.close()` but then found `.cancel()` more intuitive. But
intuition is not universal, so I am open to any wording.
--
___
Python tracker
<https://bugs.python.org/issue37
Change by Martin Teichmann :
--
keywords: +patch
pull_requests: +14061
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14227
___
Python tracker
<https://bugs.python.org/issu
New submission from Martin Teichmann :
When working with queues, it is not uncommon that at some point the producer
stops producing data for good, or the consumer stops consuming, for example
because a network connection broke down or some user simply closed the session.
In this situation
Martin Panter added the comment:
Looking at the code, this would be caused by Issue 31233. I expect 3.7+ is
affected. 3.6 has similar code, but the leaking looks to be disabled by
default. 2.7 doesn't collect a "_threads" list at all.
Looks like Victor was aware of the leak when
Martin Panter added the comment:
FYI the change here to remember all the thread objects ever created looks to be
the cause of the memory leak reported in Issue 37193
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue31
Change by Martin Panter :
--
nosy: +cocoatomo
title: Mistranslation -> Mistranslation (Japanese)
___
Python tracker
<https://bugs.python.org/issue37290>
___
_
Martin Panter added the comment:
Some of the problems brought up here (which sibling or subclass, and which
parameter’s MRO) also came up a few years ago in Issue 23674.
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.
Martin Panter added the comment:
Problems with long-running iterators are already discussed in:
Issue 31815: rejected proposal to check for interrupts
Issue 33939: proposal to flag iterators as being infinite
--
nosy: +martin.panter
___
Python
Martin Panter added the comment:
The “cmd” module doesn’t use “argparse” as far as I can see. You might have to
provide more information or code for someone to make sense of or reproduce your
bug.
Also, see Issue 14191 which added new “parse_[known]_intermixed_args” APIs in
3.7, and have
Change by Jan-Martin Kuhnigk :
--
nosy: +grebdioZ
___
Python tracker
<https://bugs.python.org/issue36850>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Sam Martin :
--
keywords: +patch
pull_requests: +13054
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33110>
___
___
Py
Martin Panter added the comment:
Python 3.7 added the "capture_output" parameter, for Issue 32102. Before that
change, you could use "subprocess.PIPE":
https://docs.python.org/3.6/library/subprocess.html#subprocess.run
“To [capture output], pass PIPE for the ‘stdout’ and/o
Martin Panter added the comment:
I think this is a duplicate of Issue 29256. Issue 25680 also discusses platform
differences with no file descriptors.
--
nosy: +martin.panter
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Windows sel
Martin Panter added the comment:
Test_http_cookies line 19 has the following test case:
{'data': 'keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;"',
'dict': {'keebler' : 'E=mc2; L="Loves"; fudge=\012;'},
'repr': '',
'output': 'Set-Cookie: keebler=&quo
101 - 200 of 9608 matches
Mail list logo