Anonymous Servers - Python Question

This is Interesting: Free IT Magazines  
Home > Archive > Anonymous Servers > January 2006 > Python Question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Python Question
Anonymous

2006-01-27, 9:03 pm


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.






Borked Pseudo Mailed

2006-01-29, 8:49 pm

Anonymous wrote:

> Suppose this:
>
> a = 'aaaa,bbbb,cccc'
> b = a.split(,)

^
Broken. You left out some quotes.

> 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.


Yeah, an "out of range" error just like your Pan script does when it
screws up on certain input, Eelbash.

The solution is elementary because the question is ridiculously basic.
It's not even a Python question really. I'd bet "how do I find the length
of an array" is something every first week programmer in any language
asks, and figuring it out is something any teacher might use as a
tool to teach basic, beginner programming methodologies. You shouldn't be
releasing code to unsuspecting users if you aren't already familiar with
this insanely simple bit of coding. Seriously... all BS aside. Take some
time to learn at least the basics.

And before you start ranting and raving about how I don't know an answer
but just want to pick on someone, two different ways leaped to mind
automatically... indexing and slicing. I'll leave it to you to toil over
why they're different, and which one you might need.
[vbcol=seagreen]
'ccc'[vbcol=seagreen]
['ccc']



A.Melon

2006-01-29, 8:49 pm


On Fri, 27 Jan 2006 23:52:13 -0700, Borked Pseudo Mailed wrote:

> Anonymous wrote:
>
> ^
> Broken. You left out some quotes.
>
>
> Yeah, an "out of range" error just like your Pan script does when it
> screws up on certain input, Eelbash.
>
> The solution is elementary because the question is ridiculously basic.
> It's not even a Python question really. I'd bet "how do I find the length
> of an array" is something every first week programmer in any language
> asks, and figuring it out is something any teacher might use as a tool to
> teach basic, beginner programming methodologies. You shouldn't be
> releasing code to unsuspecting users if you aren't already familiar with
> this insanely simple bit of coding. Seriously... all BS aside. Take some
> time to learn at least the basics.
>
> And before you start ranting and raving about how I don't know an answer
> but just want to pick on someone, two different ways leaped to mind
> automatically... indexing and slicing. I'll leave it to you to toil over
> why they're different, and which one you might need.
>
> 'ccc'
> ['ccc']


Your answer is appreciated, or would be if you hadn't surrounded it with
such snotnosed insults.

It is obvious that scripting can be useful in helping with anonymity, and
disseminating knowledge of Python and other scripts is a good use of the
newsgroup.

What are people to think when they see the kind of snide answer you gave
to the question?

What will they think of the 'anonymity experts' and remailer operators
here?


TwistyCreek

2006-01-29, 8:49 pm

In article < 4b99821151a3f57f451e7431b7c580c4@melontr
affickers.com>
admin <admin@eelbash.org> wrote:
>
> Your answer is appreciated, or would be if you hadn't surrounded it with
> such snotnosed insults.


Your post was off topic. If you want help with python, go post in
comp.lang.python

> It is obvious that scripting can be useful in helping with anonymity, and
> disseminating knowledge of Python and other scripts is a good use of the
> newsgroup.


A keyboard can obviously be useful in helping with anonymity, as if you
want to send an anonymous message, it helps to be able to type it on
something. Disseminating knowledge of which are the best keyboards and
where to buy them is a good use of this newsgroup.

No, your question was about how to code something in python. It had
no relevance to anything about anonymity except in your head.



George Orwell

2006-01-29, 8:49 pm

A.Melon wrote:

>
> Your answer is appreciated, or would be if you hadn't surrounded it with
> such snotnosed insults.


What misguided stretch of illogic makes you believe you deserve even that
much courtesy? You should be on your knees praising anyone who even
grudgingly hands out good, sarcastic information.

Look at all the stupid shit you've done. Look at the insane things you've
tried to do with a remailer. Look at the insidious sock puppetry you use
to prop up all the rest of your stupidity and insanity. And look at the
way your incompetence is putting everyone at risk. Everyone naive enough
to believe in your stupidity that is, which hopefully isn't very many.

> It is obvious that scripting can be useful in helping with anonymity, and


Yeah, it can be a real bastard to it also, as you're finding out in not so
pleasant ways. Gross incompetence like yours mixed with the power of a
good scripting language is a dangerous combination, isn't it?

> disseminating knowledge of Python and other scripts is a good use of the
> newsgroup.


Not if attention seeking nutters like you use it to try and muck up
everyones' anonymity it isn't.

> What are people to think when they see the kind of snide answer you gave
> to the question?


That I don't like brain dead fools pretending to be experts. Or even
useful. That I have a real dislike for someone who thrashes anonymity
while pretending to be a "remop".

>
> What will they think of the 'anonymity experts' and remailer operators
> here?


They we're watching out for the security, privacy, and anonymity of every
user out there. That we're addressing the incompetent idiots who would
completely demolish their anonymity if left to their own devices.

You're the problem Eelbash, not the solution. You get treated the way you
do because you're no more useful than a remailer bashing troll. Less
useful in some respects, because no matter how idiotic your latest scheme
is there might be people who try and make it work. And those people suffer
a lot more than anyone who merely has to read troll spew.
Anonymous

2006-01-29, 8:49 pm

On Sun, 29 Jan 2006 05:02:17 +0100, George Orwell wrote:

>
> What misguided stretch of illogic makes you believe you deserve even that
> much courtesy? You should be on your knees praising anyone who even
> grudgingly hands out good, sarcastic information.


No problem. I'll accept help from assholes if they're the only ones
offering it.

By the way, do you have a Python procedure which removes duplicates from a
list? It shouldn't sort it, but a sorting variation would be nice to have
as well.

I have looked at several sites and tried examples, but the only ones I see
are procedures that sort/remove dupes from one-character lists: a, b, c,
etc. I need it to do that with alist of words: tree, house, mylar,
sunshine, etc.




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




Borked Pseudo Mailed

2006-01-29, 8:50 pm

In article <4Q445AS838746.4817708333@anonymous>
Anonymous <BigappleRemailer@bigapple.yi.org> wrote:
>
> No problem. I'll accept help from assholes if they're the only ones
> offering it.


Isn't assholes a [BAD_WORD]? Shame on you eelbash!


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com