Processing snmp data...

Robin Munn rmunn at pobox.com
Mon Dec 2 14:28:44 EST 2002


Adam Langley <usenet at imperialviolet.org> wrote:
> On Thu, 28 Nov 2002 13:34:42 +0000, Meehan, Francois wrote:
> 
>> enterprises.311.1.1.3.1.1.5.1.4.13.95.84.111.116.97.108.58.95.84.111.116.97.
>> 108 = 5540
>> 
>> I just need what is after the "=" sign. 
>  
> "abc=def".split("=")[1] returns "def". Try that.
> 
> Beware that your strings look like that they have spaces 
> around the "=". You may wish to strip them.
> 
> (hint "abc "[:-1] -> "abc")

Or, better, " abc  ".strip() -> "abc"

-- 
Robin Munn <rmunn at pobox.com>
http://www.rmunn.com/
PGP key ID: 0x6AFB6838    50FF 2478 CFFB 081A 8338  54F7 845D ACFD 6AFB 6838



More information about the Python-list mailing list