Author eli.bendersky
Recipients bethard, eli.bendersky, ezio.melotti, serhiy.storchaka, wolma
Date 2013-09-04.13:34:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAF-Rda-LoeJUveS3GNaNyYQbfd1dMSiDP6sv+93qhKPGYrWwrw@mail.gmail.com>
In-reply-to <1378301207.52.0.672185270845.issue18920@psf.upfronthosting.co.za>
Content
On Wed, Sep 4, 2013 at 6:26 AM, Ezio Melotti <report@bugs.python.org> wrote:

>
> Ezio Melotti added the comment:
>
> Only on 3.4.
> Python prints the version on stdout since 3.4 -- before it used stderr:
> 3.3$ ./python -V 2> /dev/null
> 3.3$ ./python -V > /dev/null
> Python 3.3.2+
>
> 3.4$ ./python -V 2> /dev/null
> Python 3.4.0a1+
> 3.4$ ./python -V > /dev/null
>
> This might also explain why argparse uses stderr (other modules/scripts in
> the stdlib might do the same too).
>

Ah, right. On 3.4 Python's main.c uses printf for --version; on earlier
versions it's fprintf(stderr...)

I guess it's a no-brainer then; 3.4 has to be changed, but not earlier
versions. I'll whip up a quick patch.
History
Date User Action Args
2013-09-04 13:34:23eli.benderskysetrecipients: + eli.bendersky, bethard, ezio.melotti, serhiy.storchaka, wolma
2013-09-04 13:34:23eli.benderskylinkissue18920 messages
2013-09-04 13:34:23eli.benderskycreate