Re: [Tutor] Dictionary File character reader

2011-05-09 Thread Noah Hall
On Tue, May 10, 2011 at 5:27 AM, Clara Mintz wrote: > Sorry I am completely new at python and don't understand why this function > is returning an empty dictionary. I want it to take a list of files open > them then return the number of characters as the value and the file name as > the key. > def

[Tutor] Dictionary File character reader

2011-05-09 Thread Clara Mintz
Sorry I am completely new at python and don't understand why this function is returning an empty dictionary. I want it to take a list of files open them then return the number of characters as the value and the file name as the key. def fileLengths(files):d = {}files = []for file in

Re: [Tutor] Python assignment

2011-05-09 Thread Brett Ritter
On Mon, May 9, 2011 at 6:42 PM, Matthew Rezaei wrote: > I have a python assignment and I need help regarding it, is there anyone > that canĀ  help me out with it? The answer you will inevitably get is something like: Hi, we're happy to help you understand the problems you're encountering as you w

Re: [Tutor] Python assignment

2011-05-09 Thread Walter Prins
Hello Matthew, On 9 May 2011 23:42, Matthew Rezaei wrote: > Hi There, > > > > I am hoping you can help me! > > > > I have a python assignment and I need help regarding it, is there anyone > that can help me out with it? > Yes. We won't do the assignment for you, but if you try to solve it a

[Tutor] Python assignment

2011-05-09 Thread Matthew Rezaei
Hi There, I am hoping you can help me! I have a python assignment and I need help regarding it, is there anyone that can help me out with it? Regards Matt ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] python ctypes dll issue

2011-05-09 Thread Mark Tolonen
"mammar" wrote in message news:BANLkTin90dmfRkBu5O=dz-p36fp3nl_...@mail.gmail.com... Hi All, I have created a DLL with the following function exported in it int myFunction(char *id, char *name); Below is the python code to load the dll and call myFunction from ctypes import * # Load DL

Re: [Tutor] How to compile source code in debian

2011-05-09 Thread Walter Prins
Hello, On 9 May 2011 14:04, Ganesh Kumar wrote: > Hi Gurus, > > I want compile ubuntu software centre source code from debian how to > compile...please help me.. > I downloaded all file contents have python file .. > > https://launchpad.net/ubuntu/maverick/+source/software-center/3.0.4 > > Pyth

[Tutor] How to compile source code in debian

2011-05-09 Thread Ganesh Kumar
Hi Gurus, I want compile ubuntu software centre source code from debian how to compile...please help me.. I downloaded all file contents have python file .. https://launchpad.net/ubuntu/maverick/+source/software-center/3.0.4 Advance thanks.. Ganesh -- Did I learn something today? If not, I was