New submission from cowlinator :
If `importlib.metadata.version` can't find the distribution version, it seems
to return the result of a local `git describe`. I don't know if this is
git-specific, or which other SCMs this might try to interact with.
The result of `importlib.metada
cowlinator added the comment:
I'd also like to know which `git describe` args it's using
--
___
Python tracker
<https://bugs.python.org/issue46595>
___
___
cowlinator added the comment:
nevermind, i was just being stupid. the git describe wound up in a local egg or
build metadata which i guess is where importlib.metadata.version pulls from
--
___
Python tracker
<https://bugs.python.org/issue46
Change by cowlinator :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46595>
___
___
Python-bugs-list
cowlinator added the comment:
I would like to second the improved explanation of contextlib.contextmanager,
and additionally point out another problem:
A very important piece of information is missing from the documentation: how
to return data from the contextmanager-wrapped function.
I
New submission from cowlinator :
The documentation for the csv.DictReader constructor (and presumably
csv.DictWriter also) has the wrong name written for the first argument. This
prevents the argument from being called by name.
>>> file = open("file.txt", 'a')
&g
cowlinator added the comment:
Hi, thanks for the quick action on this!
The documentation is still wrong for 3.5 . I had selected 3.5 for the affected
versions, but I guess it got removed?
--
versions: +Python 3.5
___
Python tracker
<ht
New submission from cowlinator :
I can consistently reproduce a bug in 2.7.15 on Windows which causes an
unexpected IOError.
Steps to reproduce:
Enter the following code in a plain-vanilla windows command line console:
>>> import sys
>>> while True:
... sys.stdou
cowlinator added the comment:
I think you are probably right.
I'm using Windows 10 Version 1709 (OS Build 16299.611)
--
___
Python tracker
<https://bugs.python.org/is