[issue18249] Incorrect and incomplete help docs for close() method

2019-03-21 Thread Andrés Delfino

Andrés Delfino  added the comment:

Closing with Victor Stinner's approval.

--
nosy: +adelfino
resolution:  -> not a bug
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



[issue18249] Incorrect and incomplete help docs for close() method

2013-06-17 Thread Dave Angel

New submission from Dave Angel:

Python 3.3.0 (default, Mar  7 2013, 00:24:38) 
[GCC 4.6.3] on linux

q = open('/dev/null')
help(q.close)

the entire output is:
---
Help on built-in function close:

close(...)
(END)
---

But close() is NOT a built-in, it's a method.

(In Python 2.7.*  the output is:

---
Help on built-in function close:

close(...)
close() - None or (perhaps) an integer.  Close the file.

Sets data attribute .closed to True.  A closed file cannot be used for
further I/O operations.  close() may be called more than once without
error.  Some kinds of file objects (for example, opened by popen())
may return an exit status upon closing.
(END)
---
which is only partially wrong.

--
assignee: docs@python
components: Documentation
messages: 191382
nosy: DaveA, docs@python
priority: normal
severity: normal
status: open
title: Incorrect and incomplete help docs for close() method

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18249
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18249] Incorrect and incomplete help docs for close() method

2013-06-17 Thread Christian Heimes

Christian Heimes added the comment:

In fact it is a built-in method without a doc string:

 f = open(/dev/null)
 f.close
built-in method close of _io.TextIOWrapper object at 0x7feefaab42f0
 f.close.__doc__

All functions and methods that are implemented in C are referred to as built-in 
functions. It's an implementation detail.

--
nosy: +christian.heimes
priority: normal - low
type:  - behavior
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18249
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com