[Tutor] xtended document properties (dsofile.dll)

2011-12-02 Thread Albert-Jan Roskam
Hello, I'd like to read extended document properties using the OLE file property reader (dsofile.dll). I know it's also possible with pywin32, but we don't have that in our office. http://support.microsoft.com/kb/224351 http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8422 I

Re: [Tutor] unexpected list entry

2011-12-02 Thread Alan Gauld
On 02/12/11 15:52, surya k wrote: Could you please tell me a free python IDE (No Eclipse/ Netbeans) There are lots and IDEs are very personal choices. It depends what you want. Netbeans/eclipse are very heavyweight and have functionality overload. But lighweight IDEs like IDLE and Pythonwin

Re: [Tutor] unexpected list entry

2011-12-02 Thread Dave Angel
On 12/02/2011 11:48 AM, surya k wrote: Dave, I am now puzzled.. I don't understand but the list is now not showing unicode. I just restarted the IDE and rewrote the code again! however, I tried print repr(name1), it didn't show me any unicode notation. Well, since the symptom went away,

Re: [Tutor] unexpected list entry

2011-12-02 Thread surya k
-- From: "Dave Angel" Sent: Friday, December 02, 2011 9:36 PM To: "surya k" Cc: "Python Tutor" Subject: Re: [Tutor] unexpected list entry (You top-posted. Put your remarks AFTER whatever you quote from earlier messages) On 12/02/2011 10:47

Re: [Tutor] unexpected list entry

2011-12-02 Thread Walter Prins
Hi, On 2 December 2011 15:52, surya k wrote: > One more thing I want to mention.. > I think there is a problem in the IDE itself. I have faced some problems > with this IDE before... (Not with this) > It may be worth reporting those problems (what were they?), this is after all an open source pr

Re: [Tutor] unexpected list entry

2011-12-02 Thread Dave Angel
(You top-posted. Put your remarks AFTER whatever you quote from earlier messages) On 12/02/2011 10:47 AM, surya k wrote: Thanks for the information about unicode. Actually, I am using python 2.7 in Windows XP. IDE: PyScripter. So, I run the same code in IDLE (Python 2.7).. Its working. It is

Re: [Tutor] unexpected list entry

2011-12-02 Thread surya k
One more thing I want to mention.. I think there is a problem in the IDE itself. I have faced some problems with this IDE before... (Not with this) Could you please tell me a free python IDE (No Eclipse/ Netbeans) -- From: "Dave Angel" Sent: Fri

Re: [Tutor] unexpected list entry

2011-12-02 Thread surya k
Thanks for the information about unicode. Actually, I am using python 2.7 in Windows XP. IDE: PyScripter. So, I run the same code in IDLE (Python 2.7).. Its working. It isn't showing the list in unicode format! I've used PyScripter many times before and worked on lists.. but I never faced an

Re: [Tutor] unexpected list entry

2011-12-02 Thread Dave Angel
On 12/02/2011 08:49 AM, surya k wrote: Hi, Just take a look at this small code.. I am just taking a string as input and assigning it as a list. But I am finding an unexpected entry in the list.. Why this is happening? I am using PyScripter IDE. code : #!/usr/bin/env python def main():

Re: [Tutor] Generating dynamic output

2011-12-02 Thread Andreas Perstinger
On 2011-12-02 00:30, Charles Karl Becker wrote: So the main thing I'm looking for are pointers on how I could optimize/refactor this, and any resources on this and how to 'think' more in the right way for this type of thing. Also, please let me know what's good about it :P def build_line(part):

Re: [Tutor] unexpected list entry

2011-12-02 Thread bob gailer
On 12/2/2011 8:49 AM, surya k wrote: Hi, Just take a look at this small code.. I am just taking a string as input and assigning it as a list. But I am finding an unexpected entry in the list.. Why this is happening? I am using PyScripter IDE. code : #!/usr/bin/env python def main(): pass if

[Tutor] unexpected list entry

2011-12-02 Thread surya k
Hi, Just take a look at this small code.. I am just taking a string as input and assigning it as a list. But I am finding an unexpected entry in the list.. Why this is happening? I am using PyScripter IDE. code : #!/usr/bin/env python def main(): pass if __name__ == '__main__': ma

Re: [Tutor] executing dynamic code with exec?

2011-12-02 Thread Chris Hare
Thanks Steve for your help (and the humor). I can see that it was a bad idea with your explanation. (I just didn't want to type all that extra code :-)) I am going to re-write it using your dict approach - that looks a lot cleaner Thanks! Chris Hare ch...@labr.net http://www.labr.net On Dec

Re: [Tutor] Need help adding a funcation

2011-12-02 Thread Andreas Perstinger
On 2011-12-02 08:22, Michael Hall wrote: I am still not understanding what it is I am being asked to do. Ok, forget about your working program and just concentrate on question 1a): > # a) write a function, getDivisors(), that returns a list of all > # of the positive divisors of a given number

Re: [Tutor] Need help adding a funcation

2011-12-02 Thread Steven D'Aprano
Michael Hall wrote: I am still not understanding what it is I am being asked to do. What is the differance between my_list = [] an my_list[ ] because when I use my_list[] I get an error. Not sure what I am doing wrong. In Python, square brackets [ ] are used for two related but different purpo