Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82643
| From | Marcus Lütolf <marcus.luetolf@bluewin.ch> |
|---|---|
| Subject | problems with Methods in Python 3.4.2 |
| Date | 2014-12-18 18:27 +0100 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17037.1418923700.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hello Dears,
1)I am trying to do this:
>>> dir(_builtins_)
I am getting this:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
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 "<pyshell#0>", line 1, in <module>
'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 "<pyshell#1>", line 1, in <module>
-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 "<pyshell#2>", line 1, in <module>
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
problems with Methods in Python 3.4.2 Marcus Lütolf <marcus.luetolf@bluewin.ch> - 2014-12-18 18:27 +0100 Re: problems with Methods in Python 3.4.2 André Roberge <andre.roberge@gmail.com> - 2014-12-18 09:44 -0800 Re: problems with Methods in Python 3.4.2 John Gordon <gordon@panix.com> - 2014-12-18 18:45 +0000
csiph-web