472,954 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 software developers and data experts.

Is Python Mac Centric???

While trying to learn more about Python's standard modules, I noticed
that there are *a lot* of Mac only modules... more so than Unix and
Windows specific modules combined. Is there a reason for this? I am
familiar with the Windows extensions by Mr. Hammond and wonder if
they'll ever become apart of the official Python distribution. It looks
as if something similar already exists for Macs with all these Mac only
modules. Why is this?

Also, I've noticed that OSX 10.3 comes with Python 2.3 installed, but
that Windows XP does not. Python installation is much more cumbersome on
Windows. The user has to dl Python and then Mr. Hammond's extensions to
get up to speed with the new Macs out of the box. Does Python play
favorites? I think it would have a much larger user base if Windows user
got what mac users get.

Could someone explain this to me? I don't mean this to start a platform
war as I'm really agnostic on the matter. Just curious.

Thanks!!!

Jul 18 '05 #1
8 2084
Apple decided they wanted to include Python in 10.3, and the Python
community was thrilled.

There are also a couple of people who are working very hard on
Mac-specific modules for Python. I don't know why they're included in
the core while pythonwin is not--is it just historical coincidence? A
license difficulty? Change in attitudes? However, I don't view the
pythonwin download as a big hassle.

Python could probably be included in the next version of Windows
if Bill Gates decided he wanted to. But I don't think he's called Guido
up yet.

Jeff

Jul 18 '05 #2

Jeff> Python could probably be included in the next version of Windows
Jeff> if Bill Gates decided he wanted to. But I don't think he's called
Jeff> Guido up yet.

I believe the Python license gives Bill the option of including Python
without Guido's permission. ;-)

Skip

Jul 18 '05 #3
Also, I've noticed that OSX 10.3 comes with Python 2.3 installed,
Tim> That was Apple's decision, not "ours".
but that Windows XP does not.


Tim> And that's Microsoft's decision, not "ours". We can't tell OS
Tim> vendors what to ship, and all OS vendors are equally free to
Tim> redistribute Python (the Python license extends that right to
Tim> everyone who wants it).

While Microsoft doesn't bundle Python with Windows, there are one or two PC
makers who add Python to their Windows boxes (HP comes to mind - the
practice appears to have originated at Compaq before HP acquired it). I
think that's mostly to support their extra admin tools, not to encourage all
their customers to start writing software.

Skip

Jul 18 '05 #4

"hokieghal99" <ho********@hotmail.com> wrote in message
news:bs**********@solaris.cc.vt.edu...
Also, I've noticed that OSX 10.3 comes with Python 2.3 installed, but
that Windows XP does not.


My new HP Pavilion XP came with Python 2.2.1 loaded for use by HP's
utilities. However, their docs say nothing about it and it was not
completely installed in that there were no file associations for .py.
That's fine since I will add 2.3.3 soon and leave HP's install alone for
its use.

Terry J. Reedy
Jul 18 '05 #5
hokieghal99 fed this fish to the penguins on Tuesday 30 December 2003
08:23 am:
familiar with the Windows extensions by Mr. Hammond and wonder if
they'll ever become apart of the official Python distribution. It
They're already "apart from"; whether they'll become "a part of" is
another question.
looks as if something similar already exists for Macs with all these
Mac only modules. Why is this?
Not really. I don't think the Mac modules are accessing down to the
core Mac programming interface, they are more utilities.

I think shutils duplicates a lot of the macostools package. The macfs
package seems to exist mainly to present standard file requesters --
probably because there was (still is?) no normal command-line interface
on the Mac; before TKinter became a standard part of the Python install
(back in the 1.5 days) the Windows/Linux/Unix/Amiga/etc. ports all had
access to a command line and didn't need graphical popups to ask for
stuff like files -- the Mac had no such option. (I forget if it was
someone at SLAC or LLNL who produced an AREXX library for such pop-ups,
and since Irmen was kind enough to fit a REXX port module into Amiga
Python, one could do the graphical requests via a REXX linkage <G>).

macfs probably still exists because it would be too painful to remove
it.

Besides, there ARE Windows specific modules: msvcrt and _winreg
Also, I've noticed that OSX 10.3 comes with Python 2.3 installed, but
that Windows XP does not. Python installation is much more cumbersome
on Windows. The user has to dl Python and then Mr. Hammond's
extensions to get up to speed with the new Macs out of the box. Does
Python play favorites? I think it would have a much larger user base
if Windows user got what mac users get.
So complain to Bill Gates. Mac OSX is a Unix-variant OS; the core that
Apple started with likely included lots of such "additional" stuff. The
Python developers have no control over what get included with an OS
release. (Note: if you download from ActiveState, I think you can get
Python and the extensions in one installer, along with the PythonWin
IDE).
-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Bestiaria Home Page: http://www.beastie.dm.net/ <
Home Page: http://www.dm.net/~wulfraed/ <


Jul 18 '05 #6

On 30 dec 2003, at 21:41, Dennis Lee Bieber wrote:
looks as if something similar already exists for Macs with all these
Mac only modules. Why is this?

Not really. I don't think the Mac modules are accessing down
to the
core Mac programming interface, they are more utilities.


They are wrappers for a large part of the MacOS API's. And they are
actively maintained.

Ronald
Jul 18 '05 #7
Jeff Epler wrote:
There are also a couple of people who are working very hard on
Mac-specific modules for Python. I don't know why they're included in
the core while pythonwin is not--is it just historical coincidence? A
license difficulty? Change in attitudes?


AFAIR, the Mac parts were included on request of Jack Jansen, who
was looking for a "permanent home" for his code, with CVS, bug tracking,
integrated releases, and all that. Guido van Rossum agreed, as it would
make Jack's life simpler.

I personally was shocked when I saw just *how* big the code base was,
but then accepted it, as much of it is for OS9 and older, and the OSX
stuff is more and more getting folded into the standard libraries
(where applicable); OS9 support will be dropped for Python 2.4.

Apart from Tim's analysis of coding styles, I think PythonWin would
become integrated if Mark Hammond requested that. Anybody else
requesting it would have no effect; and, as Tim said, Mark is unlikely
to request it because he doesn't want to wait a year for the next
Python release just to release the next version of PythonWin.

Regards,
Martin

Jul 18 '05 #8
"hokieghal99" <ho********@hotmail.com> wrote in message
news:bs**********@solaris.cc.vt.edu...
Python installation is much more cumbersome on
Windows. The user has to dl Python and then Mr. Hammond's extensions to
get up to speed with the new Macs out of the box.


Or install the ActiveState distro, which has pythonwin pre-installed. One
install and off you go.

To be honest, too, I'm not sure how useful the pythonwin extensions are for
new Python users -- if you're not interested in banging around with the
Windows API, then base Python has all you need. Although I do very much like
the pythonwin IDE.

James
Jul 18 '05 #9

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

Similar topics

0
by: Irmen de Jong | last post by:
QOTW: "What can I do with Python that I can't do with C#? You can go home on time at the end of the day." -- Daniel Klein "Python lends itself to playing with it and to discussing the merits of...
50
by: Edward K. Ream | last post by:
I would like to say a few (actually more than a few) words here about some recent discoveries I have made concerning the interaction of Leo and Python. If you don't want to hear an inventor enthuse...
0
by: Emile van Sebille | last post by:
QOTW: "Name me any product (except maybe TeX) that was mature at version 1.0. I remember using Visual Basic at v1.0 and it definitely wasn't mature..." -- Alan Gauld on the maturity of IDLE ...
0
by: Carlos Ribeiro | last post by:
Hi, A friend of mine passed me some links about a great concept (not new in fact, only new to me): -- http://www.jpaulmorrison.com/fbp/ -- http://c2.com/cgi/wiki?FlowBasedProgramming I...
17
by: Paul Rubin | last post by:
Dumb question from a Windows ignoramus: I find myself needing to write a Python app (call it myapp.py) that uses tkinter, which as it happens has to be used under (ugh) Windows. That's Windows...
118
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely...
16
by: PyDenis | last post by:
Today, I found strange error while using py2exe: 1. I wrote simple program and save as 1.py: import win32ui import win32con win32ui.MessageBox('Test messageBox.' , 'Test', win32con.MB_OK |...
28
by: H J van Rooyen | last post by:
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy...
25
by: Lennart Benschop | last post by:
Python has had the Decimal data type for some time now. The Decimal data type is ideal for financial calculations. Using this data type would be more intuitive to computer novices than float as its...
18
by: Jens | last post by:
I'm starting a project in data mining, and I'm considering Python and Java as possible platforms. I'm conserned by performance. Most benchmarks report that Java is about 10-15 times faster than...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.