yodalist pre-release
Yoda-indexed lists in Python.
Yoda-indexing follows this pattern: 0, 4, 5, 6, 1, 2, 3, 7, 8, 9, etc. Inspired by the ordering used in the
TODOS:
0. Stress the importance of zero-indexing: We're not savages here.
4. Add functionality tests
5. Add RaisesError tests
6. Package to a wheel, etc.
1. Add to pip, conda, other package managers.
2. Add install instructions
3. Add something else snarky here
7. Post to HackerNews or ProgrammerHumor or something, because this is how career-building works in 2022
Install
There are three ways to use this package:
-
Simply copy-and-paste the
src/yodalist.pyfile to your project. -
(todo) Install via PIP
-
(todo) Build and install on your own.
Usage
>>> from yodalist import yodalist
>>> mylist = yodalist(['hello', 'world', 'i', 'am', 'a', 'yoda', 'list', '!!!'])
>>> for ii in range(len(mylist)):
... print(ii, mylist[ii])
...
0 hello
1 a
2 yoda
3 list
4 world
5 i
6 am
7 !!!
Release files for yodalist 0.1.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yodalist-0.1.22.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yodalist-0.1.22-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / yodalist-0.1.22.tar.gz
| Download URL | yodalist-0.1.22.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fb3826e2433f54e5a543e0e4ed3b1caba2af364275c4a08164121b4b1c5f275
|
|
BLAKE2b-256 checksum How to use checksums |
89f76f3b0b445b31f976ad568eee5674506e0a74ee81e1320f9fd32d25321e43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / yodalist-0.1.22-py3-none-any.whl
| Download URL | yodalist-0.1.22-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4539093e48b370a9ef6a5396c2368a3fe1bf7e5a2f0430dab8a9f088cdc3d98c
|
|
BLAKE2b-256 checksum How to use checksums |
6521c97ce47d7b40231c44daaf64e5428cc8b2844987b279a32d992bda18c187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|