Message224165
> Maybe is_something() is a better name than get_something()
> if something is a boolean?
os and socket modules already use getxxx() / setxxx() names:
- os.get_inheritable() / os.set_inheritable()
- os.getuid() / os.setuid()
- os.getgroups() / os.setgroups()
- os.getxattr() os.setxattr()
- socket.gettimeout() / socket.settimeout()
- socket.get_inheritable() / socket.set_inheritable()
- etc.
There is only one "is" function: os.isatty(), but it does not have a "os.settty" method. |
|
Date |
User |
Action |
Args |
2014-07-28 12:39:20 | vstinner | set | recipients:
+ vstinner, pitrou, neologix, akira |
2014-07-28 12:39:20 | vstinner | set | messageid: <1406551160.89.0.051155539073.issue22054@psf.upfronthosting.co.za> |
2014-07-28 12:39:20 | vstinner | link | issue22054 messages |
2014-07-28 12:39:20 | vstinner | create | |
|