[Tutor] urllib2 and content-type header

2007-04-28 Thread Mozaic Web Development
Hello - I'm trying to work with the Basecamp API with Python, and am running into a bit of an issue. I'm using a Basecamp class that wraps the API that was written by Jochen Kupperschmidt (if you are reading this, thanks!) With some help from the basecamp forums, I think I've identified th

Re: [Tutor] priting keys and its values of a dictionary in a single row

2007-04-28 Thread Andreas Kostyrka
* Rohan Deshpande <[EMAIL PROTECTED]> [070428 12:58]: That assumes he wants to output all elements. Andreas >Or, get rid of the extra variable and do: > >for i in m.items(): > print i[0] + ',' + ",".join(i[1]) > >On 4/27/07, Bill Burns < [EMAIL PROTECTED]> wrote: __

Re: [Tutor] priting keys and its values of a dictionary in a single row

2007-04-28 Thread Rohan Deshpande
Or, get rid of the extra variable and do: for i in m.items(): print i[0] + ',' + ",".join(i[1]) On 4/27/07, Bill Burns <[EMAIL PROTECTED]> wrote: Srinivas Iyyer wrote: > Dear group, > > I have a dictionary (huge) and there are 19K keys for > this dictionary. The values for the could be a max

Re: [Tutor] compiling python into an executable

2007-04-28 Thread Alan Gauld
"Stevie Broadfoot" <[EMAIL PROTECTED]> wrote > what is a good program to make an executable for all platforms. I'm not totally clear what you are expecting here. Python scripts are executable on all platforms as they stand, you just need the appropriate interpreter to be installed. Much like