[Python-Dev] mknod for posixmodule

Guido van Rossum guido@python.org
2002年4月13日 10:21:46 -0400


> > mknod(filename, mode, major, minor)
> > 
> > But the mode parameter, like in the C interface, may be or'ed with
> > S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO. That seems unpythonic. 

Not to me.
> Generally, I think we wrap this sort of function as thinly as
> possible. That way you can use the man page as help. And this isn't
> the sort of function that fragile newbies are likely to trip over is
> it?

Agreed.
--Guido van Rossum (home page: http://www.python.org/~guido/)

AltStyle によって変換されたページ (->オリジナル) /