Python notes

From Wiki at Neela Nurseries
Revision as of 19:14, 14 February 2024 by Ted (talk | contribs) (add link to Python3 "re" library, and note about Python's notion of byte data type.)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

2023-10-11 Wednesday

^ Overview

Python notes local page on Neela Nurseries wiki

^ Questions

Question: what is the syntax or python-ism in this construcxt?:

if __name__ == '__main__':
     main()

^ Python Data Types

The following Python3 online documentation page mentions early on how Python distinguishes Unicode strings and 8-bit strings which it also calls 'bytes'. This may be a starting point to understanding how and when Python3 treats data as bytes: