[Tutor] string problem

Eugene Perederey eugene.perederey at gmail.com
Sun Jan 25 14:57:35 CET 2009


What's a problem to split the string like
>>>'166.43.234.43'.split('.')
Maybe I misunderstand you problem...

2009/1/25 Manoj kumar <manoj_kumar2512 at rediffmail.com>:
>
> i was trying to write a script for a port scanner. i was able to get a
> working scanner which can scan a given host.
>
> now i want to upgrade it to scan for a given range of ip address.
> for example:
> starting ip:166.43.234.43
> last ip:234.23.45.123
>
> no problem i am facing is that i am really NOT able to split ip addresses
> into nodes like:
> 166.43.234.43 would be like '166','43','234','43'
>
>
> help me please.
>
> thanks in advance
>
> MANOJ SHEOKAND
>
> (+919728523528)
>
> "some day there won't be a song in ur heart, sing anyway"
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>



-- 
Sincerely yours, Eugene Perederey


More information about the Tutor mailing list