Change by Peter Lovett :
--
nosy: +PeterL777
___
Python tracker
<https://bugs.python.org/issue12445>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Lovett added the comment:
Thanks Eric.
--
___
Python tracker
<https://bugs.python.org/issue31140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Lovett added the comment:
I'm not getting the problem on 3.9.7 on Windows.
Did get it on 3.7 (3.7.11?) on a different Windows machine last week.
Not getting the problem on 3.10.4
The wrong line number is a problem for IDLE's syntax highlighter, that marks
the first line a
Change by Peter Lovett :
--
nosy: +PeterL777
___
Python tracker
<https://bugs.python.org/issue31140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Roelants added the comment:
If I understand correctly this should be fixed? In which 3.10.* version should
this be fixed?
The reason why I'm asking is that I ran into this issue when using Dask
(2022.02.0) with multithreading on Python 3.10.2:
Exception in thread Profile:
Trac
Quentin Peter added the comment:
Maybe a note could be added to
https://docs.python.org/3/library/functions.html#exec
Something along the lines of:
Note: If exec gets two separate objects as `globals` and `locals`, the code
will not be executed as if it were embedded in a function
Quentin Peter added the comment:
Thank you for your explaination. Just to be sure, it is expected that:
exec("a = 1\ndef f(): return a\nprint(f())", {})
Runs successfully but
exec("a = 1\ndef f(): return a\nprint(f())&quo
Quentin Peter added the comment:
The reason I am asking is that I am working on a debugger. The debugger stops
on a frame which is inside a function. Let's say the locals is:
locals() == {"a": 1}
I now want to define a closure with exec. I might want to do something li
Quentin Peter added the comment:
This might be related to https://bugs.python.org/issue41918
--
___
Python tracker
<https://bugs.python.org/issue46153>
___
___
New submission from Quentin Peter :
When both namespace arguments are given to exec, function definitions fail to
capture closure. See below:
```
Python 3.8.6 (default, Oct 8 2020, 14:06:32)
[Clang 12.0.0 (clang-1200.0.32.2)] on darwin
Type "help", "copyright", "
New submission from Peter Wurmsdobler :
When using mailbox to convert mbox files to maildir, I have noticed that it
cannot handle messages in the mbox file that start with two subsequent `From`
lines in the header like:
```
>From - Fri Feb 20 09:46:18 1998
>From na...@company.com Wed
Peter Tillema added the comment:
Right, I should have clarified it a bit more. I'm using NumPy arrays because
they allow indexing like this, where the input arguments are converted to a
tuple. So
a[1, 2, *[3, 4]]
is different than
a[[1, 2, *[3, 4]]]
This indeed only works on
New submission from Peter Tillema :
It would be nice if you could starred expressions in list indices, for example
this piece of code:
```
import numpy as np
a = np.array(0)
print(a[1, *[2, 3], 4])
```
--
components: Interpreter Core
messages: 404860
nosy: PeterTillema
priority
Peter V added the comment:
I'm new to Python bugtracker and I may misunderstand the discussion. But I
think this is a real bug in argparse, not a documentation problem.
My usecase was that I wanted to add argparse to a GUI application where print
and exit is a wrong option. So
Peter added the comment:
We've migrated our python process off Solaris.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.
Change by Peter Hawkins :
--
components: +Library (Lib)
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue44280>
___
___
Python-bugs-list mai
New submission from Peter Hawkins :
Example repro:
```
import unittest
def d():
assert 2 == 3
def c():
d()
def b():
c()
def a():
try:
b()
except Exception as e:
assert 1 == 2
class MyTest(unittest.TestCase):
def testException(self):
a()
if __name__ == '__m
Peter J. Farley III added the comment:
Sorry, this was not meant as a patch. I have no experience with git or
pulls and would not know where to start to do as you have asked. The text
I provided was intended as model text for the python documentation
maintainer to type into whatever piece of
Peter J. Farley III added the comment:
Thank you for responding. I will pursue the issue with the windows-curses
and/or PDCurses team.
Peter
On Wed, Apr 7, 2021 at 12:57 PM Serhiy Storchaka
wrote:
>
> Serhiy Storchaka added the comment:
>
> The curses module is not supporte
New submission from Peter J. Farley III :
curses.pair_number() result under Windows (console or Terminal window) value
must be shifted by 16 bits to be valid to use as input to the
curses.pair_content() function.
If the pair number result is not shifted, the call to curses.pair_content
New submission from Peter J. Farley III :
The documentation for the result values of curses functions inch() and
scrbkgd() or how to use those result values are omitted entirely.
Documentation should at least describe how to use the result values of these
functions without necessarily
New submission from Peter Eisentraut :
object.h contains an inline function that causes a -Wcast-qual warning from
gcc. Since this file ends up visible in third-party code that includes
Python.h, this makes it impossible to use -Wcast-qual in such code.
The problem is the change
Peter Donis added the comment:
Thanks for merging!
--
___
Python tracker
<https://bugs.python.org/issue43049>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Peter Donis :
--
keywords: +patch
pull_requests: +23183
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24359
___
Python tracker
<https://bugs.python.org/issu
Change by Peter Donis :
--
pull_requests: +23184
pull_request: https://github.com/python/cpython/pull/24359
___
Python tracker
<https://bugs.python.org/issue1
New submission from Peter Donis :
This is a follow-up to issue 1812:
https://bugs.python.org/issue1812
It was suggested in the discussion on that issue that the newline conversion in
doctest that was corrected in that issue could be done using already defined
resources in the io module
New submission from Peter :
Hello,
I expect the following code to run fine, but the assertion fails. dbg1 is 1,
while dbg2 is 3. I thought they would both be 3.
Note that the only difference between the expressions for dbg1 and dbg2 are the
parentheses.
Please accept my apologies if this is
New submission from Peter Van Sickel :
I have been using the multiprocessing Process class a good bit lately. I have a
class that is managing the a given list of processes from launch to completion.
Recently I started using Process close(). I found myself wanting to determine
if a given
Peter Pavlinič added the comment:
In documentation it is written that typing.Iterable can be implemented with
__getitem__() method that implements Sequence semantics.
That is not correct. link:
/glossary.html#term-iterable
--
___
Python tracker
Peter Pavlinič added the comment:
In documentation it is written that typing.Iterable can be implemented with
__getitem__() method that implements Sequence semantics.
That is not correct. link:
https://docs.python.org/3.79/glossary.html#term-iterable
--
title: typing.Iterable does
New submission from Peter Pavlinič :
https://docs.python.org/3.10/glossary.html#term-iterable
--
assignee: docs@python
components: Documentation
messages: 384334
nosy: docs@python, peter.pavlinic
priority: normal
severity: normal
status: open
title: typing.Iterable does not
Peter Ludemann added the comment:
Every piece of code that uses either lib2to3 or a parser derived from it
(including parso and LibCST) will eventually not be able to upgrade the parser
because PEG can handle grammars that LL(k) can't. That's why I proposed adding
some functi
Peter Ludemann added the comment:
I made a suggestion for augmenting ast.parse with some of lib2to3's features;
but nobody seemed interested.
RIP lib2to3. Like many pieces of software, it was used for far more than for
what it was originally intended.
https://mail.python.org/archives
Peter Hunt added the comment:
Ah, I just realised it may have been a different dash to the one that can be
typed with the keyboard.
>From the wiki article (https://en.wikipedia.org/wiki/Dash), using either the
>"en" or "em" dash will cause t
New submission from Peter Hunt :
If the hosts file contains invalid unicode, then the socket module will break
when attempting to get the list of hosts. This renders modules such as Flask
and Django unusable.
Background:
I had a mapping to localghost
(https://twitter.com/rfreebern
New submission from Peter Norvig :
In the itertools recipes (
https://docs.python.org/3/library/itertools.html#itertools-recipes ) there are
21 functions that have single-quote docstrings. These should be changed to
triple-quotes, as mandated in PEP 257.
--
messages: 381704
nosy
Change by Peter Nowee :
--
nosy: +peternowee
___
Python tracker
<https://bugs.python.org/issue23987>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Firmstone added the comment:
No, please continue supporting Illumos, I'm still using it. Illumos is still
relevant on servers.
--
nosy: +pfirmsto
___
Python tracker
<https://bugs.python.org/is
Change by Quentin Peter :
--
keywords: +patch
pull_requests: +21916
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23001
___
Python tracker
<https://bugs.python.org/issu
New submission from Quentin Peter :
Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.18.1 -- An enhanced Interactive Python.
In [1]: import os.path
In [2]:
Change by Quentin Peter :
--
components: Library (Lib)
nosy: qpeter
priority: normal
severity: normal
status: open
title: splitdrive fails for UNC path with the "\\?\UNC\" prefix.
type: behavior
versions: Python 3.7
___
Python track
Quentin Peter added the comment:
Fails for functions as well:
```
In [4]: exec(compile('print(my_var)\ndef a():\n print(my_var)\na()', '',
'exec'), globals(), {"my_var": 0})
0
Traceback (most recent call last):
File "", line 1, in
exec(c
New submission from Quentin Peter :
The exec function fails to take locals into account when executing a list
comprehension:
```
Python 3.7.7 (default, Mar 10 2020, 15:43:33)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or
Peter McCormick added the comment:
Updated sample script, thanks to @aeros for catching the omission:
```
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
New submission from Peter McCormick :
Attempting to backup a closed database will trigger segfault:
```
target = sqlite.connect(':memory:')
source = sqlite.connect(":memory:")
source.close()
source.backup(target)
```
--
files: fix.patch
keywords: patch
m
Peter Stokes added the comment:
I wanted to enquire as to if/when the proposed PR11998 is likely to be merged?
I also wanted to note the similarity between this issue and issue41470 and to
suggest that whilst the change proposed in commit e445ccbc of PR11998 [1] would
be welcome, there may
Peter Lovett added the comment:
:-)
--
___
Python tracker
<https://bugs.python.org/issue41526>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Peter Lovett :
"Setup was successful" dialog box text overflows the box, and last line can't
be read.
--
components: Installation
files: Python 3.9.0rc1 setup successful overflow dialog box.PNG
messages: 375206
nosy: PeterL777
priority: normal
s
Peter Lovett added the comment:
Also appearing in 3.9.0rc1 AMD64
I think it's transliterated Unicode, rather than an actual corruption. I'm on
Win10, so it might be a Windows command shell issue (although it is showing bad
in cmd, PS7 and PS5).
Help messages should be plain ASCI
New submission from Peter Stokes :
Attempting to reuse an instance of 'smtplib.SMTP', via invocation of the
'smtplib.SMTP.connect(…)' function, results in an invalid SMTP command sequence
being issued to the connected server:
```
import smtplib
smtp = smtplib
Change by Peter :
--
nosy: +maubp
___
Python tracker
<https://bugs.python.org/issue41270>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Peter Otten <__pete...@web.de> added the comment:
While I don't want to start a philosical discussion -- is that really better?
Finding adverbs with a regex doesn't work in the general case -- think
butterfly, panoply, well -- and the example is meant to illustrate the usag
Peter Ludemann added the comment:
Yes, I'm thinking of doing this as a wrapper, in such a way that it could be
incorporated into Lib/ast.py eventually. (Also, any lib2to3-ish capabilities
would probably not be suitable for inclusion in the stdlib, at least not
initially ... but I ha
Peter Ludemann added the comment:
I've written up a proposal for adding "whitespace" handling to the ast module:
https://mail.python.org/archives/list/python-id...@python.org/thread/X2HJ6I6XLIGRZDB27HRHIVQC3RXNZAY4/
I don't think it's a "summer-of-code-sized proj
Peter Ludemann added the comment:
Looking at the suggested successor tools (redbaron, libCST, parso, awpa) ...
all of them appear to use some variant of pgen2. But at some point Python will
be using a PEG approach (PEP 617), and therefor the pgen2 approach apparently
won't work.
Peter Wu added the comment:
I just ran into this issue on Linux when piping a binary file to stdin resulted
in a UnicodeDecodeError while trying to read a byte from the stream. Passing
/dev/stdin is a workaround that does not require modifications to an
application.
As for the proposed PR
Hans-Peter Jansen added the comment:
If I'm not mistaken, this is applied to the openSUSE TW version of Python.
For some reason, this seems to not play well with .uid('move',...)
on a cyrus imap server (v2.4.19). Is that to be expected?
```
2020-07-03 18:04:05 INFO: [ima
New submission from Peter Kuťák :
Command make hangs on test_weakref
I compile python 3.6.11 (latest compatible with my settings raspbian jessie)
I compile on OrangePi i96 - single core ARM
I think it is same problem as Issue29796
--
components: Tests
messages: 372605
nosy: Peter
Change by Peter Law :
--
keywords: +patch
pull_requests: +20352
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21199
___
Python tracker
<https://bugs.python.org/issu
New submission from Peter Law :
In `contextlib`, `_RedirectStream` (the class behind `redirect_stdout` and
`redirect_stderr`) returns the current stream target as its context variable,
which allows code like this:
``` python
with redirect_stdout(io.StringIO()) as buffer:
do_stuff()
use
New submission from Peter Law :
`sys.stdin` (on Windows, tested Pythons 3.6-3.8) appears to have different
seeking behaviour depending on the source of the incoming data. This seems
arguably reasonable given that `stdin` isn't always seekable, however even in
the failing
Peter Ludemann added the comment:
The documentation change gives two possible successors:
https://libcst.readthedocs.io/ (https://github.com/Instagram/LibCST)
https://parso.readthedocs.io/
And I've also seen this mentioned: https://github.com/pyga/awpa
Is it possible to settle on o
Change by Peter Ludemann :
--
nosy: +Peter Ludemann
___
Python tracker
<https://bugs.python.org/issue40360>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Peter Lovett :
--
nosy: +PeterL777
___
Python tracker
<https://bugs.python.org/issue39010>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Eisentraut added the comment:
3.9.0a5 fixes my original issue. Thanks.
--
___
Python tracker
<https://bugs.python.org/issue39615>
___
___
Python-bug
New submission from Peter Würtz :
Itertools `tee` does not seem to de-reference yielded items, even after
consumption of all items from all tee-iterators.
According to the documentation (to my understanding), there shouldn't be any
extra memory requirement as long as the tee-iterator
New submission from Peter Bittner :
Currently, when you do a Web search (e.g. using Google, Bing, Yahoo!,
DuckDuckGo, et al.) for a Python module or function call you'll find a link to
the related Python 2 documentation first.
How to reproduce:
1. Search for simply "os.enviro
Peter Otten <__pete...@web.de> added the comment:
This is not a bug (and if it were you would have to report to numpy, not
cpython).
Consider:
>>> import numpy
>>> a = numpy.zeros((2,2,2))
>>> a[0,2]
Traceback (most recent call last):
File ""
Peter Eisentraut added the comment:
That's fair for code internal to CPython itself, but these are header files
included by third-party code that is embedding Python, so a bit more
flexibility and adaptability would be welcome
Change by Peter Eisentraut :
--
keywords: +patch
pull_requests: +17851
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18481
___
Python tracker
<https://bugs.python.org/issu
New submission from Peter Eisentraut :
Some inline functions use mixed declarations and code. These end up visible in
third-party code that includes Python.h, which might not be using a C99
compiler.
Example:
In file included from
/Users/peter/python-builds/3.9/include/python3.9
Peter O. added the comment:
Is this bug tracker the correct place to "ask the pydoc developers to add an
option to improve [the Pydoc] output", in the sense that the option doesn't
write out object IDs? If not, where is the correct
Peter O. added the comment:
No, the use case I have in mind is storing outputs of the pydoc3 program -- as
is -- in version control systems such as Git (e.g., running a command like
"pydoc3 mymodule > mymodule_doc.txt"). The pydoc3 output is not further parsed
by programs, or
Peter Liedholm added the comment:
What I would expect is a consistent behaviour and as a user I am not interested
in inner guts of differences between filesystems.
Regards
/Peter
--
___
Python tracker
<https://bugs.python.org/issue39
Peter Donis added the comment:
Pinging as a reminder that there is a pull request for this issue awaiting
review.
--
___
Python tracker
<https://bugs.python.org/issue1
New submission from Peter Occil :
It appears that if a method has default parameters set to functions, as in this
example:
def f1():
pass
def f2(a, b=f1):
pass
The resulting Pydoc output produces a different, nondeterministic rendering for
the f2 method each time it
New submission from Peter Bittner :
The platform module's documentation mentions 'Linux', 'Windows' and 'Java'
explicitly as values for `platform.system()`.
https://docs.python.org/3/library/platform.html#platform.system
Given the popularity of mac
New submission from Peter Liedholm :
Ubuntu 18.4 and Windows 7 has different behaviour when deleting write protected
files with rmtree.
Ubuntu silently deletes them (unexpected?)
Windows moans about access denied (expected?)
Reproduction method linux
mkdir test; touch test/file.txt; chmod -w
Peter Liedholm added the comment:
Problem is also reported in virtualbox
https://www.virtualbox.org/ticket/19004
>From that ticket some more analysis is done;
strace reveals that Python has kept an open fd for the directory being remo
New submission from Peter Liedholm :
Python 3.6.9
Ubuntu 18.04
python3 -c 'import shutil; shutil.rmtree("1a")'
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/shutil.py", line 486, in rmtree
_rmtree_safe_fd(fd, p
Peter Bittner added the comment:
Python learners deserve to know about "site-packages" and (optionally)
"dist-packages". This is a "random note", it's an explanation that is missing
in the tutorial.
- Site-packages "is the target directory of manual
Peter Bittner added the comment:
There is a specific question this change attempts to answer: "Where is the
module I imported located in the file system?"
I suspect this comes up a lot because developers want to inspect or mess with
installed modules, add debug output and th
Peter Ludemann added the comment:
To clarify and fix a typo ... lib2to3.pgen2.tokenize.detect_encoding checks for
'utf-8'(and 'utf_8') but not 'utf8' in various places. Similarly for 'latin-1'
and 'latin1'. (The codecs documentation page al
Peter Ludemann added the comment:
(oops -- updated this bug instead of submitting a new one)
See also https://bugs.python.org/issue39155
--
___
Python tracker
<https://bugs.python.org/issue39
New submission from Peter Ludemann :
In general, 'utf8' and 'utf-8' are interchangeable in the codecs (and in many
parts of the Python library). However, 'utf8-sig' is missing ... and it happens
to also be generated by lib2to3.tokenize.detec
Peter Ludemann added the comment:
lib2to3.tokenize should allow 'utf8' and 'utf-8' interchangeably, to be
consistent with the rest of the Python library (I looked through the library
source, and there seems to be no consistent preference, and also many (but not
all) che
New submission from Peter Ludemann :
In general, 'utf8' and 'utf-8' are interchangeable in the codecs (and in many
parts of the Python library). However, 'utf8-sig' is missing ... and it happens
to also be generated by lib2to3.tokenize.detec
Change by Peter Donis :
--
versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5
___
Python tracker
<https://bugs.python.org/issue1812>
___
___
Python-bug
Peter Donis added the comment:
I have submitted pull request #17385 regarding this issue:
https://github.com/python/cpython/pull/17385
--
___
Python tracker
<https://bugs.python.org/issue1
Change by Peter Donis :
--
pull_requests: +16867
pull_request: https://github.com/python/cpython/pull/17385
___
Python tracker
<https://bugs.python.org/issue1
New submission from Peter :
Using shutil.copystat (and therefore also shutil.copytree) in WSL on any
directories from a mounted Windows drive (i.e. /mnt/c/...) raises an
shutil.Error "[Errno 13] Permission denied".
It seems to fail when copying the extended filesystem
Change by Peter Bittner :
--
keywords: +patch
pull_requests: +16500
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16974
___
Python tracker
<https://bugs.python.org/issu
New submission from Peter Bittner :
A popular question on StackOverflow is, "How do I find the location of my
Python site-packages directory?" [1]
While this may hint at a deeper problem that needs to be solved, a user
suggested [2] the accepted answer to be added to Python&
Peter Ludemann added the comment:
issue36541 and its proposed PR seem to cover my needs.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Peter Ludemann added the comment:
Also the Grammar.txt diffs look about the same size as I've seen with other
upgrades to lib2to3 when the Python grammar changed.
--
___
Python tracker
<https://bugs.python.org/is
Peter Ludemann added the comment:
Should I just close this? (I didn't find https://bugs.python.org/issue36541
when I searched, possibly because I used "2to3" instead of "lib2to3" in my
search.)
--
___
Python tracker
Peter Ludemann added the comment:
Re: breakage due to changes in structure
(https://bugs.python.org/issue36541#msg339669) ... this has already happened in
the past (e.g., type annotations and async).
It's probably a good idea to add some documentation that structure changes ca
New submission from Peter Ludemann :
As far as I can tell, the lib2to3/Grammar.txt file in the Python 3.8 release is
the same as that of the Python 3.7 release, which means it doesn't have the
"walrus" operator and the "/" parameter syntax.
--
components: 2t
Peter Edwards added the comment:
On Wed, 14 Aug 2019 at 23:13, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> About PR 13649, I'm not sure that _PyThread_preferred_stacksize() is still
> relevant, since my change fixed test_faulthandler test_register_c
Peter Edwards added the comment:
On Wed, 14 Aug 2019 at 22:32, STINNER Victor wrote:
>
> We are talking abou the faulthandler_user() function of
> Modules/faulthandler.c. It is implemented in pure C, it doesn't allocate
> memory on the heap, it uses a very small set of
1 - 100 of 672 matches
Mail list logo