Re: "Data blocks" syntax specification draft

2018-05-21 Thread Chris Lindsay via Python-list
So this is a syntax for defining large blocks of static data in-line with code. If a block of static data is large enough to start to be ugly, a common approach is to load the data from some other file, in a language which is designed around structured data. YAML comes to mind - it has minimal pun

Re: stock quotes off the web, py style

2018-05-16 Thread Chris Lindsay via Python-list
>It serves a naked set of data, which happens to conform to the python source code specification for dictionaries and consequently can be compiled into a dictionary with 'eval', like so: I would highly discourage any long-term usage (or any usage) of eval() in this sort of context. If iextrading