process wrote:
In erlang you can cons like this: [1|2]. i tried this in python and it
didnt raise an error but i dont know what the result do

In Python | is the logical bitwise-OR operator. Look at the binary representation of the numbers to understand it.

Gary Herron

[1|2]
[3]
[2|2]
[2]
a = [2|2]
a
[2]
[2|3]
[3]
[2|1]
[3]
--
http://mail.python.org/mailman/listinfo/python-list

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to