[ python-Bugs-1032615 ] Odd behavior with unicode.translate on OSX.

SourceForge.net noreply at sourceforge.net
Wed Sep 22 15:00:21 CEST 2004


Bugs item #1032615, was opened at 2004-09-22 09:00
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=1032615&group_id=5470

Category: Unicode
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Fincher (jemfinch)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Odd behavior with unicode.translate on OSX.

Initial Comment:
d = {ord('f'): 'eff '}
for i in range(100):
....s = u'f' * i
....print i
....s.translate(d)

On my Panther laptop, that fails at i=25 with a MemoryError:

*** malloc: vm_allocate(size=1677725696) failed (error code=3)
*** malloc[2346]: error: Can't allocate region
Traceback (most recent call last):
..File "<stdin>", line 4, in ?
MemoryError

It works fine on the Linux and BSD boxes I was able to test on, 
though.

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

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


More information about the Python-bugs-list mailing list