|
| Author Details |
|---|
| All Tutorials by www-128.ibm |
1 2 [Next] [Last Page]
|
|---|
An advanced GUI library for Python - PyQT
The Qt toolkit is a widely-used cross-platform GUI toolkit, available for Windows, Linux, Mac OSX, and handheld platforms. QT has a well-structured, but flexible, object-oriented organization, clear documentation, and an intuitive API. This article looks at the Qt library, with a focus on the PyQt bindings that let Python programmers access Qt functionality.
| | Hits:582 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Development |
|
|
|---|
Improving the social infrastructure of Python: pydoc and distutils modules
The introduction of several modules and tools in recent Python versions has improved Python, not so much as a language, but as a tool. This article reviews these modules that make the job of Python developers substantially easier by improving the documentation and distribution of Python modules and packages.
| | Hits:564 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python |
|
|
|---|
Improving the social infrastructure of Python: pydoc and distutils modules
The introduction of several modules and tools in recent Python versions has improved Python, not so much as a language, but as a tool. This article reviews these modules that make the job of Python developers substantially easier by improving the documentation and distribution of Python modules and packages.
| | Hits:587 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Development |
|
|
|---|
Functional programming in Python, Part 2
This column continues the introduction to functional programming (FP) in Python. The introduction to different paradigms of program problem-solving demonstrates several intermediate and advanced FP concepts. Article includes code snipets.
| | Hits:620 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Development |
|
|
|---|
Although users usually think of Python as a procedural and object-oriented language, it actually contains everything you need for a completely functional approach to programming. This article discusses general concepts of functional programming, and illustrates ways of implementing functional techniques in Python.
We'd better start with the hardest question: "What is functional programming (FP), anyway?" One answer would be to say that FP is what you do when you program in languages like Lisp, Scheme, Haskell, ML, OCAML, Clean, Mercury, or Erlang (or a few others). That is a safe answer, but not one that clarifies very much. Unfortunately, it is hard to get a consistent opinion on just what FP is, even from functional programmers themselves. A story about elephants and blind men seems apropos here. It is also safe to contrast FP with "imperative programming" (what you do in languages like C, Pascal, C++, Java, Perl, Awk, TCL, and most others, at least for the most part).
Personally, I would roughly characterize functional programming as having at least several of the following characteristics. Languages that get called functional make these things easy, and make other things either hard or impossible:
| | Hits:420 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Development |
|
|
|---|
Charming Python: Text processing in Python for beginners
Along with several other popular scripting languages, Python is an excellent tool for scanning and manipulating textual data. This article summarizes Python's text processing facilities for the programmer new to Python. The article explains some general concepts of regular expressions and offers advice on when to use (or not use) regular expressions while processing text.
| | Hits:279 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Introduction to Python |
|
|
|---|
Developing a full-text indexer in Python
As the volume of information grows, effective means of locating specific information become ever more crucial. This column discusses the field of full-text indexing, with a focus on the author's public-domain indexer module.
| | Hits:167 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Searching |
|
|
|---|
Many parsing tools have been written for Python. This column discusses a high-level parsing language built on top of Python. SimpleParse provides an EBNF-style syntax on top of mxTextTools that can greatly clarify the expression of grammars.
Like most programmers, I have frequently needed to identify parts and structures that exist inside textual documents: log files, configuration files, delimited data, and more free-form (but still semi-structured) report formats. All of these documents have their own "little languages" for what can occur within them.
The way I have programmed these informal parsing tasks has always been somewhat of a hodgepodge of custom state-machines, regular expressions, and context-driven string tests. The pattern in these programs was always, roughly, "read a bit of text, figure out if we can make something of it, maybe read a bit more text afterwards, keep trying."
Parsers of the formal variety distill descriptions of the parts and structures in documents into concise, clear, and declarative rules for how to identify what makes up a document. The declarative aspect is particularly interesting here. All my old ad hoc parsers were imperative in flavor: read some characters, make some decisions, accumulate some variables, rinse, repeat. As this column's installments on functional programming have observed, the recipe style of program flow is comparatively error-prone and difficult to maintain.
| | Hits:432 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Miscellaneous |
|
|
|---|
Extending Python and Zope in C
Extending Python in C is easy once you see how it all works, and an extension of Python is equally easy to package up for Zope. The hard part is wading through the different documentation sets in search of the nuggets of information you need, and this article has collected them for you. Article includes code snipets.
| | Hits:180 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Miscellaneous |
|
|
|---|
Python for the PalmOS
Pippy is a port of (a subset of) Python to the PalmOS. With Pippy, Python programmers can create custom applications to run on Palm devices, as well as use Pippy as an interactive environment directly on the Palm. This article evaluates the strengths and limitations of Pippy as a means of implementing Palm applications.
| | Hits:206 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-29 Rate It | Error | Review | | | Category: Home > Python > Miscellaneous |
|
|
|
|