| |
thread by: Stephen Horne |
last post Jul 18 '05 by: Stephen Horne
PEP315 (Enhanced while loop) suggests a syntax as follows...
do:
...
while condition:
...
The motives are IMO good, but I don't like this solution. It
replicates a problem with the C do loop (even though this is actually
different to the C do loop).
|
thread by: Alberto Vera |
last post Jul 18 '05 by: Rudy Schockaert
Hello:
Could you tell me How I can send an email using WIN2000? What do I need?
Thanks
|
thread by: Dominik Kaspar |
last post Jul 18 '05 by: Dominik Kaspar
i want to write a thread in python that listens for client connections
to a socket and creates new server threads for each of the connections
it detects. is there a simple way to do this by using socket.listen(1)
and socket.accept()?
-- dominik
|
thread by: Raymond Hettinger |
last post Jul 18 '05 by: Stephen Horne
Here is a discussion draft of a potential PEP.
The ideas grew out of the discussion on pep-284.
Comments are invited. Dart throwing is optional.
Raymond Hettinger
-------------------------------------------------------------
PEP: 323
|
thread by: Alan Sheehan |
last post Jul 18 '05 by: Alan Sheehan
Hi,
I am re-engineering a lot of existing Web JSPs and hoping to have each
JSP execute a Python script to specify the page contents i.e. a easy
way for end users to modify aspects of the pages without deep Java
know-how.
I have proven the above by creating an interpreter in each page and
simply executing a script file.
|
thread by: John Lin |
last post Jul 18 '05 by: Donn Cave
Howdy,
I want to know how to tell if a forked process is done.
Actually, my real question is that I want to run a shell script inside
of a python script, and after the shell script has finished running, I
want to do more stuff *condition* on the fact that the shell script
has finished running, inside the same python script.
The only...
|
thread by: Peter Nikolaidis |
last post Jul 18 '05 by: Dennis Lee Bieber
Greetings,
I am attempting to get MySQLdb 0.9.2 installed on Mac OS 10.2 with a
Fink distribution of Python 2.2.2. I have seen only a few posts on the
subject, some of them relate to "conflicting header files," but I don't
know what to do about conflicting header files, or where I would find
them, and once I found them, which ones to...
|
| |
thread by: cricket |
last post Jul 18 '05 by: cricket
i need help with Python lexical scanner for this assignment, i have
create a scanner using the Flex scanner generating tool. The
requirements of the scanner are as follows:
1) Accept input via stdin (standard input).
2) Return output via stdout (standard output)
3) Recognize tokens of the Python programming language
3.1) Tokens are...
|
thread by: David Hughes |
last post Jul 18 '05 by: Daniel Dittmar
I'm nearly there building a Python extension module to access a set of
functions in a .dll, but I'm getting an unresolved external error for one
of the function calls (using MS Visual C++ V6).
The function prototype is:
extern short __stdcall SharewareLimit(char * s1, char * s2, short i);
which I'm calling from:
|
thread by: anuradha.k.r |
last post Jul 18 '05 by: anuradha.k.r
hi,
i have written a simple socket program in python to connect to a
windows machine.On the server side i am running a windows socket
program which works perfectly fine,my server program waites at
accept() for a connection to be established.on the client side however
i am not able to connect and am getting an error "10061 connection...
|
thread by: Sector Unknown |
last post Jul 18 '05 by: Sector Unknown
I've written a Python script that runs a MS Windows program using popen.
However, at the end of the Windows program, a dialog box appears and
asks for the user to click on OK.
Is there a way to have Python set focus on the dialog box and click OK
so my script can continue?
Does anyone have an example?
|
thread by: Alberto Vera |
last post Jul 18 '05 by: Alex Martelli
Hello:
Is it possible to get a row from a text-file? This text-file is located in a web page.
And a value from an excel located in a web-server? (Sheet1!cell A1)
Regards
|
thread by: Rune Froysa |
last post Jul 18 '05 by: Michael Hudson
I have a fairly large program that uses a number of third-party
modules. After a few hours the program eats several 100M of memory.
Does Python provide any tools that can help in determining where the
memory is used? Ideally, I would like to see a tool that can list all
objects by memory-usage, but any tool that can return the number of...
|
thread by: jblazi |
last post Jul 18 '05 by: Anton Vredegoor
I should like to search certain characters in a string and when they are
found, I want to replace other characters in other strings that are at
the same position (for a very simply mastermind game) for my pupils.
This very simple thing does not seem simple at all.
If I use strings, I cannot replace their parts (though I can use...
|
thread by: Roy Smith |
last post Jul 18 '05 by: Asun Friere
I'm working on a prototype of a new application in Python. At some
point, if this ever turns into a product, the powers that be will almost
certainly demand that it be done in Perl. My job will be to convince
them otherwise.
The basic design of the application is object oriented. I've never used
Perl's OO features, so I'm not in a good...
|
| |
thread by: Skip Montanaro |
last post Jul 18 '05 by: David Mertz
Thanks to people who submitted content for the Python Glossary:
http://manatee.mojam.com/python-glossary
I just completed a first pass at folding it into the Python tutorial. It's
now a separate appendix to that document. It will take awhile for the
changes to show up on the website and in distributions, but if you have
named CVS access...
|
thread by: John Dean |
last post Jul 18 '05 by: Lee Harr
Hi
Below is a line taken from Andy Dustman's MySQLdb module:
def Connect(*args, **kwargs):
I would be grateful if somebody explain the meaning of the astarisks, since
I was under the impression that pointers are not used in Python and the
above look very must like pointers to me
--
Best Regards
|
thread by: Grant Edwards |
last post Jul 18 '05 by: Grant Edwards
In the program shown below, all of the connections to the
servers are using port 443 and https (TLS protocol) -- both the
initial connection to login.postini.com and subsequent
connections to user-3.postini.com.
It works, and I don't mind that it's encrypting the sessions as
well as the login, but I'd like understand why the connections
to...
|
thread by: Batista, Facundo |
last post Jul 18 '05 by: Peter Otten
Studying the module datetime, found that you can create a date instance
like:
mydate = datetime.date(2003, 9, 15)
but also you have others constructors. For example:
mydate = datetime.date.today()
How is this trick implemented in Python? (think the module is in C or
|
thread by: Batista, Facundo |
last post Jul 18 '05 by: John Roth
Studying the Tim Peter's FixedPoint code, found this:
# can we coerce to a float?
yes = 1
try:
asfloat = float(value)
except:
yes = 0
if yes:
self.__init__(asfloat, p)
|
thread by: bmiras |
last post Jul 18 '05 by: John J. Lee
I've got a problem using urllib2 to get a web page.
I'm going through a proxy using user/password authentification
and i'm trying to get a page asking for a HTTP authentification.
And I'm using python 2.3
Here is an exemple of the piece of code I use:
import urllib2
#Proxy handler
proxy_handler = urllib2.ProxyHandler({"http" :
|
thread by: jennyw |
last post Jul 18 '05 by: Christos TZOTZIOY Georgiou
Does anyone know of a barcode generator for Python? I'm looking to do
this on Windows. It would be nice to find something free, but that's not
necessary (so long as it's reasonable). It doesn't have to be
Python-specific, either, so long as I can call it from Python. I'd love
to hear any suggestions.
I've seen bookland.py, but the kind...
|
thread by: Arne Schwabe |
last post Jul 18 '05 by: Emmanuele Bassi
hi,
I am using python and pygtk.
In my program I want to realize a status thing with a DrawingArea.
But my problem is that this area is not updated while my program is running.
Is there a way I can force pygtk to refresh to widgets?
Arne
|
| |
thread by: Achim Domma |
last post Jul 18 '05 by: Mickel Grönroos
Hi,
I'm using Python 2.3s timeout sockets and have code like this to read a page
from web:
request = ...
self.page = urllib2.urlopen(request)
and later:
|
thread by: tertius |
last post Jul 18 '05 by: tertius
Hi,
I need advice on printing from python. The reports are simple text-based
pre-formatted HTML files that must be send to a printer.
I was hoping that there is a way to print the report making use of the
existing HTML functionality of Netscape or IE.
I found an example of creating Word docs on Mark Hammond's site...
|