¡@

Home 

python Programming Glossary: int_str

What is the best way to get a semi long unique id (non sequential) key for Database objects

http://stackoverflow.com/questions/9877524/what-is-the-best-way-to-get-a-semi-long-unique-id-non-sequential-key-for-datab

You could use a reversible encoding for your integers def int_str val keyspace Turn a positive integer into a string. assert val.. # each character must occur only once def test v s int_str v keyspace w str_int s keyspace print OK r int_str d r str_int.. v s int_str v keyspace w str_int s keyspace print OK r int_str d r str_int r d v w v s s w test 1064463423090 test 4319193500..