Yeah, I am just trying to understand why it doesn't work without explicit import. Missing basics here: if rows=db.select() works and rows is known to be an instance of the class Rows, and Rows is recognized as a class and can be used to some extent (obviously, I am using it already, in rows=db.select() and beyond, without importing explicitly), what does it mean then that I can't use it? I mean, it's either visible or invisible. If it's already visible as a specific class, without being imported, why are its methods still invisible and require explicit import statement? I am suspecting that I am missing something very basic about namespaces. Earlier Leonel explained it, but I didn't understand the explanation.
On Tuesday, May 21, 2019 at 11:52:23 AM UTC-4, villas wrote: > > rows = pydal.objects.Rows() > > > On Tuesday, 21 May 2019 04:14:45 UTC+1, Vlad wrote: >> >> I must be missing something very basic here... >> >> Want to create an empty Rows object, and then to append to it sets of >> rows from various sql queries with the same structure of the result sets. >> >> The first line in the code (in a controller) is >> rows = Rows() >> with an intention of creating an empty Rows object. >> >> This gives an error: <class 'NameError'> name 'Rows' is not defined >> >> Why is that? Why can't I create an empty Rows object? >> >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/8101cfd8-6754-44f2-9345-f89c076b6936%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.