﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27549	django.utils.functional.lazy cannot be used with regular expressions module (re)	Daniel Hahler	nobody	"{{{
from django.utils.functional import lazy
import re

f = lazy(lambda: 's', str)()
re.match('s', f)
}}}

results in `TypeError: expected string or bytes-like object`.

This gets generated in https://github.com/python/cpython/blob/e02afa7a78f1515dd7386912812685fb4d519a44/Modules/_sre.c#L338-L342, where the `PyObject_GetBuffer` call appears to fail."	Bug	closed	Utilities	dev	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
