Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Currency list with symbols

For those who want to find out a currency code, name, symbol, numeric code and decimal numbers, below is a simple JSON structure for easy use.[{ "code": "AED", "numeric": "784", "name": "UAE Dirham", "symbol": "د.إ", "decimal": 2 }, { "code": "AFN", "numeric": "971", "name": "Afghani", "symbol": "؋", "decimal": 2 }, { "code": "ALL", "numeric": "008", "name": "Lek", "symbol": "L", "decimal": 2 }, { "code": "AMD", "numeric": "051", "name": "Armenian Dram", "symbol": "դր.", "decimal": 2 }, { "code": "ANG", "numeric": "532", "name": "Netherlands Antillean Gu...

1,119 0       REFERENCE JSON CURRENCY SYMBOL NUMERIC CODE


  Good to Great Python reads

A col­lec­tion of python “must reads”:The Python yield key­word explainedPython’s super() con­sid­ered super!Under­stand­ing Python DecoratorsWhat is a meta­class in Python?Meta­classes DemystifiedTry/Catch for val­i­da­tion or speed?Python (and Python C API): __new__ ver­sus __init__Python “self” keywordPython and the Prin­ci­ple of Least AstonishmentA Curi­ous Course on Corou­tines and ConcurrencyGen­er­a­tor Tricks for Sys­tems ProgrammersCode like a Python­ista: Idiomatic Py...

2,968 0       PYTHON REFERENCE EBOOK READING MATERIAL


  Python: copying a list the right way

new = old[:]Those proficient in Python know what the previous line do. It copies the list old into new. This is confusing for beginners and should be avoided. Sadly the [:] notation is widely used, probably because most Python programmers don’t know a better way of copying lists.A little bit of pythonic theoryFirst we need to understand how Python manages objects & variables. Python doesn’t have variables like C. In C a variable is not just a name, it is a set of bits; a variable exists somewhere in memory. In Python variables are just tags ...

2,564 0       PYTHON LIST COPY REFERENCE [:] LIST()