[IronPython] IronPython-1.0beta2 on mono-1.1.12 str split() not implemented default arg

Jeff Kowalczyk jtk at yahoo.com
Tue Jan 31 21:06:56 CET 2006


IronPython-1.0beta2 on mono-1.1.12 raises a NotImplementedError when
calling .split() on a str object with no arguments. cpython uses a default
argument (whitespace) and succeeds.

  $ mono IronPythonConsole.exe
  IronPython 1.0.2216 (Beta) on .NET 2.0.50727.42
  Copyright (c) Microsoft Corporation. All rights reserved.
  >>> import sys ; sys.path.append('/usr/lib/python2.4')
  >>> s = 'does ironpython accept a default argument to string split method'
  >>> s.split()
  Traceback (most recent call last):
    File mscorlib, line unknown, in Split
    File mscorlib, line unknown, in Split
    File mscorlib, line unknown, in Split
  NotImplementedError: The requested feature is not implemented.
  >>> s.split(' ')
  ['does', 'ironpython', 'accept', 'a', 'default', 'argument', 'to', 'string', 'split', 'method']
  >>>  
  
  Python 2.4.2 (#1, Sep 28 2005, 17:54:11)
  [GCC 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> s = 'does cpython accept a default argument to string split method'
  >>> s.split()
  ['does', 'cpython', 'accept', 'a', 'default', 'argument', 'to', 'string', 'split', 'method']
  >>>




More information about the Ironpython-users mailing list