[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Steve
Jeanne Boyarsky wrote:The question is whether there is a way to "compile" Python to check the syntax and method calls are valid without running it? In particular when it calls other libraries.
Steve
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:The whole point of late-binding languages like Python, Perl, Ruby, et. al., is that you don't have to have everything nailed down until the very last moment. You just "Git 'er Dun!" and worry about the consequences later. If you'd prefer to be humiliated, before you place the code into production, the best way to do that is to employ an early-binding language such as Java. Or COBOL. Or something like that.
Not to say that you can't try, but the community as a whole has other goals, so you're sort of swimming upstream.
Actually, it's the lack of strong typing that usually gets me, and that really can't be compensated for in a compiler or even in unit testing, since testing would only demonstrate success/failure for the objects you submitted for test, not stuff coming in from Left Field the way it does in real life.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:High School students think about consequences?
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Consider Paul's rocket mass heater. |