Re: Python: Nefunguje zakomentování """ v odsazeném bloku?

Michal Vanka junk.mv na gmail.com
Čtvrtek Leden 6 17:44:56 CET 2022


Toto praví o Python komentech strejda google:

*How do we create comments in Python?*

   1. A comment in Python starts with the hash character, #, and extends to
   the end of the physical line.
   2. Making use of comments in python is very easy, you can include a
   comment line into your code fairly easily.
   3. It is also possible to use Triple Quotation (''') for multiline
   comments.


Případně odkaz na diskusi zde:
https://stackoverflow.com/questions/7696924/is-there-a-way-to-create-multiline-comments-in-python

M.




On Thu, Jan 6, 2022 at 3:18 PM Pavel Hudeček <edizon na seznam.cz> wrote:

> Dobrý den všem,
> myslel jsem si, že *""" text """* v Pythonu
> je něco jako */* text */* v C.
> Ale když takhle zakomentuju část odsazeného bloku, tak to nefunguje.
> Kdyby to bylo v pythonu 1.0, předpokládal bych, že je to bug. Ale ve 3.7?
> Je známo proč to tak je?
>
> Díky,
> PH
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
>
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://list.hw.cz/pipermail/hw-list/attachments/20220106/4aaae7e8/attachment.htm>


Další informace o konferenci Hw-list