On 6/20/05, Oliver Andrich [EMAIL PROTECTED] wrote:
Does the following code write headline and caption in
MacRoman encoding to the disk?
f = codecs.open(outfilename, w, macroman)
f.write(headline)
It does, as long as headline and caption *can* actually be encoded as
macroman. After
On 6/20/05, Sebastian Bassi [EMAIL PROTECTED] wrote:
Hello,
I am using HTMLgen. It is very nice. But I can't make it to
generate an arbitrary command.
For example I want to output this:
embed src=canvas_norelief.svg width=140 height=68
type=image/svg+xml name=wmap wmode=transparent
On 6/20/05, David Bear [EMAIL PROTECTED] wrote:
I have a file that contains lists -- python lists. sadly, these
are not pickled. These are lists that were made using
a simple print list statement.
Sad, indeed. But what kind of objects they held? Only ints? Ints and
strings? Arbitrary objects?
On 17 Jun 2005 15:41:07 -0700, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I am trying to make a copy of a certain Python object using the
copy.copy() function. When I try to perform this operation I get an
error like the following:
copy.Error: un(shallow)copyable object of type ...
What
On 6/17/05, Brian [EMAIL PROTECTED] wrote:
Hi KV,
Here's a site that provides an easy, beginners example of how to do
threading. You might find this useful too... :-)
http://www.codesampler.com/python.htm
(Look for the Spawning Threads section.)
Thank you, but that doesn't answer my
On 6/16/05, Vibha Tripathi [EMAIL PROTECTED] wrote:
Hi Folks,
I know sets have been implemented using dictionary but
I absolutely need to have a set of dictionaries...
While you can't have a set of mutable objects (even dictionaries :)),
you can have a set of immutable snapshots of those
On 6/16/05, Vibha Tripathi [EMAIL PROTECTED] wrote:
I need sets as sets in mathematics:
That's tough. First of all, mathematical sets can be infinite. It's
just too much memory :)
Software implementations can't fully match mathematical abstractions.
sets of any unique type of objects
On 6/17/05, Maurice LING [EMAIL PROTECTED] wrote:
Hi,
I'm writing something that specifies the use of SOAP. One requirement
that fumbles me is the port number(s) to use.
(I assume you're talking about TCP ports, not SOAP ports.)
Is there any way to find
out which ports are not used by the
Hi,
Just curious:
import thread
help(thread.start_new_thread)
. . .
start_new_thread(function, args[, kwargs])
. . .
Second argument is mandatory. Is it incidental or for a reason?
- kv
--
http://mail.python.org/mailman/listinfo/python-list
On 6/15/05, Anthra Norell [EMAIL PROTECTED] wrote:
class C: ...
class C2 (C): ...
# What I want to do:
if x.__class__ in (C, C2):
do_something_with (x)
If you have an instance, you can use isinstance() built-in.
- kv
--
http://mail.python.org/mailman/listinfo/python-list
On 15 Jun 2005 14:13:09 -0700, chris [EMAIL PROTECTED] wrote:
We have a number of TestCase classes that have multiple test methods.
We are interested in removing any of the individual test methods on the
fly (dynamically, at runtime, whatever).
Here's a simple approach imitating NUnit's
101 - 111 of 111 matches
Mail list logo