There's probably something like what you want within the random module.
at the interactive prompt, try:
import random
help(random)
---
Richard Roadie Rich Lovely, part of the JNP|UK Famile
www.theJNP.com
2008/12/2 Alan Gauld [EMAIL PROTECTED]:
Christopher Spears [EMAIL PROTECTED] wrote
aivars [EMAIL PROTECTED] wrote
oCon.execute(UPDATE rezerve SET latusaldo =? where gads
=?;,(result, [year]))
oCon.commit()
it throws me the error:
sqlite3.InterfaceError: error binding parameter 1 probably
unsupported type
I assume its the [year] value it objects to.
I'm not sure what you
Christopher Spears [EMAIL PROTECTED] wrote
Does anyone know if python has a noise function?
What kind of noise function?
What would you expect it to produce?
A stream of random numbers perhaps?
A single number each time it is called?
And which noise profile should it follow?
Or would it be
Jim Morcombe [EMAIL PROTECTED] wrote
running under Novel. I know absolutely nothing about novell. I
need to have the first line of the script point to the Python
interpretter,
I don't think that will do anything under Novell, assuming you mean
the Novell network OS and not Novell Linux? If
I have a cgi script that I want to get running on an Apache server
running under Novel. I know absolutely nothing about novell. I need to
have the first line of the script point to the Python interpretter, but
have no idea where it is. (I don't have access to the server to play
around on
This was forwarded to me from one of our user group members:
Hi everyone!
I just signed up for an online course in Web Development with Python
through DePaul University, which I think you might find interesting:
http://ipd.cdm.depaul.edu/wdp/Prog_WDP.htm
I talked to the folks in the admissions
Interestingly, when simply testing like this:
import sqlite3, sys
sPATH=r'e:\pythonexamples\aivars2.db'
oCon=sqlite3.connect(sPATH)
cur=oCon.cursor()
oCon.execute(UPDATE rezerve SET latusaldo = ? WHERE gads = ?
,(6000.0,'2006'))
oCon.commit()
it works. Therefore I am stuck since it looks
Hello again,
Finally I managed to get it working!
I had to remove [year] braces from the second argument - year. The
reason I used [] was the posts we exchanged recently (7th of November)
about CGI script where it was recommended by Kent that I put [] around
string argument:
Quote
The second
Hi
I am writing a program based around a pub quiz. I have been able to write
the program so it runs through a series of questions and gives users a score
at the end.
I need to import a specific font, images and sound. Does anyone know a good
place to look for tutorials for this? At the
On Tue, Dec 02, 2008 at 02:56:33PM -0500, Daniel J Kramer wrote:
Hi
I am writing a program based around a pub quiz. I have been able to write
the program so it runs through a series of questions and gives users a score
at the end.
I need to import a specific font, images and sound. Does
On Tue, Dec 2, 2008 at 2:02 PM, Steve Willoughby [EMAIL PROTECTED] wrote:
snip
That depends on what GUI toolkit you're using. If you're
going to be doing a lot with sound and images, particularly
video clips, you might want to look at pymedia or pygame
Pyglet is another option.
-Wayne
Hello,
I'm trying to gather a list of files and md5 hash them to do a checksum.
I've created a function for each dictionary. However, when i print out
the dictionary I don't get all the items. Any ideas?
Thanks
JJ
CODE:
#!/usr/bin/python
import os
import md5
import sys
source={}
target={}
On Tue, Dec 02, 2008 at 01:08:09PM -0800, Jeremiah Jester wrote:
Hello,
I'm trying to gather a list of files and md5 hash them to do a checksum.
I've created a function for each dictionary. However, when i print out
the dictionary I don't get all the items. Any ideas?
Yep. Don't use
Thanks for clearing this up for me.
On Tue, 2008-12-02 at 13:25 -0800, Steve Willoughby wrote:
On Tue, Dec 02, 2008 at 01:08:09PM -0800, Jeremiah Jester wrote:
Hello,
I'm trying to gather a list of files and md5 hash them to do a
checksum.
I've created a function for each dictionary.
aivars [EMAIL PROTECTED] wrote
Finally I managed to get it working!
I had to remove [year] braces from the second argument - year.
You really need to do some reading on basicv Python before
you go any further, otherwise you will never understand what
you are doing.
That is what I told you
Jeremiah Jester [EMAIL PROTECTED] wrote
I've created a function for each dictionary. However, when i print
out
the dictionary I don't get all the items. Any ideas?
You should only get a very small number indeed!
for filename in names:
hash=os.system(md5 + filename)
Dear Python community,
I have been trying to create a dictionary of dictionaries (and more
dictionaries) from a csv file. The csv file contains longitudinal data
corresponding to names. The following is just a very (very) simple example of
how the data looks:
NameDayweighttemp
name114537
17 matches
Mail list logo