From: Jan Kohnert <nospam001-lists@jankoh.dyndns.org>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] Mein erstes Mal in Python ;)
Date: Tue, 6 Sep 2005 23:04:12 +0200 [thread overview]
Message-ID: <200509062304.17121.nospam001-lists@jankoh.dyndns.org> (raw)
In-Reply-To: <20050906205351.GA29313@stovokor.kiste.lan>
[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]
Emil Beinroth schrieb:
> On Tue, Sep 06, 2005 at 10:20:21PM +0200, Jan Kohnert wrote:
> > Der Code würde in C so funktionieren, aber in Python ist
> > das wohl etwas anderes... :-(
>
> Wuerdest du in C nicht einen segfault bekommen?
Jupp, stimmt, ich nehms zurück, aber ich kann ja vorher mit argc prüfen. ;)
> > Ich kenne jedenfalls von C den Wert argc, der mir die Anzahl der
> > Argumente gibt, leider konnte ich bis jetzt nichts vergleichbares finden.
>
> len(sys.argv) sollte funktionieren.
Danke! Gutes kann so einfach sein. ;)
> > P.S.: Kennt jemand eine gute Onlinedoku über Python? So ähnlich wie die
> > von php, die ich einfach nur klasse finde...
>
> Gut bzw praktisch finde ich:
> http://docs.python.org/lib/lib.html (python library reference)
> http://rgruet.free.fr/PQR24/PQR2.4.html (quick ref)
> http://diveintopython.org/toc/index.html (einfuehrendes online-buch)
Werde ich mir mal reinziehen! Danke fpr die schnelle Antwort.
> MfG Emil
MfG Jan
--
OpenPGP Public-Key Fingerprint:
0E9B 4052 C661 5018 93C3 4E46 651A 7A28 4028 FF7A
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
prev parent reply other threads:[~2005-09-06 21:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 20:20 [gentoo-user-de] Mein erstes Mal in Python ;) Jan Kohnert
2005-09-06 20:53 ` Emil Beinroth
2005-09-06 21:04 ` Jan Kohnert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509062304.17121.nospam001-lists@jankoh.dyndns.org \
--to=nospam001-lists@jankoh.dyndns.org \
--cc=gentoo-user-de@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox