Staging
v0.5.1
https://github.com/python/cpython
Revision 9989efbb653e8cbd08e51b4d79d094605c8b23b8 authored by Miss Islington (bot) on 25 March 2018, 02:31:29 UTC, committed by GitHub on 25 March 2018, 02:31:29 UTC

* Change _hash_action to be a function table lookup, instead of a list
of strings which is then tested with if statements.
(cherry picked from commit 01d618c5606a239b03ad1269541eddb6e724775d)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
1 parent 02c19a6
Raw File
Tip revision: 9989efbb653e8cbd08e51b4d79d094605c8b23b8 authored by Miss Islington (bot) on 25 March 2018, 02:31:29 UTC
bpo-33134: dataclasses: use function dispatch table for hash, instead of a string lookup which then is tested with if tests. (GH-6222)
Tip revision: 9989efb
pgen.h
#ifndef Py_PGEN_H
#define Py_PGEN_H
#ifdef __cplusplus
extern "C" {
#endif


/* Parser generator interface */

extern grammar *meta_grammar(void);

struct _node;
extern grammar *pgen(struct _node *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_PGEN_H */
back to top