Skip to main content

Home/ Python Programming/ Group items tagged python

Rss Feed Group items tagged

reckoner reckoner

stdout in pyscripter - PyScripter | Google Groups - 0 views

  • PyScripter and most Python IDEs redirect sys.stdout.  Also GUI apps like PyScripter have no standard output.  What you need to do is PyObject *f = PySys_GetObject("stdout") and then use PyFile_WriteString for writing to the sys.stdout. This is what Python itself is doing and I think this is the best way
  •  
    PyScripter and most Python IDEs redirect sys.stdout. Also GUI apps like PyScripter have no standard output. What you need to do is PyObject *f = PySys_GetObject("stdout") and then use PyFile_WriteString for writing to the sys.stdout. This is what Python itself is doing and I think this is the best way for printing from C extensions anyway.
reckoner reckoner

Huffman coding in Python - Program - Python - Builder AU - 0 views

  • In our last article on compression we showed you how to demonstrate run time encoding in Python. In this article we'll show you how to implement another kind of compression, Huffman encoding, which is useful when dealing with small sets of items, such as character strings.
reckoner reckoner

Debugging Python in VIM- Peter's Blog - 0 views

  • Following my thoughts yesterday, here are some VIM python scripts to add python breakpoint and debugging features to VIM. With this set up the F7 key will set a breakpoint on a line of code, Shift-F7 will remove all breakpoints and Shift-F12 will execute a script in the python debugger. This only runs on windows as far as I know, because it uses the 'start' command to launch the debugger in a seperate process without VIM waiting for it to finish. This allows you to look through the source code (and fix it) while the debugging is still in progress.
reckoner reckoner

Python and HTML Processing - 0 views

  • Various Web surfing tasks that I regularly perform could be made much easier, and less tedious, if I could only use Python to fetch the HTML pages and to process them, yielding the information I really need. In this document I attempt to describe HTML processing in Python using readily available tools and libraries.
  •  
    Various Web surfing tasks that I regularly perform could be made much easier, and less tedious, if I could only use Python to fetch the HTML pages and to process them, yielding the information I really need. In this document I attempt to describe HTML pro
reckoner reckoner

Charming Python: Using state machines - 0 views

  • Charming Python: Using state machinesAlgorithms and programming approaches in Python
reckoner reckoner

Norm Matloff's Quick Python Language Tutorials - 0 views

  • my Python threads programming tutorial
  •  
    good python threads introduction here
reckoner reckoner

How can I work on VIM for python code such as cscope for C code? - 0 views

  • Change to the top level directory that contains your python source files, and do find -name '*.py' > cscope.files cscope -b
  • How can I work on VIM for python code such as cscope for C code?
reckoner reckoner

SVGMath - MathML to SVG Converter in Python - 0 views

  • SVGMath is written in pure Python, with neither extension modules nor external dependencies. It runs on any platform where a modern Python environment (version 2.4 or higher) is available. It can be used either as a command-line script for batch-mode file conversion, or as a component to process MathML data in other Python applications.
reckoner reckoner

Build a basic Web scraper in Python - Program - Python - Builder AU - 0 views

  •  
    There are thousands of HTML (or SGML, or XML) parsing libraries for hundreds of languages out there, but for this example we use a Python library called BeautifulSoup which takes care of almost all of the work for you. The BeautifulSoup library is an extr
reckoner reckoner

pyscripter - PyScripter Development Site - 0 views

  • PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is rather snappier than some of the other Python IDEs and provides an extensive blend of features that make it a productive Python development environment. 
  •  
    PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is r
reckoner reckoner

Cross platform way of finding number of processors on a machine? - comp.lang.python | G... - 0 views

  • > Is there a way to find the number of processors on a machine (on linux/ > windows/macos/cygwin) using python code (using the same code/cross > platform code)? From processing <http://cheeseshop.python.org/pypi/processing/0.34> : def cpuCount():     '''     Returns the number of CPUs in the system     '''     if sys.platform == 'win32':         try:             num = int(os.environ['NUMBER_OF_PROCESSORS'])         except (ValueError, KeyError):             pass     elif sys.platform == 'darwin':         try:             num = int(os.popen('sysctl -n hw.ncpu').read())         except ValueError:             pass     else:         try:             num = os.sysconf('SC_NPROCESSORS_ONLN')         except (ValueError, OSError, AttributeError):             pass     if num >= 1:         return num     else:         raise NotImplementedError --
gialloporpora

Ubiquity's Python Feed Plugin at Toolness - 0 views

  •  
    A few weeks ago I wrote about Ubiquity Feed Plugins, which are basically just a way of separating the user interface of subscribing to a new feature from the implementation of the feature itself. As I've written about before, one of the things I've missed about the Mozilla development environment is its support for the Python programming language. Aside from being humane and having a great community, it has functionality that could complement the Mozilla platform quite nicely. So we've whipped up a quick proof-of-concept Python Feed Plugin for Ubiquity to explore this possibility.
pagetribe .

Index of /Individu/pointal/python/pqrc/versions - 0 views

  • PQRC-2.4-A4-latest.pdf 30-Apr-2007 14:02 599K
    • pagetribe .
       
      Python 2.4 Quick Reference Card
  •  
    Python 2.4 Quick Reference Card
reckoner reckoner

Psyco - Introduction - 0 views

  • In short: run your existing Python software much faster, with no change in your source. Think of Psyco as a kind of just-in-time (JIT) compiler, a little bit like what exists for other languages, that emit machine code on the fly instead of interpreting your Python program step by step. The difference with the traditional approach to JIT compilers is that Psyco writes several version of the same blocks (a block is a bit of a function), which are optimized by being specialized to some kinds of variables (a "kind" can mean a type, but it is more general). The result is that your unmodified Python programs run faster. Benefits 2x to 100x speed-ups, typically 4x, with an unmodified Python interpreter and unmodified source code, just a dynamically loadable C extension module. Drawbacks Psyco currently uses a lot of memory. It only runs on Intel 386-compatible processors (under any OS) right now. There are some subtle semantic differences (i.e. bugs) with the way Python works; they should not be apparent in most programs.
reckoner reckoner

PyReadline/Intro - IPython - 0 views

  • Install using binary installer Download installer from http://ipython.scipy.org/dist/pyreadline-1.3.win32.exe make sure no other readline is installed run installer The configuration file pyreadlineconfig.ini can be copied from Python24/lib/site-packages/pyreadline/configuration to your HOME directory (usually c:/documents and settings/YOURNAME). When using ipython pyreadline is automatically activated. If you want to use pyreadline from the interactive prompt of the python interpreter then you have to include the code in Python24/lib/site-packages/pyreadline/configuration/startup.py in your pythonstartup file or set the PYTHONSTARTUP environment variable to point to that file. Manual can be found in Python24/share/doc/pyreadline
  •  
    Need this to get ipython to work  on  python25
reckoner reckoner

The Eric Python IDE - 0 views

  • Eric is a full featured Python and Ruby editor and IDE, written in python. It is based on the cross platform Qt gui toolkit, integrating the highly flexible Scintilla editor control. It is designed to be usable as everdays' quick and dirty editor as well as being usable as a professional project management tool integrating many advanced features Python offers the professional coder. Current stable version is eric4 based on Qt4. For Qt3 based systems eric3 is still available.
  •  
    more windows xp  friendly and all in python.
amby kdp

Get The Best Python Programming Book For Beginners - 0 views

  •  
    A programmer can start from scratch and become a professional with the help of James P. Long's "Python Programming For Beginners" book. Those who want to get a good grip of what programming language is should get from this Python book.
Jac Londe

Using pngcanvas, a pure Python PNG library « Python recipes « ActiveState Code - 1 views

  • Using pngcanvas, a pure Python PNG library
  • This recipe shows a simple example of how to use pngcanvas, a pure Python library for PNG image creation.
naresh-it1

Python Online Training & Top #1 Python Online Training Institute - NareshIT - 1 views

  •  
    we are providing python online training in our institute Nareshit. And we are providing classroom training With very well trained and experienced faculty and digital lab facility. After completing course in nareshit you will get Complete knowledge on Python
‹ Previous 21 - 40 of 472 Next › Last »
Showing 20 items per page