| You are here: | About>Computing & Technology>Python> ScripTips |
![]() | Python |
ScripTipsSome people do not need to create complex software platforms. Everyone, at some point, needs to do some batch jobs or other repetetive task. These tutorials talk about doing simple tasks in Python.
Working On Files With Python
When computers are not reading code, they are processing data from or to files. These tips show you how to do some common tasks related to file input and output. Python 2.5's 'with' Statement
One of the new features that was released with Python 2.5 last month is the 'with' statement. For those of you who are used to Python's try...except statement, you may find this to be the biggest boon of upgrading. Searching Data Faster
One of the most powerful methods of searching data is the use of a binary search tree. By halving the number of steps to an answer at each step of the search, the time gained increases with the number of items to be searched. Put concretely, a list of 1000 items can be searched in 1/10 the time of a linear search by using data structured as a binary tree. Classes and Objects
One of the most important elements of Python programming is the use of classes . It behooves you to know well how to form classes and how to initiate objects in Python. In addition to my own discussion on the subject , this page forms a gentle introduction to the topic. |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


