🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #201236

Python Question

#201236
From: Anonymous
Date: Fri, 27 Jan 2006 22:48
36 lines
1802 bytes
It is good to see that people here are using Python scripts to help with
their anonymity.

I am writing one, but am a beginner, and have what is probably a simple
question for the Python experts. I have looked at several online sources
but don't see the answer.

What I need to do is identify which element in a table is the last one. In
other words, what is the subscript of the last element?

Suppose this:

a = 'aaaa,bbbb,cccc'
b = a.split(,)

So:
b[0] = aaaa
b[1] = bbbb
b[2] = cccc

But how can I tell that b[2] is the last element?

if I try to look at b[3], maybe to test if it is a null, the interpreter
comes back with an error and stops the execution.



-=-
This message was sent via two or more anonymous remailing services.





Technical Details
Message-ID: <PR3MNVZC38744.7423032407@anonymous>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!zen.net.uk!dedekind.zen.co.uk!news.amigo.co.uk!remailer.org.uk!mail2news

Show Full Headers
Complete Article Headers
Message-ID: <PR3MNVZC38744.7423032407@anonymous>
Subject: Python Question
Date: Fri, 27 Jan 2006 22:48:55 +0000
From: Anonymous <BigappleRemailer@bigapple.yi.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!zen.net.uk!dedekind.zen.co.uk!news.amigo.co.uk!remailer.org.uk!mail2news
Comments: This message did not originate from the above address. It was
 remailed by two or more anonymous mail services. Send complaints of REAL
 abuse ONLY to remaileradmin at optonline dot n NOTE: Trolling and flame wars
 are not considered real abuse.
NNTP-Posting-Host: 69.119.201.173
Lines: 36
X-pugleaf-debug: badGroups=1 valid=1
Newsgroups: alt.privacy.anon-server