[ python-Bugs-803413 ] uu.decode prints to stderr

SourceForge.net noreply at sourceforge.net
Thu Mar 3 11:08:20 CET 2005


Bugs item #803413, was opened at 2003-09-09 22:31
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=803413&group_id=5470

Category: Python Library
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Sami Hangaslammi (shang)
Assigned to: Nobody/Anonymous (nobody)
Summary: uu.decode prints to stderr

Initial Comment:

Python 2.3 final

The standard library function uu.decode prints a
warning message to stderr if there is an error when
decoding the file. This feels like an incorrect
behaviour for a library function.

The warning message can be supressed by providing a
quiet=True parameter, but this is not currently documented.

The relevant line in uu.py is 138

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2005-03-03 11:08

Message:
Logged In: YES 
user_id=21627

I think documenting the quiet parameter is the right
solution. Fixed in libuu.tex 1.14 and 1.12.20.2

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2005-01-31 01:15

Message:
Logged In: YES 
user_id=552329

Printing to stderr outside of debugging is uncommon for the
standard library, but there are other modules (ftplib,
asyncore) that do it.  In this case, it only happens when
there is an error (which can be recovered from), so printing
to stderr seems fairly appropriate.  An alternative would be
to call warnings.warn(), although by default that will have
the same effect.

Documenting the 'quiet' parameter seems reasonable, however,
and would be a simple change to libuu.tex.  I can produce
such a patch, if desired.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=803413&group_id=5470


More information about the Python-bugs-list mailing list