Re: Python fails on math

2011-02-22 Thread christian schulze
On 22 Feb., 21:18, Stephen Hansen wrote: > On 2/22/11 5:20 AM, christian schulze wrote: > > > I just found out, how much Python fails on simple math. > >>>> 2*e*sqrt(3) - 2*e == 2*e*(sqrt(3) - 1) > > Everyone else has answered very well, so I won't comment

Python fails on math

2011-02-22 Thread christian schulze
Hey guys, I just found out, how much Python fails on simple math. I checked a simple equation for a friend. [code] >>> from math import e as e >>> from math import sqrt as sqrt >>> 2*e*sqrt(3) - 2*e == 2*e*(sqrt(3) - 1) False [/code] So WTF? The equation is definitive equivalent. (See http://mat

Re: Hello

2010-07-10 Thread christian schulze
On 9 Jul., 18:31, Dani Valverde wrote: > Hello! > I am new to python and pretty new to programming (I have some expertise > wit R statistical programming language). I am just starting, so my > questions may be a little bit stupid. Can anyone suggest a good editor > for python? > Cheers! > > Dani >

pySimpleSessions - PHP sessions implemented in Python

2010-07-08 Thread christian schulze
Hey, since there is no standalone sessions module for python (at least a properly working one), I created one and thought i'd share it with you. This is the project: http://code.google.com/p/pysimplesessions/ This is the introduction: http://code.google.com/p/pysimplesessions/wiki/Introduction

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-31 Thread christian schulze
On 28 Mai, 18:09, Peter Otten <__pete...@web.de> wrote: > christian schulze wrote: > > On 28 Mai, 17:12, Sebastian Bassi wrote: > >> On Fri, May 28, 2010 at 9:41 AM, Tino Wildenhain > >> wrote: > >> > Did you consider adding a part dealing with post

Re: http post

2010-05-28 Thread christian schulze
On 28 Mai, 17:20, yqyq22 wrote: > On May 28, 5:17 pm, christian schulze wrote: > > > > > On 28 Mai, 16:47, yqyq22 wrote: > > > > Hy, i would like to create a little script to reproduce this one > > > below: > > > Do you have suggestion? &g

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread christian schulze
On 28 Mai, 17:12, Sebastian Bassi wrote: > On Fri, May 28, 2010 at 9:41 AM, Tino Wildenhain wrote: > > Did you consider adding a part dealing with postgresql too? > > (Especially interesting in the way you can write stored functions > > in python there) > > That is a good idea for the next versio

Re: http post

2010-05-28 Thread christian schulze
On 28 Mai, 16:47, yqyq22 wrote: > Hy, i would like to create a little script to reproduce this one > below: > Do you have suggestion? > > POST /folder/path/upload.exe?/dir HTTP/1.1 > Host: 192.168.100.1:8080 > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: > 1.9.2.3) Gecko/2010040

Yet Another Configuration Parser Module

2010-05-26 Thread christian schulze
Hey folks, I've written a small configuration parser for a recent project. I think it's pretty usefull and not that "fat" or "complex" as the regular python configuration modules like ConfigParser. The file contains everything you need to know. http://crac.pcriot.com/dl/config.py If you have any

Re: Global variables for python applications

2010-05-16 Thread christian schulze
On 16 Mai, 20:20, James Mills wrote: > On Mon, May 17, 2010 at 4:00 AM, Krister Svanlund > > wrote: > > On Sun, May 16, 2010 at 7:50 PM, AON LAZIO wrote: > >>    How can I set up global variables for the entire python applications? > >> Like I can call and set this variables in any .py files. >