This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> od | |
OrderedDict([('my first key', 'first val'), ('second', 'something'), ('third', 'blah')]) | |
>>> od._OrderedDict__root[0] | |
[[[[[...], [...], None], [...], 'my first key'], [...], 'second'], [[...], [[...], [[...], [...], 'second'], 'my first key'], None], 'third'] | |
>>> od._OrderedDict__root[1] | |
[[[[[...], [...], 'second'], [...], 'third'], [...], None], [[...], [[...], [[...], [...], None], 'third'], 'second'], 'my first key'] | |
>>> | |
>>> from pprint import pprint as pp | |
>>> pp(od._OrderedDict__root) | |
[[[[<Recursion on list with id=24188808>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# fix broken $UID on some system... | |
if test "x$UID" = "x"; then | |
if test -x /usr/xpg4/bin/id; then | |
UID=`/usr/xpg4/bin/id -u`; | |
else | |
UID=`id -u`; | |
fi | |
fi |