def pyimplementation():
 if hasattr(_platform, u'python_implementation'):
  return _platform.python_implementation()
 elif sys.platform.startswith(u'java'):
  return (u'Jython ' + sys.platform)
 elif hasattr(sys, u'pypy_version_info'):
  v = u'.'.join((str(p) for p in sys.pypy_version_info[:3]))
  if sys.pypy_version_info[3:]:
   v += (u'-' + u''.join((str(p) for p in sys.pypy_version_info[3:])))
  return (u'PyPy ' + v)
 else:
  return u'CPython'

def pyimplementation ( ) : if hasattr ( _platform , u'python_implementation' ) : return _platform . python_implementation ( ) elif sys . platform . startswith ( u'java' ) : return ( u'Jython ' + sys . platform ) elif hasattr ( sys , u'pypy_version_info' ) : v = u'.' . join ( ( str ( p ) for p in sys . pypy_version_info [ : 3 ] ) ) if sys . pypy_version_info [ 3 : ] : v += ( u'-' + u'' . join ( ( str ( p ) for p in sys . pypy_version_info [ 3 : ] ) ) ) return ( u'PyPy ' + v ) else : return u'CPython'
return string identifying the current python implementation .