> Huh, did not realize that endswith takes a list. I'll remember that in > the future. > > This need is actually for http://schemaspy.sourceforge.net/, which allows > one to include only tables/views that match a pattern. > > Either there is a bug in Schemaspy's code or Java's implementation of > regular expressions is different than Python's or there is a flaw in my > logic, because the pattern I verify using Python produces different results > when used with Schemaspy. I suppose I'll open a bug there unless I can > find the aforementioned flaw. > > > if not table_name.endswith(('_CTL', '_DEL', '_RUN')): >> # Do whatever >> >> > Shoot, sorry, did not mean to top-post.
-- http://mail.python.org/mailman/listinfo/python-list