You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible for Pegl to identify the relevant enums and build the attribs dict itself, given just the names. The above example might be rewritten like so:
Specifying attributes (for
Config
,Context
,Display
,Image
,Surface
, andSync
objects) is currently pretty verbose, e.g.It should be possible for Pegl to identify the relevant enums and build the attribs dict itself, given just the names. The above example might be rewritten like so:
Other things to consider are:
ALL_CAPS
? Or accept them inlower_case
, which is more consistent with instance properties?Using keyword arguments, the example might instead look like this:
The text was updated successfully, but these errors were encountered: