You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
documentation error for notepad.allocateMarker() function #264
Once all possible markers have been allocated, None is returned if the function is called subsequently. Not sure if that should be added to the documentation, but it seems likely. Before I noticed that, my thinking was to anticipate -1 as the return value when no more were available to be allocated.
Reference script:
for j in range(100):
my_marker_id = notepad.allocateMarker(1)
print(my_marker_id)
if my_marker_id is None: break
Activity
alankilborn commentedon Dec 22, 2022
Once all possible markers have been allocated,
Noneis returned if the function is called subsequently. Not sure if that should be added to the documentation, but it seems likely. Before I noticed that, my thinking was to anticipate-1as the return value when no more were available to be allocated.Reference script:
outputs: