Jan-23-2020, 10:30 AM
(Nov-10-2019, 04:24 PM)JohnnyCoffee Wrote: How do I read a class file in order to discover the existence of a certain method ?
I don't know whether it addresses the problem but if I want to 'discover' all the methods of str class then in interactive interpreter I just:
>>> str. # 2 x TAB str.capitalize( str.find( str.isdecimal( str.istitle( str.mro( str.rsplit( str.title( str.casefold( str.format( str.isdigit( str.isupper( str.partition( str.rstrip( str.translate( str.center( str.format_map( str.isidentifier( str.join( str.replace( str.split( str.upper( str.count( str.index( str.islower( str.ljust( str.rfind( str.splitlines( str.zfill( str.encode( str.isalnum( str.isnumeric( str.lower( str.rindex( str.startswith( str.endswith( str.isalpha( str.isprintable( str.lstrip( str.rjust( str.strip( str.expandtabs( str.isascii( str.isspace( str.maketrans( str.rpartition( str.swapcase(
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.