Re: Decimals not equalling themselves (e.g. 0.2 = 0.2000000001)

2008-08-05 Thread schinckel
On Aug 5, 3:26 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Sun, 03 Aug 2008 19:57:10 -0300, Grant Edwards <[EMAIL PROTECTED]>  
> escribi :
>
> > On 2008-08-03, Larry Bates <[EMAIL PROTECTED]> wrote:
>
> >> What are they teaching in computer science classes these days?
>
> > When I was an undergrad the only courses that dealt with FP
> > issues were classes on numerical analysis.  I don't even know
> > if numerical analysis classes were required for CS majors.  I
> > think most of us in that class were engineering majors.
>
> And even if those topics were always covered in CS classes, a CS degree  
> isn't required to program in Python - fortunately.
>

I had a class today which dealt with Decimal <-> IEE754 conversion,
and
whilst 0.1 was an example that was converted, and a representation was
generated, no mention was made of the precision issue.

I'm hoping that it was just that we ran out of time, and the lecturer
will discuss it in detail next time.

Matt.

--
http://mail.python.org/mailman/listinfo/python-list


Re: python on iPad (PyPad)

2011-04-09 Thread Matt Schinckel
On Apr 9, 2:13 pm, Jon Dowdall  wrote:
> Hi All,
>
> Sorry for the blatant advertising but hope some of you may be interested
> to know that I've created an iPad application containing the python
> interpreter and a simple execution environment. It's available in iTunes
> athttp://itunes.apple.com/us/app/pypad/id428928902?mt=8#
>
> I wanted to have python available 'on the go' without carrying a laptop.
> The current implementation is based on my need to test simple python
> functions in an isolated environment. I hope to add more iOS specific
> capabilities if there is enough interest.
>
> Enjoy...
>
> Jon Dowdall

I know this sound shallow, but you really need a nicer icon.

Otherwise, I'm quite excited about this. It will certainly be better
than my current workflow of connecting via ssh to a server just to run
python code.

Matt.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: which feature of python do you like most?

2005-11-09 Thread matt . schinckel
>>>I have no idea why people are so facinating with python.

> Hey, I'm fascinating even without python!

>And so modest, too :-) 

People as good as us usually are.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Ten Essential Development Practices

2005-07-30 Thread matt . schinckel
Dark Cowherd wrote:
>> GUI, Web development, Application Framework - it is shambles.

>Yeah, I agree. When I finally make that GUI application I still don't
>know whether I am going to use wx or PyGTK.

I was part of the anygui development team, back when it was still
active (I think I technically am still part of the team, we just
haven't checked in any new code since I left BeOS!).

It was a plan to allow GUI access to be as simple and 'once' as anydb
does for accessing the database systems it does.

We failed.  Although we did actually have some code that was working
really well, across several platforms and GUI systems.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: easy question on parsing python: "is not None"

2010-08-12 Thread Matt Schinckel
On Aug 6, 8:15 am, "Rhodri James"  wrote:
> On Thu, 05 Aug 2010 17:07:53 +0100, wheres pythonmonks  
>
>  wrote:
> > Well, I am not convinced of the equivalence of not None and true:
[snip]
> >>> "spam, eggs, chips and spam" is "spam, eggs, chips and spam"
> True
> >>> a = "spam, eggs, chips and spam"
> >>> b = "spam, eggs, chips and spam"
> >>> a is b
> False

but:

>>> a = "hello"
>>> b = "hello"
>>> a is b
True

Ooh, that looks dangerous. Are they the same object?

>>> a += "o"
>>> a
'helloo'
>>> b
'hello'

Phew.

(Python does not make two copies of small strings until it needs to).

Matt.
-- 
http://mail.python.org/mailman/listinfo/python-list