473,657 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A service for testing Python code on multiple platforms and versions

Hopefully a service like this already exists and I just haven't found
it yet. If not it could be an idea for some kind soul(s) to pick up
and run with ;-)

As someone who writes and releases Python modules for the community, I
find it difficult to have a decent level of confidence in the efficacy
of my code on platforms and Python versions other than those that I
own or use regularly. My documentation states that I support Python
2.3 or higher. This ends up being more of a statement of good
intentions than a one of fact.

A case in point. A bug (in Python), that I believed to have been
killed off after Python 2.2, resurfaced in a 2.4.x release of Python
on PowerPC recently. As I don't own any PowerPC kit, it was very
difficult to a) investigate the bug and b) create an effective fix for
it in a timely fashion. Fortunately I'd come across it before so the
fix was easy but it might not have been.

While I realise one's code can never be perfect, you can cover for
these sorts of eventualities fairly easily by running your software
and unit tests under different environments. You'd also like to be
able to do this on a continual basis rather than just once or twice.
If this was done with some kind of automated testing and reporting so
much the better. Bigger projects that take code quality seriously
probably already have this sort of thing in place for their own
purposes, but for smaller ones it just isn't possible.

Wouldn't it be great to have a service/setup out there available for
Python developers to access that covered a fairly broad base of
possible Python installations for the purpose of improve overall code
quality? Am I the only one that would find something like this useful?

Dave M.
Sep 13 '08 #1
3 1135
David Moss wrote:
Hopefully a service like this already exists and I just haven't found
it yet. If not it could be an idea for some kind soul(s) to pick up
and run with ;-)

As someone who writes and releases Python modules for the community, I
find it difficult to have a decent level of confidence in the efficacy
of my code on platforms and Python versions other than those that I
own or use regularly. My documentation states that I support Python
2.3 or higher. This ends up being more of a statement of good
intentions than a one of fact.

A case in point. A bug (in Python), that I believed to have been
killed off after Python 2.2, resurfaced in a 2.4.x release of Python
on PowerPC recently. As I don't own any PowerPC kit, it was very
difficult to a) investigate the bug and b) create an effective fix for
it in a timely fashion. Fortunately I'd come across it before so the
fix was easy but it might not have been.

While I realise one's code can never be perfect, you can cover for
these sorts of eventualities fairly easily by running your software
and unit tests under different environments. You'd also like to be
able to do this on a continual basis rather than just once or twice.
If this was done with some kind of automated testing and reporting so
much the better. Bigger projects that take code quality seriously
probably already have this sort of thing in place for their own
purposes, but for smaller ones it just isn't possible.

Wouldn't it be great to have a service/setup out there available for
Python developers to access that covered a fairly broad base of
possible Python installations for the purpose of improve overall code
quality? Am I the only one that would find something like this useful?
I would love to have such a tool, but have no idea how to create
something like that.
Something like a multi-virtual machine on a web server, that you launch
in the night,
and in the morning you would get a full report of all problems on the
specific OSs
(probably someone is going to say that this is impossible, but
fortunately I'm not hindered by any knowledge ;-)

cheers,
Stef
Dave M.
--
http://mail.python.org/mailman/listinfo/python-list
Sep 13 '08 #2

DavidAs someone who writes and releases Python modules for the community, I
Davidfind it difficult to have a decent level of confidence in the efficacy
Davidof my code on platforms and Python versions other than those that I
Davidown or use regularly. My documentation states that I support Python
David2.3 or higher. This ends up being more of a statement of good
Davidintentions than a one of fact.

How about Buildbot? Here are some Python examples:

http://www.python.org/dev/buildbot/

And the Buildbot home page:

http://buildbot.net/trac

Skip
Sep 13 '08 #3

StefSomething like a multi-virtual machine on a web server, that you
Steflaunch in the night, and in the morning you would get a full
Stefreport of all problems on the specific OSs (probably someone is
Stefgoing to say that this is impossible, but fortunately I'm not
Stefhindered by any knowledge ;-)

You could run Buildbot on a bunch of virtual machines on your computer
(assuming your computer is x86 and its OS is supported by something like
Sun's VirtualBox or VMWare's offerings).

Skip

Sep 13 '08 #4

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

Similar topics

11
97188
by: dmbkiwi | last post by:
I am new to this group, and relatively new to python programming, however, have encountered a problem I just cannot solve through reading the documentation, and searching this group on google. I have written a theme in python for the superkaramba theme engine on kde (see http://netdragon.sourceforge.net - if you are a kde/linux user, it is a great visual applet engine). I have uploaded it to www.kdelook.org for others to download and...
35
3070
by: Michael Kearns | last post by:
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my colleagues noted that on her machine the launcher would complain it was missing a DLL - msvcr71.dll However, there's a very grey area concerning the redistribution of said DLL. If you've been keeping up with the dev list, and some other web
191
7834
by: Xah Lee | last post by:
Software Needs Philosophers by Steve Yegge, 2006-04-15. Software needs philosophers. This thought has been nagging at me for a year now, and recently it's been growing like a tumor. One that plenty of folks on the 'net would love to see kill me.
23
2387
by: gord | last post by:
As a complete novice in the study of Python, I am asking myself where this language is superior or better suited than others. For example, all I see in the tutorials are lots of examples of list processing, arithmetic calculations - all in a DOS-like environment. What is particularly disappointing is the absence of a Windows IDE, components and an event driven paradigm. How does Python stand relative to the big 3, namely Visual C++,...
113
5255
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside the Python world, you're fine. But once you do, things go downhill. MySQLdb has version and platform compatibility problems. So does M2Crypto. The built-in SSL support is weak. Even basic sockets don't quite work right; the socket module...
69
3213
by: Edward K Ream | last post by:
The pros and cons of making 'print' a function in Python 3.x are well discussed at: http://mail.python.org/pipermail/python-dev/2005-September/056154.html Alas, it appears that the effect of this pep would be to make it impossible to use the name 'print' in a backward compatible manner. Indeed, if a program is to compile in both Python 2.x and Python 3.x, the print function (or the print statement with parentheses) can not use the...
15
2944
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility, controlled via Plesk control panel, and turned over to me with Fedora Core 6 in an empty state. This is the standard way you get a server in a colo today. Bringing Python up in this completely clean environment is a huge hassle, and it doesn't...
17
4518
by: Adam Olsen | last post by:
As was seen in another thread, there's a great deal of confusion with regard to surrogates. Most programmers assume Python's unicode type exposes only complete characters. Even CPython's own functions do this on occasion. This leads to different behaviour across platforms and makes it unnecessarily difficult to properly support all languages. To solve this I propose Python's unicode type using UTF-16 should have gaps in its index,...
48
2717
by: Yves Dorfsman | last post by:
On UNIX, some people use #!/usr/bin/env python While other use #!/usr/bin/python Why is one preferred over the other one ? Thanks.
0
8403
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
8833
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
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8610
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...
1
6174
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
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.