@@ -142,9 +145,18 @@ ambiguous to recognize in some cases. For example, valid sections lines include:
...
@@ -142,9 +145,18 @@ ambiguous to recognize in some cases. For example, valid sections lines include:
[f]# ]
[f]# ]
f=1
f=1
[g:2 in map(lambda i:i*2, ['''#;)'''] + [i for i in range(10)] + list('#[]][;#'))] # Complex #expressions; ][are [possible!]
[g:2inmap(lambdai:i*2,['''\x23\x3b)''']+[iforiinrange(10)]+list('\x23[]][\x3b\x23'))]# Complex #expressions; ][are [possible!] and can us escaped # and ; in literals
g=1
g=1
[h:True];]
h=1
[i:True];[]
i=1
[j:2inmap(lambdai:i*2,['''\x23\x3b)''']+[iforiinrange(10)]+list('\x23[]][\x3b\x23'))];Complex#expressions; ][are [possible!] and can us escaped # and ; in literals
j=1
..->text
..->text
>>>try:importStringIO
>>>try:importStringIO
...
@@ -158,28 +170,31 @@ ambiguous to recognize in some cases. For example, valid sections lines include:
...
@@ -158,28 +170,31 @@ ambiguous to recognize in some cases. For example, valid sections lines include:
string-escaped representation of these characters: use '\x23' for hash '#' and
'\x3b' for semicolon ';' to avoid evaluation errors.
These expressions are valid and use escaped hash and semicolons in literals::
[a:2 in map(lambda i:i*2, ['''\x23\x3b)'''] + [i for i in range(10)] + list('\x23[]][\x3b\x23'))] # Complex #expressions; ][are [possible!] and can us escaped # and ; in literals
a = 1
[b:2 in map(lambda i:i*2, ['''\x23\x3b)'''] + [i for i in range(10)] + list('\x23[]][\x3b\x23'))] ; Complex #expressions; ][are [possible!] and can us escaped # and ; in literals