Re: help with explaining how to split a list of tuples into parts

2013-07-13 Thread Roy Smith
In article <892e3baa-b214-4c57-a828-a51db0ff7...@googlegroups.com>, pe...@ifoley.id.au wrote: > In my defence I was trying to give some context for my problem domain. I think posting a link to the github page was perfectly fine. It wasn't a huge amount of code to look at, and the way github pr

Re: help with explaining how to split a list of tuples into parts

2013-07-13 Thread Roy Smith
In article , pe...@ifoley.id.au wrote: > Hi List, > > I am new to Python and wondering if there is a better python way to do > something. As a learning exercise I decided to create a python bash script > to wrap around the Python Crypt library (Version 2.7). > > My attempt is located here -

Re: help with explaining how to split a list of tuples into parts

2013-07-13 Thread peter
On Saturday, 13 July 2013 18:11:18 UTC+10, Steven D'Aprano wrote: > On Fri, 12 Jul 2013 23:43:55 -0700, peter wrote: > > > > I am new to Python and wondering if there is a better python way to do > > A Python bash script? What does that mean? Python and bash are two > different languages. Sorr

Re: help with explaining how to split a list of tuples into parts

2013-07-13 Thread peter
On Saturday, 13 July 2013 17:28:50 UTC+10, Peter Otten wrote: > > Every time when you have to look up something you should think 'dict', and I > > expect that pretty that will happen automatically. > > Also, to split a tuple into its items you can "unpack" it: > > > > triple = (1, 2, 3) > >

Re: help with explaining how to split a list of tuples into parts

2013-07-13 Thread Steven D'Aprano
On Fri, 12 Jul 2013 23:43:55 -0700, peter wrote: > Hi List, > > I am new to Python and wondering if there is a better python way to do > something. As a learning exercise I decided to create a python bash > script to wrap around the Python Crypt library (Version 2.7). A Python bash script? What

Re: help with explaining how to split a list of tuples into parts

2013-07-13 Thread Peter Otten
pe...@ifoley.id.au wrote: > Hi List, > > I am new to Python and wondering if there is a better python way to do > something. As a learning exercise I decided to create a python bash > script to wrap around the Python Crypt library (Version 2.7). > > My attempt is located here - https://gist.git