Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > More stuff added to ch 2 of my programming intro

Reply
Thread Tools

More stuff added to ch 2 of my programming intro

 
 
geremy condra
Guest
Posts: n/a
 
      12-17-2009
On Thu, Dec 17, 2009 at 2:25 AM, Mensanator <> wrote:
> On Dec 16, 8:45�pm, Ned Deily <n...@acm.org> wrote:
>> In article
>> <88bab2c0-d27c-4081-a703-26b353b9e...@9g2000yqa.googlegroups.com>,
>>
>> �Mensanator <mensana...@aol.com> wrote:
>> > Oh, and about Chapter 1.

>>
>> > If you're going to use version 3.1.1 as your standard, shouldn't
>> > you also point out that 3.1.1 is NOT bundled with Mac OS X?

>>
>> > How about devoting a section on downloading the source files
>> > and compiling it on a Mac?

>>
>> Why would you do that?

>
> Oh, I don't know, maybe because I'm thinking about
> buying one and seeing 2.3, 2.4 and 2.5 directories
> on the model in the store made me wary.
>
>>
>> http://www.python.org/download/relea...thon-3.1.1.dmg

>
> This tells me nothing.
>
>>
>> or (for MacPorts fans):
>>
>> $ sudo port install python31

>
>
> And since I haven't got one, this also tells me nothing.


He just told you what it meant, as if it weren't already obvious.

Geremy Condra
 
Reply With Quote
 
 
 
 
Ned Deily
Guest
Posts: n/a
 
      12-17-2009
In article
<183af5d2-e157-4cd6-bec6->,
Mensanator <> wrote:
> Oh, I don't know, maybe because I'm thinking about
> buying one and seeing 2.3, 2.4 and 2.5 directories
> on the model in the store made me wary.


That's odd since, AFAIK, Apple has never released an OS X with Python
2.4.

Current Apple systems ship with OS X 10.6, aka Snow Leopard. 10.6
includes a Python 2.6.1 (64-bit/32-bit) and a Python 2.5.4 (32-bit
only). The previous release, 10.5, shipped with 2.5 and 2.3. But, not
to worry, if you need other versions, you can download OS X installers
from python.org.

> > http://www.python.org/download/relea...n.org/ftp/pyth
> > on/3.1.1/python-3.1.1.dmg

>
> This tells me nothing.


That's the disk image for the OS X Python 3.1.1 installer. Official
binary installers for OS X are provided on python.org for every final
Python release.

> > or (for MacPorts fans):
> >
> > $ sudo port install python31

>
>
> And since I haven't got one, this also tells me nothing.


http://www.macports.org/

"The MacPorts Project is an open-source community initiative to design
an easy-to-use system for compiling, installing, and upgrading either
command-line, X11 or Aqua based open-source software on the Mac OS X
operating system."

--
Ned Deily,


 
Reply With Quote
 
 
 
 
Benjamin Kaplan
Guest
Posts: n/a
 
      12-17-2009
On Thu, Dec 17, 2009 at 5:33 AM, Ned Deily <> wrote:
>
>> > or (for MacPorts fans):
>> >
>> > $ sudo port install python31

>>
>>
>> And since I haven't got one, this also tells me nothing.

>
> http://www.macports.org/
>
> "The MacPorts Project is an open-source community initiative to design
> an easy-to-use system for compiling, installing, and upgrading either
> command-line, X11 or Aqua based open-source software on the Mac OS X
> operating system."


Description sans marketing fluff: It's a Mac package manager. It's
basically the same as Gentoo's portage if you've ever used that. It
downloads source tarballs and patches and then compiles them locally.
There are built-in lists of "variants", basically sets of configure
args, to compile each package.
 
Reply With Quote
 
Mensanator
Guest
Posts: n/a
 
      12-17-2009
On Dec 17, 4:33*am, Ned Deily <n...@acm.org> wrote:
> In article
> <183af5d2-e157-4cd6-bec6-8997809e1...@d21g2000yqn.googlegroups.com>,
>
> *Mensanator <mensana...@aol.com> wrote:
> > Oh, I don't know, maybe because I'm thinking about
> > buying one and seeing 2.3, 2.4 and 2.5 directories
> > on the model in the store made me wary.

>
> That's odd since, AFAIK, Apple has never released an OS X with Python
> 2.4.


Hmm...I was poking around in the finder on a display of new
iMacs at Best Buy last saturday. I searched for "python" and
it took me to a directory listing with three items:
Python 2.3
Python 2.4
Python 2.5

It's possible that Python 2.6 is located somewhere else. I assume
that Snow Leopard was installed, but I didn't actually check that.

>
> Current Apple systems ship with OS X 10.6, aka Snow Leopard. * 10.6
> includes a Python 2.6.1 (64-bit/32-bit) and a Python 2.5.4 (32-bit
> only). *The previous release, 10.5, shipped with 2.5 and 2.3. *But, not
> to worry, if you need other versions, you can download OS X installers
> from python.org.
>
> > >http://www.python.org/download/relea...w.python.org/f....
> > > on/3.1.1/python-3.1.1.dmg

>
> > This tells me nothing.

>
> That's the disk image for the OS X Python 3.1.1 installer. *


But it doesn't say whether that disk image is compatible with
Snow Leopard and I don't take such things for granted.

> Official
> binary installers for OS X are provided on python.org for every final
> Python release.
>
> > > or (for MacPorts fans):

>
> > > $ sudo port install python31

>
> > And since I haven't got one, this also tells me nothing.

>
> http://www.macports.org/
>
> "The MacPorts Project is an open-source community initiative to design
> an easy-to-use system for compiling, installing, and upgrading either
> command-line, X11 or Aqua based open-source software on the Mac OS X
> operating system."


Ok, now I know. Thanks for the information.

>
> --
> *Ned Deily,
> *n...@acm.org


 
Reply With Quote
 
Mensanator
Guest
Posts: n/a
 
      12-17-2009
On Dec 17, 10:12*am, Benjamin Kaplan <benjamin.kap...@case.edu> wrote:
> On Thu, Dec 17, 2009 at 5:33 AM, Ned Deily <n...@acm.org> wrote:
>
> >> > or (for MacPorts fans):

>
> >> > $ sudo port install python31

>
> >> And since I haven't got one, this also tells me nothing.

>
> >http://www.macports.org/

>
> > "The MacPorts Project is an open-source community initiative to design
> > an easy-to-use system for compiling, installing, and upgrading either
> > command-line, X11 or Aqua based open-source software on the Mac OS X
> > operating system."

>
> Description sans marketing fluff: It's a Mac package manager. It's
> basically the same as Gentoo's portage if you've ever used that. It
> downloads source tarballs and patches and then compiles them locally.
> There are built-in lists of "variants", basically sets of configure
> args, to compile each package.


That's the kind of thing I want to hear.

Looks like I can go ahead and get a Mac and not worry about getting
3.1.1 installed.

Thanks.
 
Reply With Quote
 
Mensanator
Guest
Posts: n/a
 
      12-17-2009
On Dec 17, 1:40*am, geremy condra <debat...@gmail.com> wrote:
> On Thu, Dec 17, 2009 at 2:25 AM, Mensanator <mensana...@aol.com> wrote:
> > On Dec 16, 8:45 pm, Ned Deily <n...@acm.org> wrote:
> >> In article
> >> <88bab2c0-d27c-4081-a703-26b353b9e...@9g2000yqa.googlegroups.com>,

>
> >> Mensanator <mensana...@aol.com> wrote:
> >> > Oh, and about Chapter 1.

>
> >> > If you're going to use version 3.1.1 as your standard, shouldn't
> >> > you also point out that 3.1.1 is NOT bundled with Mac OS X?

>
> >> > How about devoting a section on downloading the source files
> >> > and compiling it on a Mac?

>
> >> Why would you do that?

>
> > Oh, I don't know, maybe because I'm thinking about
> > buying one and seeing 2.3, 2.4 and 2.5 directories
> > on the model in the store made me wary.

>
> >>http://www.python.org/download/relea...w.python.org/f....

>
> > This tells me nothing.

>
> >> or (for MacPorts fans):

>
> >> $ sudo port install python31

>
> > And since I haven't got one, this also tells me nothing.

>
> He just told you what it meant, as if it weren't already obvious.


Why would it be obvious? I use a PC, for which
$ sudo port install python31
is meaningless. Is MacPorts bundled with Snow Leopard?

Or do I have to do this first:

MacPorts version 1.8.1 is available in various formats for download
and installation (note, if you are upgrading your Mac OS X to a new
major release, see the migration info page):

“dmg” disk images for Snow Leopard, Leopard and Tiger as a legacy
platform, containing pkg installers for use with the Mac OS X
Installer. By far the simplest installation procedure that most users
should follow after meeting the requirements listed below.

In source form as either a tar.bz2 package or a tar.gz one for manual
compilation, if you intend to customize your installation in any way.

SVN checkout of the unpackaged sources, if you wish to follow MacPorts
development.

The selfupdate target of the port(1) command, for users who already
have MacPorts installed and wish to upgrade to a newer release.

Checksums for our packaged downloads are contained in the
corresponding checksums file.

Please note that in order to install and run MacPorts on Mac OS X,
your system must have installations of the following components:

Apple's Xcode Developer Tools (version 3.2.1 or later for Snow
Leopard, 3.1.4 or later for Leopard, or 2.5 for Tiger), found at the
Apple Developer Connection site or on your Mac OS X installation CDs/
DVD.

Ensure that the optional components for command line development are
installed ("Unix Development" in the Xcode 3.x installer).

The X11 windowing environment (A.K.A. “X11 User”) for ports that
depend on the functionality it provides to run.

The “X11 User” package is an optional installation on your system CDs/
DVD for Tiger, enabled through the “Customize” button of the
installer, whereas it is included by default on Leopard and Snow
Leopard.

You can use the xorg-server port instead of Apple's X11.app if you
wish.



>
> Geremy Condra


 
Reply With Quote
 
Ned Deily
Guest
Posts: n/a
 
      12-18-2009
In article
<b0b60848-9a66-4f84-ab89->,
Mensanator <> wrote:
> > That's the disk image for the OS X Python 3.1.1 installer. *

>
> But it doesn't say whether that disk image is compatible with
> Snow Leopard and I don't take such things for granted.


That's a good point. There should be stated there somewhere about which
operating systems are supported. For the record, 3.1.1 has been tested
on 10.4, 10.5, and 10.6 and should work on 10.3.9.

--
Ned Deily,


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming intro book ch1 and ch2 (Windows/Python 3) - Request ForComments Alf P. Steinbach Python 22 12-20-2009 01:50 PM
Announcing Wing IDE 101 for teaching intro programming courses Wingware Python 0 08-03-2007 07:28 PM
Ruby-based intro programming course? Tom Payne Ruby 4 05-05-2007 05:49 PM
Intro to concurrent programming with python Boogie El Aceitoso Python 1 03-05-2004 05:36 PM
Looking for an intro C programming book? TechBookReport C Programming 7 02-22-2004 11:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57