summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-02-10 20:25:57 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-02-10 20:25:57 +0100
commit06d783dd2cd60db2001b368be0460464021a2f09 (patch)
tree3e73468724214704fb8eaf6dcb1e03050fb3b7e5 /doc
parentfe1457b610e352ccfd9343af5a73f0d647ba03f2 (diff)
downloadclufter-06d783dd2cd60db2001b368be0460464021a2f09.tar.gz
clufter-06d783dd2cd60db2001b368be0460464021a2f09.tar.xz
clufter-06d783dd2cd60db2001b368be0460464021a2f09.zip
doc/HACKING: fix and extend "common issues" reminder
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/HACKING6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/HACKING b/doc/HACKING
index dccd17c..20557c4 100644
--- a/doc/HACKING
+++ b/doc/HACKING
@@ -18,4 +18,8 @@ tuplist tuple or list (also see utils.py)
Common problems run into (just for self-reference)
--------------------------------------------------
-(lambda a, *b)('file') -> 'f', ("ile",)
+(lambda a, *b: (a, b))(*'file') -> 'f', ('ile',)
+(lambda a, *b: (a, b))(*('file', )) -> 'file', ()
+
+'123' if True else True, None -> ('123', None)
+'123' if True else (True, None) -> '123'