On 06/16/2013 01:40 AM, Dotan Cohen wrote:
On Sat, Jun 15, 2013 at 2:32 PM, Dave Angel da...@davea.name wrote:
Thank you. So would it be clear if I were to say I prefer
printf-style formatting over the format method.?
I'd be careful there, since method is an English word as well as a Python
On Sun, Jun 16, 2013 at 9:27 AM, Dave Angel da...@davea.name wrote:
You were thinking of the OOP-sense of the word, but you didn't say it. So
the listener might choose to figure you meant method as in technique.
After all the word style is used in its English meaning, even though Word
On Fri, Jun 14, 2013 at 6:46 PM, Steven D'Aprano st...@pearwood.info wrote:
On 15/06/13 01:23, Dotan Cohen wrote:
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
String formatting, and string formatting *wink*
Sometimes the first is called string
On Fri, Jun 14, 2013 at 7:01 PM, Jim Mooney cybervigila...@gmail.com wrote:
On 14 June 2013 08:23, Dotan Cohen dotanco...@gmail.com wrote:
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
The first one is a string Expression, using % as the overloaded
On 06/15/2013 06:23 AM, Dotan Cohen wrote:
On Fri, Jun 14, 2013 at 7:01 PM, Jim Mooney cybervigila...@gmail.com wrote:
On 14 June 2013 08:23, Dotan Cohen dotanco...@gmail.com wrote:
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
The first one is a string
On 15/06/13 20:18, Dotan Cohen wrote:
On Fri, Jun 14, 2013 at 6:46 PM, Steven D'Aprano st...@pearwood.info wrote:
On 15/06/13 01:23, Dotan Cohen wrote:
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
String formatting, and string formatting *wink*
On 15 June 2013 03:23, Dotan Cohen dotanco...@gmail.com wrote:
Oh? Which book is that? I've so far been learning by writing small
applications here and there. I have been meaning to go through Learn
Python The Hard Way for the longest time.
=
Learning Python, fifth
On Sat, Jun 15, 2013 at 2:32 PM, Dave Angel da...@davea.name wrote:
Thank you. So would it be clear if I were to say I prefer
printf-style formatting over the format method.?
I'd be careful there, since method is an English word as well as a Python
one. So I'd make it clear i was referrring
On Sat, Jun 15, 2013 at 2:41 PM, Steven D'Aprano st...@pearwood.info wrote:
On 15/06/13 20:18, Dotan Cohen wrote:
I prefer % formatting over str.format method.
I prefer percent-formatting over brace-formatting.
I prefer C-style string formatting over the newer string format method.
Thank
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
Where in the fine manual is their names shown? Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
___
Tutor maillist - Tutor@python.org
To
On 15/06/13 01:23, Dotan Cohen wrote:
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
String formatting, and string formatting *wink*
Sometimes the first is called string interpolation. Sometimes it is called
printf-style formatting, after the C function.
On 14 June 2013 08:23, Dotan Cohen dotanco...@gmail.com wrote:
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
The first one is a string Expression, using % as the overloaded operator
The second one is a string method, with .format() as the method for a
On Fri, Jun 14, 2013 at 12:01 PM, Jim Mooney cybervigila...@gmail.com wrote:
On 14 June 2013 08:23, Dotan Cohen dotanco...@gmail.com wrote:
What are these two string-formatting styles called?
'%.3f' % x
'{0:.3f}'.format(x)
The first one is a string Expression, using % as the overloaded
On 14 June 2013 09:40, eryksun eryk...@gmail.com wrote:
or with built-in format():
format(Decimal(1).exp(), '.27f')
'2.718281828459045235360287471'
I didn't know .format() also had a builtin. Are there many methods that are
dual like that? On the one hand, it's more memorizing,
On 15/06/13 03:32, Jim Mooney wrote:
Now you're going to tell me there's a programmer's keyboard ;')
http://en.wikipedia.org/wiki/Space-cadet_keyboard
http://upload.wikimedia.org/wikipedia/commons/4/47/Space-cadet.jpg
http://ageinghacker.net/hacks/apl-keyboard/apl-keyboard-2.jpg
On 14 June 2013 10:56, Steven D'Aprano st...@pearwood.info wrote:
On 15/06/13 03:32, Jim Mooney wrote:
Now you're going to tell me there's a programmer's keyboard ;')
http://en.wikipedia.org/wiki/**Space-cadet_keyboardhttp://en.wikipedia.org/wiki/Space-cadet_keyboard
In response to your points, voice command using visuals, this idea has been
explored before. In the book containment by Christian Cantrell they use
methods such as this. The main character places a helmet on his head, and
writes code using his mind. Voice command was also used as well.
Will
14 June 2013 11:59, student Tyler Northrip northri...@s.dcsdk12.orgwrote:
In response to your points, voice command using visuals, this idea has
been explored before. In the book containment by Christian Cantrell theyuse
methods such as this. The main character places a helmet on his head,
On 06/14/2013 03:09 PM, Jim Mooney wrote:
SNIP
Of course, the real consideration, for those thinking of programming as a
career path, is whether programmers will be as obsolete at gaslighters in
twenty years - or will they be doing some sort of weird meta-programming?
You mean you don't
On 14 June 2013 13:47, Dave Angel da...@davea.name wrote:
On 06/14/2013 03:09 PM, Jim Mooney wrote:
You mean you don't write your own microcode in hex? New fangled computers
get between us and the hardware. Give me instructions that directly
manipulate voltages, and I'll be happy again.
On 14/06/13 19:34, Jim Mooney wrote:
I'm probably going to hear that's already been done, too ;')
Not in 3D to my knowledge but visual programming for sure.
One example was ObjectVision from Borland on the PC. It lacked a loop
construct because it was event driven but otherwise was a
On 14/06/13 20:09, Jim Mooney wrote:
Of course, the real consideration, for those thinking of programming as
a career path, is whether programmers will be as obsolete at gaslighters
in twenty years - or will they be doing some sort of weird meta-programming?
COBOL - COmmon Business Oriented
On 14/06/2013 22:46, Alan Gauld wrote:
COBOL - COmmon Business Oriented Language.
Designed in the 1950s to enable 'ordinary business users' to write their
own programs and thus render programmers obsolete
So what COBOL couldn't achieve is now being done with Applescript.
--
Steve is
On 06/14/2013 05:43 PM, Alan Gauld wrote:
On 14/06/13 19:34, Jim Mooney wrote:
I'm probably going to hear that's already been done, too ;')
Not in 3D to my knowledge but visual programming for sure.
One example was ObjectVision from Borland on the PC. It lacked a loop
construct because it
On 14 June 2013 18:09, Dave Angel da...@davea.name wrote:
On 06/14/2013 05:43 PM, Alan Gauld wrote:
Another one, currently popular on the RaspberryPi micro computer is
Scratch:
25 matches
Mail list logo