Article View: pl.comp.lang.python
Article #8844Re: Największy problem Pythona.
From: Adam Przybyla
Date: Tue, 10 May 2005 21:35
Date: Tue, 10 May 2005 21:35
43 lines
2428 bytes
2428 bytes
Qertoip <qer1@o2.pl> wrote:
> Dnia Tue, 10 May 2005 21:17:22 +0200, Jarek Zgoda napisał(a):
>
>> Qertoip napisał(a):
>>
>>> - niemożność wylistowania składowych obiektu (w VS: Ctrl+Space) wraz z
>>> podręczną dokumentacją dla każdej składowej (metody, atrybuty). Osoby
>>> piszące w nowoczesnych IDE wiedzą o co mi chodzi.
>>
>> A my to znamy od drugiej mańki -- dir(obj) wypisuje zawartość obiektu.
>
> Nie o to chodzi. Nie zrozumiałeś problemu. Ja chcę edytując kod źródłowy
> nacisnąć kropkę (lub Ctrl+Space) i mieć *zawsze* listę składowych w
> podręcznym okienku, a w drugim dokumentację do aktualnie podświetlonej
> składowej. Jeśli to nie wystarczy, zamieszczę screenshota :)
To powinno Ci pomoc:
gormenghast:/home/adam>echo $PYTHONSTARTUP
/usr/local/sbin/rc.py
gormenghast:/home/adam>cat $PYTHONSTARTUP
try:
import readline
except ImportError:
print "No Redaline"
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
import os
histfile=os.path.join(os.environ["HOME"],".pyhist")
try:
readline.read_history_file(histfile)
except (AttributeError,IOError):
pass
try:
import atexit
except ImportError:
pass
else:
atexit.register(readline.write_history_file,histfile)
del os,histfile
gormenghast:/home/adam>
Z powazaniem
Adam Przybyla
Technical Details
Message-ID:
<d5r9er$5t5$2@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<jsq2enrcpp4r$.nmpn8bgh83ge.dlg@40tude.net> <d5r1l6$flm$1@nemesis.news.tpi.pl> <1njwce3cqj46q.11f4hsu79ksgd.dlg@40tude.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Adam Przybyla <adam@gliwice.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: Największy problem Pythona.
Date: Tue, 10 May 2005 21:35:23 +0000 (UTC)
Organization: tp.internet - http://www.tpi.pl/
Lines: 43
Sender: Adam Przybyla <adam@gormenghast.ertel.com.pl>
Message-ID: <d5r9er$5t5$2@nemesis.news.tpi.pl>
References: <jsq2enrcpp4r$.nmpn8bgh83ge.dlg@40tude.net> <d5r1l6$flm$1@nemesis.news.tpi.pl> <1njwce3cqj46q.11f4hsu79ksgd.dlg@40tude.net>
NNTP-Posting-Host: gormenghast.ertel.com.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1115760923 6053 195.116.54.244 (10 May 2005 21:35:23 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Tue, 10 May 2005 21:35:23 +0000 (UTC)
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (Linux/2.4.22-1.2199.nptl (i686))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit