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
% gdb /usr/local/bin/python3.4 python3.4.core GNU gdb 6.1.1 [FreeBSD] | |
Copyright 2004 Free Software Foundation, Inc. | |
GDB is free software, covered by the GNU General Public License, and you are | |
welcome to change it and/or distribute copies of it under certain conditions. | |
Type "show copying" to see the conditions. | |
There is absolutely no warranty for GDB. Type "show warranty" for details. | |
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... | |
Core was generated by `python3.4'. | |
Program terminated with signal 11, Segmentation fault. | |
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done. |
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
#!/usr/bin/env python | |
def leftmost(bits): | |
""" | |
Generate 2-tuples in (ordinal, value) sequence according to the | |
order of the "leftmost" scheme specifed in | |
https://tools.ietf.org/html/rfc3531#section-3.1 | |
for all numbers representable by `bits` bits. |