Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: i love f-strings
Post: RE: i love f-strings

Press f to pay formatted respects def f(f): return f print(f'{f("f")}')
dullbananas Bar 5 2,652 Dec-08-2019, 02:23 AM
    Thread: Import Python file with a name of a module in Stantard Library
Post: RE: Import Python file with a name of a module in ...

Here is a solution I made: class TimeModule(): def __init__(self): self.globals = {} def __getattr__(self, key): return self.globals[key] with open('time.py', 'r') as f: code = f.read() time...
dullbananas Homework 7 3,132 Dec-07-2019, 12:08 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020