473,761 Members | 10,498 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4497
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 incompatibiliti es 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******** *************@q 3g2000prf.googl egroups.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
incompatibiliti es 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 misunderstandin gs. 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...@y ahoo.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. "Mathematic al
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
9033
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 arbitrary ascii files, to replace Yorick (which I use right now and which is really fast, but not as general as Python). The problem with scipy.io.read_array was, that it is really slow, returns errors when trying to process large files and it...
2
1762
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 some suggestion to this? Thanks in advance.
18
2035
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, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet ""I do not fear death. I had been dead for billions and billions of years before I was born, and had
3
3141
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 pythoncom, win32pdhutil, winerror import math import numpy import sys
5
1157
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 it at the very least. Any suggestions? Thanks, Fark Simmons
4
13752
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 from Python! Any suggestions would be appriciated!
7
1886
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 file? Kind regards, Markus
3
4330
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 already has many modules that allow sys admins and devolpers to do lots of things with the Windows OS, and I'm wondering what the state of the art is with Python and being able to control and administer a windows environment. In this regard, how does...
30
2726
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 example, if I had: ------- 1 2 3 4 5 6
0
9521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10107
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8768
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7324
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.