472,989 Members | 3,054 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,989 software developers and data experts.

python 3.0, pywin32 and scipy

vml
Hello,
I am trying to promote python in my job, my collegue only see matlab
and microsoft scripting language.
I understood that there willl be no backward compatibility between
python 2.x and 3.0, does it means that:

- my script using pywin32 for the COM layer and scipy for the maths
won't work under 3.0
- will we have the equivalent of pywin32 and scipy in python ?

I will be incharge of designing a python module which will be a
'matrix calculator' in our current software. Will it be compatible
with python 3.0 ? I guess no.

What can I answer to my collegue who will say 'Python is changing and
the stuff you are doing now is useless'?

how can I argue against matlab and c# ?

thanks very much

Aug 2 '07 #1
7 4456
vml wrote:
Hello,
I am trying to promote python in my job, my collegue only see matlab
and microsoft scripting language.
I understood that there willl be no backward compatibility between
python 2.x and 3.0, does it means that:

- my script using pywin32 for the COM layer and scipy for the maths
won't work under 3.0
- will we have the equivalent of pywin32 and scipy in python ?

I will be incharge of designing a python module which will be a
'matrix calculator' in our current software. Will it be compatible
with python 3.0 ? I guess no.

What can I answer to my collegue who will say 'Python is changing and
the stuff you are doing now is useless'?

how can I argue against matlab and c# ?

thanks very much
Tell them that the majority of incompatibilities will be taken care of
by an automated translation mechanism, and that the 2.X range will be
maintained in parallel with the 3.X range, with features backported when
it is feasible to do so, so there will be no *need* to migrate to 3.X
until *at least* 3.1 (which will likely take us two years into the future).

You might also remind them that Microsoft have continually broken
backwards compatibility, and that this is a one-off deal that will make
Python better and more consistent (not that they'll be interested in
that, since they seem to have closed minds).

Finally, look for Python users who have migrated from Matlab (of which
there are many) and get their opinions on why. I have used C# on a
couple of projects now and it's an OK language, but it can't hold a
candle to Python, which is now firmly in the .NET environment with
Microsoft's IronPython open source implementation.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Aug 2 '07 #2

"vml" <vi***********@gmail.comwrote in message
news:11*********************@q3g2000prf.googlegrou ps.com...
| I am trying to promote python in my job, my collegue only see matlab
| and microsoft scripting language.
| I understood that there willl be no backward compatibility between
| python 2.x and 3.0, does it means that:

Most of the basic language and syntax will be unchanged. Many to most of
the new features will be introduced in 2.6 also so you can add their usage
gradually, as needed, without converting everything. Most of the
incompatibilities between 2.6+ and 3.0+ will be handled by 2to3.py.

| - my script using pywin32 for the COM layer and scipy for the maths
| won't work under 3.0
| - will we have the equivalent of pywin32 and scipy in python ?

As with all 3rd party addons, that will depend on the authors or author
groups. The same is true today for every new release, especially in
regards to Windows binaries.

| I will be incharge of designing a python module which will be a
| 'matrix calculator' in our current software. Will it be compatible
| with python 3.0 ? I guess no.

But you will be able to use it *and distribute it* with Python2.5
indefinitely. Some people still run 1.5.2 code with the nearly decade old
1.5.2 interpreter. And I expect that there will be people running 2.5 code
with Py2.5 a decade or more from now.

The PSF still distributes versions back to about the first. Compare this
with Microsoft pulling from distrubution the free version of VC2003 early
in 2006, while maintaining the prohibition on anyone else distributing it.
This has been a MAJOR nuisance for new Python-C-Windows developers who did
not download it in time.

| What can I answer to my collegue who will say 'Python is changing and
| the stuff you are doing now is useless'?

Short answer: stuff that is useful now will continue to be useful until
requirements change.

A possible longer answer: Google continues to make major use of Python
without handcuffing themselves with such misunderstandings. They hired
Python's main developer both to write Python code for internal use and to
continue Python's development as he saw fit. They will be a test site for
both the conversion process and the usability of the new version, giving
Guido face-to-face feedback. When both are good enough for Google's
developers, they should be good enough for most of the rest of us too.

Terry Jan Reedy

Aug 2 '07 #3
vml schrieb:
Hello,
I am trying to promote python in my job, my collegue only see matlab
and microsoft scripting language.
I understood that there willl be no backward compatibility between
python 2.x and 3.0, does it means that:

- my script using pywin32 for the COM layer and scipy for the maths
won't work under 3.0
If the win32-extensions are made available (which I think is to be
expected - they are too important to not being ported), I fail to see
what COM-dependend code you expect to fail - after all, it's the
COM-based APIs that are to be questioned there.
- will we have the equivalent of pywin32 and scipy in python ?
Again, I think so - but of course I don't know for sure. But they both
are to important.
I will be incharge of designing a python module which will be a
'matrix calculator' in our current software. Will it be compatible
with python 3.0 ? I guess no.
Even if not - why do you care? Is your C# 1 code being ported to C# 2
immediately? Are you preparing for C# three?
What can I answer to my collegue who will say 'Python is changing and
the stuff you are doing now is useless'?

how can I argue against matlab and c# ?
You mean C#, the language that has seen 3 major revisions in the last 6
years of existence, with C# 3 being announced already? And the .NET SDK,
that happily strode along with that? Compared to python, that has been
started in 1991 and now approaches it's third incarnation, I'd say
python has a record of steadiness that surpasses that of MS-based tools
by any means.

Diez
Aug 2 '07 #4
On Aug 2, 6:01 pm, vml <victor.leb...@gmail.comwrote:
- my script using pywin32 for the COM layer and scipy for the maths
won't work under 3.0
Why not?

- will we have the equivalent of pywin32 and scipy in python ?
Say what? I've always thought pywin32 and scipy were Python packages.

Aug 2 '07 #5
vml
On 2 aoŻt, 22:30, sturlamolden <sturlamol...@yahoo.nowrote:
On Aug 2, 6:01 pm, vml <victor.leb...@gmail.comwrote:
- my script using pywin32 for the COM layer and scipy for the maths
won't work under 3.0

Why not?
- will we have the equivalent of pywin32 and scipy in python ?

Say what? I've always thought pywin32 and scipy were Python packages.
The problem is quite complex in my case.

My company has a some softwares to do some test measurement which can
be automated with vb 6 via OLE automation.
One could use matlab and vb 6 or vb.net or even C# but I succeed to
show the advantages of python due to its simplicity and its
efficiency but I am a newbee and not a computer scientist at all. Now
they want to use Python as the swissknife of the engineer.

So it is going from vb 6 to Python which is not really straight
forward ... If we want to do simple things like matlab script it is
possible in python, but it is also possible to do some OO programming
and even more.

So with python I need absolutly a COM level and also scipy and
matplotlib, I am confident that both will be ported to python 3.x.

I try still to convince people to switch for, vb 6 to python by
writting a python module which will handle the come layer of our
software.

I thank you very much for your answers.

I hope it will be possible to switch easily to python 3. But I need to
produce something as cheap as possible and I have no means ...

And I try to argue to give up vb 6 and use python. C# is for our
developpers the best solution to do this except the mathematic
stuff... python is so easy to use and easy to read I believe it can be
our best solution ...

Any ideas to convience people (except my scripts ;) )?
Aug 2 '07 #6
On Aug 2, 10:53 pm, vml <victor.leb...@gmail.comwrote:
And I try to argue to give up vb 6 and use python.
Either you have a valid argument for switching to Python or you do
not. If you do not, there is not really any justification for the
extra work (including teaching your staff Python).

C# is for our
developpers the best solution to do this except the mathematic
stuff...
In that case I suggest you should get rid of the staff. "Mathematical
stuff" is the realm of Fortran and scripting languages (Python,
Matlab, IDL, R). I would not trust anyone preferring C# for numerical
work to implement numerical algorithms.

python is so easy to use and easy to read I believe it can be
our best solution ...
Even if you are the only one knowing the language?
Aug 2 '07 #7
On Aug 2, 10:53 pm, vml <victor.leb...@gmail.comwrote:
I hope it will be possible to switch easily to python 3. But I need to
produce something as cheap as possible and I have no means ...

Python 3k is not released yet. Why do you worry about compatibility in
advance? Well, you are not the only one. I've heard this argument
before, that's why I bother to write this response.

Python 2.x will continue to work even after Python 3k is released.
There will also be future releases of Python 2.x.

Visual Basic .NET is not backwards compatible with VB6. But that does
not stop you form using VB6 even today. VB6 is soon 10 years old, it
was released in 1998. "Mainstream support" for VB6 ended on March 31,
2005. Extended support will end in March 2008. With Python 2.x this
even less troublesome as the source code is available - it can be
recompiled when needed! You cannot recompile VB6, still it lasted 10
years. If you can use VB6 ten years, you can use Python 2.x at least
twice that long. That will give you twenty years to port your
application to a newer version of Python. But then you probably don't
care. I am sure the packages you mentioned will be ready for Python 3k
by then.

NumPy, SciPy, Matplotlib, etc. will be ported to Python 3k in due
time. The Pywin32 code is autogenerated with SWIG. When support for
Python 3k is added to SWIG (yes it will happen), there will be a
Pywin32 for Python 3k as well.

You don't have to fix something that works. Python 2.5.1 is what we
have today, use it as much as you can.



Aug 2 '07 #8

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

Similar topics

11
by: Sebastian Krause | last post by:
Hello, I tried to read in some large ascii files (200MB-2GB) in Python using scipy.io.read_array, but it did not work as I expected. The whole idea was to find a fast Python routine to read in...
2
by: Z.L. | last post by:
I am a newbie to python, and have not so much experiences on package installation and related issues. I am looking for Scipy binaries for python 2.4 on windows. Could somebody here kindly give...
18
by: W. Watson | last post by:
What do I download to use Python with MX XP Pro on an ASUS 4 year old motherboard? I would guess a good book source for starters would be the O'Reilly book. Wayne T. Watson (Watson Adventures,...
3
by: vml | last post by:
Hello, I am really new in python scipy win32com and scipy I tried to setup a COM server to interact with vb 6 the pythom COM server is : from win32com.server import exception, register import...
5
by: farksimmons | last post by:
I am creating a distro of Python to be licensed as GPL.... am wondering, what would anyone suggest as to 3rd party modules being put into it (non-commercial of course!)? I know I'd put MySQLdb into...
4
by: itcecsa | last post by:
Hi, I am implementing a small Python project, what I am going to do is to open Matlab and run some M-files, and get some output from Matlab command prompt. I have no idea how to open Matlab...
7
by: Markus Gritsch | last post by:
Hi, why does the Python installer on Windows put the Python DLL into the Windows system32 folder? Wouldn't it be more clean to place it into the Python installation folder beside the python.exe...
3
by: Krishna Kirti Das | last post by:
I am a long-time user of Perl who comes to you in peace and is evaluating different scripting languages for use as a scripting platform for system administrators on the Windows platform. Perl...
30
by: Ivan Reborin | last post by:
Hello everyone, I was wondering if anyone here has a moment of time to help me with 2 things that have been bugging me. 1. Multi dimensional arrays - how do you load them in python For...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
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...
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 :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
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...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.