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 -
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
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
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
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
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
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,
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