Nick Coghlan <[EMAIL PROTECTED]> added the comment:
Interesting, I hadn't noticed that addition to the platform module for 2.6.
A bit more verbose than sys.vm, but it would certainly do the trick :)
In that case, I would suggest something along the lines of the following:
vm = platform.python_implementation().lower()
reference_vm = "cpython"
def impl_detail(*vm_names):
if vm_names:
vm_names = [vm.lower() for vm in vm_names]
else:
vm_names = [reference_vm]
if vm in vm_names:
# Test the implementation detail
else:
# Skip this test
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4242>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com