[issue27688] Expand documentation about Any in the typing module

2016-08-06 Thread Guido van Rossum

Changes by Guido van Rossum :


--
resolution:  -> fixed
stage:  -> 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



[issue27688] Expand documentation about Any in the typing module

2016-08-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cbcab1fb1b8a by Guido van Rossum in branch '3.5':
Better docs for typing.Any by Michael Lee. Fixes issue #27688.
https://hg.python.org/cpython/rev/cbcab1fb1b8a

New changeset f60e16663f6e by Guido van Rossum in branch 'default':
Better docs for typing.Any by Michael Lee. Fixes issue #27688. (Merge 3.5->3.6)
https://hg.python.org/cpython/rev/f60e16663f6e

--
nosy: +python-dev

___
Python tracker 

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



[issue27688] Expand documentation about Any in the typing module

2016-08-05 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

I have reviewed your patch, and it compiles with sphinx. no issue with the 
content, but I am not a native speaker and not an expert of the type hinting of 
python 3.5

--
nosy: +matrixise

___
Python tracker 

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



[issue27688] Expand documentation about Any in the typing module

2016-08-05 Thread Michael Lee

Michael Lee added the comment:

Here's revision two. The only change I didn't make was the one about the 
isinstance check. It isn't included in PEP 484, and after talking to Guido, he 
decided it wouldn't be appropriate to document it here.

--
Added file: http://bugs.python.org/file44025/object-vs-any-v2.patch

___
Python tracker 

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



[issue27688] Expand documentation about Any in the typing module

2016-08-05 Thread Ivan Levkivskyi

Changes by Ivan Levkivskyi :


--
nosy: +levkivskyi

___
Python tracker 

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



[issue27688] Expand documentation about Any in the typing module

2016-08-04 Thread Michael Lee

New submission from Michael Lee:

This patch updates the section about `Any` in the typing module. Previously, 
that section was relatively sparse and didn't seem to do a very good job of 
helping the reader understand what the distinction between `Any` and `object` 
is.

This patch expands that section and adds several examples borrowed from the 
mypy docs and PEP 484.

--
assignee: docs@python
components: Documentation
files: object-vs-any.patch
keywords: patch
messages: 272009
nosy: docs@python, gvanrossum, michael0x2a
priority: normal
severity: normal
status: open
title: Expand documentation about Any in the typing module
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44012/object-vs-any.patch

___
Python tracker 

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