Skip to main content

Home/ Python Programming/ Group items matching "an" 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
1More

PyX - Python graphics package - 0 views

  •  
    PyX is a Python package for the creation of PostScript and PDF files. It combines an abstraction of the PostScript drawing model with a TeX/LaTeX interface. Complex tasks like 2d and 3d plots in publication-ready quality are built out of these primitives.
4More

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.
1More

Python Cookbook : Read tabular data from Excel spreadsheets the fast and easy way - 0 views

  • Sometimes you get an Excel spreadsheet (say, from the marketing departement) and you want to read tabular data from it (i.e. a line with column headers and lines of data). There are many ways to do this (including ODBC + mxODBC), but the easiest way I've found is this one : provide a file name and a sheet name, and read the data !
1More

Pyro - About - 0 views

  • Pyro is short for PYthon Remote Objects. It is an advanced and powerful Distributed Object Technology system written entirely in Python, that is designed to be very easy to use. Never worry about writing network communication code again, when using Pyro you just write your Python objects like you would normally. With only a few lines of extra code, Pyro takes care of the network communication between your objects once you split them over different machines on the network. All the gory socket programming details are taken care of, you just call a method on a remote object as if it were a local object!

SEO Services that Exceeds Expectations - 1 views

started by Ace Dee on 21 Feb 11 no follow-up yet

Fast and Reliable Computer Repair Services - 1 views

started by seth kutcher on 02 Nov 11 no follow-up yet

Want to learn Python Programming? - 0 views

started by amby kdp on 03 Jan 15 no follow-up yet

Best Book of Python Programming - 0 views

started by amby kdp on 27 Jan 15 no follow-up yet
1More

Guide to Python introspection - 5 views

  • Objects that represent potential behavior (functions and methods) can be invoked, or called. We can test an object's callability with the callable() function:

Python Homework Help - 1 views

started by javahomeworkhelp on 11 Jan 24 no follow-up yet
« First ‹ Previous 61 - 74 of 74
Showing 20 items per page