[Python-Dev] function call syntax oddity (original) (raw)
Joseph Armbruster josepharmbruster at gmail.com
Fri Jan 4 22:25:57 CET 2008
- Previous message: [Python-Dev] Repeatability of looping over dicts
- Next message: [Python-Dev] function call syntax oddity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
All,
I was showing a co-worker some python today (using the trunk) when I stumbled upon this. I was not sure what to think since I have never really experimented with using spaces like this. So here tis. Be careful to notice the spaces as they are significant here.
1.3.str() '1.3'
1.3 .str() '1.3'
a = " somestring "
a .split() ['somestring']
a. split() ['somestring']
Cool I suppose, except here's an odd man out:
1.str() File "", line 1 1.str() ^ SyntaxError: invalid syntax
1 .str() '1'
Joseph Armbruster -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20080104/b40ae1b2/attachment.htm
- Previous message: [Python-Dev] Repeatability of looping over dicts
- Next message: [Python-Dev] function call syntax oddity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]