From: Skip M. <sk...@po...> - 2014-03-06 20:47:48
|
On Thu, Mar 6, 2014 at 2:38 PM, Ryan May <rm...@gm...> wrote: > I don't think a leading _ is the way to go, because that's a common > convention for internal class variables--property variables that you don't > intend to be part of any supported API. But leading underscores like this are only used as attributes of classes. I believe the OP was asking about unused local variables. Something more like this: mode, _ino, dev, nlink, uid, gid, size, _atime, _mtime, _ctime = os.stat("/etc/hosts") (Ignore that os.stat returns a posix.stat_result object on Unix-y systems.) Skip |