PythonQuickies: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

8 September 2024

5 September 2024

18 August 2024

16 August 2024

14 August 2024

28 December 2023

8 December 2023

1 December 2023

21 November 2023

10 November 2023

  • curprev 16:2916:29, 10 November 2023RobertBushman talk contribs 3,262 bytes +3,262 Created page with "Category:Python = buffering = Fix CLI buffering in Python with: <pre> $ python -u foo.py | tee mylog.log </pre> "-u" means unbuffered, or something = Decorators = <syntaxhighlight lang="python" line> def my_decorator(func): def wrapper(*args, **kwargs): print("Something is happening before the function is called.") func(*args, **kwargs) print("Something is happening after the function is called.") return wrapper @my_decorator def sa..."