On Tue, May 27, 2003 at 02:04:11PM +0100, Murray Steele wrote:
>
> I've tried the cvs version and it seems a bit broke - it generates this for
> any file (even ones without the __getattr__ overridden classes being
> included:
>
> Caught exception importing module OracleBackend:
> File "D:\pychecker\pychecker\checker.py", line 525, in _initModule()
> self.addClass(tokenName)
> File "D:\pychecker\pychecker\checker.py", line 455, in addClass()
> self.__addAttributes(c, c.classObject)
> File "D:\pychecker\pychecker\checker.py", line 441, in __addAttributes()
> c.addMethods(classObject)
> File "D:\pychecker\pychecker\checker.py", line 258, in addMethods()
> self.addMethod(token, token.__name__)
> File "D:\pychecker\pychecker\checker.py", line 246, in addMethod()
> self.methods[methodName] = function.Function(method, 1)
> TypeError: __init__() takes exactly 2 arguments (3 given)
>
> FYI: the setup.py gives the following error:
>
> error in setup script: invalid distribution option 'classifiers'
I think the 2 errors are related. I commented out the classifiers
line to fix setup.py. Classifiers is new in Python 2.3 (forget the
version of distutils), but it's not necessary.
The __init__ exception is due to a mismatch of code between 0.8.12 and
the CVS version. Since the CVS version should install now, I don't
think the problem will occur after running setup.
Neal

I've tried the cvs version and it seems a bit broke - it generates this for
any file (even ones without the __getattr__ overridden classes being
included:
Caught exception importing module OracleBackend:
File "D:\pychecker\pychecker\checker.py", line 525, in _initModule()
self.addClass(tokenName)
File "D:\pychecker\pychecker\checker.py", line 455, in addClass()
self.__addAttributes(c, c.classObject)
File "D:\pychecker\pychecker\checker.py", line 441, in __addAttributes()
c.addMethods(classObject)
File "D:\pychecker\pychecker\checker.py", line 258, in addMethods()
self.addMethod(token, token.__name__)
File "D:\pychecker\pychecker\checker.py", line 246, in addMethod()
self.methods[methodName] = function.Function(method, 1)
TypeError: __init__() takes exactly 2 arguments (3 given)
FYI: the setup.py gives the following error:
error in setup script: invalid distribution option 'classifiers'
I can get on with the existing version (0.8.12) for now, anything is better
than nothing. Thanks for the speedy response though.
BTW: in 0.8.12 the error with the __getattr__ stuff can be "swallowed" if I
add the following line to Class.__init__
str(getattr(module,name))
This throws the same exception as previous (albeit from a slightly different
place) .. but this exception somehow doesn't cause the system to fall over
and I can get some pychecker output for my files.
___________________________________________________
Murray Steele
Software Engineer
___________________________________________________
APR Smartlogik Limited.
160 Euston Road * London * NW1 2LZ
phone +44 (0)20 7961 3900
fax +44 (0)20 7961 3949
map: http://www.aprsmartlogik.com/download/pdf/apr_ukmap.pdf
mailto:Murray.Steele@...
http://www.aprsmartlogik.com/
***********************************************************************
This e-mail may contain proprietary and confidential
information and is intended for the recipient(s) only.
If an addressing or transmission error has misdirected this
e-mail, please notify the systems administrator by forwarding
this e-mail to mailto:postmaster@...
If you are not the intended recipient(s) disclosure, distribution,
copying or printing of this e-mail is strictly prohibited.
***********************************************************************
> -----Original Message-----
> From: Neal Norwitz [mailto:neal@...]
> Sent: 27 May 2003 13:42
> To: Murray Steele
> Cc: 'pychecker-list@...'
> Subject: Re: [PyChecker-list] PyChecker - problems where you over-ride
> __getattr__
>
>
> On Tue, May 27, 2003 at 11:47:00AM +0100, Murray Steele wrote:
> >
> > PyChecker (I'm using 0.8.12) seems to fall over if the code
> you are checking
> > overrides __getattr__ to always provide a result.
>
> [snip exceptions, etc.]
>
> > This is really my first attempt to use pychecker so if it's
> not supposed to
> > understand this kind of voodoo then that's ok. But I
> thought I'd mention
> > it. (Attached are two files of code that demonstrates the error)
>
> What pychecker can find may be more limited, but it still shouldn't
> raise exceptions. I'll try to take a look at it sometime.
>
> You can try the CVS version. It has a few more features and
> bug fixes,
> but I don't recall if this bug is fixed or not.
>
> > Apart from this, it seems to be a really useful tool - Kudos to all
> > involved.
>
> Thanks.
>
> Neal
>

On Tue, May 27, 2003 at 11:47:00AM +0100, Murray Steele wrote:
>
> PyChecker (I'm using 0.8.12) seems to fall over if the code you are checking
> overrides __getattr__ to always provide a result.
[snip exceptions, etc.]
> This is really my first attempt to use pychecker so if it's not supposed to
> understand this kind of voodoo then that's ok. But I thought I'd mention
> it. (Attached are two files of code that demonstrates the error)
What pychecker can find may be more limited, but it still shouldn't
raise exceptions. I'll try to take a look at it sometime.
You can try the CVS version. It has a few more features and bug fixes,
but I don't recall if this bug is fixed or not.
> Apart from this, it seems to be a really useful tool - Kudos to all
> involved.
Thanks.
Neal

FREE PPV Movies on CABLE! Don't Pay Again!
Think about the $1000's you will save in Free Tv for
only $45.
Is there a catch? No. The only factor is that you need
digital cable. If you do not have it then simply upgrade & you'll be
saving $100's a month in Free events & Movies!
*Bonus: Get a Free cell/cordless Phone Shield/Booster
with your order! A $20 value FREE with
order.
ACT NOW !!!
Click Here as offer expires soon-->
http://www.b2nmghjt.com/xcart/customer/product.php?productid=3D16144&partn=
er=3Daffil10&r=3Dneverpay1
""OPT-OUT"" system in compliance with state laws. If
you wish to
"OPT-OUT" from this mailing as well as the lists of
thousands of other email
providers please visit http://www.b2nmghjt.com/1/
3
f qksvrqv pvb agd vve epsnnw
ixsbg q ooyftbb n qbxicorhhmp

<html>
<head>
<title></title>
</head>
<body bgcolor="#00FFFF">
<p><b><font face="Arial" color="#000080" size="2">### Free - Underground secrets
to wealth on the Web ###<br>
<br>
</font></b><font face="Arial" color="#000080" size="2">Greetings!<br>
<br>
Would you like to see your bank account choked with<br>
$5 bills every day?<br>
<br>
Well there is a way, and we will show you exactly<br>
how to do it!<br>
<br>
I think you already know that Classified ads, Opt-in Lists,<br>
FFAs, Search Engines, Link Exchanges, Start-page<br>
programs, Lead-clubs, and Surf4hits programs don't<br>
work at all! So, isn't it time you found out the hush-hush<br>
secrets of the one thing - bulk mail - that does?<br>
<br>
Get your Free copy of Untold Secrets to Wealth on the Web today!<br>
<br>
</font><font face="Arial">
Click here: <i><b><a href="http://wf28money.tripod.com">http://wf28money.tripod.com</a>.</b></i><br&gt;
CAUTION: Once you start reading it, you won't be able to stop!</font><font face="Arial" color="#000080" size="2"><br>
<br>
<br>
Best regards,<br>
Cindy<br>
<br>
<font face="Arial"><b><a href="mailto:mark9und@...?subject=REMOVE">For easy
Removal just click here</a> or send an email to <a href="mailto:mark9und@...?subject=remove">mark9und@...</a>
with remove in the subject</b></font></font></p>
</body>
</html>

With the current economic climate, you could certainly use
some EXTRA beer money at the end of the week!
Did you know that your current financer is probably ripping you
off? I've seen this happen to so many of my clients, and after
refinancing their loan they have been blown out of their chair!
http://mortage-world.com/3/index.asp?RefID=198478
Read THIS:
"David, Since we refinanced i'm saving thousands
of dollars a year. I was getting hurt so badly, its like an
enormous weight has been taken off my shoulders! THANK YOU!"
Now please ask yourself this..
If I could spend 60 seconds filling out this quick assessment
form, and have someone contact me to save me THOUSANDS of
dollars compared to my existing mortgage, would I do it?
Well, Would YOU?
http://mortage-world.com/3/index.asp?RefID=19847
Your individual applicatino gets put through a series of
systems, and you are delegated the CHEAPEST rate out of
an astonishing 1700 lenders deals, based on your loan!
The best part is its totally free, and theres no obligation.
If only offers this good came in your inbox more often!
http://mortage-world.com/3/index.asp?RefID=198478
Mark Downs,
Mortgage Choice Expert
ps.
Sorry if this email caused you inconvenience.
to stop me sending you more please go here.
http://mortage-world.com/auto/index.htm

You are receiving this email because you are believed to be a music lover, audiophile, musician, or to be a professional in the video or music business. If you wish to be removed from our email list, send an email to unsubscribe@...
In our continued effort to help educate and demystify audio cables, regardless if you are an audiophile, home theater specialist, custom installer or hobbyist, Music Interface Technologies (MIT) has published this informative newsletter. This newsletter will endeavor to bring you new and useful information resources.
Subjects will encompass not only the applied sciences of audio cable, but will also deal with systems engineering tips, and most importantly, how to choose the proper cables for any audio interfacing application, thereby saving you time and money.
Future newsletter topics will include-- audio, video, music instrument, as well as cables for pro applications such as microphone cables.
Simply go to one of the URLs listed below and you will access easy-to-understand information regarding cable design, applied sciences, application information, and performance specifications.
For a greater understanding of the science of cables, go to http://mitcables.com/technology. The technical and white papers located here give in-depth explanations about the inner workings of cable and of the technology behind MIT products.
Look at http://www.audiocables.net for brief tutorials, including helpful overviews to teach you all you really need to know about speaker and audio cables and how to hook them up to your equipment, fast.
Musicians and/or Pro users: try http://www.guitarcables.net for state-of-the-art musical instrument cables. For the best in Professional level microphone cables, go to: http://www.microphonecables.com. Discover the secrets of leading recording artists and filmmakers and make them yours!
Go to http://www.usedcable.net for huge savings on MIT audio and video cables.
Brought to you by the people at MIT, Music Interface Technologies, makers of "More Than Just Cable"(TM)
We hope this newsletter will be of use to you. If not, please unsubscribe by sending an email to unsubscribe@...

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details