A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-December/001591.html below:

[Python-Dev] Missing POSIX functions: the list

[Python-Dev] Missing POSIX functions: the listFred L. Drake, Jr. fdrake@acm.org
Fri, 10 Dec 1999 10:40:21 -0500 (EST)
Greg Stein writes:
 > No need to do a new type. Just wrap the DIR* into a PyCObject. Add a magic
 > number if you're worried about mixing CObjects.

  That's certainly one option, but I would have made readdir(),
seekdir(), rewinddir() and closedir() into the methods read(), seek(), 
rewind() and close().  So it's a question of what interface you
prefer; functions with magically interpreted token parameters (kind of 
like file descriptors, hey!), or something that is more recognizably
object-oriented.
  I know my preference.  ;-)


  -Fred

--
Fred L. Drake, Jr.	     <fdrake@acm.org>
Corporation for National Research Initiatives



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4