Hi,
I googled for a while, but failed to find the perfect answer,
for a string
['85CUR', '85CUR']
how can I unique it as:
['85CUR']
Thanks,
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org
You should be able to do this yourself, with the help of the following link:
http://docs.python.org/library/stdtypes.html#set
Is this a homework question?
Devin
On Sat, Oct 22, 2011 at 12:09 PM, lina wrote:
> Hi,
>
> I googled for a while, but failed to find the perfect answer,
>
> for a strin
On 10/22/2011 12:09 PM, lina wrote:
Hi,
I googled for a while, but failed to find the perfect answer,
for a string
['85CUR', '85CUR']
how can I unique it as:
['85CUR']
Try
set(['85CUR', '85CUR']
--
Bob Gailer
919-636-4239
Chapel Hill NC
___
Tu
lina wrote:
Hi,
I googled for a while, but failed to find the perfect answer,
for a string
['85CUR', '85CUR']
That's not a string, it is a list.
how can I unique it as:
['85CUR']
Your question is unclear. If you have this:
['85CUR', '99bcd', '85CUR', '85CUR']
what do you expect to g
On 23 Oct, 2011, at 0:22, Devin Jeanpierre wrote:
> You should be able to do this yourself, with the help of the following link:
>
> http://docs.python.org/library/stdtypes.html#set
Thanks.
>
> Is this a homework question?
No.
>
> Devin
>
> On Sat, Oct 22, 2011 at 12:09 PM, lina wrote:
>
From: Rayon [mailto:ra...@gtt.co.gy]
Sent: 21 October 2011 18:53
To: 'tutor@python.org'
Subject: python telnet
Can I connect to a telnet session and return data without disconnecting the
data session.
Regards Rayon
___
Tutor mailli
Take a look at pyexpect. I have used this mod to ssh into juniper firewalls,
excute a command, save results and exit. Instead of exiting you can drop
down to interactive mode.
On Oct 22, 2011 3:40 PM, "Rayon" wrote:
> ** **
>
> ** **
>
> ** **
>
> *From:* Rayon [mailto:ra...@gtt.co.gy]
> *Sent:*
Rayon wrote:
Can I connect to a telnet session and return data without disconnecting the
data session.
Isn't this the same question you asked back in June?
We tried to answer your question then, did you see our responses, and
were they useful?
At the time, you were complaining that the t
Hello, First, thank you for providing this GREAT service, & THANKS to
everyone who contributes. It's greatly appreciated. . .I'm new to Python
(2.7, Win XP) & new to programming in general. I have been studying on
my own for about a month now. I believe I have a good grasp of the basics.
Secon
On 10/22/2011 06:10 PM, Chris Kavanagh wrote:
Hello, First, thank you for providing this GREAT service, & THANKS to
everyone who contributes. It's greatly appreciated. . .I'm new to
Python (2.7, Win XP) & new to programming in general. I have been
studying on my own for about a month now. I bel
On 22/10/11 23:10, Chris Kavanagh wrote:
My question is regarding the tell methods in the subclasses,the code
{SchoolMember.tell(self)}, in the class Teacher & Student. I just don't
understand what this is doing? Calling the first method {def tell} from
the parent class, I assume?
Thats right,
Well what I am doing is connecting to a telnet session sending some
commands, exiting and returning some data.
What I would to do is send the commands and return the data without exiting
the session.
I would like to keep the same session and just send commands and return
data.
#!/usr/bin/env p
Rayon wrote:
Well what I am doing is connecting to a telnet session sending some
commands, exiting and returning some data.
What I would to do is send the commands and return the data without exiting
the session.
I would like to keep the same session and just send commands and return
data.
Thanks I will try it and post the code, looks like what I need.
-Original Message-
From: tutor-bounces+evosweet=hotmail@python.org
[mailto:tutor-bounces+evosweet=hotmail@python.org] On Behalf Of Steven
D'Aprano
Sent: 22 October 2011 21:13
To: tutor@python.org
Subject: Re: [Tutor]
Hi Steven,
First of all, I want to able to download the data from the web into
the database. Here is the part of the link:
http://boc.quotepower.com/web/bochk/stocks_mktTransactions.jsp?lang=en&domain=NCBHK&rand=-74344993&lastLevel1Name=nav_stocks&lastStock=5
I hope I can use the download data t
15 matches
Mail list logo