python comobject - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: python comobject (/thread-26783.html) |
python comobject - keuninkske - May-13-2020 hello, i am learning about comobject in python but the internet seems not to have so many clear information about it does somebody know a clear explanation or a tutorial about comobject? my problem: we are retrieving a buch of records from exchange we seem to have data comming in we use .restrict method but when i do print(len(comobject before restrict))and print(len(comobject after restrict))i get twice the value 2147483647 my code print(len(appointmentst)) ... begin = dt.date.today() ... print(begin) ... end = begin + dt.timedelta( ... days=7); ... print(end) ... restriction = "[Start] >= '" + begin.strftime("%m/%d/%Y") + ' 12:00 AM'"' AND [End] <= '" + end.strftime( ... "%m/%d/%Y") + ' 12:00 AM'"'" ... print(restriction) ... restrictedItems1 = appointmentst.Restrict(restriction) ... print(len(restrictedItems1))anyhow, how do i know what is in this comobject? because, the result of this is afterwards handeled by an for loop an this one never starts, so the comobject seems to be empty RE: python comobject - buran - May-13-2020 what is comobject in the first place? RE: python comobject - keuninkske - May-13-2020 yeah, thats actualy also part of my question :p what i know so far: -it has something to do with VBA -i get it when i try to retrieve data from outlook via win32com package much more i do not understand myself from google searches |