[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-07-30 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +25992
pull_request: https://github.com/python/cpython/pull/27473

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-30 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
assignee:  -> erlendaasland
status: open -> pending
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-30 Thread Danny Lin


Danny Lin  added the comment:

> I've put up a PR that expands the docs for NotADirectoryError here: 
> https://github.com/python/cpython/pull/27471/files

Thank you.

Wouldn't it be more clear if an example is provided? Like:

(e.g. `/path/to` does not exist when running `open('/path/to/file')`)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44774] incorrect sys.stdout.encoding within a io.StringIO buffer

2021-07-30 Thread Pierre Carbonnelle


New submission from Pierre Carbonnelle :

The following code 

print("outside:", sys.stdout.encoding)
with redirect_stdout(io.StringIO()) as f:
print("inside: ", sys.stdout.encoding)
print(f.getvalue())

yields:

outside: utf-8
inside:  None

Because StringIO is a string buffer, the expected result is:

outside: utf-8
inside:  utf-8

This creates problem when using packages whose output depends on the 
sys.stdout.encoding, such as z3-solver.

--
components: Library (Lib)
messages: 398528
nosy: pcarbonn
priority: normal
severity: normal
status: open
title: incorrect sys.stdout.encoding within a io.StringIO buffer
type: behavior
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42626] readline history, vi-editingmode and ANSI color codes bug

2021-07-30 Thread Joakim Nilsson


Joakim Nilsson  added the comment:

Yes, I have noticed that too, and I agree, not as bad as if it was garbled,
but still an annoyance.

On Fri, Jul 30, 2021 at 1:34 AM Andrei Kulakov 
wrote:

>
> Andrei Kulakov  added the comment:
>
> Joakim: by the way, what I was able to reproduce is just a visual bug.
> IOW, the text is still the same and all there in the buffer, but it shows
> up only after a combination of rightward movement and 'a', and a copy of it
> shows up on the left side. So it's not as serious as if the text was
> garbled or impossible to enter or change.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44775] Speed-up typing.cast by implementing it in C

2021-07-30 Thread Yurii Karabas


New submission from Yurii Karabas <1998uri...@gmail.com>:

In scope of https://github.com/python/cpython/pull/27262 we have introduce 
`_typing` module with typing related helper functions.

It will be great to speedup `typing.cast` function by implementing it in C.

I have already done it and here is results:
```
import timeit
import typing
import _typing

def _timeit(m):
print(m.__name__, timeit.timeit("cast(int, 1)", globals={"cast": m.cast}))

_timeit(typing)
_timeit(_typing)
```

```
typing  0.0702372890082188
_typing 0.033294505992671475
```

--
components: Library (Lib)
messages: 398529
nosy: kj, uriyyo
priority: normal
severity: normal
status: open
title: Speed-up typing.cast by implementing it in C
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44662] Add ability to annotate types.Union

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 472997659b9c73089cdc22bd7eded6f6fdcffdfe by Miss Islington (bot) 
in branch '3.10':
bpo-44662: Add ability to annotate types.Union (GH-27214) (GH-27461)
https://github.com/python/cpython/commit/472997659b9c73089cdc22bd7eded6f6fdcffdfe


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44662] Add ability to annotate types.Union

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Yurii! ✨ 🍰 ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44775] Speed-up typing.cast by implementing it in C

2021-07-30 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
keywords: +patch
pull_requests: +25993
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27474

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44776] Docs on mobile do not use monospace font for code snippets, misaligning carets of improved error messages

2021-07-30 Thread Alex


New submission from Alex :

Now that the docs are mobile-friendly (nice!), I noticed that the code snippets 
are not using a monospace font (at least on my Android 10 + Chrome 92 device). 
This misaligns the carets of the improved errors messages, for example on the 
"what's new": https://docs.python.org/3.10/whatsnew/3.10.html

I attached an example on how this renders on my device.

--
assignee: docs@python
components: Documentation
files: E7EuL0KWQAI19nx.jpg
messages: 398533
nosy: alexprengere, docs@python
priority: normal
severity: normal
status: open
title: Docs on mobile do not use monospace font for code snippets, misaligning 
carets of improved error messages
versions: Python 3.10, Python 3.11
Added file: https://bugs.python.org/file50191/E7EuL0KWQAI19nx.jpg

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44774] incorrect sys.stdout.encoding within a io.StringIO buffer

2021-07-30 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Why do you expect UTF-8 inside the redirect_stdout block?

io.StringIO doesn't have an encoding - it stores strings, not bytes.

If z3-solver cannot deal with StringIO, then surely that's a bug in z3-solver?

--
nosy: +steven.daprano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44776] Docs on mobile do not use monospace font for code snippets, misaligning carets of improved error messages

2021-07-30 Thread Alex


Alex  added the comment:

It looks this is already being tracked at: 
https://github.com/python/pythondotorg/issues/1708

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread Vinay Sajip


Change by Vinay Sajip :


--
keywords: +patch
pull_requests: +25994
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27475

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-07-30 Thread Felix C. Stegerman


Change by Felix C. Stegerman :


--
nosy: +obfusk

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44774] incorrect sys.stdout.encoding within a io.StringIO buffer

2021-07-30 Thread Pierre Carbonnelle


Pierre Carbonnelle  added the comment:

I expect sys.stdout to have utf-8 encoding inside the redirect because the 
buffer accepts unicode code points (not bytes), just as it does outside of the 
redirect.  In other words, I expect the 'encoding' attribute of sys.stdout to 
have the same value inside and outside this redirect.

It so happens that sys.stdout is an io.StringIO() object inside the redirect.  
The getvalue() method on this object returns a string (not a bytes), i.e. a 
sequence of unicode points.

StringIO inherits from TextIOBase, which has an 'encoding' attribute.  For some 
reason, the encoding of a StringIO object is None, which is inconsistent with 
its semantics: it should be 'uft-8'.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 6ff890380971752299325bd28eab80ec936975cf by Vinay Sajip in branch 
'main':
bpo-44753: Don't use logfile extension when determining old files to be deleted 
(GH-27475)
https://github.com/python/cpython/commit/6ff890380971752299325bd28eab80ec936975cf


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread Vinay Sajip


Vinay Sajip  added the comment:

Should be fixed in main, leaving open until backports are done.

--
versions: +Python 3.10, Python 3.9 -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44774] incorrect sys.stdout.encoding within a io.StringIO buffer

2021-07-30 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

> I expect sys.stdout to have utf-8 encoding inside the redirect because 
> the buffer accepts unicode code points (not bytes)

And the buffer stores unicode code points, not bytes, so why would there 
be an encoding?

Just to get this out of the way, in case you are thinking along these 
lines. Python strings are not arrays of UTF-8 bytes, like Go runes. 
Python strings are arrays of abstract code points.

The specific details will vary from interpreter to interpreter, and from 
version to version, but current versions of CPython use a flexible 
in-memory representation where the width of the code points (1, 2 or 4 
bytes) depend on the string. This is not UTF-8: the bytes are encoded as 
Latin-1, UCS-2, or UTF-32 depending on the string.

> For some reason, the encoding of a StringIO object is None

Because StringIO objects store strings, not bytes. There is no encoding 
involved. The inputs are strings, and the storage is strings.

> which is inconsistent with its semantics: it should be 'uft-8'.

It is completely consistent: the encoding should be None, because there 
is no encoding.

> I expect the 'encoding' attribute of sys.stdout to have the same value 
> inside and outside this redirect.

Why? If you redirect to an actual file using, let's say Mac-Roman 
encoding, or ASCII, or UTF-32, or any one of dozens of other encodings, 
you should expect the encoding inside the block to reflect the actual 
encoding used inside the block.

The encoding outside the block is the encoding used by the original 
stdout; the encoding inside the block is the encoding used by the 
replacement stdout. Why would you expect them to always be the same?

>>> print("outside:", sys.stdout.encoding)
outside: utf-8
>>> with open("/tmp/junk.txt", "w", encoding="ascii") as f:
... with redirect_stdout(f):
... print("inside:", sys.stdout.encoding)
... 
>>> with open("/tmp/junk.txt", encoding="ascii") as f:
... print(f.read())
... 
inside: ascii

> It so happens that sys.stdout is an io.StringIO() object inside the 
> redirect.  The getvalue() method on this object returns a string (not 
> a bytes), i.e. a sequence of unicode points.

Exactly. And that is why there is no encoding involved. It is purely a 
sequence of Unicode code points, not bytes, and at no point was a 
Unicode string encoded to bytes to go to the filesystem.

> StringIO inherits from TextIOBase, which has an 'encoding' attribute.  

And StringIO has an encoding attribute because of inheritance, and it is 
set to None because there is no actual encoding codec used.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 0cb470e622ba37920c72e4d8f284741b9fbaea8b by Erlend Egeberg 
Aasland in branch '3.10':
[3.10] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised 
(GH-27431). (GH-27472)
https://github.com/python/cpython/commit/0cb470e622ba37920c72e4d8f284741b9fbaea8b


--
nosy: +lukasz.langa
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-30 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44774] incorrect sys.stdout.encoding within a io.StringIO buffer

2021-07-30 Thread Pierre Carbonnelle


Pierre Carbonnelle  added the comment:

As a work around, I had to use a temporary file (instead of a memory buffer):

print("outside:", sys.stdout.encoding)
with  open("/tmp/log.txt", mode='w', encoding='utf-8') as buf:
with redirect_stdout(buf) as f:
print("inside: ", sys.stdout.encoding)
with  open("/tmp/log.txt", mode='r', encoding='utf-8') as f:
print(f.read())

and get:

outside: utf-8
inside:  utf-8

as expected.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44774] incorrect sys.stdout.encoding within a io.StringIO buffer

2021-07-30 Thread Pierre Carbonnelle


Pierre Carbonnelle  added the comment:

I can live with the workaround, so, you can close the issue if you wish.  As 
you say, maybe it's an issue with z3.

Thank you for your time.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-07-30 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

hydroflask, can you provide a reproducer?

--
nosy: +erlendaasland
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-30 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Danny: that would be inconsistent with the rest of the doc, it's written as a 
reference list for exceptions and none of them have examples currently.. It 
also seems fairly clear without an example.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-30 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

(in fact, there is one example (for f-string exception) but the overall pattern 
is to just have reference type descriptions)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44761] NewType __module__ attr default value

2021-07-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +25995
pull_request: https://github.com/python/cpython/pull/27477

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44761] NewType __module__ attr default value

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7b975f81e4dba70a42c6279539a7fcfe4211b4c0 by Yurii Karabas in 
branch 'main':
bpo-44761: Change default value of NewType __module__ attr (GH-27406)
https://github.com/python/cpython/commit/7b975f81e4dba70a42c6279539a7fcfe4211b4c0


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Jason R. Coombs


New submission from Jason R. Coombs :

In [this 
comment](https://github.com/python/cpython/pull/27436#issuecomment-889815333), 
I learned that it's possible to break the buildbots in a way that's not fixable 
with a simple code change.

The recommendation there was to contact the buildbot owners, but as far as I 
can tell, there's no mechanism to do that. Reading through the documentation 
for [buildbots](https://devguide.python.org/buildbots/) and [enrolling 
buildbots](https://devguide.python.org/buildworker/), there's nothing about 
subscribing to any list, so it seems there's no way to reach this audience.

It would be nice if there was a mailing list or other notification channel for 
the buildbot owners that could be used to reach out to them in an event like 
this.

--
assignee: docs@python
components: Documentation
messages: 398547
nosy: docs@python, jaraco
priority: normal
severity: normal
status: open
title: Create mechanism to contact buildbot worker owners

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
keywords: +patch
pull_requests: +25996
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27436

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44778] os seperator error. str method of PureWindowsPath on Ming64 env

2021-07-30 Thread mert


New submission from mert :

PureWindowsPath('C:\\Users')

When I call __str__ method of PureWindowsPath on Windows,Cygwin,Linux 
enviroment, I get "C:\Users" as expected. But when I run the same code on MingW 
environment I get "C:/Users". 

from pathlib import PureWindowsPath, Path

p = PureWindowsPath('C:\\Users')

print(str(p))

--
messages: 398548
nosy: demirbey
priority: normal
severity: normal
status: open
title: os seperator error. str method of PureWindowsPath on Ming64 env
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44761] NewType __module__ attr default value

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 56122b0bba7a9e2e3ec672a6c22bfdd7ecf08cbe by Miss Islington (bot) 
in branch '3.10':
bpo-44761: Change default value of NewType __module__ attr (GH-27406) (GH-27477)
https://github.com/python/cpython/commit/56122b0bba7a9e2e3ec672a6c22bfdd7ecf08cbe


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44761] NewType __module__ attr default value

2021-07-30 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44747] Refactor usage of sys._getframe at typing module

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset ea4673ed0757e9bfe8774e60cfae3313e9927b5f by Yurii Karabas in 
branch 'main':
bpo-44747: Refactor usage of sys._getframe at typing module (#27387)
https://github.com/python/cpython/commit/ea4673ed0757e9bfe8774e60cfae3313e9927b5f


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44747] Refactor usage of sys._getframe at typing module

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Yurii! ✨ 🍰 ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44779] Checkouts stale following changes to .gitattributes

2021-07-30 Thread Jason R. Coombs


New submission from Jason R. Coombs :

In [this 
comment](https://github.com/python/cpython/pull/27436#issuecomment-889815333), 
I learned that it's possible to get repo clones into a bad state by:

- commit a text file to main (merge a PR)
- customize the newline handling for that file in .gitattributes (in a separate 
PR)

Users (including buildbots) that pulled the code between these two steps will 
be stuck with the files at the state checked out in the first step.

Example (must be run on Windows):

PS C:\> git clone https://github.com/python/cpython --depth 100
Cloning into 'cpython'...
remote: Enumerating objects: 5946, done.
remote: Counting objects: 100% (5946/5946), done.
remote: Compressing objects: 100% (5079/5079), done.
Receiving objects: 100% (5946/5946), 24.99 MiB | 9.18 MiB/s, done.
remote: Total 5946 (delta 1382), reused 2314 (delta 758), pack-reused 0
Resolving deltas: 100% (1382/1382), done.
Updating files: 100% (4699/4699), done.
PS C:\> cd cpython
PS C:\cpython> git checkout aaa83cd^1
HEAD is now at 851cca8 Add missing gdbm dependencies to the UNIX CI (GH-27467)
PS C:\cpython> # simulate as if this rev was the the initial checkout
PS C:\cpython> git rm -r :/ > $null ; git checkout HEAD -- :/
PS C:\cpython> python -c "import pathlib; 
print(repr(pathlib.Path('Lib/test/test_importlib/namespacedata01/utf-8.file').read_bytes()))"
b'Hello, UTF-8 world!\r\n'
PS C:\cpython> git checkout -q aaa83cd
HEAD is now at aaa83cd bpo-44771: Apply changes from importlib_resources 5.2.1 
(GH-27436)
PS C:\cpython> python -c "import pathlib; 
print(repr(pathlib.Path('Lib/test/test_importlib/namespacedata01/utf-8.file').read_bytes()))"
b'Hello, UTF-8 world!\r\n'
PS C:\cpython> git rm -r :/ > $null ; git checkout HEAD -- :/
PS C:\cpython> python -c "import pathlib; 
print(repr(pathlib.Path('Lib/test/test_importlib/namespacedata01/utf-8.file').read_bytes()))"
b'Hello, UTF-8 world!\n'

This issue doesn't exist on other repos (the file has Unix newlines in all 
checkouts):

PS C:\> git clone https://github.com/python/importlib_resources
Cloning into 'importlib_resources'...
remote: Enumerating objects: 2811, done.
remote: Counting objects: 100% (732/732), done.
remote: Compressing objects: 100% (400/400), done. eceiving objects:   1% 
(29/2811)
remote: Total 2811 (delta 456), reused 556 (delta 309), pack-reused 2079
Receiving objects: 100% (2811/2811), 446.21 KiB | 7.44 MiB/s, done.
Resolving deltas: 100% (1796/1796), done.
PS C:\> cd importlib_resources
PS C:\importlib_resources> python -c "import pathlib; 
print(repr(pathlib.Path('importlib_resources/tests/namespacedata01/utf-8.file').read_bytes()))"
 
b'Hello, UTF-8 world!\n'


I'm not sure there's much this project can do, except maybe consider minimizing 
the number of files that need customization.

As a former Windows enthusiast, I found the CRLF changes to be annoying an not 
particularly useful, so I sought to use LF for newlines wherever possible, for 
simplicity and consistency. Some editors (notably Notepad) would not handle 
these newlines well, but almost all other editors would handle them just fine.

This project could consider standardizing on Unix newlines with a small number 
of exceptions rather than allowing files by default to be converted to 
platform-specific newlines.

I'm yet unsure what setting it is about the CPython repo that causes newlines 
to be customized per platform but importlib_resources does not.

--
assignee: docs@python
components: Documentation
messages: 398552
nosy: docs@python, jaraco
priority: normal
severity: normal
status: open
title: Checkouts stale following changes to .gitattributes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests:  -25996

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
stage: patch review -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +25997
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27436

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44779] Checkouts stale following changes to .gitattributes

2021-07-30 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
keywords: +patch
pull_requests: +25998
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27436

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44771] Adopt changes from importlib_resources 5.2

2021-07-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Seems that PR 27436 has broken several buildbots. For instance:

https://buildbot.python.org/all/#/builders/350/builds/474

Following our buildbot policy, we will sadly need to revert in 24 if is not 
fixed.

--
nosy: +pablogsal
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

There is a list `python-buildb...@python.org` that all buildbot owners have 
been subscribed.

--
nosy: +jkloth

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Filipe Laíns

Change by Filipe Laíns :


--
nosy: +FFY00

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44771] Adopt changes from importlib_resources 5.2

2021-07-30 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +25999
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/27483

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Let me add the contact information to devguide.python.org.

--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44780] Incorrect message: "Invalid decimal literal" (python 3.10)

2021-07-30 Thread Andre Roberge

New submission from Andre Roberge :

Consider the following:

>>> a = (1‚ 2)  # not a comma, but unicode character.

Using Python 3.9 (and earlier), we get the following correct information

>>> a = (1‚ 2)
  File "", line 1
a = (1‚ 2)
  ^
SyntaxError: invalid character '‚' (U+201A)

Using Python 3.10, we get the following incorrect information instead:

>>> a = (1‚ 2)
  File "", line 1
a = (1‚ 2)
 ^
SyntaxError: invalid decimal literal

--
messages: 398556
nosy: aroberge, pablogsal
priority: normal
severity: normal
status: open
title: Incorrect message: "Invalid decimal literal" (python 3.10)
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44771] Adopt changes from importlib_resources 5.2

2021-07-30 Thread Filipe Laíns

Change by Filipe Laíns :


--
pull_requests: +26000
pull_request: https://github.com/python/cpython/pull/27484

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Done and done.

See: https://devguide.python.org/buildbots/

(https://github.com/python/devguide/pull/733)

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44778] os seperator error. str method of PureWindowsPath on Ming64 env

2021-07-30 Thread Eryk Sun


Eryk Sun  added the comment:

MinGW Python sets os.sep to "/" and os.altsep to "\\". It also swaps 
_WindowsFlavour.sep and _WindowsFlavour.altsep in pathlib. This seems dubious 
to me. Technically the Windows API supports both backslash and slash as path 
separators, but in practice many API functions only support backslash (e.g. the 
path functions such as PathCchSkipRoot). Anyway, it's a third-party issue. 
You'll have to report it to the MinGW maintainers if you want it resolved, or 
to at least get an informed reason why the change is necessary.

--
components: +Windows
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44777] Create mechanism to contact buildbot worker owners

2021-07-30 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

Awesome. Thanks Łukasz.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41103] Removing old buffer support

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Resolved as "wontfix" due to presence in the stable ABI.

--
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44780] Incorrect message: "Invalid decimal literal" (python 3.10)

2021-07-30 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44781] test_distutils emits deprecation warning about distils

2021-07-30 Thread Irit Katriel


New submission from Irit Katriel :

The test will be removed with distutils, so for now it should suppress the 
deprecation warning so that we can run the tests with warnings as errors.

--
components: Tests
messages: 398561
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: test_distutils emits deprecation warning about distils
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44781] test_distutils emits deprecation warning about distils

2021-07-30 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
pull_requests: +26001
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27485

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44781] test_distutils emits deprecation warning about distutils

2021-07-30 Thread Irit Katriel


Change by Irit Katriel :


--
title: test_distutils emits deprecation warning about distils -> test_distutils 
emits deprecation warning about distutils

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-30 Thread Danny Lin


Danny Lin  added the comment:

@Andrei Kulakov: I was commenting on the previous version. The revised version 
(f2ae30b0de3c4ba1f16fc2a430cf22b447c062ed) seems ok to me.

Another question: would it be better if we add "on some platforms" for the part 
that the error may raise on a file operation?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44779] Checkouts stale following changes to .gitattributes

2021-07-30 Thread Jeremy Kloth


Change by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +26002
pull_request: https://github.com/python/cpython/pull/27486

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26003
pull_request: https://github.com/python/cpython/pull/27487

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41254] Add to/from string methods to datetime.timedelta

2021-07-30 Thread Matthew Kenigsberg


Matthew Kenigsberg  added the comment:

I think it would be nice to have a from str method that could reverse the 
behavior of str(timedelta). I'm trying to parse files that contain the output 
of str(timedelta), and there's no easy way to get them back to timedelta's

--
nosy: +matthewkenigsberg

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-07-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> I understand, the proposal would be to make frozensets keep the creation 
> order.

That would increase the memory consumption of all frozen set instances, which 
is likely not going to fly

--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-07-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

The only way I can see here is to go with a similar strategy as Serhiy 
proposes, which seems that it has a non trivial complication (and a new type, 
which I am not very fond of) but is a bit cleaner than changing the semantics 
of the type, which affects much more than the storage.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-30 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Danny: then it would be probably more useful to say "On POSIX systems, it will 
be raised when ...".

I'm ambivalent on whether this is needed.

Eryk: wdyt?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-30 Thread Danny Lin


Danny Lin  added the comment:

@Andrei Kulakov: That statement is mainly for illustration that such behavior 
may vary across platforms. I use a rather vague statement as I'm not totally 
sure it applies if (and only if) running on POSIX. A more accurate statement is 
welcome as long as it's proven true.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 882e4761c63ae76d994b57bbcd7e5adbf2aa7b4f by Miss Islington (bot) 
in branch '3.9':
bpo-44753: Don't use logfile extension when determining old files to be deleted 
(GH-27475) (GH-27486)
https://github.com/python/cpython/commit/882e4761c63ae76d994b57bbcd7e5adbf2aa7b4f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 6e6dc2517379289932c68fc986ee3994468374fc by Miss Islington (bot) 
in branch '3.10':
bpo-44753: Don't use logfile extension when determining old files to be deleted 
(GH-27475) (GH-27487)
https://github.com/python/cpython/commit/6e6dc2517379289932c68fc986ee3994468374fc


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-30 Thread Vinay Sajip


Vinay Sajip  added the comment:

Thanks for the bug report.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-07-30 Thread Maxime LEURENT


Change by Maxime LEURENT :


--
title: LRU class given as example in OrderedDict example not work on pop -> LRU 
class given as example in OrderedDict docs not work on pop

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44782] LRU class given as example in OrderedDict example not work on pop

2021-07-30 Thread Maxime LEURENT


New submission from Maxime LEURENT :

Hello,

I try to use a dictionnary with limited size, and I use class LRU given in docs 
on OrderedDict.

Unfortunately this class is, somehow, not working on pop method.

I say somehow because if I do OrderedDict pop method by hand I don't get any 
Exception. I do not understand how LRU.__getitem__ is call after del, and why 
"value = super().__getitem__(key)" work, when "self.move_to_end(key)" don't

Code tested on python3.7 and python3.8:


from collections import OrderedDict

class LRU(OrderedDict):
'Limit size, evicting the least recently looked-up key when full'

def __init__(self, maxsize=128, *args, **kwds):
self.maxsize = maxsize
super().__init__(*args, **kwds)

def __getitem__(self, key):
value = super().__getitem__(key)
self.move_to_end(key) #<=== Bug here
return value

def __setitem__(self, key, value):
if key in self:
self.move_to_end(key)
super().__setitem__(key, value)
if len(self) > self.maxsize:
oldest = next(iter(self))
del self[oldest]


d = LRU()
d["foo"] = "bar"
d.pop("foo") #<= KeyError on mode_to_send in LRU.__getitem__ method

#pop method by "hand"  
d["foo2"] = "bar"
if "foo2" in d :
result = d["foo2"]
del d["foo2"]
print(result) #work fine

--
assignee: docs@python
components: Documentation
messages: 398571
nosy: docs@python, maximeLeurent
priority: normal
severity: normal
status: open
title: LRU class given as example in OrderedDict example not work on pop
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 80f07076294bc09a55ed76d9bbf307404eef25e6 by Stefan Hoelzl in 
branch 'main':
bpo-44666: Use default encoding as fallback for compile_file (GH-27236)
https://github.com/python/cpython/commit/80f07076294bc09a55ed76d9bbf307404eef25e6


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26005
pull_request: https://github.com/python/cpython/pull/27489

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +26004
pull_request: https://github.com/python/cpython/pull/27488

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +26006
pull_request: https://github.com/python/cpython/pull/27490

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 4bd9caafb64589288e5171087070bde726178c58 by andrei kulakov in 
branch 'main':
bpo-41911: Update docs for various expressions (GH-27470)
https://github.com/python/cpython/commit/4bd9caafb64589288e5171087070bde726178c58


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26007
pull_request: https://github.com/python/cpython/pull/27491

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42892] AttributeError in email.message.get_body()

2021-07-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +26008
pull_request: https://github.com/python/cpython/pull/27492

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42892] AttributeError in email.message.get_body()

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset e3f877c32d7cccb734f45310f26beeec793364ce by andrei kulakov in 
branch 'main':
bpo-42892: fix email multipart attribute error (GH-26903)
https://github.com/python/cpython/commit/e3f877c32d7cccb734f45310f26beeec793364ce


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42892] AttributeError in email.message.get_body()

2021-07-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26009
pull_request: https://github.com/python/cpython/pull/27493

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43625] CSV has_headers heuristic could be improved

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset ceea579ccc51791f3e115155d6f27905bc7544a9 by andrei kulakov in 
branch 'main':
bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939)
https://github.com/python/cpython/commit/ceea579ccc51791f3e115155d6f27905bc7544a9


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43625] CSV has_headers heuristic could be improved

2021-07-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +26010
pull_request: https://github.com/python/cpython/pull/27494

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 0db6c143ae5f04d223fdb2c94b820f16714b0a09 by Miss Islington (bot) 
in branch '3.10':
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) 
(GH-27488)
https://github.com/python/cpython/commit/0db6c143ae5f04d223fdb2c94b820f16714b0a09


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 73240d425b770c26d9424665259cd9a2f339b626 by Miss Islington (bot) 
in branch '3.9':
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) 
(GH-27489)
https://github.com/python/cpython/commit/73240d425b770c26d9424665259cd9a2f339b626


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-30 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44666] compileall.compile_file fails when sys.stdout is redirected to StringIO

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Stefan! ✨ 🍰 ✨

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 48a62559dfaf775e4f1cc56b19379c799e8e2587 by andrei kulakov in 
branch 'main':
bpo-44648: Fix error type in inspect.getsource() in interactive session 
(GH-27171)
https://github.com/python/cpython/commit/48a62559dfaf775e4f1cc56b19379c799e8e2587


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +26011
pull_request: https://github.com/python/cpython/pull/27495

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Since this is an exception type change, I'd feel more comfortable leaving 3.9 
out of the backports here. That way it will be easier for application authors 
to differentiate between when the change was introduced or not.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-30 Thread Łukasz Langa

Change by Łukasz Langa :


--
versions:  -Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43625] CSV has_headers heuristic could be improved

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

Since this is a heuristic change, I'm thinking we shouldn't backport this to 
3.9. This way it will be easier for application authors to notice the change 
and control it within their apps.

--
versions: +Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43625] CSV has_headers heuristic could be improved

2021-07-30 Thread Andrei Kulakov

Andrei Kulakov  added the comment:

Łukasz: I agree.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 843b3d28209b7754c51c6cc3844f66808b6dbdaf by Miss Islington (bot) 
in branch '3.10':
bpo-41911: Update docs for various expressions (GH-27470) (GH-27490)
https://github.com/python/cpython/commit/843b3d28209b7754c51c6cc3844f66808b6dbdaf


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset b57011d2a5375bc9f255361dc64c9e6fbc203e0e by Miss Islington (bot) 
in branch '3.9':
bpo-41911: Update docs for various expressions (GH-27470) (GH-27491)
https://github.com/python/cpython/commit/b57011d2a5375bc9f255361dc64c9e6fbc203e0e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-30 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11 -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42892] AttributeError in email.message.get_body()

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 6f950023c6a2168b229363d75f59a24ecdd66d19 by Miss Islington (bot) 
in branch '3.10':
bpo-42892: fix email multipart attribute error (GH-26903) (GH-27492)
https://github.com/python/cpython/commit/6f950023c6a2168b229363d75f59a24ecdd66d19


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43625] CSV has_headers heuristic could be improved

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 440c9f772a9b66c1ea387c1c3efc9ff438880acf by Miss Islington (bot) 
in branch '3.10':
bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) 
(GH-27494)
https://github.com/python/cpython/commit/440c9f772a9b66c1ea387c1c3efc9ff438880acf


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43625] CSV has_headers heuristic could be improved

2021-07-30 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42892] AttributeError in email.message.get_body()

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 0f42b726c87f72d522893f927b4cb592b8875641 by Miss Islington (bot) 
in branch '3.9':
bpo-42892: fix email multipart attribute error (GH-26903) (GH-27493)
https://github.com/python/cpython/commit/0f42b726c87f72d522893f927b4cb592b8875641


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42892] AttributeError in email.message.get_body()

2021-07-30 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-30 Thread Othmane EL BOURI


Othmane EL BOURI  added the comment:

ince this is an exception type change, I'd feel more comfortable leaving 3.9 
out of the backports here. That way it will be easier for application authors 
to differentiate between when the change was introduced or not.

--
nosy: +othmaneelbouri1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44781] test_distutils emits deprecation warning about distutils

2021-07-30 Thread Łukasz Langa

Change by Łukasz Langa :


--
versions: +Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-30 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset f468ede4a2b7ab5c72ae85ab04cb56904300cd23 by Miss Islington (bot) 
in branch '3.10':
bpo-44648: Fix error type in inspect.getsource() in interactive session 
(GH-27171) (GH-27495)
https://github.com/python/cpython/commit/f468ede4a2b7ab5c72ae85ab04cb56904300cd23


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >