[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2022-02-17 Thread jack1142


jack1142  added the comment:

I'm aware, I'm reporting this because as long as the instantiation of a Task is 
documented, the documentation should still contain accurate up-to-date 
information.

--

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



[issue45380] help() appears confused about the module of typing.Annotated

2022-02-03 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue46555] Unicode-mangled names refer inconsistently to constants

2022-01-29 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue39181] Add `os.makedirs()` as `Path.mkdir()` equivalent in correspondence table

2022-01-02 Thread jack1142


jack1142  added the comment:

Looks like this has been reported again in https://bugs.python.org/issue39470 
and a fix for it has already been merged.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

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



[issue42174] shutil.get_terminal_size() returns 0 when run in a pty

2021-10-09 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2021-09-04 Thread jack1142


New submission from jack1142 :

The documentation here:
https://docs.python.org/3.10/library/asyncio-task.html#asyncio.Task

Says that `loop` parameter was removed but it's still part of the signature. It 
gets even more confusing when the deprecation right below it is saying that 
*not* passing it when there is no running event loop is deprecated :)

I could make a PR removing this information but I'm not sure whether there 
should be also some information put about it being deprecated in 3.8 but not 
actually getting removed in 3.10?

--
assignee: docs@python
components: Documentation
messages: 401047
nosy: docs@python, jack1142
priority: normal
severity: normal
status: open
title: asyncio.Task's documentation says that loop arg is removed when it's not
type: behavior
versions: Python 3.10

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



[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2021-09-04 Thread jack1142


Change by jack1142 :


--
components: +asyncio
nosy: +asvetlov, yselivanov

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



[issue43532] Add keyword-only fields to dataclasses

2021-08-03 Thread jack1142


jack1142  added the comment:

Does this change deserve an entry in the What's New in Python document in 
addition to the changelog entry?

--

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



[issue43535] Make str.join auto-convert inputs to strings.

2021-03-20 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue31861] add aiter() and anext() functions

2021-03-17 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue43006] Changed behaviour of inspect.signature() in Python 3.10

2021-01-29 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue42280] The list of standard generic collections is incomplete

2020-11-15 Thread jack1142


jack1142  added the comment:

I was thinking that this could be the case but if I'm not mistaken, there's 
actually quite a lot of types in this list that aren't collections (awaitable, 
coroutine, iterable, iterator, generator, the async versions of those, 
callable, *hmm, are views collections?*, and the ones you mentioned), so I 
figured that listing *only* collections might have not been the intention when 
this was written. But listing all of the generics in Python would indeed be 
lengthy so it might make sense to limit it to collections nonetheless, I'm not 
really sure about it though.

--

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



[issue42280] The list of standard generic collections is incomplete

2020-11-06 Thread jack1142


New submission from jack1142 :

It looks like the documentation lists standard library collections that support 
parameterized generics[1] however, it seems to only feature a part of all the 
collections that support parametrizing (I'm going by the list that was produced 
by Ethan Smith[2], it could be slightly inaccurate now, but that can be 
cross-checked when making the contribution).

I would be interested in making a PR adding these if/when this issue gets 
accepted.


[1] 
https://docs.python.org/3.10/library/stdtypes.html#standard-generic-collections
[2] https://github.com/gvanrossum/cpython/pull/1#issuecomment-582781121

--
assignee: docs@python
components: Documentation
messages: 380467
nosy: docs@python, jack1142
priority: normal
severity: normal
status: open
title: The list of standard generic collections is incomplete
type: enhancement
versions: Python 3.10, Python 3.9

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



[issue39102] Increase Enum performance

2020-08-30 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2020-08-25 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue41622] Add support for emoji-data.txt and emoji-variation-sequences.txt to unicodedata

2020-08-23 Thread jack1142


New submission from jack1142 :

`emoji-data.txt` and `emoji-variation-sequences.txt` files were formally pulled 
into the UCD as of Version 13.0 [1] so I think that unicodedata as a package 
providing access to UCD could support those as well.
In particular:
- `emoji-data.txt` lists character properties for emoji characters [2] 
- `emoji-variation-sequences.txt` lists valid text and emoji presentation 
sequences [3]

Data from `emoji-variation-sequences.txt` can be used to ensure consistent 
rendering of emoji characters across devices [4] (`StandardizedVariants.txt` 
has a similar purpose for non-emoji characters).
I'm not entirely sure of the use cases for `emoji-data.txt`, but because it's 
also newly added in UCD 13.0.0, I figured I at least shouldn't omit it when 
making this issue.


[1] https://www.unicode.org/reports/tr44/#Change_History - Changes in Unicode 
13.0.0, "Emoji Data" section
[2] https://www.unicode.org/reports/tr51/#Emoji_Properties_and_Data_Files
[3] https://www.unicode.org/reports/tr51/#Emoji_Variation_Sequences
[4] https://unicode.org/faq/vs.html#1

--
components: Unicode
messages: 375826
nosy: ezio.melotti, jack1142, vstinner
priority: normal
severity: normal
status: open
title: Add support for emoji-data.txt and emoji-variation-sequences.txt to 
unicodedata
type: enhancement
versions: Python 3.10, Python 3.9

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



[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue37373] Configuration of windows event loop for libraries

2020-07-07 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2020-05-08 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142
nosy_count: 7.0 -> 8.0
pull_requests: +19319
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20008

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



[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2020-05-02 Thread jack1142


Change by jack1142 :


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

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



[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2020-05-01 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue37006] Add top level await statement support for doctest

2020-04-19 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue40273] mappingproxy isn't reversible

2020-04-13 Thread jack1142


Change by jack1142 :


--
type:  -> enhancement

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



[issue40273] mappingproxy isn't reversible

2020-04-13 Thread jack1142


New submission from jack1142 :

Starting in version 3.8, dicts are reversible so it would make sense if mapping 
proxy were also reversible. Especially that `reversed(proxied_dict.keys())` 
does work.

--
messages: 366315
nosy: jack1142
priority: normal
severity: normal
status: open
title: mappingproxy isn't reversible
versions: Python 3.8, Python 3.9

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



[issue39232] asyncio crashes when tearing down the proactor event loop

2020-03-14 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue39942] Making instance of `TypeVar` fails because of missing `__name__`

2020-03-11 Thread jack1142


New submission from jack1142 :

Example code:
```
code = """
import typing
T = typing.TypeVar("T")
"""
exec(code, {})
```

Traceback:
```
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 3, in 
  File "C:\Python38\lib\typing.py", line 603, in __init__
def_mod = sys._getframe(1).f_globals['__name__']  # for pickling
KeyError: '__name__'
```

If this problem with `__name__` is not something that needs to be fixed, then I 
also noticed that the same line in typing.py will also raise when platform 
doesn't have `sys._getframe()`

--
components: Library (Lib)
messages: 363990
nosy: jack1142
priority: normal
severity: normal
status: open
title: Making instance of `TypeVar` fails because of missing `__name__`
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

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



[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2020-02-07 Thread jack1142


Change by jack1142 :


--
nosy: +jack1142

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



[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-02-05 Thread jack1142


jack1142  added the comment:

I also noticed that putting `await` before the async comprehension will make 
the code inside the comprehension run (though after it runs, it will fail on 
awaiting list):

>>> await [await asyncio.sleep(1, print(x)) for x in range(5)] 
0
1
2
3
4
Traceback (most recent call last):
  File "C:\Python38\lib\concurrent\futures\_base.py", line 439, in result
return self.__get_result()
  File "C:\Python38\lib\concurrent\futures\_base.py", line 388, in __get_result
raise self._exception
  File "", line 1, in 
TypeError: object list can't be used in 'await' expression

--

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



[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-02-05 Thread jack1142


New submission from jack1142 :

asyncio REPL doesn't allow using asynchronous comprehensions outside of async 
func. Same behavior can also be observed when using 
`ast.PyCF_ALLOW_TOP_LEVEL_AWAIT` flag in `compile()`

Example with `async for`:
>>> async def async_gen():
... for x in range(5):
... yield await asyncio.sleep(1, x)
... 
>>> [x async for x in async_gen()]
  File "", line 0
SyntaxError: asynchronous comprehension outside of an asynchronous function


Example with `await`:
>>> [await asyncio.sleep(1, x) for x in range(5)]
  File "", line 0
SyntaxError: asynchronous comprehension outside of an asynchronous function

--
components: asyncio
messages: 361443
nosy: asvetlov, jack1142, yselivanov
priority: normal
severity: normal
status: open
title: Asynchronous comprehensions don't work in asyncio REPL
type: behavior
versions: Python 3.8, Python 3.9

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



[issue39181] Add `os.makedirs()` as `Path.mkdir()` equivalent in correspondence table

2020-01-01 Thread jack1142


New submission from jack1142 :

https://github.com/python/cpython/blob/3.7/Doc/library/pathlib.rst#correspondence-to-tools-in-the-modos-module

The table mapping `os` functions to `Path`'s equivalents is missing 
`os.makedirs` in the row with `Path.mkdir()` and they are both equivalent when 
`Path.mkdir()` is used with `parents=True` kwarg.

I can make a PR once this gets triaged, I'm not sure if this doc improvement 
should only be made to master branch or also 3.7/3.8 so let me know about that 
too, thanks.

--
assignee: docs@python
components: Documentation
messages: 359162
nosy: docs@python, jack1142
priority: normal
severity: normal
status: open
title: Add `os.makedirs()` as `Path.mkdir()` equivalent in correspondence table
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

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



[issue36939] Allow to use shutil.copytree for existing destination directory with optional argument

2019-05-16 Thread jack1142


jack1142  added the comment:

Sorry, it looks like I was looking at 3.7 branch and this is already 
implemented in master branch.

--
stage:  -> resolved
status: open -> closed

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



[issue36939] Allow to use shutil.copytree for existing destination directory with optional argument

2019-05-16 Thread jack1142


New submission from jack1142 :

Currently shutil.copytree will allow to copy tree only if destination directory 
doesn't exist. I think there could be added `exist_ok` keyword argument 
(defaulting to `False`), which when set to `True` would prevent function from 
raising `FileExistsError`.
This is pretty easy to implement as `os.makedirs` command that raises this 
error already has `exist_ok` kwarg, which prevent function from raising that 
exception already.

--
components: Library (Lib)
messages: 342645
nosy: jack1142
priority: normal
severity: normal
status: open
title: Allow to use shutil.copytree for existing destination directory with 
optional argument
type: enhancement
versions: Python 3.8

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