Re: Question about PANDAS

2014-10-20 Thread Johann Hibschman
giacomo boffi writes: > 2. choose ONE flavour of python, either 2.7.x or 3.4.x > - future is with 3.4, > - most exaples you'll find were written (are still written...) > for 2.7.x If you're interested in statistics (as comparisons to R suggest), I'd recommend anaconda. It comes w

Re: I'm looking to start a team of developers, quants, and financial experts, to setup and manage an auto-trading-money-making-machine

2014-10-14 Thread Johann Hibschman
Marko Rauhamaa writes: > ryguy7272 : > >> I'm looking to start a team of developers, quants, and financial >> experts, to setup and manage an auto-trading-money-making-machine > > This has already been done: http://en.wikipedia.org/wiki/Sampo And mocked by MST3K ("sampo means flavor!"): https

Re: GCD in Fractions

2014-09-24 Thread Johann Hibschman
Steven D'Aprano writes: > blindanagram wrote: > >> Seccondly (as others here have pointed out), the mathematical properties >> of the greatest common divisor are well defined for both positive and >> negative integers. > > You keep saying that, but it simply is not true. Different people use > di

Re: Why Python 4.0 won't be like Python 3.0

2014-08-19 Thread Johann Hibschman
Skip Montanaro writes: > On Tue, Aug 19, 2014 at 9:27 AM, Grant Edwards > wrote: >> I'm probably conflating the 1.5.2/2.0 and the 2.6 stuff. I do >> remember delaying moving from 1.5.2 -> 2.0 until I really had to, but >> I don't remember why. > > If you were a RedHat user during that timefram

Re: Python in financial services

2014-08-12 Thread Johann Hibschman
Rustom Mody writes: > Ive been asked to formulate a python course for financial services > folk. > > If I actually knew about the subject, I'd have fatter pockets! > Anyway heres some thoughts. What I am missing out? Good luck! It's a pretty broad field, so everyone probably has different needs

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Johann Hibschman
Chris Angelico writes: > But you also don't know that he hasn't. NaN doesn't mean "unknown", it > means "Not a Number". You need a more sophisticated system that allows > for uncertainty in your data. Regardless of whether this is the right design, it's still an example of use. As to the design

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Johann Hibschman
"Anders J. Munch" <2...@jmunch.dk> writes: > So far I received exactly the answer I was expecting. 0 examples of > NaN!=NaN being beneficial. > I wasn't asking for help, I was making a point. Whether that will > lead to improvement of Python, well, I'm not too optimistic, but I > feel the point w

Re: grimace: a fluent regular expression generator in Python

2013-07-17 Thread Johann Hibschman
Ben Last writes: > Good points. I wanted to find a syntax that allows comments as well as > being fluent: > RE() > .any_number_of.digits # Recall that any_number_of includes zero > .followed_by.an_optional.dot.then.at_least_one.digit # The dot is > specifically optional > # but we must have one

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Johann Hibschman
David T. Ashley writes: > We develop embedded software for 32-bit micros using Windows as the > development platform. ... > I know that Tcl/Tk would do all of the above, but what about Python? > Any other alternatives? Given that list, I'd say just use Tcl and be done. You could force the squar

Re: Encoding NaN in JSON

2013-04-17 Thread Johann Hibschman
Miki Tebeka writes: >>> I'm trying to find a way to have json emit float('NaN') as 'N/A'. >> No. There is no way to represent NaN in JSON. It's simply not part of the >> specification. > I know that. I'm trying to emit the *string* 'N/A' for every NaN. Easiest way is probably to transform your

Re: allow line break at operators

2011-08-15 Thread Johann Hibschman
Chris Angelico writes: > Why is left-to-right inherently more logical than > multiplication-before-addition? Why is it more logical than > right-to-left? And why is changing people's expectations more logical > than fulfilling them? Python uses the + and - symbols to mean addition > and subtracti

Re: I am fed up with Python GUI toolkits...

2011-07-20 Thread Johann Hibschman
Thomas Jollans writes: > On 20/07/11 04:12, sturlamolden wrote: >> 3. Unpythonic memory management: Python references to deleted C++ >> objects (PyQt). Manual dialog destruction (wxPython). Parent-child >> ownership might be smart in C++, but in Python we have a garbage >> collector. > > I wonder