On 13/06/13 05:24, Matt D wrote:
I already told you i found the file? why would someone else be running
the program?
Because it does something useful?
Most pro programmers write programs for other people to use.
Even an amateur may be creating something for their family use.
If someone other
On Wed, Jun 12, 2013 at 6:31 PM, Dave Angel wrote:
>
i = complex(0,1)
>>> 1j
1j
http://en.wikipedia.org/wiki/Imaginary_unit#Alternative_notations
cmath.sqrt(float((math.e **(i * math.pi)).real))
The real/imag attributes are already floats:
>>> from math import e, pi, si
On 06/13/2013 04:09 AM, eryksun wrote:
On Wed, Jun 12, 2013 at 6:31 PM, Dave Angel wrote:
i = complex(0,1)
>>> 1j
1j
I had forgotten that notation for a complex literal. I knew the magic
syntax had j in it, but didn't remember it needs to be part of the
numeric token. Of cou
On 06/13/2013 12:18 AM, Matt D wrote:
yes the .py file has TextCtrl fields that get there values from a
pickled dictionary. Another peice of the code watches a thread for the
pickle. this is why i didnt use a list. I have been unable to find a
nice way to just make a list with the it
On 06/13/2013 03:39 AM, Alan Gauld wrote:
> On 13/06/13 05:24, Matt D wrote:
>
>> I already told you i found the file? why would someone else be running
>> the program?
>
> Because it does something useful?
> Most pro programmers write programs for other people to use.
> Even an amateur may be c
On 06/13/2013 08:22 AM, Dave Angel wrote:
> On 06/13/2013 12:18 AM, Matt D wrote:
>>
>>
>>
>>>
>>>
>> yes the .py file has TextCtrl fields that get there values from a
>> pickled dictionary. Another peice of the code watches a thread for the
>> pickle. this is why i didnt use a list. I have
Hello,
I have a string of the form "required optional3 optional2 optional1 optional3"
('optional' may be any kind of string, so it's not simply 'optional\d+'.
I would like to use a regex so I can distinguish groups. Desired outcome:
('required', 'optional3', 'optional2', 'optional1', 'optiona
On 06/13/2013 10:37 AM, Matt D wrote:
On 06/13/2013 08:22 AM, Dave Angel wrote:
On 06/13/2013 12:18 AM, Matt D wrote:
Hey,
line 202: self.logfile.write('%s,'%(str(f))) d
does put the comma in properly but,
line 203: self.logfile.write('\n')
was putting the newline after each value
On 06/13/2013 11:23 AM, Dave Angel wrote:
> On 06/13/2013 10:37 AM, Matt D wrote:
>> On 06/13/2013 08:22 AM, Dave Angel wrote:
>>> On 06/13/2013 12:18 AM, Matt D wrote:
>
>
>>>
>> Hey,
>> line 202: self.logfile.write('%s,'%(str(f))) d
>> does put the comma in properly bu
Hi
I'm about 2 yrs into studying Python - started with "Hello World", and I'm
working with v 2.5.1 right now. The past year I've begun trying to write my
own interactive fiction. That works pretty well, but now I'm attempting to put
some music into programs (I thought background music would b
On 06/13/2013 12:32 PM, Matt D wrote:
On 06/13/2013 11:23 AM, Dave Angel wrote:
On 06/13/2013 10:37 AM, Matt D wrote:
On 06/13/2013 08:22 AM, Dave Angel wrote:
On 06/13/2013 12:18 AM, Matt D wrote:
Hey,
line 202: self.logfile.write('%s,'%(str(f))) d
does put the comma in properl
On 06/13/2013 01:21 PM, jessica peters wrote:
Hi
I'm about 2 yrs into studying Python - started with "Hello World", and I'm
working with v 2.5.1 right now. The past year I've begun trying to write my own
interactive fiction. That works pretty well, but now I'm attempting to put some music
i
I'll assume you're using Windows. If not, ignore this ;')
winsound on windows is Python native, much simpler, and always works. After
importing it you can type help(winsound) to see its controls. But here is
the usage for a wav file (it doesn't play mp3s) There is no rule you have
to use the pyga
I'd start with something simple first, to make sure you have sound output
etc. Run python interactively in the directory you have your wav file. At a
minimum, you need to import pygame, init the mixer (args are not really
needed, but I'll use what you had), set up the sound file and finally, play
i
On 13.06.2013 17:09, Albert-Jan Roskam wrote:
I have a string of the form "required optional3 optional2 optional1
optional3" ('optional' may be any kind of string, so it's not simply
'optional\d+'.
I would like to use a regex so I can distinguish groups. Desired
outcome: ('required', 'optional3',
lank screen with no sound. I've tried both .mp3 files and
> .wav
> > ones, neither works for this.
> >
> > Here's the most recent code I've attempted:
> >
> > import pygame , sys
> > import random
> > size=[500,500]
> > def run(self):
On 13 June 2013 14:32, I. Alejandro Fleischer wrote:
> Hi,
>
> Im starting to learn Python, and downloaded Net Beans as an IDE.
> Would you recomend me please a tutorial for a begining with this two
> integrated enviroments?
>
I'm just starting, also, went that route, and quickly ditched NetBean
On 13/06/13 22:32, I. Alejandro Fleischer wrote:
Hi,
Hi, welcome to the list.
In future please delete any irrelevant messages from the digest listing.
It confuses things and also costs money to those who
pay by the byte who have to download lots of irrelevant stuff
to read your message.
Also
On 13/06/13 18:56, Jim Mooney wrote:
tripped me up. If you're using an IDE or editor, mine has the
unfortunate habit of loading in its own directory, and having no option
to automatically access files from my program directory. It saves a
program into the last used directory,
This is a functi
On 14/06/13 07:32, I. Alejandro Fleischer wrote:
Hi,
Im starting to learn Python, and downloaded Net Beans as an IDE.
Would you recomend me please a tutorial for a begining with this two
integrated enviroments?
Thank you very much.
[trimmed almost FIVE PAGES of quoted text]
Alejandro, please
Seems I made a rather dumb mistake and uploaded a version of the core code
that was a partial conversion for the next update, and thus failed
miserably when you ran it. I am mobile but did a quick edit and updated
the link with something that at least works and doesn't throw errors
immediately.
T
Alan Gauld
That's a dodgy way to solve the problem since if you change IDE or run the
> program outside the IDE that startup script will likely get forgotten and
> not be used. Remember you are not expected to use
> an IDE for anything other than developing the code, its not
> intended to be a ru
On 06/13/2013 11:55 PM, Jim Mooney wrote:
Alan Gauld
That's a dodgy way to solve the problem since if you change IDE or run the
program outside the IDE that startup script will likely get forgotten and
not be used. Remember you are not expected to use
an IDE for anything other than developing
23 matches
Mail list logo