d asking for built-in-object inheritance: Is there a
diagram of built-in-object inheritance available anywhere?
Many thanks for the clarifications,
C
On Fri, Aug 30, 2019 at 3:47 AM Gregory Ewing
wrote:
> Cristian Cocos wrote:
>
> >>>>type(print)
> >
> >
> &
r me to learn Python this way.
Many thanks,
C
On Wed, Aug 28, 2019 at 11:56 PM Alan Bawden wrote:
> Cristian Cocos writes:
>
> > Thank you! I can see that the taxonomy of built-in classes (i.e. the
> > subclass/superclass relations) is not very developed. At the very least I
&g
among the returned values
(although this may also be a consequence of the fact that type() never
returns numbers.Integral)).
Anyway, I am looking forward to your correcting any of the above assertions.
C
On Tue, Aug 27, 2019 at 5:00 PM Terry Reedy wrote:
> On 8/27/2019 2:19 PM, Cristia
es not
> itself inherit from anything.
>
> On Tue, Aug 27, 2019 at 1:35 PM Cristian Cocos wrote:
>
>> I know that "Everything is an object in python" as per
>> https://mail.python.org/pipermail/python-list/2015-June/691689.html.
>> Also,
>> I am more-or
I know that "Everything is an object in python" as per
https://mail.python.org/pipermail/python-list/2015-June/691689.html. Also,
I am more-or-less convinced that there is a generic "class" (aka "type")
(meta)class (which would be an object, of course). Is there, however, a
generic "object" (meta)c
t Windows (XP and later releases)"?
Sounds as a reasonable solution to me. Thank you.
Cristian
--
http://mail.python.org/mailman/listinfo/python-list
ecause
"it does not say it is compatible with Windows 7" (sic).
So, may somebody fix that?
Thanks in advance.
Cristian
--
http://mail.python.org/mailman/listinfo/python-list
27;d prefer to make valor an attribute and muestra() a method:
>
> from Tkinter import *
>
> class App:
> def __init__(self, master):
> self.valor = StringVar()
> Entry(master, textvariable=self.valor).pack()
> Button(master, text='Mostrar', command=self.muestra).pack()
> def muestra(self):
> print self.valor.get()
>
> master = Tk()
> app = App(master)
> master.mainloop()
Thanks!, Sorry for the Spanish mail.
Regards
Cristian
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 21, 5:21 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Ok, then what about classes ? They also are objects-like-any-other,
> after all. So should we have this syntax too ?
>
> MyClass = class(ParentClass):
>__init__ = function (self, name):
> self.name = name
>
> ?-)
For co
On Sep 21, 4:47 pm, "Sean Tierney" <[EMAIL PROTECTED]> wrote:
> Just tell him that "functions are like all other variables and can
> therefore be passed by other functions or returned by other functions.
> "
>
I could """Just tell him that "functions are like all other variables
and can
theref
On Sep 21, 4:27 pm, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote:
> Cristian wrote:
> > On Sep 21, 3:44 pm, Ron Adam <[EMAIL PROTECTED]> wrote:
>
> >> I think key may be to discuss names and name binding with your friend. How
> >> a name is
On Sep 21, 3:44 pm, Ron Adam <[EMAIL PROTECTED]> wrote:
> I think key may be to discuss names and name binding with your friend. How
> a name is not the object it self, like a variable is in other languages.
> For example show him how an object can have more than one name. And discus
> how names
On Sep 21, 3:22 pm, [EMAIL PROTECTED] wrote:
> On Sep 21, 6:07 pm, Cristian <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Sep 21, 2:48 pm, [EMAIL PROTECTED] wrote:
>
> > > There are already anonymous functions in Python.
>
> > > lambda x, y, z: x + y +
On Sep 21, 2:48 pm, [EMAIL PROTECTED] wrote:
> There are already anonymous functions in Python.
>
> lambda x, y, z: x + y + z
>
> is the same as:
>
> def _(x, y, z): return x + y + z
>
> As for the method stuff, check out staticmethod(). If you assign
> staticmethod() to an object, it will be treat
A friend of mine is an engineer and he's been needing to do more and
more programming as he goes on with is career. I convinced him to
learn Python instead of Perl and he's really started to like it. He
usually comes to me when he can't accomplish a task with his current
knowledge and I introduce h
15 matches
Mail list logo