Hi:
Thank you very much for ALL your postings. They help a lot and now things make
sense.
Thank you
Monika
-- Original Message --
From: Alan Gauld via Tutor
To: tutor@python.org
Subject: Re: [Tutor] __getitem__
Date: Wed, 23 Nov 2016 22:25:08 +
On 23/11/16 12:25, monik
: Re: [Tutor] __getitem__ another problem
Date: Wed, 23 Nov 2016 10:09:46 +
On 23/11/16 06:26, monik...@netzero.net wrote:
> I do not understand how numbermap.__getitem__ brings back month's key.
numbermap returns the integer corresponding to the key.
That number is then used by sorte
Hi:
I have two questions in regards to below code:
1. largest is a list, not a list of lists.
[('deit', 4), ('acer', 3), ('aceilmr', 2), ('arst', 2)]
so why when I do largest[0] I get the whole list again, not just the first item
from the list. To get the first item I have to do largest[0][0].
. Where does lambda get ky? what is ky value?
Thank you very much
Monika
-- Original Message --
From: Alan Gauld via Tutor
To: tutor@python.org
Subject: Re: [Tutor] __getitem__
Date: Wed, 23 Nov 2016 10:05:50 +
On 23/11/16 06:09, monik...@netzero.net wrote:
> Can you plea
Hi:
Can you please explain what is going on below? I do not understand how
numbermap.__getitem__ brings back month's key.
Does numbermap.__getitem__ bring back numbermap key or value? If key then it is
not consistent with my understanding of problem in my previous email. So month
is sorted by n
Hi:
Can you please explain __getitem__? My understanding is that it brings back
dictionary's value. Is this correct? If so which value does it bring? Does it
look up this value by using a key? Where is this key specified in "
numbers.__getitem__" ?
The below supposedly brings back dictionary
Hi:
Below is code where mistakenly self.var is named the same as function var
instead of a different name. I know that this is not correct but I was
experimenting to see what happens.
class GetSet():
def __init__(self, value):
#self.attrval = value
self.var = value
@pro
r old style classes vs new style classes
Date: Fri, 16 Sep 2016 02:57:12 +1000
On Thu, Sep 15, 2016 at 04:40:22AM +0000, monik...@netzero.net wrote:
> Could somebody please explain what is going on for old style classes for the
> below code:
The important part is that the descriptor proto
: ,
'__dict__': , 'var': }
>>>
Thank you very much
Monika
-- Original Message --
From: Steven D'Aprano
To: tutor@python.org
Subject: Re: [Tutor] @property for old style classes vs new style classes
Date: Fri, 16 Sep 2016 02:57:12 +1000
On Thu, Sep 15, 2016 at 0
--
From: Steven D'Aprano
To: tutor@python.org
Subject: Re: [Tutor] @property for old style classes vs new style classes
Date: Fri, 16 Sep 2016 02:57:12 +1000
On Thu, Sep 15, 2016 at 04:40:22AM +0000, monik...@netzero.net wrote:
> Could somebody please explain what is going on for o
Hi:
Im studying @property, @var.setter and @var.deleter.
I understand how they work in new style classes. Even though I do not use old
style classes it would be interesting to understand what is going on behind the
scenes. I can try to make assumptions but I do not want to because they might
be
The r trick did it. Yay!
Thank you
Monika
-- Original Message --
From: Alan Gauld
To: "monik...@netzero.net"
Cc: tutor@python.org
Subject: Re: [Tutor] cannot find html file, in the same dir as python file
Date: Tue, 6 Sep 2016 08:43:03 +0100
On 06/09/16 03
dir as python file
Date: Tue, 6 Sep 2016 01:25:27 +0100
On 05/09/16 21:59, monik...@netzero.net wrote:
> chromedriver = "resources/chromedriver"
> os.environ["webdriver.chrome.driver"] = chromedriver
> self.driver = webdriver.Chrome(chromedriv
Hi:
Im trying to learn Selenium with python. I have a html file button.html in the
same directory as python file. I have the htnl file on my PC since my html file
is much simpler for me to learn from than regular html files on the web. The
blow code works with web html files but cannot find my b
Thank you all for your explanations. I really enjoy learning about things like
that.
Monika
-- Original Message --
From: Alan Gauld via Tutor
To: zakaria , tutor@python.org
Subject: Re: [Tutor] python memory management
Date: Sun, 4 Sep 2016 01:22:27 +0100
On 03/09/16 23:20, zaka
So what does [...] mean?
-- Original Message --
From: Peter Otten <__pete...@web.de>
To: tutor@python.org
Subject: Re: [Tutor] python memory management
Date: Sat, 03 Sep 2016 14:26:12 +0200
monik...@netzero.net wrote:
>
> By:
> "reference cycles: if one ob
-- Original Message --
From: Steven D'Aprano
To: tutor@python.org
Subject: Re: [Tutor] python memory management
Date: Fri, 2 Sep 2016 04:10:02 +1000
On Thu, Sep 01, 2016 at 02:12:11PM +, monik...@netzero.net wrote:
> Hi:
> Can somebody please explain how memory is managed
situation should
be handled?
Thank you
Monika
-- Original Message --
From: Steven D'Aprano
To: tutor@python.org
Subject: Re: [Tutor] python memory management
Date: Fri, 2 Sep 2016 04:10:02 +1000
On Thu, Sep 01, 2016 at 02:12:11PM +0000, monik...@netzero.net wrote:
> H
Hi:
Can somebody please explain how memory is managed by python? What kind of
memory it uses? What structures use what kind of memory?
If many people work on the same project and have many instances of the same
object how do they ensure that all instances are killed before the programs
exit? App
Hi:
I have been taking python classes for overa year now and studying and studying
it all days long. However, I still cannot get a job as a python automation qa
(despite of many years of experience in qa) because everybody is looking for a
senior python developers for automation qa jobs. Entry l
Thank you very much. This was very helpful.
-- Original Message --
From: Steven D'Aprano
To: tutor@python.org
Subject: Re: [Tutor] __init__
Date: Wed, 31 Aug 2016 22:39:33 +1000
On Wed, Aug 31, 2016 at 04:05:26AM +0000, monik...@netzero.net wrote:
> Somebody in this
:56:21 +0100
On 31/08/16 05:12, monik...@netzero.net wrote:
>
> So generator function returns generator object according to Aaron Maxwell.
I don't believe that's correct.
A generator function can return any kind of object including
basic types like numbers, bool etc.In addit
Thank you everybody. This was very helpful
Monika
-- Original Message --
From: Steven D'Aprano
To: tutor@python.org
Subject: Re: [Tutor] generator object
Date: Wed, 31 Aug 2016 21:24:57 +1000
On Wed, Aug 31, 2016 at 04:12:24AM +0000, monik...@netzero.net wrote:
>
> S
Somebody in this line of emails mentioned that python provides default __init__
if it its not stated in the class by the programmer. And that it is called by
__new__
Then later on you corrected that.
-- Original Message --
From: Alan Gauld via Tutor
To: "monik...@netzer
ned by the generator functions?
Can somebody please explain?
Thank you
Monika
-- Original Message --
From: Alan Gauld via Tutor
To: "monik...@netzero.net"
Cc: tutor@python.org
Subject: Re: [Tutor] __init__
Date: Wed, 31 Aug 2016 00:25:42 +0100
On 30/08/16 22:08, monik
Message --
From: Alan Gauld via Tutor
To: tutor@python.org
Subject: Re: [Tutor] __init__
Date: Tue, 30 Aug 2016 21:37:44 +0100
On 30/08/16 17:59, monik...@netzero.net wrote:
> Assume you have a child class with no init, but it has empty,
> default __init__ provided by pathon
It in
n.org
Subject: Re: [Tutor] __init__
Date: Tue, 30 Aug 2016 10:09:55 +0100
On 29/08/16 23:52, monik...@netzero.net wrote:
> I cannot really try it.
> If I have a class without __init__ and the class does not
> inherit from a class that has init there is really no place
> for me to put
/16 20:03, monik...@netzero.net wrote:
> If __init__ is not defined in a class, will it be called when creating an
> instance?
> What in a case if this class inherits from parent with __init__ and without
> __init__?
The easiest way to find out is try it and see what happens!
Just put
Hi:
Why in super(Child,self).setVal(value) there is Child and self in super? Why
the repetition? Or should it say Parent instead of Child?
In my understanding it should say Parent2 instead of Child since it refers to
which parent to take the medthod from. In case of multiple inheritance it
shoul
Hi:
If __init__ is not defined in a class, will it be called when creating an
instance?
What in a case if this class inherits from parent with __init__ and without
__init__?
Thank you
Monika
www.theictm.org (Sponsored by Content.Ad)
1
"pythonic" way.
Thank you for the links and I will check/read each one of them.
Monika
-- Original Message --
From: Danny Yoo
To: "monik...@netzero.net"
Cc: Alan Gauld , Python Tutor Mailing List
Subject: Re: [Tutor] python programmin problem
Date: Wed, 27 Jul
Thank you all for your answers. I do not have a teacher or any body else who
could guide me. I have taken all python classes offered in my area and many on
line.
The question is one of questions asked by interviews for a qa position that
also does some automation with python. Im just trying to l
t
those other subproblems: the result of L(A, k) is related to them.
-- How do we find those subproblems? And then how do you relate them to the
main problem?
Can you please explain more in details?
Thank you so much
Monika
-- Original Message --
From: Danny Yoo
To: Alan Gaul
+= [items[i]]
print "inside", items[i], items[i - 1], counts
elif counts[- 1] <= items[i] and items[i] > items[i + 1]:
counts += [items[i]]
i += 2
print counts
ProgressCalc(items)
------ Original Message --
From: Alan
Hi:
Can somebody please provide answer to following python programming question? I
have spent days on it and cannot come up with any code that would make any
sense for it so I cannot provide you any code. But I would appreciate the
answer very much, if not in python, then in pseudo code.
Thank y
How do you get involved in open source project?
Thank you
Monika
-- Original Message --
From: Alan Gauld via Tutor
To: tutor@python.org
Subject: Re: [Tutor] The Way
Date: Tue, 19 Jul 2016 00:55:07 +0100
On 18/07/16 22:32, Skapeven Punkboard wrote:
> Hello I have programmed a lot
HI:
Can you please recommend a free web class or site that offers lots of coding
exercises in python, not just the beginning but also intermediate and advanced
AND provides solutions. I need more practice. All the classes I have taken or
looked at do not provide enough exercises (with solution
37 matches
Mail list logo