Re: Any built-in ishashable method ?

2013-01-18 Thread Peter Otten
Kushal Kumaran wrote: > Peter Otten <__pete...@web.de> writes: > >> Jean-Michel Pichavant wrote: >> >>> That brings me to another question, is there any valid test case where >>> key1 != key2 and hash(key1) == hash(key2) ? Or is it some kind of design >>> flaw ? >> >> I don't think there is a use

Sending a broadcast message using raw sockets

2013-01-18 Thread Peter Steele
I want to write a program in Python that sends a broadcast message using raw sockets. The system where this program will run has no IP or default route defined, hence the reason I need to use a broadcast message. I've done some searches and found some bits and pieces about using raw sockets in

Re: Safely add a key to a dict only if it does not already exist?

2013-01-18 Thread Mitya Sirenef
On 01/19/2013 02:27 AM, Vito De Tullio wrote: Chris Rebert wrote: How can I add a key in a thread-safe manner? I'm not entirely sure, but have you investigated dict.setdefault() ? but how setdefault makes sense in this context? It's used to set a default value when you try to retrieve an elem

Re: Safely add a key to a dict only if it does not already exist?

2013-01-18 Thread Vito De Tullio
Chris Rebert wrote: >> How can I add a key in a thread-safe manner? > I'm not entirely sure, but have you investigated dict.setdefault() ? but how setdefault makes sense in this context? It's used to set a default value when you try to retrieve an element from the dict, not when you try to set

Re: Safely add a key to a dict only if it does not already exist?

2013-01-18 Thread Vito De Tullio
Steven D'Aprano wrote: > I wish to add a key to a dict only if it doesn't already exist, but do it > in a thread-safe manner. > > The naive code is: > > if key not in dict: > dict[key] = value > > > but of course there is a race condition there: it is possible that > another thread may hav

Re: Vote tallying...

2013-01-18 Thread Stefan Behnel
Chris Angelico, 19.01.2013 03:00: > On Sat, Jan 19, 2013 at 12:25 PM, Kushal Kumaran wrote: >> Chris Angelico writes: >> >>> On Sat, Jan 19, 2013 at 7:24 AM, Ben Finney wrote: * MySQL's development has suffered under Sun, and become virtually moribund under Oracle. They operate as a clo

Re: Beginner Tutorials

2013-01-18 Thread Rick Johnson
On Friday, January 18, 2013 10:36:09 PM UTC-6, Evan Driscoll wrote: > I have only skimmed this thread and so am unsure exactly what is being > protected against casual copy/paste, but at least on its face I would > *vehemently* disagree with your statement. Well if you skim just a wee bit more you

Re: Reinforced Concrete: Mechanics and Design (5th Ed., James G. MacGregor & James K. Wight)

2013-01-18 Thread Robert Miles
On 1/18/2013 7:32 PM, Roy Smith wrote: Can whoever manages the mailing list block this bozo? In article , kalvinmanual1 wrote: I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let m

Re: problems trying to build python 2.6 as a shared library

2013-01-18 Thread scubbojj
On Friday, 25 September 2009 04:36:28 UTC-7, Marco Nawijn wrote: > On Sep 25, 1:08 pm, Chris Withers wrote: > > Hi All, > > > > I'm trying to build Python 2.6 as a shared library, so I did: > > > >    ./configure --enable-shared > >    make > >    make altinstall > > > > No obvious signs of failu

Re: Question related to multiprocessing.Process

2013-01-18 Thread Cen Wang
Thanks! It now works! On Saturday, 19 January 2013 13:05:07 UTC+8, Chris Angelico wrote: > On Sat, Jan 19, 2013 at 3:50 PM, Cen Wang wrote: > > > Hi, when I use multiprocessing.Process in this way: > > > > > > from multiprocessing import Process > > > > > > class MyProcess(Process): > > > >

Re: Question related to multiprocessing.Process

2013-01-18 Thread Chris Angelico
On Sat, Jan 19, 2013 at 3:50 PM, Cen Wang wrote: > Hi, when I use multiprocessing.Process in this way: > > from multiprocessing import Process > > class MyProcess(Process): > > def __init__(self): > Process.__init__(self) > > def run(self): > print 'x' > > p = MyProcess() >

Re: Safely add a key to a dict only if it does not already exist?

2013-01-18 Thread Lie Ryan
On 19/01/13 15:15, Chris Rebert wrote: On Friday, January 18, 2013, Steven D'Aprano wrote: I wish to add a key to a dict only if it doesn't already exist, but do it in a thread-safe manner. The naive code is: if key not in dict: dict[key] = value but of cours

Question related to multiprocessing.Process

2013-01-18 Thread Cen Wang
Hi, when I use multiprocessing.Process in this way: from multiprocessing import Process class MyProcess(Process): def __init__(self): Process.__init__(self) def run(self): print 'x' p = MyProcess() p.start() It just keeps printing 'x' on my command prompt and d

Re: Beginner Tutorials

2013-01-18 Thread Evan Driscoll
On 1/18/2013 7:25 PM, Rick Johnson wrote: > Well anyone who is just blindly copying code to get through a CS > course is obviously not a "natural" problem solver ,and thus, > /incapable/ of becoming a proficient programmer anyhow. Programming > *IS* problem solving. If you don't get any thrill from

Re: Safely add a key to a dict only if it does not already exist?

2013-01-18 Thread Chris Rebert
On Friday, January 18, 2013, Steven D'Aprano wrote: > I wish to add a key to a dict only if it doesn't already exist, but do it > in a thread-safe manner. > > The naive code is: > > if key not in dict: > dict[key] = value > > > but of course there is a race condition there: it is possible that

Re: Vote tallying...

2013-01-18 Thread Chris Angelico
On Sat, Jan 19, 2013 at 12:25 PM, Kushal Kumaran wrote: > Chris Angelico writes: > >> On Sat, Jan 19, 2013 at 7:24 AM, Ben Finney >> wrote: >>> * MySQL's development has suffered under Sun, and become virtually >>> moribund under Oracle. They operate as a closed shop, occasionally >>> tossi

Re: Any built-in ishashable method ?

2013-01-18 Thread Kushal Kumaran
Peter Otten <__pete...@web.de> writes: > Jean-Michel Pichavant wrote: > >> That brings me to another question, is there any valid test case where >> key1 != key2 and hash(key1) == hash(key2) ? Or is it some kind of design >> flaw ? > > I don't think there is a use case for such a behaviour other t

Re: Reinforced Concrete: Mechanics and Design (5th Ed., James G. MacGregor & James K. Wight)

2013-01-18 Thread Roy Smith
Can whoever manages the mailing list block this bozo? In article , kalvinmanual1 wrote: > I have solutions manuals to all problems and exercises in these textbooks. To > get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com > and let me know its title, author and editio

Re: Beginner Tutorials

2013-01-18 Thread Rick Johnson
On Friday, January 18, 2013 11:04:39 AM UTC-6, Rik wrote: > The reason for disabling right-click has nothing to do > with protecting content, and everything to do with > stopping my students from taking the lazy way out. > > Given the chance, they'll copy/paste the code and download > the designs

Re: Vote tallying...

2013-01-18 Thread Kushal Kumaran
Chris Angelico writes: > On Sat, Jan 19, 2013 at 7:24 AM, Ben Finney > wrote: >> * MySQL's development has suffered under Sun, and become virtually >> moribund under Oracle. They operate as a closed shop, occasionally >> tossing GPL-licensed releases over the wall, with very little input >>

Re: PyWart: Exception error paths far too verbose

2013-01-18 Thread Rick Johnson
On Wednesday, January 16, 2013 6:51:31 PM UTC-6, Terry Reedy wrote: > I missed in your original post that you only want one consistent > personal library path abbreviated, leaving everything else alone. So the > above is not applicable. And a custom excepthook very easy. > > How should the trace

Re: Vote tallying...

2013-01-18 Thread Zero Piraeus
: On 18 January 2013 16:57, Tim Chase wrote: > > - there are just some serious what-the-heck's in MySQL's handling of some > edge cases regarding NULL values and dates (Feb 31st anybody). There's a > good compilation of them at [1]. > > [1] > http://sql-info.de/mysql/gotchas.html I'm getting th

Re: Uniquely identifying each & every html template

2013-01-18 Thread Ferrous Cranus
Τη Παρασκευή, 18 Ιανουαρίου 2013 10:59:17 μ.μ. UTC+2, ο χρήστης John Gordon έγραψε: > Instead of inserting unique content in every page, can't you use the > document path itself as the identifier? No, i cannot, becaue it would mess things at later time when i for example: 1. mv name.html other

Re: Uniquely identifying each & every html template

2013-01-18 Thread Dave Angel
On 01/18/2013 03:48 PM, Ferrous Cranus wrote: I use this .htaccess file to rewrite every .html request to counter.py # = RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRul

Re: Vote tallying...

2013-01-18 Thread Chris Angelico
On Sat, Jan 19, 2013 at 7:24 AM, Ben Finney wrote: > * MySQL's development has suffered under Sun, and become virtually > moribund under Oracle. They operate as a closed shop, occasionally > tossing GPL-licensed releases over the wall, with very little input > accepted from the community. I

Re: Vote tallying...

2013-01-18 Thread Andrew Robinson
On 01/18/2013 08:47 AM, Stefan Behnel wrote: Andrew Robinson, 18.01.2013 00:59: I have a problem which may fit in a mysql database Everything fits in a MySQL database - not a reason to use it, though. Py2.5 and later ship with sqlite3 and if you go for an external database, why use MySQL if you

Re: Forcing Python to detect DocumentRoot

2013-01-18 Thread Chris Angelico
On Sat, Jan 19, 2013 at 5:58 AM, Ferrous Cranus wrote: > Τη Παρασκευή, 18 Ιανουαρίου 2013 3:28:10 μ.μ. UTC+2, ο χρήστης Joel Goldstick > έγραψε: > >> DocumentRoot = os.environ['HOME'] + 'public_html' > > Yes, iam using this and it works. > One last thing: > > my python script file is located at

Re: Uniquely identifying each & every html template

2013-01-18 Thread John Gordon
In <8deb6f5d-ff10-4b36-bdd6-36f9eed58...@googlegroups.com> Ferrous Cranus writes: > Problem is that i have to insert at the very first line of every .html > template of mine, a unique string containing a number like: > index.html > somefile.html > other.html > nikos.html >

Re: Vote tallying...

2013-01-18 Thread Tim Chase
On 01/18/13 13:26, Kwpolska wrote: On Fri, Jan 18, 2013 at 4:19 PM, Nick Cash wrote: MySQL would certainly be fine, although I always recommend PostgreSQL over it. Bonus question, why? I write only from my personal experience, but the following might be reasons that Nick recommends PostgreS

Re: Forcing Python to detect DocumentRoot

2013-01-18 Thread Ferrous Cranus
Yes, iam using this and it works. One last thing: my python script file is located at /home/nikos/public_html/addon_domain/cgi-bin/ How python is able to run the following statement? f = open( '/home/nikos/public_html/' + page ) which is clearly levels up of addon domain's DocumentRoot?

Uniquely identifying each & every html template

2013-01-18 Thread Ferrous Cranus
I use this .htaccess file to rewrite every .html request to counter.py # = RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?htmlpage=$

Re: Vote tallying...

2013-01-18 Thread Ben Finney
Kwpolska writes: > On Fri, Jan 18, 2013 at 4:19 PM, Nick Cash > wrote: > > MySQL would certainly be fine, although I always recommend > > PostgreSQL over it. > Bonus question, why? The PostgreSQL community gets asked this question so often that they have a page with resources answering in vario

Re: Vote tallying...

2013-01-18 Thread Kwpolska
On Fri, Jan 18, 2013 at 4:19 PM, Nick Cash wrote: > MySQL would certainly be fine, although I always recommend PostgreSQL over it. Bonus question, why? -- Kwpolska | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://ca

Re: Forcing Python to detect DocumentRoot

2013-01-18 Thread Joel Goldstick
On Fri, Jan 18, 2013 at 1:58 PM, Ferrous Cranus wrote: > Τη Παρασκευή, 18 Ιανουαρίου 2013 3:28:10 μ.μ. UTC+2, ο χρήστης Joel > Goldstick έγραψε: > > > DocumentRoot = os.environ['HOME'] + 'public_html' > > Yes, iam using this and it works. > One last thing: > > my python script file is located at >

Reinforced Concrete: Mechanics and Design (5th Ed., James G. MacGregor & James K. Wight)

2013-01-18 Thread kalvinmanual1
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. solutions manual :: Reinforced Concrete: Mechanics and Desi

Re: Forcing Python to detect DocumentRoot

2013-01-18 Thread Ferrous Cranus
Τη Παρασκευή, 18 Ιανουαρίου 2013 3:28:10 μ.μ. UTC+2, ο χρήστης Joel Goldstick έγραψε: > DocumentRoot = os.environ['HOME'] + 'public_html' Yes, iam using this and it works. One last thing: my python script file is located at /home/nikos/public_html/addon_domain/cgi-bin/ How python is able to r

Re: Beginner Tutorials

2013-01-18 Thread Ritchie Flick
Still a student myself and even if you really want to become good at what you're doing, some days one just feels lazy and in the mood for copy/pasting to get the job done quickly xD I like the site, will check it out ;) On Fri, Jan 18, 2013 at 6:34 PM, Joel Goldstick wrote: > > > > On Fri, Jan 1

Re: Beginner Tutorials

2013-01-18 Thread Rik
Well spotted! > Your final print should be: > > > > print("Hello " + name + "!") > > > > Regards, > > Ian F -- http://mail.python.org/mailman/listinfo/python-list

Re: Beginner Tutorials

2013-01-18 Thread Rik
The reason for disabling right-click has nothing to do with protecting content, and everything to do with stopping my students from taking the lazy way out. Given the chance, they'll copy/paste the code and download the designs and edit them slightly. They'd get through the tutorials in about 25

Re: Beginner Tutorials

2013-01-18 Thread Rik
Thanks for the comments. I have changed the headings to lower case as you suggested. The site was created in wordpress using a standard theme, and linked pages rather than posts. i'd recommend using it to quickly set up a site; i started developing my own site but wanted to focus on site content

Re: Beginner Tutorials

2013-01-18 Thread Ian Foote
On 18/01/13 14:47, Rik wrote: Hi, I've developed a website for beginners to Python. I'd appreciate any comments or criticism. It's still under development, and should be finished in the next few months. Oh, and it's free to use. www.usingpython.com Your example code on http://usingpython.co

Re: Beginner Tutorials

2013-01-18 Thread Ian Foote
On 18/01/13 14:47, Rik wrote: Hi, I've developed a website for beginners to Python. I'd appreciate any comments or criticism. It's still under development, and should be finished in the next few months. Oh, and it's free to use. www.usingpython.com Is there a particular reason you disable r

Re: Beginner Tutorials

2013-01-18 Thread Joel Goldstick
On Fri, Jan 18, 2013 at 10:52 AM, Virgil Stokes wrote: > On 18-Jan-2013 15:47, Rik wrote: > >> Hi, I've developed a website for beginners to Python. I'd appreciate any >> comments or criticism. It's still under development, and should be finished >> in the next few months. Oh, and it's free to us

Re: Beginner Tutorials

2013-01-18 Thread Virgil Stokes
On 18-Jan-2013 15:47, Rik wrote: Hi, I've developed a website for beginners to Python. I'd appreciate any comments or criticism. It's still under development, and should be finished in the next few months. Oh, and it's free to use. www.usingpython.com You have done well Rik. I like your appro

Re: Beginner Tutorials

2013-01-18 Thread marco . kretz
Am Freitag, 18. Januar 2013 15:47:52 UTC+1 schrieb Rik: > Hi, I've developed a website for beginners to Python. I'd appreciate any > comments or criticism. It's still under development, and should be finished > in the next few months. Oh, and it's free to use. > > > > www.usingpython.com Very

RE: Vote tallying...

2013-01-18 Thread Nick Cash
> I have a problem which may fit in a mysql database, but which I only > have python as an alternate tool to solve... so I'd like to hear some > opinions... Is there a reason you can't use an RDBMS for this? MySQL would certainly be fine, although I always recommend PostgreSQL over it. Based on t

Beginner Tutorials

2013-01-18 Thread Rik
Hi, I've developed a website for beginners to Python. I'd appreciate any comments or criticism. It's still under development, and should be finished in the next few months. Oh, and it's free to use. www.usingpython.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Param decorator - can you suggest improvements

2013-01-18 Thread Dan Sommers
On Fri, 18 Jan 2013 09:10:34 +, Steven D'Aprano wrote: > On Fri, 18 Jan 2013 03:38:08 +, Dan Sommers wrote: >> This, or something like this, is very old: >> >> sentinel = object() >> class Magic: >> def __init__(self, value): >> self.value = value >> def __call__(self, va

Re: Inconsistent behaviour of methods waiting for child process

2013-01-18 Thread Marcin Szewczyk
On Fri, Jan 18, 2013 at 08:10:03AM -0600, Matt Jones wrote: > What version of python and os are you running? $ python --version Python 2.7.3rc2 $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description:Debian GNU/Linux 7.0 (wheezy) Release:7.0 Codename: w

Re: Any built-in ishashable method ?

2013-01-18 Thread Jean-Michel Pichavant
> The flaw would be key1 == key2 and hash(key1) != hash(key2). Then the > set/dict could store equal items multiple times in different places > (unless it did a linear search of all members, which would make > hashing > pointless!). > > -- > Terry Jan Reedy My understanding of a hash function was

Re: Inconsistent behaviour of methods waiting for child process

2013-01-18 Thread Matt Jones
What version of python and os are you running? *Matt Jones* On Fri, Jan 18, 2013 at 6:04 AM, Marcin Szewczyk wrote: > Hi, > > I've done some experiments with: > 1) multiprocessing.Process.join() > 2) os.waitpid() > 3) subprocess.Popen.wait() > > These three methods behave completely different w

Re: Forcing Python to detect DocumentRoot

2013-01-18 Thread Rodrick Brown
On Friday, January 18, 2013, Ferrous Cranus wrote: > Τη Πέμπτη, 17 Ιανουαρίου 2013 5:14:19 μ.μ. UTC+2, ο χρήστης Joel Goldstick > έγραψε: > > On Thu, Jan 17, 2013 at 9:09 AM, Roy Smith > > wrote: > > > > In article > > <339d9d6d-b000-4cf3-8534-375e0c44b...@googlegroups.com > >, > > > > > > > > F

Re: Forcing Python to detect DocumentRoot

2013-01-18 Thread Joel Goldstick
On Fri, Jan 18, 2013 at 8:02 AM, Ferrous Cranus wrote: > Τη Πέμπτη, 17 Ιανουαρίου 2013 5:14:19 μ.μ. UTC+2, ο χρήστης Joel Goldstick > έγραψε: > > On Thu, Jan 17, 2013 at 9:09 AM, Roy Smith wrote: > > > > In article <339d9d6d-b000-4cf3-8534-375e0c44b...@googlegroups.com>, > > > > > > > > Ferrous

Inconsistent behaviour of methods waiting for child process

2013-01-18 Thread Marcin Szewczyk
Hi, I've done some experiments with: 1) multiprocessing.Process.join() 2) os.waitpid() 3) subprocess.Popen.wait() These three methods behave completely different when interrupted with a signal which I find disturbing. Reactions are: 1) exit with no exception or special return code 2) OSError exc

Re: Forcing Python to detect DocumentRoot

2013-01-18 Thread Ferrous Cranus
Τη Πέμπτη, 17 Ιανουαρίου 2013 5:14:19 μ.μ. UTC+2, ο χρήστης Joel Goldstick έγραψε: > On Thu, Jan 17, 2013 at 9:09 AM, Roy Smith wrote: > > In article <339d9d6d-b000-4cf3-8534-375e0c44b...@googlegroups.com>, > > > >  Ferrous Cranus wrote: > > > > > When trying to open an html template with

Re: Any built-in ishashable method ?

2013-01-18 Thread Terry Reedy
On 1/18/2013 6:56 AM, Jean-Michel Pichavant wrote: is there any valid test case You mean use case? where key1 != key2 and hash(key1) == hash(key2) ? This is the normal case. There are many unequal items that have the same hash. The point of using hash is to quickly find items in the set/di

Re: Any built-in ishashable method ?

2013-01-18 Thread Christian Heimes
Am 18.01.2013 12:56, schrieb Jean-Michel Pichavant: > You guessed right. But it took me a lot of time before jumping to that > conclusion, mostly because the code worked in the first place (it can with a > little bit of luck). > Now I'm extra careful about what I use as dict key, I was just wonde

Re: Any built-in ishashable method ?

2013-01-18 Thread Steven D'Aprano
On Fri, 18 Jan 2013 12:56:09 +0100, Jean-Michel Pichavant wrote: >> So I'm guessing you had a key where >> >> key1 == key2 did not imply hash(key1) == hash(key2) >> >> I don't see a way to avoid that problem in a look-before-you-leap test. >> >> -- >> http://mail.python.org/mailman/listinfo/pyt

Re: Any built-in ishashable method ?

2013-01-18 Thread Peter Otten
Jean-Michel Pichavant wrote: > That brings me to another question, is there any valid test case where > key1 != key2 and hash(key1) == hash(key2) ? Or is it some kind of design > flaw ? I don't think there is a use case for such a behaviour other than annoying your collegues ;) -- http://mail.

Re: Any built-in ishashable method ?

2013-01-18 Thread Jean-Michel Pichavant
> So I'm guessing you had a key where > > key1 == key2 did not imply hash(key1) == hash(key2) > > I don't see a way to avoid that problem in a look-before-you-leap > test. > > -- > http://mail.python.org/mailman/listinfo/python-list > You guessed right. But it took me a lot of time before ju

Re: Any built-in ishashable method ?

2013-01-18 Thread Terry Reedy
On 1/18/2013 5:36 AM, Jean-Michel Pichavant wrote: Hello people, Is there any built-in way to know if an object is a valid dictionary key ? For the instances of a class to be properly useable as set members or dict keys, __eq__ must return bool, __hash__ must return int, the __eq__ and __has

Re: Any built-in ishashable method ?

2013-01-18 Thread Peter Otten
Jean-Michel Pichavant wrote: > Hello people, > > Is there any built-in way to know if an object is a valid dictionary key ? > From what I know, the object must be hashable, and from the python doc, an > object is hashable if it has the __hash__ and (__cmp__ or __eq__) methods. > > http://docs.py

Re: Any built-in ishashable method ?

2013-01-18 Thread Dave Angel
On 01/18/2013 05:36 AM, Jean-Michel Pichavant wrote: Hello people, Is there any built-in way to know if an object is a valid dictionary key ? From what I know, the object must be hashable, and from the python doc, an object is hashable if it has the __hash__ and (__cmp__ or __eq__) methods. h

Any built-in ishashable method ?

2013-01-18 Thread Jean-Michel Pichavant
Hello people, Is there any built-in way to know if an object is a valid dictionary key ? From what I know, the object must be hashable, and from the python doc, an object is hashable if it has the __hash__ and (__cmp__ or __eq__) methods. http://docs.python.org/2/glossary.html#term-hashable I

Re: Weirdness with python and stdin redirection under Win32

2013-01-18 Thread dexter . rao19
On Saturday, December 7, 2002 5:10:07 AM UTC+5:30, Jonathan M. Gilligan wrote: > The bug is NOT fixed in Win2k. That's where I am seeing it (Win2K Pro SP3). > > Jonathan > > "Thomas Heller" wrote in message > news:fzteezlp@python.net... > > norbert.klam...@klamann-software.de (Norbert Klaman

Re: Param decorator - can you suggest improvements

2013-01-18 Thread Steven D'Aprano
On Fri, 18 Jan 2013 03:38:08 +, Dan Sommers wrote: > On Thu, 17 Jan 2013 15:21:08 +, Steven D'Aprano wrote: > >> On Thu, 17 Jan 2013 06:35:29 -0800, Mark Carter wrote: >> >>> I thought it would be interesting to try to implement Scheme SRFI 39 >>> (Parameter objects) in Python. >>> >>>

Re: Loading a PKCS#1 public key using M2Crypto

2013-01-18 Thread Marc Aymerich
On Fri, Jan 18, 2013 at 12:10 AM, Piet van Oostrum wrote: > Marc Aymerich writes: > >> Thank you very much Piet, >> I'm just starting to grasp these cryptography related concepts and your code >> is helping me a lot to understand how to handle these keys in a low level. >> >> I'm updating my cod

Re: Vote tallying...

2013-01-18 Thread Stefan Behnel
Andrew Robinson, 18.01.2013 00:59: > I have a problem which may fit in a mysql database Everything fits in a MySQL database - not a reason to use it, though. Py2.5 and later ship with sqlite3 and if you go for an external database, why use MySQL if you can have PostgreSQL for the same price? > b

Re: Vote tallying...

2013-01-18 Thread Lie Ryan
On 18/01/13 10:59, Andrew Robinson wrote: Hi, I have a problem which may fit in a mysql database, but which I only have python as an alternate tool to solve... so I'd like to hear some opinions... Since you have a large dataset, you might want to use sqlite3 (http://docs.python.org/2.5/lib/mo

Vote tallying...

2013-01-18 Thread Andrew Robinson
Hi, I have a problem which may fit in a mysql database, but which I only have python as an alternate tool to solve... so I'd like to hear some opinions... I'm building a experimental content management program on a standard Linux Web server. And I'm needing to keep track of archived votes an