[Python-bugs-list] [ python-Bugs-803498 ] plat-mac/applesingle.py needs cosmetic changes

SourceForge.net noreply at sourceforge.net
Tue Sep 9 17:34:39 EDT 2003


Bugs item #803498, was opened at 2003-09-09 19:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=803498&group_id=5470

Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Ippolito (etrepum)
Assigned to: Jack Jansen (jackjansen)
Summary: plat-mac/applesingle.py needs cosmetic changes

Initial Comment:
1)  it uses a string exception

2)  it has a warning every time you use it:

/Library/Frameworks/Python.framework/Versions/2.3/lib/

python2.3/plat-mac/applesingle.py:40: FutureWarning: %u/

%o/%x/%X of negative int will return a signed string in 

Python 2.4 and up

3) its decode function overloads __builtin__ names (input, 

id) and uses type(input) == type('') when it really means: 

isinstance(input, basestring).. or maybe even better: not 

hasattr(input, 'read')

4) it can be useful on platforms other than MacOS (bub-n-

bob uses it for example)



Attached is a revamped and backwards compatible version.

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

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



More information about the Python-bugs-list mailing list