Magic
One of the things I like most about Python is the lack of Magic things.
The way that solutions don’t take the form of “Prefix the argument with a round blue diamond to make the nasal demons put sugar in the coffee” type thing.
Therefore, getting the answer “Prefix the connection string with a minus symbol” is something that is reasonably likely to make me want to kill things.
- 2005-03-08 14:13:56
- By Aquarion
- From Evolving Media, Bedford
- More Journal Entries
- Filed under Programming
Stuart Langridge:
Whence came such a comment? That does seem alarmingly unPythonic…
Ben Hutchings:
Is this an SQL database connection string? I think every SQL implementation and API turns out to be bizarre and annoying in unexpected ways. I implemented the database interface layer for our application server and spent probably the majority of the time discovering and working around bugs and oddities in the database drivers. In my opinion Python’s DB-API is seriously flawed because it completely punts on the problem of differing query syntax, even to the point of allowing different placeholders syntaxes.