[Tutor] Process list elements as consecutive pairs

2010-03-05 Thread Rüdiger Wolf
Hi I am trying to Process list elements as consecutive pairs into consecutive pairs. Any pythonic suggestions? listin = [1,2,3,4,5,6,7,8,9,10] I want to process as consecutive pairs 1,2 3,4 5,6 7,8 9,10 Thanks Rudiger ___ Tutor maillist -

Re: [Tutor] Porting PHP web app to Python GUI

2009-10-12 Thread Rüdiger Wolf
On Mon, 12 Oct 2009 14:17 +0200, Dotan Cohen dotanco...@gmail.com wrote: I prefer the second route, but I want to know if this seems reasonable in Python: 1) GUI with several input areas which are analogous to the HTML Select, Input=Text, and Textarea fields. 2) insert the data collected into

Re: [Tutor] Finding and Inserting missing dates in a date range.

2009-10-09 Thread Rüdiger Wolf
Ah! but are we sure that the max and min dates are actually in the list? If there are 'missing dates' it might just be possible that it is the max or min date that is missing. On Fri, 09 Oct 2009 16:43 -0400, Kent Johnson ken...@tds.net wrote: On Fri, Oct 9, 2009 at 3:16 PM, Glen Zangirolami

Re: [Tutor] using easy_install to download eggs

2009-10-05 Thread Rüdiger Wolf
http://stackoverflow.com/questions/529425/easyinstall-cache-downloaded-files pip (http://pypi.python.org/pypi/pip/) is a drop-in replacement for the easy_install tool and can do that. Just run easy_install pip and set an environment variable PIP_DOWNLOAD_CACHE to the path you want pip to store

Re: [Tutor] using easy_install to download eggs

2009-10-05 Thread Rüdiger Wolf
Snip from PIP http://pypi.python.org/pypi/pip/0.4 Differences From easy_install pip cannot install some packages. Specifically: * It cannot install from eggs. It only installs from source. (Maybe this will be changed sometime, but it's low priority.) If you want to download eggs then you

Re: [Tutor] Using command line tool with python script

2009-10-05 Thread Rüdiger Wolf
On Mon, 05 Oct 2009 12:59 -0400, Kent Johnson ken...@tds.net wrote: On Mon, Oct 5, 2009 at 10:22 AM, Oleg Oltar oltarase...@gmail.com wrote: os.popen4(application -parameter1 -file temp.txt) I wonder if that possible to execute this script (called application) without writing the file

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Rüdiger Wolf
I remember reading some Python tutorials that where written specifically for Astronomers. Did a search on Google. This is not the tutorial I originally read but maybe you will find it to be useful. http://www.stsci.edu/hst/training/events/Python/readManDispImages_WU.pdf Regards Rudiger On Fri,

[Tutor] Examples using Poachplate

2009-09-27 Thread Rüdiger Wolf
Hi Matt Harrison created what appears to be a really nifty tool called poachplate. A python script boilerplate. http://pypi.python.org/pypi?%3Aaction=searchterm=poachplate See the following links for more info. http://panela.blog-city.com/oscon_scripting_with_python_handout.htm