problems with Methods in Python 3.4.2

2014-12-21 Thread Marcus Lütolf
Hello Dears,

I solved the problem: There are two underscore key strokes required.
Marcus.

Hello Dears,

1)I am trying to do this:



>>> dir(_builtins_)



I am getting this:

Traceback (most recent call last):

  File "", line 1, in 

dir(_builtins_)

NameError: name '_builtins_' is not defined



2)I am trying to do this:



>>> 'TTA',_add_('GGA')



I’am getting this :

Traceback (most recent call last):

  File "", line 1, in 

'TTA',_add_('GGA')

NameError: name '_add_' is not defined



3)I am trying to do this:



>>> -3  .abs()



I’am getting this

Traceback (most recent call last):

  File "", line 1, in 

-3 .abs()

AttributeError: 'int' object has no attribute 'abs'



4) finally, after printing



>>>abs._doc_()



I am getting this (and so on) :

Traceback (most recent call last):

  File "", line 1, in 

abs._doc_()

AttributeError: 'builtin_function_or_method' object has no attribute '_doc_'

What did I do wrong ? Thanks for help, Marcus Luetolf, M.D., 90 Bondastreet,
CH-7000 Chur, Switzerland.





---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com
-- 
https://mail.python.org/mailman/listinfo/python-list


problems with Methods in Python 3.4.2

2014-12-18 Thread Marcus Lütolf
Hello Dears,

1)I am trying to do this:



>>> dir(_builtins_)



I am getting this:

Traceback (most recent call last):

  File "", line 1, in 

dir(_builtins_)

NameError: name '_builtins_' is not defined



2)I am trying to do this:



>>> 'TTA',_add_('GGA')



I’am getting this :

Traceback (most recent call last):

  File "", line 1, in 

'TTA',_add_('GGA')

NameError: name '_add_' is not defined



3)I am trying to do this:



>>> -3  .abs()



I’am getting this

Traceback (most recent call last):

  File "", line 1, in 

-3 .abs()

AttributeError: 'int' object has no attribute 'abs'



4) finally, after printing



>>>abs._doc_()



I am getting this (and so on) :

Traceback (most recent call last):

  File "", line 1, in 

abs._doc_()

AttributeError: 'builtin_function_or_method' object has no attribute '_doc_'

What did I do wrong ? Thanks for help, Marcus Luetolf, M.D., 90 Bondastreet,
CH-7000 Chur, Switzerland.





---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com
-- 
https://mail.python.org/mailman/listinfo/python-list