[issue12445] dict view values objects are missing tp_richcmp and tp_as_number

2022-04-05 Thread Peter Lovett
Change by Peter Lovett : -- nosy: +PeterL777 ___ Python tracker <https://bugs.python.org/issue12445> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31140] Insufficient error message with incorrect formated string literal

2022-03-28 Thread Peter Lovett
Peter Lovett added the comment: Thanks Eric. -- ___ Python tracker <https://bugs.python.org/issue31140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31140] Insufficient error message with incorrect formated string literal

2022-03-28 Thread Peter Lovett
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 as a Syntax

[issue31140] Insufficient error message with incorrect formated string literal

2022-03-28 Thread Peter Lovett
Change by Peter Lovett : -- nosy: +PeterL777 ___ Python tracker <https://bugs.python.org/issue31140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2022-03-02 Thread Peter Roelants
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: Traceback

[issue46153] function fails in exec when locals is given

2021-12-23 Thread Quentin Peter
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

[issue46153] function fails in exec when locals is given

2021-12-22 Thread Quentin Peter
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

[issue46153] function fails in exec when locals is given

2021-12-22 Thread Quentin Peter
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 like: e

[issue46153] closure fails in exec when locals is given

2021-12-22 Thread Quentin Peter
Quentin Peter added the comment: This might be related to https://bugs.python.org/issue41918 -- ___ Python tracker <https://bugs.python.org/issue46153> ___ ___

[issue46153] closure fails in exec when locals is given

2021-12-22 Thread Quentin Peter
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", &

[issue45882] mailbox fails to read message from mbox

2021-11-23 Thread Peter Wurmsdobler
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

[issue45586] Use starred expressions in subscripts

2021-10-25 Thread Peter Tillema
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 NumPy

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Peter Tillema
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

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2021-06-22 Thread Peter V
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 I set

[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2021-06-16 Thread Peter
Peter added the comment: We've migrated our python process off Solaris. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue44280] unittest filters out too many assertion stack frames from context/cause chains

2021-06-01 Thread Peter Hawkins
Change by Peter Hawkins : -- components: +Library (Lib) type: -> behavior ___ Python tracker <https://bugs.python.org/issue44280> ___ ___ Python-bugs-list mai

[issue44280] unittest filters out too many assertion stack frames from context/cause chains

2021-06-01 Thread Peter Hawkins
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__ == '__main__

[issue43715] curses inch() and scrbkgd() documentation ommissions

2021-04-10 Thread Peter J. Farley III
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

[issue43716] curses.pair_number() function incorrect value under Windows

2021-04-10 Thread Peter J. Farley III
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

[issue43716] curses.pair_number() function incorrect value under Windows

2021-04-03 Thread Peter J. Farley III
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

[issue43715] curses inch() and scrbkgd() documentation ommissions

2021-04-03 Thread Peter J. Farley III
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

[issue43412] object.h -Wcast-qual warning

2021-03-05 Thread Peter Eisentraut
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

[issue43049] Use io.IncrementalNewlineDecoder for doctest newline conversion

2021-03-02 Thread Peter Donis
Peter Donis added the comment: Thanks for merging! -- ___ Python tracker <https://bugs.python.org/issue43049> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43049] Use io.IncrementalNewlineDecoder for doctest newline conversion

2021-01-27 Thread Peter Donis
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

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2021-01-27 Thread Peter Donis
Change by Peter Donis : -- pull_requests: +23184 pull_request: https://github.com/python/cpython/pull/24359 ___ Python tracker <https://bugs.python.org/issue1

[issue43049] Use io.IncrementalNewlineDecoder for doctest newline conversion

2021-01-27 Thread Peter Donis
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

[issue42900] Ternary operator precedence relative to bitwise or

2021-01-11 Thread Peter
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

[issue42897] Expose a way to determine if a process has been closed or not

2021-01-11 Thread Peter Van Sickel
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

[issue42826] typing.Iterable does not need __getitem__() method

2021-01-04 Thread Peter Pavlinič
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

[issue42826] typing.Iterable does not need __getitem__() method

2021-01-04 Thread Peter Pavlinič
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

[issue42826] typing.Iterable does not need__getitem__() method

2021-01-04 Thread Peter Pavlinič
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

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-06 Thread Peter Ludemann
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 functionality

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-04 Thread Peter Ludemann
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/list

[issue42495] socket.gethostbyaddr raises error if invalid unicode in hosts

2020-11-30 Thread Peter Hunt
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

[issue42495] socket.gethostbyaddr raises error if invalid unicode in hosts

2020-11-28 Thread Peter Hunt
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

[issue42450] Docstrings in itertools recipes should have triple-quotes

2020-11-23 Thread Peter Norvig
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

[issue23987] docs about containers membership testing wrong for broken objects

2020-11-18 Thread Peter Nowee
Change by Peter Nowee : -- nosy: +peternowee ___ Python tracker <https://bugs.python.org/issue23987> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42173] Drop Solaris support

2020-10-29 Thread Peter Firmstone
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/issue42

[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

2020-10-27 Thread Quentin Peter
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

[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

2020-10-27 Thread Quentin Peter
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]:

[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

2020-10-27 Thread Quentin Peter
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

[issue41918] exec fails to take locals into account when running list comprehensions or functions

2020-10-14 Thread Quentin Peter
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(compile('print(my_var)\ndef a()

[issue41918] exec fails to take locals into account when running list comprehensions

2020-10-03 Thread Quentin Peter
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

[issue41815] SQLite: segfault if backup called on closed database

2020-09-19 Thread Peter McCormick
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() source.backup(target

[issue41815] SQLite: segfault if backup called on closed database

2020-09-19 Thread Peter McCormick
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 messages: 3

[issue36094] When using an SMTP SSL connection,, get ValueError.

2020-09-04 Thread Peter Stokes
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

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-17 Thread Peter Lovett
Peter Lovett added the comment: :-) -- ___ Python tracker <https://bugs.python.org/issue41526> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-11 Thread Peter Lovett
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 severi

[issue41525] Python '--help' has corrupted text.

2020-08-11 Thread Peter Lovett
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 ASCII to avoid

[issue41470] smtplib.SMTP should reset internal 'helo' and 'ehlo' state within 'connect()'

2020-08-04 Thread Peter Stokes
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.SMTP() smtp.connect

[issue41270] NamedTemporaryFile is not its own iterator.

2020-07-10 Thread Peter
Change by Peter : -- nosy: +maubp ___ Python tracker <https://bugs.python.org/issue41270> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue41259] Find adverbs is not correct on the documentation

2020-07-09 Thread Peter Otten
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 usage of re.f

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-08 Thread Peter Ludemann
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 have

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-08 Thread Peter Ludemann
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 project", main

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-06 Thread Peter Ludemann
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

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2020-07-05 Thread Peter Wu
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

[issue33327] Add a method to move messages to IMAPlib

2020-07-03 Thread Hans-Peter Jansen
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: [imap_reorg] move b

[issue41163] test_weakref hangs

2020-06-29 Thread Peter Kuťák
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

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2020-06-28 Thread Peter Law
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

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2020-06-28 Thread Peter Law
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

[issue40540] inconstent stdin buffering/seeking behaviour

2020-05-06 Thread Peter Law
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 case

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-29 Thread Peter Ludemann
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 one

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-27 Thread Peter Ludemann
Change by Peter Ludemann : -- nosy: +Peter Ludemann ___ Python tracker <https://bugs.python.org/issue40360> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-04-08 Thread Peter Lovett
Change by Peter Lovett : -- nosy: +PeterL777 ___ Python tracker <https://bugs.python.org/issue39010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39615] cpython/abstract.h not compatible with C90

2020-03-24 Thread Peter Eisentraut
Peter Eisentraut added the comment: 3.9.0a5 fixes my original issue. Thanks. -- ___ Python tracker <https://bugs.python.org/issue39615> ___ ___ Python-bug

[issue40047] itertools.tee does not release resources during iteration?

2020-03-23 Thread Peter Würtz
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-iterators

[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-19 Thread Peter Bittner
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.environ&quo

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Peter Otten
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 "&qu

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
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

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
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

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
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

[issue39391] Run-dependent Pydoc output for functions default parameters

2020-01-31 Thread Peter O.
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 plac

[issue39391] Nondeterministic Pydoc output on functions that have functions as default parameters

2020-01-27 Thread Peter O.
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

[issue39340] shutil.rmtree and write protected files

2020-01-27 Thread Peter Liedholm
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

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-01-21 Thread Peter Donis
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

[issue39391] Nondeterministic Pydoc output on functions that have functions as default parameters

2020-01-19 Thread Peter Occil
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

[issue39383] Mention Darwin as a potential value for platform.system()

2020-01-18 Thread Peter Bittner
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 macOS among developers, this gives

[issue39340] shutil.rmtree and write protected files

2020-01-15 Thread Peter Liedholm
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

[issue39327] shutil.rmtree using vagrant synched folder fails

2020-01-14 Thread Peter Liedholm
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

[issue39327] shutil.rmtree using vagrant synched folder fails

2020-01-14 Thread Peter Liedholm
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, path, onerr

[issue38623] Python documentation should mention how to find site-packages

2020-01-07 Thread Peter Bittner
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 manually bu

[issue38623] Python documentation should mention how to find site-packages

2020-01-06 Thread Peter Bittner
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 an

[issue39154] "utf8" not always a synonym for "utf-8" in lib2to3

2019-12-29 Thread Peter Ludemann
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 allows 'utf8' and 'latin1' as codecs.) ['UTF-8

[issue39154] "utf8" not always a synonym for "utf-8" in lib2to3

2019-12-29 Thread Peter Ludemann
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

[issue39155] "utf8-sig" missing from codecs (inconsistency)

2019-12-29 Thread Peter Ludemann
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.detect_encoding. >>> impo

[issue39154] "utf8" not always a synonym for "utf-8" in lib2to3

2019-12-29 Thread Peter Ludemann
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) checks for 'utf-8' also

[issue39154] "utf8-sig" missing from codecs (inconsistency)

2019-12-29 Thread Peter Ludemann
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.detect_encoding. >>> impo

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2019-11-25 Thread Peter Donis
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

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2019-11-25 Thread Peter Donis
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

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2019-11-25 Thread Peter Donis
Change by Peter Donis : -- pull_requests: +16867 pull_request: https://github.com/python/cpython/pull/17385 ___ Python tracker <https://bugs.python.org/issue1

[issue38633] shutil.copystat fails with PermissionError in WSL

2019-10-29 Thread Peter
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

[issue38623] Python documentation should mention how to find site-packages

2019-10-28 Thread Peter Bittner
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

[issue38623] Python documentation should mention how to find site-packages

2019-10-28 Thread Peter Bittner
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'

[issue38551] lib2to3 Grammar.txt doesn't have Python 3.8 grammar changes

2019-10-23 Thread Peter Ludemann
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

[issue36541] Make lib2to3 grammar more closely match Python

2019-10-23 Thread Peter Ludemann
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/issue36

[issue38551] lib2to3 Grammar.txt doesn't have Python 3.8 grammar changes

2019-10-21 Thread Peter Ludemann
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 <

[issue36541] Make lib2to3 grammar more closely match Python

2019-10-21 Thread Peter Ludemann
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 can

[issue38551] lib2to3 Grammar.txt doesn't have Python 3.8 grammar changes

2019-10-21 Thread Peter Ludemann
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: 2to3 (2

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-15 Thread Peter Edwards
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_chain(

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-15 Thread Peter Edwards
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 func

  1   2   3   4   5   6   7   >