The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by edlsoft]

First, The Quick Python Book is the best one I've seen so far on this
topic. It has just the right amount of breadth and depth.

On page 270, under Which compiler?, you refer to Microsoft C. Are
you referring to Visual C++? What is the minimal compiler to get
the job done?, cause I hate to pay more money to Microsoft smilie

Burt Leavenworth
import-bot (20211) [Avatar] Offline
#2
Re: Which compiler?
[Originally posted by daryl harms]

Hi Burt

My co-author (Ken) wrote this chapter. Unfortunately, he is currently in the
process of moving from the Bay area to Madison, Wisconsin and is not set up
online yet. So, I'll start with a response and let him possibly come in later.

> First, The Quick Python Book is the best one I've seen so far on this
> topic. It has just the right amount of breadth and depth.
>
Thanks very much for the above comment.

> On page 270, under Which compiler?, you refer to Microsoft C. Are
> you referring to Visual C++? What is the minimal compiler to get
> the job done?, cause I hate to pay more money to Microsoft smilie
>
> Burt Leavenworth

Yes, I believe Ken is referring to MSVC. It is what the Python executable that
you download is compiled with.

You are not alone in that sentiment (re: Microsoft)and efforts have been made
since this chapter was written to improve things on Windows wrt writing
extensions using GCC. Check out the following message on comp.language.python
from Robert Kern:

http://www.python.org/pipermail/python-list/1999-August/014876.html

In it he refers to the web page he maintains giving up to date info on writing
extensions using GCC and a new target (mingw32):

http://starship.python.net/crew/kernr/mingw32/Notes.html

This seems to alleviate the main issues I believe Ken was referring to when he
wrote that section. However, there are still some possible problems. See:

http://www.python.org/pipermail/python-list/1999-November/021166.html

So, not to put words in Ken's mouth, I think that that if that section was
rewritten today, it could now be less strongly worded. You are still less
likely to have problems going with MSVC, but GCC is a now a reasonable option
in many situations (with the availability of mingw32).

Hope that helps,

Daryl
import-bot (20211) [Avatar] Offline
#3
Re: Which compiler?
[Originally posted by edlsoft]

> Hi Burt
>
> My co-author (Ken) wrote this chapter. Unfortunately, he is currently in the
> process of moving from the Bay area to Madison, Wisconsin and is not set up
> online yet. So, I'll start with a response and let him possibly come in
later.
>
Thanks very much for your suggestion. Following "How to set
up GCC-2.95/mingw32 for Python Extensions", I was able to
embed a simple Python in C example. There is more to
extending and embedding than that, but at least I am launched
and carry on from here.

Thanks again and best of luck with your book.

Burt








Thanks very much for your answer
> > Burt Leavenworth
>
> Yes, I believe Ken is referring to MSVC. It is what the Python executable that
> you download is compiled with.
>
> You are not alone in that sentiment (re: Microsoft)and efforts have been made
> since this chapter was written to improve things on Windows wrt writing
> extensions using GCC. Check out the following message on comp.language.python
> from Robert Kern:
>
> http://www.python.org/pipermail/python-list/1999-August/014876.html
>
> In it he refers to the web page he maintains giving up to date info on writing
> extensions using GCC and a new target (mingw32):
>
> http://starship.python.net/crew/kernr/mingw32/Notes.html
>
> This seems to alleviate the main issues I believe Ken was referring to when he
> wrote that section. However, there are still some possible problems. See:
>
> http://www.python.org/pipermail/python-list/1999-November/021166.html
>
> So, not to put words in Ken's mouth, I think that that if that section was
> rewritten today, it could now be less strongly worded. You are still less
> likely to have problems going with MSVC, but GCC is a now a reasonable option
> in many situations (with the availability of mingw32).
>
> Hope that helps,
>
> Daryl