Closed carter-canedy closed 2 years ago
This would be an easy fix by making the _self
argument keyword-only.
--- a/modules/pymol/commanding.py
+++ b/modules/pymol/commanding.py
@@ -493,7 +493,7 @@ PYMOL API
_self.unlock(-1,_self=_self)
return None
- def delete(name,_self=cmd):
+ def delete(name, *, _self=cmd):
'''
DESCRIPTION
Not sure if this is intended behavior, but I just tried to delete multiple selection objects using "delete obj1, obj2" syntax. I received this traceback:
I realize that my syntax (specifically the comma) was what induced the exception, but I figured that an unhandled exception might be worth reporting