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
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
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
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
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
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
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
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.
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,
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
>
> > ...
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
>
> > ...
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
>
> > ...
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,
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
>
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
>
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
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
17 matches
Mail list logo