Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65611 > unrolled thread

Re: Python 2.7.6 help with white spaces?

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2014-02-07 21:11 +0000
Last post2014-02-07 22:09 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python 2.7.6 help with white spaces? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-07 21:11 +0000
    Re: Python 2.7.6 help with white spaces? Asaf Las <roegltd@gmail.com> - 2014-02-07 13:45 -0800
      Re: Python 2.7.6 help with white spaces? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-07 22:09 +0000

#65611 — Re: Python 2.7.6 help with white spaces?

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-02-07 21:11 +0000
SubjectRe: Python 2.7.6 help with white spaces?
Message-ID<mailman.6499.1391807522.18130.python-list@python.org>
On 07/02/2014 20:45, Dante Signal31 wrote:
>
> Just one more solution for original question, surely not the best but
> only to cover all possibilities:
>
>     print("{0}:{1}".format(minutes,seconds))
>
> --
> Dante

Fancy wasting two whole characters when this will suffice

print("{}:{}".format(minutes,seconds)) :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

[toc] | [next] | [standalone]


#65613

FromAsaf Las <roegltd@gmail.com>
Date2014-02-07 13:45 -0800
Message-ID<1907f236-a7f0-4c55-b0ed-752005726bec@googlegroups.com>
In reply to#65611
On Friday, February 7, 2014 11:11:37 PM UTC+2, Mark Lawrence wrote:
> 
> Fancy wasting two whole characters when this will suffice
>
> print("{}:{}".format(minutes,seconds)) :)
> 
> 
> Mark Lawrence

Hmmmm, got error:

  File "<stdin>", line 1
    print("{}:{}".format(minutes,seconds)) :)
                                           ^
SyntaxError: invalid syntax

:-)

[toc] | [prev] | [next] | [standalone]


#65615

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-02-07 22:09 +0000
Message-ID<mailman.6501.1391810976.18130.python-list@python.org>
In reply to#65613
On 07/02/2014 21:45, Asaf Las wrote:
> On Friday, February 7, 2014 11:11:37 PM UTC+2, Mark Lawrence wrote:
>>
>> Fancy wasting two whole characters when this will suffice
>>
>> print("{}:{}".format(minutes,seconds)) :)
>>
>>
>> Mark Lawrence
>
> Hmmmm, got error:
>
>    File "<stdin>", line 1
>      print("{}:{}".format(minutes,seconds)) :)
>                                             ^
> SyntaxError: invalid syntax
>
> :-)
>

I think we'd all better ease up with the humour.  This will suit the 
people who want this list turned into something bland and boring that 
can only discuss Python code written to conform to PEP 8 and anything 
else is by definition off topic :(

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web