Skip to content

Commit 0d3de92

Browse files
committed
Merge pull request #13 in EN/dxfeed-python-api from feature/EN-1254-pythonapi-get_data-method-docs to master
* commit '3d6c304fbbee1bd1b15bd0707546e6490e7ee25b': [EN-1254] get_data docs [EN-1254] get_data docs
2 parents 3215d30 + 3d6c304 commit 0d3de92

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dxfeed/core/DXFeedPy.pyx

+8-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ cdef class SubscriptionClass:
9595
data_len: int
9696
Sets maximum amount of events, that are kept in Subscription class
9797
"""
98-
self.data = {'columns': []}
9998
self.subscription = NULL
10099
self.columns = list()
101100
if data_len > 0:
@@ -111,6 +110,14 @@ cdef class SubscriptionClass:
111110
self.con_sub_list_ptr[0][self.subscription_order] = NULL
112111

113112
def get_data(self):
113+
"""
114+
Method returns list with data, specified in event listener and returned data will be removed from object buffer
115+
116+
Returns
117+
-------
118+
list
119+
List with data
120+
"""
114121
return self.data.safe_get()
115122

116123
def to_dataframe(self, keep: bool=True):

0 commit comments

Comments
 (0)