[issue37814] typing module: empty tuple syntax is undocumented

2019-08-13 Thread Josh Holland


Change by Josh Holland :


--
pull_requests: +14981
pull_request: https://github.com/python/cpython/pull/15262

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



[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2019-12-27 Thread Josh Holland


Change by Josh Holland :


--
nosy: +anowlcalledjosh

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



[issue37814] typing module: empty tuple syntax is undocumented

2019-08-10 Thread Josh Holland


New submission from Josh Holland :

The empty tuple syntax in type annotations, `Tuple[()]`, is not obvious from 
the examples given in the documentation (I naively expected `Tuple[]` to work); 
it has been documented in PEP 484[1] and in mypy[2], but not in the 
documentation for the typing module.

[1]: https://www.python.org/dev/peps/pep-0484/#the-typing-module
[2]: https://github.com/python/mypy/pull/4313

--
assignee: docs@python
components: Documentation
messages: 349366
nosy: anowlcalledjosh, docs@python
priority: normal
severity: normal
status: open
title: typing module: empty tuple syntax is undocumented
type: enhancement

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



[issue37814] typing module: empty tuple syntax is undocumented

2019-08-11 Thread Josh Holland


Change by Josh Holland :


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

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



[issue37814] typing module: empty tuple syntax is undocumented

2019-08-11 Thread Josh Holland


Josh Holland  added the comment:

PEP 586 doesn't currently allow Literal to contain tuples, so Tuple[()] is the 
only option.

--

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



[issue32421] Keeping an exception in cache can segfault the interpreter

2017-12-24 Thread Josh Holland

Change by Josh Holland :


--
nosy: +anowlcalledjosh

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



[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2018-06-19 Thread Josh Holland


Change by Josh Holland :


--
nosy: +anowlcalledjosh

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



[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Josh Holland

New submission from Josh Holland:

Path objects already have rename() and replace() methods; it would be useful 
for them also to have a copy() method to simplify that operation.

I'll look into putting a patch together this evening.

--
components: Library (Lib)
messages: 243494
nosy: jshholland
priority: normal
severity: normal
status: open
title: pathlib.Path should have a copy() method
type: enhancement
versions: Python 3.4, Python 3.5, Python 3.6

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



[issue24229] pathlib.Path should have a copy() method

2015-05-19 Thread Josh Holland

Josh Holland added the comment:

Serhiy makes a series of good points, which I hadn't really considered before 
filing this report. It was mostly laziness on my part while dashing off a quick 
script - I knew I wouldn't have to deal with the edge cases so subconsciously 
dismissed them, especially as the code I wrote to copy was only a couple of 
lines.

So I'm happy for this bug to be closed with no change needed.

--

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