Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What the heck has happened to PythonWin???

1 view
Skip to first unread message

Thomas Weholt

unread,
Oct 28, 2002, 1:41:57 PM10/28/02
to
Download Python 2.2.2 for windows, latest winall from Mark Hammond followed
a few seconds later. Installed it all, fired up PythonWin and tried to run a
project I'm working on. The darn debugger ( or a module related to the
debugger ) pops up every time I hit F5 and I cannot get anything to run
properly. This is very annoying. I've been using PythonWin for a long time
and hope I don't have start looking elsewhere for a good editor for windows.
As the python-community is way to clever ( Mark H. in particular ) to have
made PythonWin so annoying on purpose I guess there's something wrong with
me.

Any clues on what I'm doing wrong ??

Thomas


Mark Hammond

unread,
Oct 28, 2002, 5:01:44 PM10/28/02
to

Can you be more specific? I press F5 and my script runs, just like as
before. I *wish* I had time to play on Pythonwin, but it hasn't been
touched for ages (however, if you want an excellent spam detection tool
for Outlook 2000...<wink>)

Mark.

Thomas Weholt

unread,
Oct 28, 2002, 5:54:31 PM10/28/02
to
When I press F5 a window containing the source-code for the module
debugger.py pops up, with what I guess is a break-point on the line def
_doexec(cmd, globals, locals), line no 923. If I switch back to my script
and press F5 once more the same window ( debugger.py ) takes focus, but my
script has been run in the background, putting output into the Interactive
Window as usual. Haven't touched any options, settings or nothing. I'll
hopefully switch back to using Linux as my development platform one of these
days, but I'll still do alot of coding using PythonWin on windows. It would
be great if it worked like before. Any hint, tip or clue you could give me
would be highly appreciated.

And any information about a spamkiller for Outlook would also be most
interesting. :-)

Best regards,
Thomas Weholt

"Mark Hammond" <mham...@skippinet.com.au> wrote in message
news:ctiv9.10864$jE1....@news-server.bigpond.net.au...

Bob X

unread,
Oct 28, 2002, 6:49:41 PM10/28/02
to
"Mark Hammond" <mham...@skippinet.com.au> wrote in message
news:ctiv9.10864$jE1....@news-server.bigpond.net.au...
<snip>

> before. I *wish* I had time to play on Pythonwin, but it hasn't been
> touched for ages (however, if you want an excellent spam detection tool
> for Outlook 2000...<wink>)
>
> Mark.
>
Something like this: http://p-nand-q.com/pynospam.htm

or your own? <wink>

Bob


maxm

unread,
Oct 29, 2002, 2:35:45 AM10/29/02
to
Thomas Weholt wrote:
> When I press F5 a window containing the source-code for the module
> debugger.py pops up,

I get exactly the same behaviour.

I have just started to use CTRL+r ENTER instead ... I really should have
filed a report, but I just assumed that it was a change of feature.

regards Max M

Thomas Weholt

unread,
Oct 29, 2002, 6:26:20 AM10/29/02
to
Good to see that more than me are experiencing this. Hope there's a fix or
something available soon.

Thomas

"maxm" <ma...@mxm.dk> wrote in message
news:lTqv9.192299$Qk5.6...@news010.worldonline.dk...

Henrik Weber

unread,
Oct 29, 2002, 7:30:06 AM10/29/02
to
"Thomas Weholt" <20...@weholt.org> wrote in message news:<Hejv9.842$0A6....@news4.ulv.nextra.no>...

> When I press F5 a window containing the source-code for the module
> debugger.py pops up, with what I guess is a break-point on the line def
> _doexec(cmd, globals, locals), line no 923. If I switch back to my script
> and press F5 once more the same window ( debugger.py ) takes focus, but my
> script has been run in the background, putting output into the Interactive
> Window as usual. Haven't touched any options, settings or nothing. I'll
> hopefully switch back to using Linux as my development platform one of these
> days, but I'll still do alot of coding using PythonWin on windows. It would
> be great if it worked like before. Any hint, tip or clue you could give me
> would be highly appreciated.
>
> And any information about a spamkiller for Outlook would also be most
> interesting. :-)
>
> Best regards,
> Thomas Weholt
>
The same happens to me. If you press F11 instead of F5 when
debugger.py is displayed you arrive at the first line of your code.
From there you can debug as usual. Of course it's still annoying.

-- Henrik Weber

Skip Montanaro

unread,
Oct 29, 2002, 11:28:10 AM10/29/02
to

Thomas> And any information about a spamkiller for Outlook would also be
Thomas> most interesting. :-)

http://spambayes.sf.net/

--
Skip Montanaro - sk...@pobox.com
http://www.mojam.com/
http://www.musi-cal.com/

Robert

unread,
Oct 31, 2002, 9:01:18 AM10/31/02
to
Is there a fix for this problem meanwhile?

Robert


"Thomas Weholt" <20...@weholt.org> wrote in message news:<Hejv9.842$0A6....@news4.ulv.nextra.no>...

Nomad

unread,
Oct 31, 2002, 3:05:35 PM10/31/02
to
On Mon, 28 Oct 2002 22:54:31 GMT, "Thomas Weholt" <20...@weholt.org>
wrote:

>
>And any information about a spamkiller for Outlook would also be most
>interesting. :-)
>
>Best regards,
>Thomas Weholt
>

OT:

The best spamkiller for Outlook that I know of is called
uninstall.exe. ;-)


--
Nomad

Wondering of the vast emptyness of the 'net
in search of something cool.

Mark Hammond

unread,
Oct 31, 2002, 5:29:51 PM10/31/02
to
Bob X wrote:
> "Mark Hammond" <mham...@skippinet.com.au> wrote in message
> news:ctiv9.10864$jE1....@news-server.bigpond.net.au...
> <snip>
>
>>before. I *wish* I had time to play on Pythonwin, but it hasn't been
>>touched for ages (however, if you want an excellent spam detection tool
>>for Outlook 2000...<wink>)
>
> Something like this: http://p-nand-q.com/pynospam.htm
>
> or your own? <wink>

Well, not mine <wink>. As Skip posted, the general project is
spambayes.sourceforge.net. I've put together a cute outlook addin. The
bayesian filter, plus Outlooks integration facilities is providing an
*incredibly* effective Spam filter with very tight integration and
incremental training capabilities. The bayesian nature means that it
doesn't use pre-determined heuristics, so tends to catch even the most
subtle spam.

There is no binary distribution yet for good reason - significant,
incompatible changes are still being made. But if you are brave enough,
all the source code is there (it is all pure-Python once you have win32all)

It-works-for-four-people-that-I-know-of <wink>

Mark.

Bjorn Pettersen

unread,
Oct 31, 2002, 5:36:20 PM10/31/02
to
> From: Mark Hammond [mailto:mham...@skippinet.com.au]
>
[snip]

> Well, not mine <wink>. As Skip posted, the general project is
> spambayes.sourceforge.net. I've put together a cute outlook
> addin. The
> bayesian filter, plus Outlooks integration facilities is providing an
> *incredibly* effective Spam filter with very tight integration and
> incremental training capabilities. The bayesian nature means that it
> doesn't use pre-determined heuristics, so tends to catch even
> the most
> subtle spam.
>
> There is no binary distribution yet for good reason - significant,
> incompatible changes are still being made. But if you are
> brave enough,
> all the source code is there (it is all pure-Python once you
> have win32all)
>
> It-works-for-four-people-that-I-know-of <wink>

I'd be happy to be a guiniea pig :-)

-- bjorn

Mark Hammond

unread,
Oct 31, 2002, 6:33:03 PM10/31/02
to
Thomas Weholt wrote:
> When I press F5 a window containing the source-code for the module
> debugger.py pops up, with what I guess is a break-point on the line def
> _doexec(cmd, globals, locals), line no 923. If I switch back to my script
> and press F5 once more the same window ( debugger.py ) takes focus, but my
> script has been run in the background, putting output into the Interactive
> Window as usual. Haven't touched any options, settings or nothing. I'll
> hopefully switch back to using Linux as my development platform one of these
> days, but I'll still do alot of coding using PythonWin on windows. It would
> be great if it worked like before. Any hint, tip or clue you could give me
> would be highly appreciated.

I'm pretty sure this was due to Python 2.2 correcting a problem in an
earlier version of the debugger. This patch seems to work fine for me:

Index: debugger.py
===================================================================
RCS file: /home/cvsroot/PyWin32/Pythonwin/pywin/debugger/debugger.py,v
retrieving revision 1.9
diff -r1.9 debugger.py
582c582,585
< _doexec(cmd, globals, locals)
---
> if sys.version_info > (2,2):
> exec cmd in globals, locals
> else:
> _doexec(cmd, globals,
locals)
924c927
< exec cmd in globals, locals
\ No newline at end of file
---
> exec cmd in globals, locals

Unfortunately, this file in indented using tabs, so apply carefully. A
simpler hack would be to simply change that:

_doexec(cmd, globals, locals)
to
exec cmd in globals, locals

Mark.

Michael Hudson

unread,
Nov 4, 2002, 8:48:51 AM11/4/02
to
Mark Hammond <mham...@skippinet.com.au> writes:

> Bob X wrote:
> > "Mark Hammond" <mham...@skippinet.com.au> wrote in message
> > news:ctiv9.10864$jE1....@news-server.bigpond.net.au...
> > <snip>
> >
> >>before. I *wish* I had time to play on Pythonwin, but it hasn't been
> >>touched for ages (however, if you want an excellent spam detection tool
> >>for Outlook 2000...<wink>)
> > Something like this: http://p-nand-q.com/pynospam.htm
> > or your own? <wink>
>
> Well, not mine <wink>. As Skip posted, the general project is
> spambayes.sourceforge.net. I've put together a cute outlook addin.
> The bayesian filter,

Which, of course, isn't Bayesian...

> plus Outlooks integration facilities is providing
> an *incredibly* effective Spam filter with very tight integration and
> incremental training capabilities. The bayesian nature means that it
> doesn't use pre-determined heuristics, so tends to catch even the most
> subtle spam.

Cheers,
M.

--
ARTHUR: Yes. It was on display in the bottom of a locked filing
cabinet stuck in a disused lavatory with a sign on the door
saying "Beware of the Leopard".
-- The Hitch-Hikers Guide to the Galaxy, Episode 1

Tim Peters

unread,
Nov 4, 2002, 10:38:48 AM11/4/02
to
[Mark Hammond]

> As Skip posted, the general project is spambayes.sourceforge.net.
> I've put together a cute outlook addin. The bayesian filter,

[Michael Hudson]


> Which, of course, isn't Bayesian...

This may be a case where popular practice changes the meaning of what used
to be a perfectly good tech word. There *is* a Bayesian probability
adjustment in this project, at the level of individual words. The combining
scheme isn't Bayesian at all, although any spam filter that works by looking
at words seems doomed to be called Bayesian now <wink/sigh>.


0 new messages