Welcome To Snipplr


Everyone's Recent Python Snippets



1 ... 6 7 8 9 10 ... 18
How to use pygments in PyGTK textview
0 1319 posted 15 years ago by vkolev
0 1475 posted 15 years ago by throb
This is a fix to an old bug with the Foundry flip.py script
0 2310 posted 15 years ago by throb
0 1445 posted 15 years ago by throb
0 1527 posted 15 years ago by eHouseDev
in case that you want to pass between multiple methods the same *args and unpack it at the end
0 1237 posted 15 years ago by silviud
This python script takes the SMS message and phone number as arguments.\\\\r\\\\n\\\\r\\\\n Before you run this script, please 1) search for \\\\\\\'yourusername\\\\\\\' in this file and replace it with your way2sms.com username. 2) search for \\\...
0 2008 posted 15 years ago by vissu
2 1692 posted 15 years ago by silviud
0 1423 posted 15 years ago by silviud
0 1412 posted 15 years ago by magicrebirth
0 1455 posted 15 years ago by magicrebirth
0 1074 posted 15 years ago by MartinJanda
This simple example will show you how to inherit a class from a parent class. I have to apologise for some grammar mistakes that I've probably put in the comments, but English is not my native language. If you execute this code, the output will be...
2 2449 posted 15 years ago by Cesco
Loads of code lifted from here : http://www.tokeru.com/t/bin/view/Maya/MayaPython#ListDir
0 1772 posted 15 years ago by throb
0 1398 posted 15 years ago by maxint
0 2934 posted 15 years ago by iloveitaly
Dictionaries cant be sorted, so you need to transform it into a list and sort that one!
0 1235 posted 16 years ago by magicrebirth
Turning a dictionary into a list or an iterator is easy. To get a list of keys, you can just cast the dict into a list. It's cleaner, though to call .keys() on the dictionary to get a list of the keys, or .iterkeys() to get an iterator. Similarly, yo...
0 1372 posted 16 years ago by magicrebirth
1 ... 6 7 8 9 10 ... 18