Bug 97421

Summary: Allow method chaining
Product: pycairo Reporter: Daniel Beecham <daniel>
Component: generalAssignee: Steve Chaplin <d74n5pohf9>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Proposed patch

Description Daniel Beecham 2016-08-20 16:36:45 UTC
Created attachment 125921 [details]
Proposed patch

I like writing

    ctx.move_to(0, 0).line_to(0.5, 0.1).close_path()

so I implemented it. Patch attached (I think; I'm not used to generating patches).
Comment 1 Christoph Reiter 2017-07-05 14:54:18 UTC
This has come up @ https://github.com/pygobject/pycairo/issues/4#issuecomment-294121882

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.