On Feb 28, 2010, at 4:32 PM, Manlio Perillo wrote:

> 
> By the way, I have also noted that in the SQLAlchemy source code there
> are many extra whitespaces (lines with only whitespaces, or lines ending
> with whitespaces), that are usually (?) considered bad programming practice.


lines ending with extra whitespace are editor bugs.   as far as blank lines 
between defs and such, there's nothing in pep8 I can see about it, and I guess 
you are under 30 otherwise you'd get quite a headache reading code like this:

      else:
            self._correlate = self._correlate.union(fromclauses)
    def append_correlation(self, fromclause):
        """append the given correlation expression to this select() 
construct."""
        self._should_correlate = False
        self._correlate = self._correlate.union([fromclause])
    def append_column(self, column):
        """append the given column expression to the columns clause of this 
select()
        construct.
        """
        column = _literal_as_column(column)
        if isinstance(column, _ScalarSelect):
            column = column.self_group(against=operators.comma_op)
        self._raw_columns = self._raw_columns + [column]
        self._froms = self._froms.union(_from_objects(column))
        self._reset_exported()
    def append_prefix(self, clause):
        """append the given columns clause prefix expression to this select()
        construct.
        """
        clause = _literal_as_text(clause)
        self._prefixes = self._prefixes + (clause,)
    def append_whereclause(self, whereclause):
        """append the given expression to this select() construct's WHERE 
criterion.
        The expression will be joined to existing WHERE criterion via AND.
        """
        whereclause = _literal_as_text(whereclause)
        self._froms = self._froms.union(_from_objects(whereclause))
        if self._whereclause is not None:
            self._whereclause = and_(self._whereclause, whereclause)
        else:
            self._whereclause = whereclause


> 
> 
> Regards  Manlio
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkuK4PgACgkQscQJ24LbaUR9ZgCfc2r9Nm2vohSxuOKU6rrpkge4
> hQwAn0b3PcY84ksY5sxzEKPxZz1rPENr
> =7klx
> -----END PGP SIGNATURE-----
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To post to this group, send email to sqlalch...@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to