This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: plat-mac/applesingle.py needs cosmetic changes
Type: Stage:
Components: macOS Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: bob.ippolito, jackjansen
Priority: normal Keywords:

Created on 2003-09-09 23:34 by bob.ippolito, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
applesingle.py bob.ippolito, 2003-09-09 23:34 cross-platform applesingle module (req python 2.3)
Messages (2)
msg18109 - (view) Author: Bob Ippolito (bob.ippolito) * (Python committer) Date: 2003-09-09 23:34
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.
msg18110 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-11-18 23:09
Logged In: YES 
user_id=45365

Accepted for 2.4 as rev. 1.3 (with minor changes by me, to make 
it pass the new test_applesingle test), but not for 2.3: it seems the 
one thing that would make this a bug fix (point 2) doesn't happen 
for me.
History
Date User Action Args
2022-04-10 16:11:04adminsetgithub: 39206
2003-09-09 23:34:38bob.ippolitocreate