Some functions for Python
Project description
pyxtend
Functions to be more productive in Python.
struct
struct
is for examining objects to understand their contents.
Example 1
A simple list of integers
Input: [1, 2, 3, 4, 5]
Output (without examples): {'list': ['int', 'int', 'int', '...5 total']}
Output (with examples): {'list': [1, 2, 3, '...5 total']}
Example 2
A list of lists
Input: [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Output (without examples): {'list': [{'list': ['int', 'int', 'int']}, {'list': ['int', 'int', 'int']}, {'list': ['int', 'int', 'int']}]}
Output (with examples): {'list': [[1, 2, 3], [4, 5, 6], [7, 8, 9]]}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyxtend-0.4.0.tar.gz
(4.0 kB
view hashes)