Skip to main content

Home/ Python Programming/ Group items matching "html" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
reckoner reckoner

Python threads - a first example - 0 views

  • Python threads - a first example If you have a process that you want to do several things at the same time, threads may be the answer for you. They let you set up a series of processes (or sub-processes) each of which can be run independently, but which can be brought back together later and/or co-ordinated as they run
reckoner reckoner

Debugging in Python - 0 views

  • So here is my own personal gentle introduction to using pdb. It assumes that you are not using any IDE -- that you're coding Python with a text editor and running your Python programs from the command line.
reckoner reckoner

Python Idioms and Efficiency Suggestions - 0 views

  • What idioms should I use to make my code easier to read? Read "The Python Cookbook", especially the first few chapters. It's a great source of well-written Python code examples.
  • Use function factories to create utility functions. Often, especially if you're using map and filter a lot, you need utility functions that convert other functions or methods to taking a single parameter. In particular, you often want to bind some data to the function once, and then apply it repeatedly to different objects. In the above example, we needed a function that multiplied a particular field of an object by 3, but what we really want is a factory that's able to return for any field name and amount a multiplier function in that family:
  • Use zip and dict to map fields to names. zip turns a pair of sequences into a list of tuples containing the first, second, etc. values from each sequence. For example, zip('abc', [1,2,3]) == [('a',1),('b',2),('c',3)]. You can use this to save a lot of typing when you have fields in a known order that you want to map to names:
  •  
    suggestions for better programming style.
reckoner reckoner

Charming Python, a column by David Mertz - 0 views

  •  
    charming python archive
Chris 089

Talk titled "Python vs. Ruby: A Battle to The Death" by Gary Bernhardt - 0 views

  •  
    A highly interesting talk about the ugly syntactic freedoms in Ruby that enables the development of beautiful tools like rspec and cucumber which will never be possible in python due to its - generally beautiful - syntactic borders.
jgomezdans

PLEAC-Python - 0 views

  •  
    Following the Perl Cookbook (by Tom Christiansen and Nathan Torkington, published by O'Reilly) spirit, the PLEAC Project aims to gather fans of programming, in order to implement the solutions in other programming languages. In this document, you'll find an implementation of the Solutions of the Perl Cookbook in the Python language.
Jac Londe

cpython : Lib/HTMLParser.py - 0 views

  • Mercurial > cpython view Lib/HTMLParser.py @ 89979:3f8b801e7e76
  •  
    Testing parsing with ...
Alex MIkhalev

Game Programming with Python, Lua, and Ruby | EShare | Free Ebooks Share - 5 views

  •  
    Пame Programming with Python, Lua, and Ruby
« First ‹ Previous 121 - 140 of 142 Next ›
Showing 20 items per page