Skip to content

Commit bdd639c

Browse files
aviramhaedenhill
authored andcommitted
Fix length doc of Producer
Fixes confluentinc#1150
1 parent 77dceb1 commit bdd639c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/confluent_kafka/src/Producer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,8 +899,9 @@ PyTypeObject ProducerType = {
899899
" Create a new Producer instance using the provided configuration dict.\n"
900900
"\n"
901901
"\n"
902-
".. py:function:: len()\n"
902+
".. py:function:: __len__(self)\n"
903903
"\n"
904+
" Producer implements __len__ that can be used as len(producer) to obtain number of messages waiting.\n"
904905
" :returns: Number of messages and Kafka protocol requests waiting to be delivered to broker.\n"
905906
" :rtype: int\n"
906907
"\n", /*tp_doc*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy