Re: Python Array

2016-03-30 Thread Mark Lawrence via Python-list
On 31/03/2016 06:34, tdspe...@gmail.com wrote: I am creating the following aData = [] This is a Python list, not an array as the subject gives. # get my data from database for row in rows: aData.append({row["tierid"]:"name":row["tiername"],"description":row["tierdesc"],"option":row["tie

Re: Python Array

2016-03-30 Thread Jussi Piitulainen
Stephen Hansen writes: > On Wed, Mar 30, 2016, at 10:34 PM, tdspe...@gmail.com wrote: >> as you can see the option element was added third but is the first one >> displayed. >> >> Is this just standard - I am using Python 3.5 > > The order of items in dictionaries is based on the hash value -- wh

Re: Threading is foobared?

2016-03-30 Thread Steven D'Aprano
On Thursday 31 March 2016 15:50, Mark Sapiro wrote: > Hi all, > > I'm jumping in on this thread because Tim asked. [...] Thanks for the explanation! -- Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Array

2016-03-30 Thread Cameron Simpson
On 30Mar2016 22:53, Stephen Hansen wrote: On Wed, Mar 30, 2016, at 10:34 PM, tdspe...@gmail.com wrote: as you can see the option element was added third but is the first one displayed. Is this just standard - I am using Python 3.5 The order of items in dictionaries is based on the hash value

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Steven D'Aprano
On Thursday 31 March 2016 13:45, Paul Rubin wrote: > Steven D'Aprano writes: >> I want to see an actual application where adding a new key to a .^ >> mapping is expected to change the other keys. > directory["mary.roommate"] = "bob" > directory["mary.address"

Re: sympy

2016-03-30 Thread Poul Riis
Den torsdag den 31. marts 2016 kl. 06.49.34 UTC+2 skrev Gregory Ewing: > Steven D'Aprano wrote: > > On Thu, 31 Mar 2016 02:23 am, Poul Riis wrote: > > > >>What I intend to do is to let sympy find the derivative of some > >>welldefined function and next define the foundation derivative as a normal

<    1   2