From e514e0e3f6a236819f388c21af65422f399e47fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 18 Jul 2023 00:33:18 +0200 Subject: tis 18 jul 2023 00:33:16 CEST --- Python.wiki | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Python.wiki') diff --git a/Python.wiki b/Python.wiki index a0e3faa..4921020 100644 --- a/Python.wiki +++ b/Python.wiki @@ -4,6 +4,22 @@ - [[Python Operators]] :: And operator overloading - [[Python Pipeline]] += String IO = +Open strings as file descriptors + +{{{python +import io +f = io.StringIO("Hello, World") +f.read() +# ⇒ 'H' +}}} + + += Disable typing for line = +{{{python +somethintg_which_doesnt_typecheck() # type: ignore +}}} + = Properties = property -- cgit v1.2.3