|
FuraxVZ posted:The online Diving into Python is pretty good, and I was thinking of getting the dead-tree version. Is there better? The only suggestion I can make is take one that uses version 2.5. DIP is written for 2.3 and as such has a kind of roundabout way of dealing with things that can be more elegantly written in 2.5.
|
# ¿ Nov 25, 2007 00:15 |
|
|
# ¿ May 5, 2024 01:32 |
|
Marzzle posted:How do I install a .egg on python in os x? I have installed "easy_install" or at least I think I did Don't execute it in python's interactive prompt, execute it into a command line (ie Terminal).
|
# ¿ Mar 2, 2008 01:07 |
|
Alan Greenspan posted:This returns the entire array in one huge line. Is there a cute way to add the line breaks? Nothing matters but shortness of the source code. Is there a way to make the code I wrote shorter? Write it in perl.
|
# ¿ Mar 15, 2008 16:28 |
|
drcru posted:How do I convert a 4bit binary number to a decimal without using anything like character strings or anything like int("10111", 2)? Binary isn't really a format like a string or an int. Your binary is represented by one of the built-in types such as an array of strings or a long or whatever. The conversion from <random type> to int is different for every <random type>. (there is a possibility that the language du jour has a special binary type, then again there will be a built-in function to go from binary to decimal) edit: wait did I read the question wrong; do you want an explanation of the logic behind the conversion from binary to decimal? Google is better equipped to handle that question. (edit2: and yaoi prophet too )
|
# ¿ Apr 3, 2008 03:14 |