New submission from Jon:

The documentation for the del keyword in the language reference doesn't mention 
the name binding behaviour:

https://docs.python.org/3/reference/simple_stmts.html#grammar-token-del_stmt

It is mentioned in section 4.1 where it says: 

"A target occurring in a del statement is also considered bound for this 
purpose"

But it's really not obvious to look there when trying to understand what del 
does.

It would be great if this information were added or a reference made to the 
other section.

----------
assignee: docs@python
components: Documentation
messages: 243163
nosy: docs@python, jc13
priority: normal
severity: normal
status: open
title: del statement documentation doesn't mention name binding behaviour
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24187>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to