[Python-ideas] IntFlags

random832 at fastmail.us random832 at fastmail.us
Wed Mar 4 20:45:07 CET 2015


On Tue, Mar 3, 2015, at 10:52, Serhiy Storchaka wrote:
> 3. It should have nice str() and repr().
> 
>  >>> print(stat.S_IROTH | stat.S_IWOTH)
> stat.S_IROTH|stat.S_IWOTH
>  >>> stat.S_IROTH | stat.S_IWOTH
> <StatFlags.S_IROTH|S_IWOTH: 6>
> 
> Any thoughts?

Any reason StatFlags shouldn't have a representation like "rwxr-x---"
for 0750?


More information about the Python-ideas mailing list