easy_install tip - setting up your own repository - O'Reilly ONLamp Blog - 1 views
Doug Hellmann: PyMOTW: gc - Garbage Collector - 0 views
Dive Into Python - 0 views
Osh 0.9 User's Guide - 0 views
osh-- Reference Documentation - 0 views
Lightweight Approach to AOP (aspect-oriented programming) in Python - 0 views
-
aspects.py library provides means to intercept function calls. Functions and methods (also in Python standard library and third party code) can be wrapped so that when they are called, the wrap is invoked first. Depending on the wrap, the execution of the original function can be omitted, or the function can be called arbitrarily many times. Wraps are able to modify the arguments and the return value of the original function. In the terminology of aspect-oriented programming, the library allows applying advices (wraps) to call join points of methods and functions in around fashion.
Siva Chandran P: TermEmulator 1.0 Released!!! - 0 views
-
The module comes with a demo application which is written in wxWidgets. The demo emulates any terminal program inside a text box. The following are the screenshots of emulating bash, emacs and vi using TermEmulator and the demo. successfully emulated(ran in a text box) bash, emacs, vi and some other terminal programs.
-
Provides callback for updating terminal screen
Plotting NaNs in Matplotlib (matplotlib-users) - 0 views
-
Your example works as you describe on recent matplotlib versions. I suspect you are using an old one. The preferred way of handling missing points in numpy, and therefore in matplotlib and pylab, however, is via masked arrays.import pylabimport numpy as npfrom numpy import maa = [1,2,3,4,5]b = np.array([6,2,np.nan,1,9])bm = ma.masked_where(np.isnan(b), b)pylab.plot(a,bm)pylab.show()There are many other examples of masked array use in the examples directory of the matplotlib distribution.EricFernando Abilleira wrote:> Dear sourceforge community,> > I come from a Matlab environment so I am used to plotting matrices that > contain NaN elements. This is very useful because in some cases one > doesn't have data for the entire matrix. If one tries plotting the data, > the NaN elements won't be plotted.
Pyrex Language Basics - 0 views
Socket Programming Tutorial - 0 views
Lesson 1: Socket Communications - 0 views
Large axis labels/positioning the axes - 0 views
pyWinAuto: Index of pywinauto.controls module - 0 views
Notes on using Vim with Python - 0 views
-
aracter instead of spaces because it makes it easier when pressing BACKSPACE or DELETE, since if the indent is using spaces it will take 4 keystrokes to delete the indent. Using this setting, however, makes VIM see multiple space characters as tabstops, and so does the right thing and will delete four spaces (assuming 4 is your setting).
py vs pyc - 0 views
-
When running "python test.py" the interpreter will first precompile the test.py source file, and then execute it. When running "python test.pyc", the interpreter will go straight to the execution of the script.
‹ Previous
21 - 40 of 142
Next ›
Last »
Showing 20▼ items per page