473,379 Members | 1,216 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,379 software developers and data experts.

PyChecker work with Python 2.3?

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
Jul 18 '05 #1
16 1940

Al> The pychecker site says that pychecker works with versions
Al> 1.5 through 2.2. Any reason to expect that 2.3 breaks it?
Al> Anyone tried it to see?

I run Python CVS as my normal Python on my laptop. I've never had a problem
with PyChecker.

Skip

Jul 18 '05 #2
ac*****@easystreet.com wrote:
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?


Why don't *you*?

-- Gerhard

Jul 18 '05 #3
Gerhard Häring wrote:

ac*****@easystreet.com wrote:
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?


Why don't *you*?


Smart people learn from their mistakes. Very smart people
learn from other people's mistakes.
Al
Jul 18 '05 #4
ac*****@easystreet.com wrote:
Gerhard Häring wrote:
ac*****@easystreet.com wrote:
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?


Why don't *you*?


Smart people learn from their mistakes. Very smart people
learn from other people's mistakes.


If you think you are so smart, why don't you use your time more
economically then and just try it out?

-- Gerhard

Jul 18 '05 #5
[Gerhard Häring]
ac*****@easystreet.com wrote:
Gerhard Häring wrote:
ac*****@easystreet.com wrote:

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?

Why don't *you*? Smart people learn from their mistakes. Very smart people
learn from other people's mistakes.

If you think you are so smart, why don't you use your time more economically
then and just try it out?


Come on, guys!

What's so wrong, asking if someone had success or problems with something?
Asserting for oneself that a package `works' may be a bigger undertaking
than one might think of. Quickly trying simple cases is one thing. But
being solid in all conditions is another game. If unit testing is popular
in these days, this is because people feel an urge of being able to answer
such questions, however imperfect unit testing may be.

It looks like time economical, to me, asking to a crowd of interesting
people if someone hit any problem using a package under specified
conditions, compared to trying all alone to ascertain the quality. There is
of course the danger of abusive laziness, but we should be careful and
reserved, before silently assuming that our correspondent is rotten lazy.

--
François Pinard http://www.iro.umontreal.ca/~pinard

Jul 18 '05 #6
ac*****@easystreet.com wrote in message news:<3F***************@easystreet.com>...
Gerhard Häring wrote:

ac*****@easystreet.com wrote:
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?


Why don't *you*?


Smart people learn from their mistakes. Very smart people
learn from other people's mistakes.
Al


I context one can learn anything from second hand mistakes.
There is much more satisfaction in making your own ;)

Michele
Jul 18 '05 #7
Gerhard Häring wrote:


If you think you are so smart, why don't you use your time more
economically then and just try it out?


If I upgrade python to 2.3 I also must upgrade:

ctypes
py2exe
pysqlite
win32all
wxPython

With a dial-up connection that's quite a bit of download time.
Then, if there is a problem, I must roll back:

python
ctypes
py2exe
pysqlite
win32all
wxPython

And hope that everything rolls back ok.

Meanwhile, I've got a reasonably busy application-level
to-do list going.

Better to ask a question than worry about all that, no?
Al
Jul 18 '05 #8
François Pinard wrote:

There is of course the danger of abusive laziness, but we should be
careful and reserved, before silently assuming that our correspondent > is rotten lazy.


I may be rotten and I may be lazy, but rotten lazy no one has ever
called me AFAIK. I post code here whenever I've got anything worth
sharing or finding out if it's not worth sharing. (I should publish
a paper sometime about using Google Groups as a substitute for CVS.)
About a month ago I made some comments about wxHtml and wound up
debugging code for a correspondent by email who wasn't getting it
to work. That was good.

The world has brilliant people and pedestrian people. I'm more
pedestrian. I'll admit that I ask more questions than I answer,
but that helps keep this newsgroup balanced, as there are so many
brilliant people here who answer more questions than they ask. If
it wasn't for people like me, the brilliant ones would be here
answering questions that noboby had asked. Life's like that.
Everyone has a place at the table. First you eat, and then you
get eaten.
Al
Jul 18 '05 #9
Skip Montanaro wrote:
>> If you think you are so smart, why don't you use your time more
>> economically then and just try it out?

al> If I upgrade python to 2.3 I also must upgrade:

al> ctypes
al> py2exe
al> pysqlite
al> win32all
al> wxPython

Just to see if pychecker works?


Just to see if pychecker works for the software for which it matters
to me if pychecker works.
Why not just configure Python with a
different --prefix=... flag? That's assuming you're on a unix-like > system.
I'm not.
If you're on Windows (as it appears you are), Python 2.3 installs in
c:\Python23 by default which shouldn't disturb your earlier Python
installation unless you were tanked the day you installed it and put > it in
c:\Python23.


If I'm on a Windows system, and I am, I am very suspicious of any
claims that it is possible to install and uninstall anything easily
and come out exactly where I was before. About a month ago I noticed
that my jaz drive was working not too well, so I upgraded Iomega's
tools. That broke NT, it wouldn't uninstall, and I spent 3.5 days
trying to fix NT. (This was actually within a week after NT had been
dropped from Microsoft's supported list, and all the MS knowledgebase
articles about NT and NT workstation service packs and patches had
been purged from the MS website). If you work with Windows much, you
learn the downside of promiscuous installing. There's always a risk.
Better to ask twice and install once.
Al
Jul 18 '05 #10
ac*****@easystreet.com writes:
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?


No, but 2.3 has no major language changes, and concentrates on library
improvements, so I'd guess it's likely there are no major problems
running Pychecker.
John
Jul 18 '05 #11


Skip Montanaro wrote:

Al> The pychecker site says that pychecker works with versions
Al> 1.5 through 2.2. Any reason to expect that 2.3 breaks it?
Al> Anyone tried it to see?

I run Python CVS as my normal Python on my laptop. I've never had a problem
with PyChecker.


Based on this encouraging news, I have upgraded all the packages listed
and run pychecker on a program using them all. It looks to work fine.
Speed was not noticeably increased or decreased.

The only change required in my sources is evidently that the csv
module no longer has a parser(); it's a reader(aFile).

About the only noticeably slow part of the program is the part that
read a gzipped csv file. Unzipping and parsing a 170kb gzip file
took about 20 sec with v2.2.3, and takes only about 9 sec with v2.3
(200 MHz machine). So, the speed increase is big where I needed it
most. This is great.
Al
Jul 18 '05 #12

Al> The only change required in my sources is evidently that the csv
Al> module no longer has a parser(); it's a reader(aFile).

Sounds like you were using a different csv file reader/writer, perhaps
Object Craft's. The csv module which is part of 2.3 is a new module in the
core. It has a different interface than Object Craft's csv module. (Note
that the Object Craft folks are the primary developers of the new csv module
as well.)

Skip

Jul 18 '05 #13
Skip Montanaro wrote:

Al> The only change required in my sources is evidently that the csv
Al> module no longer has a parser(); it's a reader(aFile).

Sounds like you were using a different csv file reader/writer,
perhaps Object Craft's. The csv module which is part of 2.3 is a
new module in the core. It has a different interface than Object
Craft's csv module.


I knew that was coming, and I hoped it would be compatible. It
isn't, but it's close enough that I just had to change about 5 lines
and cut out about ten to switch from one API to the other.

I didn't have to change anything else. I guess that I'm still ok
importing generators from the future even though they are no longer
in the future.

This moving from one release to the next is really very nice and easy.
With other tools and languages, you have to wait for all the
third-party vendors to upgrade their packages, then see what works
and what doesn't. All the 3rd party packages for python that I was
relying on under 2.2 were available for 2.3 the day that 2.3 went
final.
Al
Jul 18 '05 #14
ac*****@easystreet.com wrote in message news:<3F***************@easystreet.com>...

The only change required in my sources is evidently that the csv
module no longer has a parser(); it's a reader(aFile).


Python doesn't break version-to-version compatibility like that. You
have to pay lots of money to software vendors to get them to do that
to you.

No, "the" csv module is new in 2.3. Under 2.2 you had been using "a"
3rd party extension, written by Dave Cole. Same name, similar purpose,
different contents.

Another case: the 'optik' 3rd party extension was sanctified as
'optparse'. Different name, mostly same contents.

Hint: before upgrading to a new Python version, check what extensions
you have in your site-packages directory. Read "what's new in Python
m.n". Some of the site-packages you may have trialled and abandoned,
most will need to be upgraded to be compatible with the new Python
version (especially if you are running Windows), and in a few cases
(e.g. csv and optik) you may want to switch to a new module, requiring
changes to your source.
Jul 18 '05 #15

<ac*****@easystreet.com> wrote in message
news:3F***************@easystreet.com...
I didn't have to change anything else. I guess that I'm still ok
importing generators from the future even though they are no longer
in the future.


It is quite intentional that future imports be simply ignored when
'obsolete' and not suddenly make program not run.

tjr
Jul 18 '05 #16
Terry Reedy wrote:

It is quite intentional that future imports be simply ignored when
'obsolete' and not suddenly make program not run.


Don't worry about it. I can find plenty of other ways to have my
programs not run.

Al
Jul 18 '05 #17

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

Similar topics

0
by: Pedro Werneck | last post by:
Hi, I don't know if I should ask this here or on an emacs group/list. If I choose wrong, please forgive me. I am trying to run pychecker on the current buffer on python-mode using the...
1
by: Neal Norwitz | last post by:
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...
10
by: Kylotan | last post by:
Is there a practical way to use Pychecker in Windows? It doesn't work under IDLE. (In fact, it seems to end up breaking everything, and every subsequent statement and expression I execute gets...
12
by: Stephen Ferg | last post by:
I've just spent several very frustrating hours tracking down a bug in one of my programs. The problem was that I was writing text to a file, and when I was done I coded f.close when I should...
4
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
21
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...
1
by: Neal Norwitz | last post by:
Special thanks to Ken Pronovici. He did a lot of work for this release and helped ensure it occurred. Version 0.8.15 of PyChecker is available. It's been over a year since the last release. ...
6
by: Newsfeeds | last post by:
Hello All, Could anyone tell me why this code produces the output it does? noAdjacencies = 2 gridsPerAdj = 3 rows = 4 columns = 5
4
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
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.