質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top