We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77dceb1 commit bdd639cCopy full SHA for bdd639c
src/confluent_kafka/src/Producer.c
@@ -899,8 +899,9 @@ PyTypeObject ProducerType = {
899
" Create a new Producer instance using the provided configuration dict.\n"
900
"\n"
901
902
- ".. py:function:: len()\n"
+ ".. py:function:: __len__(self)\n"
903
904
+ " Producer implements __len__ that can be used as len(producer) to obtain number of messages waiting.\n"
905
" :returns: Number of messages and Kafka protocol requests waiting to be delivered to broker.\n"
906
" :rtype: int\n"
907
"\n", /*tp_doc*/
0 commit comments