473,238 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

PyChecker lives! Version 0.8.13 released.

A new version of PyChecker is (finally) available for your hacking pleasure.

It's been quite a while since the last release--11 months.
I wish there was more progress, but such is life.
Many bug fixes and some new warnings were added.

I hope to get future releases out faster. I have several patches
queued up and ideas for more warnings. As always, I'd like
to hear your suggestions for common mistakes and bugs than
can/should be found by PyChecker.

I'm very interested to know what version(s) of Python you
use (or would like to use) PyChecker with. Even if you
don't use PyChecker, please take a moment to answer this short poll
so I can get an idea of how many people use each version of Python.

Please take a moment and visit: http://metaslash.com/pyversion.html

It would be great if you could help out the Python Software Foundation
and make a donation: http://python.org/psf/donate.html
In return for your generous donation, I will send you a very personal
email. ;-)

Comments, criticisms, new ideas, and other feedback is welcome.

Changes from 0.8.12 to 0.8.13:

* Add -s/--shadowbuiltin option to warn when overriding a builtin
* Add warning when assigning a variable to itself
* Add warning when dividing a variable by itself
* Add warnings when using a bit-wise operator with the same variable (a & a)
* Add warning when passing a constant string to getattr()/setattr()
* Add --special option to check for __special__ (reserved) method names
and that their signature (argument count) is correct
* Add warning for using __getattribute__ in an old-style class
* Suppress 'self as first argument' warning for static and class methods
* Add --classmethodargs option to specify first argument name
for class methods

PyChecker is available on Source Forge:
Web page: http://pychecker.sourceforge.net/
Project page: http://sourceforge.net/projects/pychecker/
Mailing List: py************@lists.sourceforge.net

PyChecker is a tool for finding bugs in Python source code.
It finds problems that are typically caught by a compiler
for less dynamic languages, like C and C++. It is similar to lint.

Jul 18 '05 #1
1 1460
> As always, I'd like to hear your suggestions for common mistakes and bugs
can/should be found by PyChecker.

Hi Neal. Thanks for these questions, and thanks for pychecker!

More nifty checks would always be welcome, but for me, some fairly small and
easy changes to pychecker might make a big difference. I would suggest
putting more of your attention on giving the user more control over
pychecker. In particular:

1. Make it really clear and obvious in the documentation that it is
possible to drive pychecker using options.py. Put some screenshots in the
docs, etc.

2. Bring options.py up-to-date: support all options (or maybe document
things better). For example, I've never been able to get the suppressions
dictionary in .pycheckrc to work, despite numerous experiments. I miss not
being able to get this to work every time I run pychecker.

3. Add an option to options.py so one can specify a source file to run.
Better yet, allow a list of files to check. As it is now, I have to browse
to the file.

4. Think about ways to make pychecker scriptable. This is a biggie. If it
is already, then _tell us about it_ (!!)

5. Think about ways to make pychecker less monolithic and more useful for
unit testing. In effect, I'd like unit tests to be able to run a specific
set of tests on specific files with specific options without having to mess
with options.py or .pycheckrc. This would be so cool.

I don't believe any of these items would take a lot of technical work, but
they would make pychecker hugely more useful to me.

Thanks for listening.

Edward K. Ream email: ed*******@charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: achrist | last post by:
The pychecker site says that pychecker works with versions 1.5 through 2.2. Any reason to expect that 2.3 breaks it? Anyone tried it to see? TIA Al
by: beliavsky | last post by:
If I run PyChecker on the following program, stored in xtry.py, m = 10000000 k = 0 for i in xrange(m): k = k + i print k x = range(3) print x
by: Frans Englich | last post by:
Hello, I take PyChecker partly as an recommender of good coding practice, but I cannot make sense of some of the messages. For example: runner.py:878: Function (main) has too many lines (201)...
by: Philippe Fremy | last post by:
Hi, I would like to develop a tool that goes one step further than pychecker to ensure python program validity. The idea would be to get close to what people get on ocaml: a static verification...
by: Anthony Greene | last post by:
Howdy, I had the impression that pychecker caught and reported such dynamic syntactical errors. #!/usr/bin/env python def add(i): i += 10 status = 3
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.