0

In the Pytable file class you can get_current_mark(), goto(mark), undo(mark), mark(), etc. but is there a way to see a list of all available marks?
Reference: http://pytables.github.io/usersguide/libref/file_class.html

Joel Vroom
  • 1,611
  • 1
  • 16
  • 30

1 Answers1

1

While not part of the public API - which does not provide a way of doing what you are asking for - there are two private members that you can use. The first is File._markers which is a dictionary of mark names to the their row number in the File._actionlog table, which is a table in the file of all of the actions taken thus far. I think that sorted(File._markers.items(), key=lambda x: x[1]) is probably what you want.

Anthony Scopatz
  • 3,265
  • 2
  • 15
  • 14