majek / puka

Puka - the opinionated RabbitMQ client
https://github.com/majek/puka
Other
182 stars 34 forks source link

The type basic property is named `type_` but not documented #62

Open qix opened 9 years ago

qix commented 9 years ago

Is there a reason type is named type_ in the headers/spec?

It took me a while of digging for it, and notice it isn't mentioned at all in the documentation.

majek commented 9 years ago

"type" is a keyword in python.

zuo commented 1 year ago

type is not a keyword in Python. It is the name of a builtin, indeed. But, IMHO, that is not a legitimate reason to deviate from the AMQP specs, where the message property name is type, not type_.