Reciprocal data structures

2017-06-18 Thread pavlovevidence
I'm not sure if "reciprocal" is the right word, or if there is an official term for this. I am thinking of a list that actively maintains in its items a member that contains the item's own index in the list. Basically, the item knows its index into the list and the list ensures that the index

Re: How coding in Python is bad for you

2017-01-28 Thread pavlovevidence
On Monday, January 23, 2017 at 9:24:56 AM UTC-8, bream...@gmail.com wrote: > The article is here http://lenkaspace.net/index.php/blog/show/111 > > Kindest regards. > > Mark Lawrence. I remember the old days of Python when it was just Perl's little brother. Sometimes I feel moments of amazement

Re: for / while else doesn't make sense

2016-06-12 Thread pavlovevidence
On Thursday, May 19, 2016 at 9:43:56 AM UTC-7, Herkermer Sherwood wrote: > Most keywords in Python make linguistic sense, but using "else" in for and > while structures is kludgy and misleading. I am under the assumption that > this was just utilizing an already existing keyword. Adding another lik

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread pavlovevidence
On Friday, April 29, 2016 at 6:55:56 PM UTC-7, Christopher Reimer wrote: > On 4/29/2016 6:29 PM, Stephen Hansen wrote: > > If isupper/islower were perfect opposites of each-other, there'd be no > > need for both. But since characters can be upper, lower, or *neither*, > > you run into this situat

Re: Most pythonic way of rotating a circular list to a canonical point

2015-08-02 Thread pavlovevidence
On Saturday, August 1, 2015 at 1:34:44 PM UTC-7, Lukas Barth wrote: > Hi! > > I have a list of numbers that I treat as "circular", i.e. [1,2,3] and [2,3,1] > should be the same. Now I want to rotate these to a well defined status, so > that I can can compare them. > > If all elements are unique

Re: python and matlab

2014-02-08 Thread pavlovevidence
On Thursday, February 6, 2014 5:30:54 AM UTC-8, Sam Adams wrote: > is it able to utilize functions written in Python in Matlab? If it's on Windows, and if it's pure-Python 2.x code, the easiest solution would be to use Iron Python or Jython. Matlab can call Java and .NET code natively. -- http