Bug 97421 - Allow method chaining
Summary: Allow method chaining
Status: RESOLVED WONTFIX
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-20 16:36 UTC by Daniel Beecham
Modified: 2017-07-05 14:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Proposed patch (25.40 KB, text/plain)
2016-08-20 16:36 UTC, Daniel Beecham
Details

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.