| |
thread by: Gobo Borz |
last post Jul 18 '05 by: Chuck Spears
Hi everyone,
I have a python cgi program that uses print statements to write html.
The program has grown, and for reasons I won't bore you with, I need to
build the page in a string and "print" it at once.
I remember reading somewhere that building the string with successive
"+=" statements is inefficient, but I don't know any...
|
thread by: Chris Rennert |
last post Jul 18 '05 by: Chris Rennert
I noticed in the documentation that they have ssl() in Python, but it says
only if configured. I just can't find info on how to configure SSL in
Python.
My goal is to write a simple p-2-p chat, but have all info encrypted between
clients.
Any help you could give me would be greatly appreciated!
Chris
|
thread by: Tung Wai Yip |
last post Jul 18 '05 by: Tung Wai Yip
Can I add empty directory using zipfile? When I try to add a directory
it complains that it is not a file.
tung
|
thread by: Harald Kirsch |
last post Jul 18 '05 by: Harald Kirsch
How would I call a java constructor which takes a java.lang.CharSequence
as argument. Say, the java class goes like this
class X {
public X(CharSequence s) { ... }
}
In the jython interpreter I tried along the lines of
x = X("bla")
|
thread by: xml-bindings-admin |
last post Jul 18 '05 by: xml-bindings-admin
Your mail to 'xml-bindings' with the subject
Re: Movie
Is being held until the list moderator can review it for approval.
The reason it is being held:
SpamAssassin thinks there may be spam in this message.
|
thread by: Jan Boelsche |
last post Jul 18 '05 by: Jan Boelsche
A Question about the C API
When PyObject_GetIter(PyObject *o) returns o itself, becuase it is
already an iterator, does it reset the iteration too?
Or does it never have an effect on the iteration's state?
Thanks,
jan
|
thread by: Christian Long |
last post Sep 18 '05 by: anonymous
Hi
I'm trying to pipe data into a python program on Windows 2000, on the
command line.
Like this:
dir | myProgram.py
Here's what I tried:
|
| |
thread by: Alan Little |
last post Jul 18 '05 by: Alan Little
I can't import MySQLdb on OS X 10.2.6
Downloaded the package from sourceforge, got it to build after some
messing about with setup.py, and now I have _mysql.so and all its
little friends in /usr/lib/python2.2/site-packages
But still I get:
>>> import MySQLdb
|
thread by: Gerrit Holl |
last post Jul 18 '05 by: Jeremy Fincher
Hi,
would it be a good idea to add a .filter() method to a set object,
which behaves like the builtin filter() but resulting in a set?
I often see myself doing sets.Set(filter(f, someset))... Would this
be a good addition to sets.Set?
yours,
Gerrit.
|
thread by: Tom Plunket |
last post Jul 18 '05 by: Tom Plunket
(Is this an appropriate place to ask wxPython questions?)
Here's some code (line breaks put in without testing them, I'm
kinda a newbie hope they're ok):
<busted.py>
from wxPython.wx import *
class MyFrame(wxFrame):
|
thread by: Yuval |
last post Jul 18 '05 by: John J. Lee
I have an object of a class I wrote myself, and now I want to copy it.
How do I do it? The reason I want to copy it is because if I simply
use copied_object=existing_object, when I later change
"copied_object", "existing_object" is changed as well, and I dont want
it to happen.
Thanks.
|
thread by: drs |
last post Jul 18 '05 by: Irmen de Jong
Hi,
I have a programming design question. I would like to do this in Python,
but I am not even sure about what tools are proper or where to start
reading.
I am trying to make a small network system where several client computers
connect to a server. each client can send messages to the server which must
alert all of the clients of the...
|
thread by: David Jeske |
last post Jul 18 '05 by: David Jeske
In debugging Python GC actions, it's really useful to know the amount
of time Python spends doing the GC cycle (i.e. the pause time). I made
a quick hack to do this, and I've attached the patch. It needs to be
fixed to be portable. I wanted to just call floattime() from
timemodule.c, but it wasn't clear how to do this from gcmodule.c.
My...
|
thread by: Marek |
last post Jul 18 '05 by: Marek
Hi,
I have big problem when i try generate a PNG image with transparent
background. When i open a source PNG file with tranasparent background
everything is going well but not in IE. I know that is a bug in IE.
But i can make PNG with transparent in PHP or graphic program it runs
well in IE (execly no with transparent background but with...
|
thread by: Paolo Invernizzi |
last post Jul 18 '05 by: Paolo Invernizzi
Spambayes CVS, Python 2.2.3, FreeBSD 5.1
On my machine I'm lunching the pop3proxy with cron at startup, and all
is fine.
But... sometimes during startup, or after a one or two days, the process
exits with the following error...
Is a BSD select related problem? Is an asyncore problem? Is a spambayes
problem?
|
| |
thread by: Sorin Marti |
last post Oct 6 '05 by: Axel.Bock
Hi all,
I am quite new to python and very new to this list.
I've got following problem. I have a binary file which contains
information I should read. I can open the file with
f = open ('cpu1db2.dat', 'rb')
That's no problem. But now I need the hex values of the binary file.
|
thread by: Mickel Grönroos |
last post Aug 9 '05 by: xoanan
Hi!
Are there any standard list methods for getting the intersection and
difference of two lists? (The union is easy ("list1.extend(list2)"),
unless you want it to contain unique values.)
Here is what I would like to have:
list1 =
list2 =
|
thread by: Catalin |
last post Jul 18 '05 by: Geoff Howland
How can I make executables with python?
I found some utilities that claim they can do something like that like
Installer and py2exe but they actualy pack the code in a huge arhive!
This solves the problem of giving python programs to users who don't
have python but doesn't solve the problem of the source "secrecy"
(copyright).
And the...
|
thread by: Tom |
last post Jul 18 '05 by: Tom
Hi,
I am pretty new to BC and python. I just designed a GUI with Boa
Constructor. It looks good, but now I have two problems:
1.) I already wrote a script in Python and want to run it in my GUI now.
My script is not a class or anything like that. I usually just run it
with Ctrl+F5 and it works perfectly. What do I have to tell my event...
|
thread by: MiLF |
last post Jul 18 '05 by: D. Rush
Is it possible to write a Audio CD Player by using python only?
|
thread by: Axel Bock |
last post Jul 18 '05 by: Alan Kennedy
Hi all,
I try to connect to several hosts at once to verify whether a certain
service is running. Now it's quite stupid to connect to one after another,
cause if I do this I'll wait forever if some hosts don't respond (at least
until TCP timeout).
But if I connect to several hosts in parallel and use polling objects I'm
stuck - I don't...
|
thread by: Jim West |
last post Jul 18 '05 by: Kevin
Good day all,
Ok, I'm starting to get the hang of this Python thing...really pretty
cool actually. Again, thanx to those that have helped me thus far.
I now have another stumbling block to which I would like help.
Ok, here is my enviroment:
Windows 2K
|
thread by: Richard Kuhns |
last post Jul 18 '05 by: Peter Hansen
I can't iterate over os.environ, while a 'hand-made' dictionary works. It
works fine with python 2.2.3 under FreeBSD 4.8. I looked through the
release notes but didn't find anything I thought applied, so I guess I'd
just like to know if this is something peculiar to my system, or is it
more wide-spread? Here's what I get:
: molin$~; python...
|
| |
thread by: Tom |
last post Jul 18 '05 by: Tom
Hi folks,
I have a splitter window in a GUI that I built. I added a TextCtrl
window to the right side of my splitter window. Because I don't want to
add anything else to this side of the window it would be great if the
TextCtrl window could fill out the complete side. I couldn't find the
appropriate command or configuration to resize the...
|
thread by: Kevin Howe |
last post Jul 18 '05 by: Thomas Heller
Say I have the following module named "mymodule"
import string
var1 = 'a'
var2 = 'b'
And I want to import its symbols into another script:
from mymodule import *
|