On Fri, Feb 5, 2010 at 5:34 PM, Anand Chitipothu <[email protected]>wrote:
> On Sat, Feb 6, 2010 at 3:00 AM, kevin <[email protected]> wrote: > > can you pl. add this to utils.py as there is no function to decode base36 > > created by to36 > > > > def from36(q): > > letters="0123456789abcdefghijklmnopqrstuvwxyz" > > i = 0 > > for pos, digit in enumerate(q[-1::-1]): > > i += letters.find(digit) * pow(36, pos) > > return i > > > > I was thinking of adding a more generalized version that I wrote. > what you wrote is definitely way better -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
