Begin forwarded message:
> From: Erick Willum
> Date: 16 December 2020 at 15:53:40 GMT
> To: python-list@python.org
> Subject: bug in download
>
> Hallo and good afternoon,
>
> Having installed python (big thank you) and sublime text, i get the next
> message wh
time.sleep(1)
os.system(pathtozmprov +' ca %s %s displayName "%s"' %
(accountname,password,name))
print "Creando Alias"
os.system(pathtozmprov +' aaa %s %s' % (accountname,alias1))
time.sleep(1)
else:
print accountname, alias1, " user is not a member of the ZimbraMail
AD Group. Will not be processed\n"
#---
---
except ldap.LDAPError, error_message:
print error_message
l.unbind_s()
thanks all for your comments.
Erick.
--
http://mail.python.org/mailman/listinfo/python-list
I did try to see if I could get that to work, but I couldn't figure it
out. I'll see if I can play around more with that api.
So say I did investigate a little more to see how much work it would
take to adapt the re module to accept an iterator (while leaving the
current string api as another code
True, but it doesn't work with multiline regular expressions :(
-e
--
http://mail.python.org/mailman/listinfo/python-list
Ah, you're running into the "old-style classes vs. new style classes".
Try subclassing from "object".
For example:
>>> class A(object):
... pass
...
>>> a=A()
>>> type(a)
>>> type(a) == A
True
>>> type(a) is A
True
>>> b=A()
>>> type(a) == type(b)
True
>>> type(a) is type(b)
True
Check out t
Ack, typo. What I meant was this:
cat a b c > blah
>>> import re
>>> for m in re.finditer('\w+', file('blah')):
... print m.group()
...
Traceback (most recent call last):
File "", line 1, in ?
TypeError: buffer object expected
Of course, this works fine, but it loads the file completely into
m
Ah, you're running into the "old-style classes vs. new style classes".
Try subclassing from "object".
For example:
>>> class A(object):
... pass
...
>>> a=A()
>>> type(a)
>>> type(a) == A
True
>>> type(a) is A
True
>>> b=A()
>>> type(a) == type(b)
True
>>> type(a) is type(b)
True
Check out t
Hello,
I've been looking for a while for an answer, but so far I haven't been
able to turn anything up yet. Basically, what I'd like to do is to use
re.finditer to search a large file (or a file stream), but I haven't
figured out how to get finditer to work without loading the entire file
into mem