Perl is worse!

Ben Wolfson rumjuggler at cryptarchy.org
Fri Jul 28 23:19:30 EDT 2000


On Sat, 29 Jul 2000 00:52:33 GMT, grey at despair.rpglink.com (Steve Lamb)
wrote:

>On Fri, 28 Jul 2000 19:29:52 -0400, Karl Ulbrich <kulbrich at yahoo.com> wrote:
>>If they already contained numbers (well, strings of digits), and you were
>>certain, then simply:
>
>>	a = int(b)
>
>    As stated, that would work except Python returns a None on a no-match and
>None can't be converted.

def REint(i):
	if i is None:
		do whatever you want in this case.
	return int(i)

-- 
Barnabas T. Rumjuggler

Now, most of y'all be thinkin', "Tha H-Dog, he know his bidness." And thas
right, man. Shit need addin'? I creep in, adds tha shit up, and slip out,
quiet as a muthafuck. Variance need resolvin'? It be gone without a trace.
Uh-huh. Only a wack-ass fool ask someone besides tha H-Dog to
accountz-receeve they shit. 
 -- Herbert Kornfeld, Accounts Receivable Supervisor



More information about the Python-list mailing list