-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- --On 3. Januar 2007 14:42:58 -0600 Sean Duffy <[EMAIL PROTECTED]> wrote:
> y=context.LoadUsers()
> p=[]
> for x in y:
> z=x.split(' ')
> z0=z[0]
> z1=z[1]
> z1=z1[:-1]
^^^^^^^^^^^^^^^^^
Don't do that. Python strings have a strip() method.
Especially this code won't work with files with DOS line-endings.
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFnBdQCJIWIbr9KYwRAnB3AKCkU5D2nAw7oU7/uQ3CTVwTweHAZQCfdSyT
32wmytjeXlyRgSL/2+dlGsU=
=uAn5
-----END PGP SIGNATURE-----
_______________________________________________
Zope maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )