Returning a string

Simon Forman sajmikins at gmail.com
Sat Jan 3 14:40:19 EST 2009


On Jan 3, 11:20 am, Kless <jonas.... at googlemail.com> wrote:
> On 3 ene, 19:12, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
>
> > Kless schrieb:
>
> > > How is possible that I can print a variable, but when I use *return
> > > var* it returns an empty string
>
> > >http://paste.pocoo.org/show/97588/
>
> > I don't see anything that indicates that the returned object is the
> > empty string. Simply because there is no code testing for that. And of
> > course you don't show any debugging output, which doesn't help either.
>
> > Diez
>
> Afghanistan
> AF
> Out[19]: u'AF'
> AFG
> Out[19]: u'AFG'
> 004
> Out[19]: u'004'

What?



More information about the Python-list mailing list