[Tutor] SLICING

2018-06-15 Thread kenneth yashim
please im new to python or any other programming language. please i want to understand how slicing works [start,stop,step] >>> 'abc'[0:3] 'abc' >>>'abc'[0:-1] 'ab' why does 'abc'[2:1] or 'abc'[2:1] print ' ' instead of 'c'??? ___ Tutor maillist

Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? Why not list them under one documentation?

2018-06-15 Thread C W
I read through some documentations yesterday after posting. I will share what I think. There are three parts to matplotlib: backend, artist, and scripting. The artist layer is the only one that really matters for matplotlib users. Why haven't the developers fixed the problem? Considering Python's

Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? Why not list them under one documentation?

2018-06-15 Thread Mats Wichmann
many systems are constrained by history. matplotlib started when the vile (yes, thats just a personal opinion) matlab proved too cumbersome and someone decided to try again in python... but knowing matlab, he picked up ideas from there. since then all kinds of stuff has been bolted on. it's powe

Re: [Tutor] SLICING

2018-06-15 Thread Alan Gauld via Tutor
On 15/06/18 14:57, kenneth yashim wrote: > please im new to python or any other programming language. please i want to > understand how slicing works > > [start,stop,step] > 'abc'[0:3] > 'abc' > 'abc'[0:-1] > 'ab' > > why does 'abc'[2:1] or 'abc'[2:1] print ' ' instead of 'c'???

Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? Why not list them under one documentation?

2018-06-15 Thread Alan Gauld via Tutor
On 15/06/18 17:35, C W wrote: > Why haven't the developers fixed the problem? This is open source, developed by volunteers to meet their own needs primarily and others by happy coincidence. If the existing solution meets the needs of the developers they have no incentive to spend time to "fix"

Re: [Tutor] SLICING

2018-06-15 Thread Steven D'Aprano
On Fri, Jun 15, 2018 at 04:57:47PM +0300, kenneth yashim wrote: > please im new to python or any other programming language. please i want to > understand how slicing works > > [start,stop,step] > > >>> 'abc'[0:3] > 'abc' > > >>>'abc'[0:-1] > 'ab' > > why does 'abc'[2:1] or 'abc'[2:1] prin

Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? Why not list them under one documentation?

2018-06-15 Thread Steven D'Aprano
On Fri, Jun 15, 2018 at 12:35:36PM -0400, C W wrote: > Why haven't the developers fixed the problem? matplotlib is free, open source software. If volunteers don't "fix the problem", who is paying for the work to be done? Are you volunteering? Or willing to pay somebody to do the work? $30,000