Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc,alt.folklore.computers,comp.lang.python Subject: Re: Python Date: 18 Dec 2025 07:07:51 GMT Lines: 32 Message-ID: References: <10fvcgr$3d6mu$1@paganini.bofh.team> <10g526s$3o78s$1@dont-email.me> <10ga7mg$7ph$3@news.misty.com> <10gekt9$39ian$4@dont-email.me> <10gfihn$3lshj$1@dont-email.me> <10gh6oj$83hq$8@dont-email.me> <10ghqrq$g7pg$1@dont-email.me> <693d5437$0$2499$426a34cc@news.free.fr> <7a611mx9gf.ln2@Telcontar.valinor> <693ea5fa$0$28070$426a74cc@news.free.fr> <10hnh91$1geq0$2@dont-email.me> <10hp0kl$1t75q$1@dont-email.me> <10hsju6$32b9t$3@dont-email.me> <10hv6lg$3rose$1@dont-email.me> <10hv9qd$3sj01$3@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 2dd8fOyMHFmhNzdLFN6UVAozutKyX0jMkJvSxGQ7ENsnkXiVmL Cancel-Lock: sha1:9k58FEq3z4XXb85zcIi6pXkAWbM= sha256:y8jqBmeJ/fdUFNhn+Pzw05JUUWjKCCNXTiHxHFr826w= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:79420 alt.folklore.computers:232668 comp.lang.python:197616 On Wed, 17 Dec 2025 22:18:39 -0500, c186282 wrote: > Both ''' and """ work ... but you need to close the comment block > with the same thing. > > ANYway, block-comments ARE (at least now) to be had in Python. > > Never used P1 or P2 worth anything, maybe they didn't have block > comments ??? https://peps.python.org/pep-0257/ Doc strings are a little strange. 'String' is the key word. python3 Python 3.13.7 (main, Nov 24 2025, 20:51:28) [GCC 15.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> # this is a real comment >>> """this a a multiline ... string ... """ 'this a a multiline\n string\n' >>> foo = """ more multiline ... stuff ... """ >>> print(foo) more multiline stuff There are just strings that aren't assigned.