Am Tuesday 11 May 2010 20:16:50 schrieb Terry Reedy:
> On 5/11/2010 7:51 AM, Richard Lamboj wrote:
> > I just want to test what is possible with python and what not. There is
> > no problem that i need to solve.
> >
> > This is what i'am searching for:
> > http://docs.python.org/reference/datamode
On 5/11/2010 7:51 AM, Richard Lamboj wrote:
I just want to test what is possible with python and what not. There is no
problem that i need to solve.
This is what i'am searching for:
http://docs.python.org/reference/datamodel.html
Last year i have stopped programming python, but now i'am back w
Am Tuesday 11 May 2010 11:38:42 schrieb Ulrich Eckhardt:
> Richard Lamboj wrote:
> > "How knows python that it is a float, or a string?" Sorry this was bad
> > expressed. I want to create a new data type, which inherits from float. I
> > just know the "dir" function and the "help" function to get
Richard Lamboj wrote:
> "How knows python that it is a float, or a string?" Sorry this was bad
> expressed. I want to create a new data type, which inherits from float. I
> just know the "dir" function and the "help" function to get more
> infromations about the class, but i need to get more inform
On Tue, May 11, 2010 at 2:18 AM, Richard Lamboj
wrote:
> What i also want to know:
variable1 = 10.50
type(variable1)
>
>
> Is there a way to tell python that it use antoher class than float for float,
> like myfloat? Its just a "tell-me-what-is-possible".
>
> Sample:
variable1 = 1
Am Tuesday 11 May 2010 10:47:35 schrieb Ulrich Eckhardt:
> Richard Lamboj wrote:
> > i want to inherit from a data type. How can i do this? Can anyone explain
> > more abou this?
>
> Other than in e.g. C++ where int and float are special types, you can
> inherit from them in Python like from any o
Richard Lamboj a écrit :
Hello,
i want to inherit from a data type. How can i do this?
Hmmm, let's see... Could it be possible that it's documented somewhere ?
Like, in the FineManual(tm) ?-)
http://docs.python.org/tutorial/classes.html#inheritance
Can anyone explain more
abou this? How k
On Tue, May 11, 2010 at 6:38 PM, Richard Lamboj
wrote:
> i want to inherit from a data type. How can i do this? Can anyone explain more
> abou this? How knows python that it is a float, or a string?
$ python
Python 2.6.5 (r265:79063, Apr 27 2010, 18:26:49)
[GCC 4.4.1 (CRUX)] on linux2
Type "help"
Richard Lamboj wrote:
> i want to inherit from a data type. How can i do this? Can anyone explain
> more abou this?
Other than in e.g. C++ where int and float are special types, you can
inherit from them in Python like from any other type. The only speciality
of int, float and string is that they
Hello,
i want to inherit from a data type. How can i do this? Can anyone explain more
abou this? How knows python that it is a float, or a string?
Kind Regards
Richi
--
http://mail.python.org/mailman/listinfo/python-list
10 matches
Mail list logo