473,543 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
1
3,148
thread by: Doug Farrell | last post Jul 18 '05 by: Doug Farrell
Hi all, I'm trying to do the following from within a code module: import re # text to match text = "Good morning x something /x, how are you today x something else /x"
0
517
thread by: Mail Delivery Subsystem | last post Jul 18 '05 by: Mail Delivery Subsystem
1
1,752
thread by: Florian Konnertz | last post Jul 18 '05 by: Ulrich Petri
Hi, I have to do a little script for an old zope website running on python1.5.2 and have a regexp problem. (for those who know zope: I have to change all stx links in a dtml doc to html which is not done for any reason. It's an old zope (2.3.2) :( python is 1.5.2 I tried with string.find, but i get a "string object has no atribute...
0
1,277
thread by: James Tan | last post Jul 18 '05 by: James Tan
dear all, We are looking for a wxpython programmer in building up a software for us. Preferably in the valley of kl, malaysia. We would like to know: 1. How do you charge? 2. How much will you charge for a software that takes in the duration of 1month? H
0
1,396
thread by: Joe Francia | last post Jul 18 '05 by: Joe Francia
In case any of you missed it, there is a very favorable review of "Text Processing in Python" over on Slashdot: http://books.slashdot.org/article.pl?sid=03/07/06/2253222&mode=nested&tid=126&tid=156
2
3,794
thread by: Aki Niimura | last post Jul 18 '05 by: Aki Niimura
Hello everyone, I have been trying to write a Python script to access a Web site. I'm currently having a problem completing my script because the contents I would like to access in the Web site is a dynamic content and it is generated based on the Cookie contents which are set in another page. url-a (setting Cookies) url-b (dynamic...
9
7,337
thread by: Steffen Brodowski | last post Jul 18 '05 by: Steffen Brodowski
Hello everyone, since one week, I'm programming with python. Its a realy interesting tool. I wrote a script for generating barcodes in jpg-format. Everything is ok, but my function "CreateBarcode" should write the jpg data into an outstream. All barcodes will be generate online, without saving the jpgs on harddisk. Can you give me a tip...
1
1,321
thread by: Claus D | last post Jul 18 '05 by: Erik Max Francis
Did anyone record the europython sessions? Apparently, Hunter hasn't recieved a single reply from his effords to coordinate this... /cd
4
1,722
thread by: Ian Bicking | last post Jul 18 '05 by: Hallvard B Furuseth
I think Jason Orendorff's path module is really nice: http://www.jorendorff.com/articles/python/path/ Beats the hell out of os.path, which is an ugly thing indeed. The OO interface means you could use the interface nicely to implement other things, like URLs. The problem? It's just some module. The various os functions (of which path...
2
1,903
thread by: Tom | last post Jul 18 '05 by: Ben Finney
Hi, I have a problem because I don't know how to start my script automatically after a special event happens. In detail: I store data from a PLC. Every 30 seconds the data is stored in a new file. After the file is stored I would like to start my script that analyzes the data right away. Any help how to do this is deeply appreciated.
2
1,681
thread by: TB | last post Jul 18 '05 by: Rene Pijlman
Hi, I am writing a COM object (in Delphi) to be accessed from an application using Python, this application is using 1.5.2, does this support the same COM functions as 2.2.3 that I have been testing with until now? are there any known issues? Also has anybody got any references to more info about Python using COM? Thanks Tom
5
26,761
thread by: Kylotan | last post Jul 18 '05 by: Jeremy Hylton
The documentation on this module doesn't seem very clear to me... there's an 'HTTPSHandler' object documented, but it just lists the "https_open" function without giving an example of its use. And the urllib2 examples page shows a totally different way to create an HTTPS connection (just by making a Request object). There is a lot of talk...
1
3,682
thread by: Arnaud Delobelle | last post Jun 24 '06 by: medi
Hi all, I have written a little while ago in Python a game whose aim is to program a (or several) robots so that they move around in a maze and collect some flags. They only have a limited amount of instructions at their disposal (depending on the level). It is meant to be an introduction to two things: - programming
7
5,682
thread by: Christos TZOTZIOY Georgiou | last post Jul 18 '05 by: Daniel Dittmar
Last night I was compiling the latest python snapshot at my home Linux system (a K6-III @420 --the extra 20 Hz is overclocking :); then I tried building a shared version of the interpreter. I did some speed comparisons, and pystone reported ~6090 pystones for the shared and ~7680 pystones for the (default) static build. This is quite a...
10
2,856
thread by: Kim Petersen | last post Jul 18 '05 by: Kim Petersen
Regarding ODBC usage in Python... it seems to me that there is a couple of ways to use odbc from python, one of these is the MX version - now that one has a pretty steep licence cost (imho). So now comes my question (from reading this group quite a bit): - what is the basic reason for using MX versus the others? - why do you (newsgroup)...
1
7,252
thread by: Darrell | last post Jul 18 '05 by: John Abel
On windows 2000 I tried to use winprocess.py with the login option. In an effort to run as a diffrent user. It didn't work and lots of searching didn't help. This was my best hit. http://www.faqts.com/knowledge_base/view.phtml/aid/4466 Worked around the problem using runas.exe This is as far as I got. The following code tries to give me...
2
2,979
thread by: Bob | last post Jul 18 '05 by: Bob
I am trying to get the latest file from an ftp site that matches a pattern and is the latest one. I have it in Perl and would like to see the Python version for comparison. Perl version: # this matches the name only by looking at files # that start with 8 numbers (i.e. 20021203) foreach(@list) { if(m/\d{8}.*x86.exe/) {
0
1,260
thread by: Mark Wright | last post Jul 18 '05 by: Mark Wright
I have a script that I use to control our build process. It is a general purpose script that exec's other scripts that contain project specific python code. In one of those other, project-specific, scripts I exec a third script. That third script is failing because it can't seem to 'import' successfully. It seems that if one 'exec's a...
1
2,407
thread by: Luca Calderano | last post Jul 18 '05 by: John J. Lee
Hi people! Does anyone know how-to automatically print an html doc using Internet Explorer ??? I've tried these ways: 1) wxHtmlEasyPrinting 2) win32api.ShellExecute
0
590
thread by: Mail Delivery Subsystem | last post Jul 18 '05 by: Mail Delivery Subsystem
0
1,641
thread by: Justin Johnson | last post Jul 18 '05 by: Justin Johnson
Hello, I was wondering if anyone has seen this behavior before for the process.py module available at http://starship.python.net/crew/tmick/. I've been using it quite well on windows 2000 servers, but when I try to use it on a window nt 4.0 box I get the results posted below. I have both process.py and which.py installed. Any help you...
0
2,782
thread by: Shane Hathaway | last post Jul 18 '05 by: Shane Hathaway
I was surprised by the following behavior. Apparently, the "!=" operator does not fall back to using "not __eq__()". I tested this with Python 2.1, 2.2, and 2.2 with new-style classes and got the same results in every case. >>> class foo: .... def __eq__(self, other): .... return (other.__class__ is self.__class__ .... ...
0
1,289
thread by: Faust, Chris | last post Jul 18 '05 by: Faust, Chris
-----Original Message----- From: python-list-request@python.org Sent: Tuesday, July 08, 2003 9:46 AM To: python-list@python.org Subject: Python-list digest, Vol 1 #16415 - 14 msgs Send Python-list mailing list submissions to python-list@python.org
1
2,656
thread by: .d.hos | last post Jul 18 '05 by: .d.hos
ok, fairly new to python, relatively familiar w/ ms-sql. here's my issue: my .py script parses the contents of a (tab delim.) flat file, then attempts to insert the information into the db. I've been fighting this for a day or so, and i'm stuck on the db insertion... basically the script uses .readlines() to capture the flat file...
0
1,218
thread by: Luiz Siqueira Neto | last post Jul 18 '05 by: Luiz Siqueira Neto
id -1 for some object mean that this object have a default id, but how I can work with this kind of id?

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.