Thanks guys! I appreciate it. I was wondering why %r was always
showing things enclosed in single-quotes.
On Wed, May 25, 2011 at 9:13 AM, Chris Guidry wrote:
> On Wednesday, May 25, 2011 9:06:02 AM UTC-4, Matty Sarro wrote:
>> can't seem to find some of the items in the documentation. Right now
On Wednesday, May 25, 2011 9:06:02 AM UTC-4, Matty Sarro wrote:
> can't seem to find some of the items in the documentation. Right now
> what is stumping me... what exactly does %r do? I can't find it in the
> documentation anywhere.
Matty, %r in a format string is very much like %s. %s calls str
On Wed, May 25, 2011 at 11:06 PM, Matty Sarro wrote:
> Right now what is stumping me... what exactly does %r do?
You're talking about the formatting operator? It's like the repr function:
http://docs.python.org/library/functions.html#repr
Chris Angelico
--
http://mail.python.org/mailman/listin
Hey everyone,
This is a super noob question, so please be gentle.
I am working my way through "Learn Python the Hard Way" using both
python 2.7 and python 3.1 (I want to get a handle on the differences
between the two - the intention to write things in python 3 but be
able to understand things from