Original Message -
> From: Don Jennings
> To: Albert-Jan Roskam
> Cc: Python Mailing List
> Sent: Wednesday, September 4, 2013 4:15 PM
> Subject: Re: [Tutor] Python 2 & 3 and unittest
>
>
> On Sep 4, 2013, at 9:30 AM, Albert-Jan Roskam wrote:
>
>
On 5 September 2013 11:20, Albert-Jan Roskam wrote:
>> from __future__ import division, print_function
>
> Assuming I never use the arguments of the print function, why also import
> print_function? print("something") works no matter if 'print' is a statement
> or a function.
The problem is whe
- Original Message -
> From: Steven D'Aprano
> To: tutor@python.org
> Cc:
> Sent: Thursday, September 5, 2013 1:11 AM
> Subject: Re: [Tutor] Python 2 & 3 and unittest
>
> On Wed, Sep 04, 2013 at 06:30:12AM -0700, Albert-Jan Roskam wrote:
>> Hi,
>&
- Original Message -
> From: Peter Otten <__pete...@web.de>
> To: tutor@python.org
> Cc:
> Sent: Thursday, September 5, 2013 8:29 AM
> Subject: Re: [Tutor] Python 2 & 3 and unittest
>
> Steven D'Aprano wrote:
>
>> On Thu, Sep 05, 20
Steven D'Aprano wrote:
> On Thu, Sep 05, 2013 at 09:11:50AM +1000, Steven D'Aprano wrote:
>
>> I don't believe there is a way to make
>> string literals unicode, you just have to get used to writing u"" and
>> b"" strings by hand.
>
> Sorry, that is unclear. I meant to say, there is no way to fo
On Thu, Sep 05, 2013 at 09:11:50AM +1000, Steven D'Aprano wrote:
> I don't believe there is a way to make
> string literals unicode, you just have to get used to writing u"" and
> b"" strings by hand.
Sorry, that is unclear. I meant to say, there is no way to force
unprefixed strings "" to be
On Wed, Sep 04, 2013 at 06:30:12AM -0700, Albert-Jan Roskam wrote:
> Hi,
>
> I am trying to make my app work in Python 2.7 and Python 3.3 (one
> codebase) and I might later also try to make it work on Python 2.6 and
> Python 3.2 (if I am not too fed up with it ;-). I was very happy to
> notice
On Sep 4, 2013, at 9:30 AM, Albert-Jan Roskam wrote:
> Hi,
>
> I am trying to make my app work in Python 2.7 and Python 3.3 (one codebase)
> and I might later also try to make it work on Python 2.6 and Python 3.2 (if I
> am not too fed up with it ;-).
You might like to read Armin Ronacher's (
Hi,
I am trying to make my app work in Python 2.7 and Python 3.3 (one codebase) and
I might later also try to make it work on Python 2.6 and Python 3.2 (if I am
not too fed up with it ;-). I was very happy to notice that the 'b' prefix for
bytes objects is also supported for byte strings in Pyt