[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-17 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-16 Thread Guido van Rossum
Guido van Rossum added the comment: In the PR (https://github.com/python/cpython/pull/17974) we found that there's no great solution for this. This issue will probably linger for a while, but maybe we should just set an example and close it, since we're unlikely to take any action?

[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-12 Thread kornicameister
Change by kornicameister : -- keywords: +patch pull_requests: +17381 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17974 ___ Python tracker ___ _

[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-12 Thread kornicameister
kornicameister added the comment: I will play around and maybe submit PR later this evening. -- ___ Python tracker ___ ___ Python-b

[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: No need to open the attachment -- a simpler repro is: >>> from typing import Literal >>> Literal[1] typing.Literal[1] >>> Literal[True] typing.Literal[1] >>> However, in a fresh session >>> from typing import Literal >>> Literal[True] typing.Literal[True]