home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.linux.misc      Linux-specific topics not covered by oth      135,536 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 133,603 of 135,536   
   rbowman to All   
   Re: Python   
   18 Dec 25 07:07:51   
   
   XPost: alt.folklore.computers, comp.lang.python   
   From: bowman@montana.com   
      
   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.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca