Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace module level factory functions with type constructors #194

Merged
merged 16 commits into from
Jun 25, 2014

Conversation

p
Copy link
Member

@p p commented Jun 11, 2014

Previously, although "Curl" was advertised as a type, pycurl.Curl et al were really global factory functions that returned instances of the Curl type. The biggest issue this caused was inability to properly document pycurl objects. pycurl.Curl.setopt, for example, did not exist, as Curl was not a type.

This PR transforms the old factory functions into constructors in tp_new slots. This makes it possible to expose actual types as pycurl.Curl and such, making documentation work properly.

p added a commit that referenced this pull request Jun 25, 2014
Replace module level factory functions with type constructors
@p p merged commit 472a738 into pycurl:master Jun 25, 2014
@p p deleted the type-constructors branch June 25, 2014 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant