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 }}
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Currently, the queryresults object returned by dimensions.query(...) implements the iterator protocol and the additional ability to take the len(...) only. It would be convenient if the results object could supported slicing, and possibly other operations such as list(results). This wouldn't be very hard to implement, and the Python itertools package provides some features that could be useful in the implementation. The main design decisions revolve around how to store the results internally (when they could be very many, as many as 50,000) and what to do if the user tries to use list(results) on a long list of results (which will hang during the time that Sidewall is repeatedly querying the Dimensions server to fill out the list).
The text was updated successfully, but these errors were encountered:
Currently, the
queryresults
object returned bydimensions.query(...)
implements the iterator protocol and the additional ability to take thelen(...)
only. It would be convenient if the results object could supported slicing, and possibly other operations such aslist(results)
. This wouldn't be very hard to implement, and the Pythonitertools
package provides some features that could be useful in the implementation. The main design decisions revolve around how to store the results internally (when they could be very many, as many as 50,000) and what to do if the user tries to uselist(results)
on a long list of results (which will hang during the time that Sidewall is repeatedly querying the Dimensions server to fill out the list).The text was updated successfully, but these errors were encountered: