Re: Zope/DTML Infuriating...

2008-05-01 Thread Michael L Torrie
Michael Torrie wrote: > The second example, x = Integer.fromString('5') demonstrates a huge > weakness in Java. Ahem. Javascript. Sorry. -- Michael Torrie Assistant CSR, System Administrator Chemistry and Biochemistry Department Brigham Young University Provo, UT 84602 +1.801.422.5771 A: Be

Re: Zope/DTML Infuriating...

2008-05-01 Thread Michael Torrie
Michael Torrie wrote: > The second example, x = Integer.fromString('5') demonstrates a huge > weakness in Java. Ahem. Javascript. Sorry. -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope/DTML Infuriating...

2008-05-01 Thread Michael Torrie
Jens wrote: > - Why is it, when primitive data types seem to be objects (similar to > javascript), that type casting is done through build-in functions > rather than methods, e.g. String.toInt('5') or '5'.toInt() or x = > Integer.fromString('5'). Mainly because it's much cleaner to do it the pytho

Re: Zope/DTML Infuriating...

2008-04-29 Thread Arnaud Delobelle
Jens <[EMAIL PROTECTED]> writes: [...] > @Marco: Thanks for the links :-) Python may be one of those really > elegant languages, but the reference is really sub > standard. Checkout the layout of php.net for comparison. Think what > you will about php, but the reference is excellent. For that matte

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 3:16 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > Jens schrieb: > > > Hello Everyone. > > > I am relatively new to Zope(using it for a work project) and I was > > wondering if someone here could help me out or at least refer me to a > > decent documentationg for Zope/DTML/Python (at

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 3:16 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > Jens schrieb: > > > Hello Everyone. > > > I am relatively new to Zope(using it for a work project) and I was > > wondering if someone here could help me out or at least refer me to a > > decent documentationg for Zope/DTML/Python (at

Re: Zope/DTML Infuriating...

2008-04-29 Thread William Heymann
On Tuesday 29 April 2008, Jens wrote: > Hello Everyone. > > > > > > > > > I think you are going to really regret doing things this way, it is only going to make your life much harder regardless of if you are using zpt or dtml by doing stuff like this inside the template. The most corr

Re: Zope/DTML Infuriating...

2008-04-29 Thread Christian Heimes
Jens schrieb: > Hello Everyone. > > I am relatively new to Zope(using it for a work project) and I was > wondering if someone here could help me out or at least refer me to a > decent documentationg for Zope/DTML/Python (at the detail level of > php.net or Java API reference). > http://www.zope.

Re: Zope/DTML Infuriating...

2008-04-29 Thread Marco Mariani
Jens wrote: Hey no worriest. Is this the tutorial you're referring to: http://docs.python.org/lib/typesmapping.html Is there anything better? That's the library reference - the one to keep under the pillow. It also documents the core -- i.e. builtin objects. As for the language semantics,

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > >> You might have wrong assumptions from previous PHP experiences. > > >>  >>> 'x'+4 > >> Traceback (most recent call last): > >>    File "", line 1, in > >> TypeError: cannot concatenate 'str' and 'int' objects > > > ...

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > >> You might have wrong assumptions from previous PHP experiences. > > >>  >>> 'x'+4 > >> Traceback (most recent call last): > >>    File "", line 1, in > >> TypeError: cannot concatenate 'str' and 'int' objects > > > ...

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > >> You might have wrong assumptions from previous PHP experiences. > > >>  >>> 'x'+4 > >> Traceback (most recent call last): > >>    File "", line 1, in > >> TypeError: cannot concatenate 'str' and 'int' objects > > > ...

Re: Zope/DTML Infuriating...

2008-04-29 Thread Marco Mariani
Jens wrote: You might have wrong assumptions from previous PHP experiences. >>> 'x'+4 Traceback (most recent call last): File "", line 1, in TypeError: cannot concatenate 'str' and 'int' objects > ... and the non snobby answer would have been: ... Sorry. Not trying to be snobbish,

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 1:59 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > > I've the checked that i'm referring to the variables correctly, so the > > only explanation i can come up with, is that '+' doesn't result in a > > string concatenation (with implicit typecast to string of the integer >

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 1:59 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > > I've the checked that i'm referring to the variables correctly, so the > > only explanation i can come up with, is that '+' doesn't result in a > > string concatenation (with implicit typecast to string of the integer >

Re: Zope/DTML Infuriating...

2008-04-29 Thread Marco Mariani
Jens wrote: I've the checked that i'm referring to the variables correctly, so the only explanation i can come up with, is that '+' doesn't result in a string concatenation (with implicit typecast to string of the integer variable(this is a interpreted language after all)). No, sorry. You real

Zope/DTML Infuriating...

2008-04-29 Thread Jens
Hello Everyone. I am relatively new to Zope(using it for a work project) and I was wondering if someone here could help me out or at least refer me to a decent documentationg for Zope/DTML/Python (at the detail level of php.net or Java API reference). http://www.zope.org/Documentation/Books/Zope