Fork me on GitHub

Other articles


  1. Cerberus: Triple-head hound of Hades

    rules_set_registry: only stores schema itself, for example {'type': 'string', 'required': True}
    schema_registry: stores complete schema, for example {'name': {'type': 'string', 'required': True}}, it can be used directly.

    It's not easy to allow_unknown for parent schema (for nested dict), because you cannot put allow_unknown inside the defination of schema. You have …

    read more
  2. On the BeGinNing

    Welcome to visit 'python-NOTes' category in LuCima's SpaCe. Here gathers several posts summerized advanced usages, tips and black techs about Python. All contents are based on Python 3.x, though Python 2.x may be referred to shortly.

    read more
  3. Operaions on Basic data structure -- dict

    Series of posts (2)

    If you want to build up a dict using two lists, zip() can be used as this:
    dict(zip(list_a, list_b))

    Sometimes, OrderedDict and DefaultDict in module collections can be useful. When you need a dict whose keys are

    read more
  4. Operaions on Basic data structure -- list

    Series of posts (1)

    Here I am going to summarize some advancing operations about list, which is one of the most commonly used data structure in Python. Basic usage of list will be skipped.

    The built-in function sorted() is helpful for sorting the list or …

    read more

Page 1 / 2 »

links

social