with apache2 maybe because they use a cgi
style interface. I would stick with a pythonic solution unless there's a good
reason not too.
-too old to learn a new language-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
not to be threadsafe. Some Linux distributions ship standard
this way.
...
unfortunately mod_python3 seems to need exactly the opposite ie apache2
with threads. However, I originally tried to get php going with apache2
in the standard mode and still had problems.
--
Robin Becker
--
http
misuse it's free and I'm no longer an American :)
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Nick Craig-Wood wrote:
Robin Becker [EMAIL PROTECTED] wrote:
Paul Rubin wrote:
Reed L. O'Brien [EMAIL PROTECTED] writes:
I see rotor was removed for 2.4 and the docs say use an AES module
provided separately... Is there a standard module that works alike or
an AES module that works alike
Robin Becker wrote:
Presumably he is talking about crypo-export rules. In the past strong
cryptography has been treated as munitions, and as such exporting it
(especially from the USA) could have got you into very serious
trouble.
So Python is an American Language and must obey American Law
=000479CD-F58C-11BE-AD0683414B7Fref=rdf
-can't wait to get my quantum computer-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
which may help
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
= database.C._fieldDefs+[..]
database.C = C
Is there a better way to do this which preserves more of C's original identity?
I suppose I want to call the metaclass initialization again, but can't see a way
to do that.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
in toto (because it's
public domain).
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
Robin Becker wrote:
I thought that methods were always overridable.
In this case the lookup on the
class changes the behaviour of the one and only property.
How can something be made overridable that is actually overridable? I
didn't know how to better express
too far.
Thanks to Alex and Bengt and others for clarifying a bunch of issues.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
/
If you really, really want Python in a browser, it's certainly
possible. :)
-- David
well in firefox 1.07 I seem to be getting
Error: unmarshal is not defined
Source File: http://dwahler.ky/python/
Line: 133
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
files. Right?
I think reading files is easy; just get the client browser to submit a
form with the file as an upload. Hard part is getting the path(s) right.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
=e562a771d1c827c9
I get a not found google page with url
http://groups-beta.google.com/groups?frame=rightth=e562a771d1c827c9
really wanted to spell file in a sickly manner :)
Dr. Dobb's Journal (http://www.ddj.com) is pleased to participate in and
sponsor the Python-URL! project.
--
Robin Becker
Does anyone know if it is feasible to have static libraries for both 2.3 and 2.4
compatible extensions. I'm worrying about libjpeg etc in a win32 environment.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Dittmar wrote:
Robin Becker wrote:
Does anyone know if it is feasible to have static libraries for both
2.3 and 2.4 compatible extensions. I'm worrying about libjpeg etc in a
win32 environment.
Could you be a bit more specific:
do you want to create a binary python extension
Daniel Dittmar wrote:
Robin Becker wrote:
actually I want to build the PIL extension for 2.4 as pyd and include
various libraries eg zlib and jpeg. To avoid the missing dlls issue we
have done this in the past by incorporating the zlib/jpeg code using
static libraries for both zlib and jpeg
Martin v. Löwis wrote:
Robin Becker wrote:
I thought that static .libs didn't make reference to the dll's they
need; isn't that done at load time?
Unfortunately, thanks to Microsoft's infinite wisdom, static libs
*do* reference DLLs. The C lib headers contain things like
#pragma lib(msvcrt.lib
Martin v. Löwis wrote:
Robin Becker wrote:
I don't think this forces the linker to load stuff from this module
although I can see that it might be dangerous depending on which obj
files are seen first.
I think you are wrong. In the object, there will be simply a linker
command line option
a decent TCL any more so haven't compiled that stuff.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
be a decent approach to OS
design etc.
It's sad that people who are otherwise sensible about opensource seem to
be a bit silly about the poisoned apples. There was no rational reason
for me to upgrade to VC 7.x, but now I'm forced to by my preferred language.
--
Robin Becker
--
http://mail.python.org
. An unnecessary name is visual noise.
The thing that is probably a bit stupid about lambdas (I admit to having
done this) is
x = lambda a,b,c:...
which could just as well be written
def x(a,b,c):return .
with only a few extra characters.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo
by Van Roy and Haridi) work for Oz, it
appears to me.
.very interesting, but it wants to make me install emacs. :(
Alex
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
to
the top in your opinion?
Alex
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Alex Martelli wrote:
Robin Becker [EMAIL PROTECTED] wrote:
Alex Martelli wrote:
.
If you're looking for SERIOUS multiparadigmaticity, I think Oz may be
best -- http://www.info.ucl.ac.be/people/PVR/book.html (the book's
authors critique the vagueness of the paradigm concept, and prefer
model
Alex Martelli wrote:
Robin Becker [EMAIL PROTECTED] wrote:
.
Well your utility function seems to be related to learn more approaches
to programming.
Which part of if do you find hard to parse?
no part
I suspect there may be some programming language
measure which would push really high
Scott David Daniels wrote:
Then you need Scott and Dave's Programming Language -- SAD/PL.
By providing separate data types for even and odd numbers, you can
avoid off-by-one errors ;-)
mmmhhh off by two-licious
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Carsten Haese wrote:
...
Where/how did you search? http://docs.python.org/lib/typesseq.html
states unambiguously that x in s returns True if an item of s is
equal to x, else False
.
exactly and I see
0==False
True
so I guess nothing is wrong :)
--
Robin Becker
--
http
with variants of the cookbook entry at
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
Martijn Brouwer wrote:
I am writing a unix daemon in python, so I want to close stdin, stdout
and stderr.
My first attempt was to the standard file descriptors using their
close() methods. After closing stdout, I could not print anymore, so
this seemed to work. However
Does anyone know the status of the svn handling version of viewCVS. It seems to
have disappeared from sourceforge and no mention is made of it on the new
tigris
site.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Uwe Hoffmann wrote:
Robin Becker schrieb:
Does anyone know the status of the svn handling version of viewCVS.
http://viewvc.tigris.org/index.html
unfortunately there's no mention of svn handling there and the files only show
0.9[.x] versions.
--
Robin Becker
--
http
Martin v. Löwis wrote:
Robin Becker wrote:
Does anyone know the status of the svn handling version of viewCVS.
It works:
http://svn.python.org/view/
Regards,
Martin
yes I ahd it working and updated my freebsd and then couldn't locate the latest
version. If the svn head stuff from
Martin v. Löwis wrote:
Robin Becker wrote:
yes I ahd it working and updated my freebsd and then couldn't locate the
latest version. If the svn head stuff from tigris works that'll do. On
another point I thought the whole point of sourceforge was that the
files wouldn't get removed/deleted. Does
. Tismer, how cool :)
-fleeingly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
. Both can mean to disparage or
belittle.
Some dictionaries give 'depreciate' as a definition of 'deprecate'.
Well if someone told me my investments were deprecated I'd take that
differently to them being depreciated.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python
is the entry for?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
..
where does A.sys come from?
http://www.python.org/doc/essays/packages.html
Dummy Entries in sys.modules
...
/F
...
thanks
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
,]) -- [x0,y0,x1,y1,]
clearly if f is doable then g can be done using zip. I suppose this is a
special case flatten, but can flatten be done fast? The python recipes
seem rather slow compared to the builtin functions.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
with a simple index.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
(zip(x, y)))
def flatten6(x,y):
'''Tim Hochberg'''
n = min(len(x), len(y))
result = [None] * (2*n)
for i in xrange(n):
result[2*i] = xdata[i]
result[2*i+1] = ydata[i]
return result
def flatten6a(x,y):
'''Robin Becker variant of 6'''
n = min(len(x
when the arguments
occupy a significant portion of the available memory.
Peter
very nice indeed; another generalization is to allow truncation as well
def interleave(*args,**kw):
Peter Otten flatten7 (generalized by Michael Spencer and Robin Becker)
Interleave any number of sequences
the author via sf, but no
reply. Does anyone know if poshmodule works with latest stuff?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
Robin Becker wrote:
Paul Rubin wrote:
This module might be of interest: http://poshmodule.sf.net
It seems it might be a bit out of date. I've emailed the author via sf, but
no
reply. Does anyone know if poshmodule works with latest stuff?
from the horse's mouth
As mentioned earlier only a dictator can make such decisions and of course as
with many dictatorships the wrong decision is often made. There's no such thing
as a benevolent dictatorship.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Eric Nieuwland wrote:
Ever cared to check what committees can do to a language ;-)
well there goes democracy :(
-the happy slaves eat and are contented-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
psyco so xlrd's attempted psyco use
shouldn't be an issue. Thanks for 2.4.2, but is this one of the fixed bugs or
has it just got harder to induce?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
for some
time without any apparent success.
http://www.python.org/sf/1175396
/F
thanks that looks like it, the __init__.py had
# -*- coding: cp1252 -*-
at the start.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Is there a way to override a data property in the instance? Do I need to create
another class with the property changed?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
Robin Becker a écrit :
Is there a way to override a data property in the instance? Do I need
to create another class with the property changed?
Do you mean attributes or properties ?
I mean property here. My aim was to create an ObserverProperty class
= 3
b = A()
b.x = 4
#I wish I could get b to use obs1 instead of obs0
#without doing the following
class B(A):
x = ObserverProperty('x',observers=[obs1])
b.__class__ = B
b.x = 7
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
Robin Becker wrote:
Is there a way to override a data property in the instance? Do I need to
create
another class with the property changed?
--
Robin Becker
It is possible to decorate a method in a way that it seems like
property() respects overridden methods
Steven Bethard wrote:
Robin Becker wrote:
...
Can you add the object to be observed as another parameter to the add
method?
py class ObservableProperty(property):
... def __init__(self, *args, **kwargs):
..
py A.x.add(b, obs2)
py b.x = 7
obs2: 7
Probably self
(p2cread, p2cwrite,
File c:\python\lib\subprocess.py, line 609, in _get_handles
p2cread = self._make_inheritable(p2cread)
File c:\python\lib\subprocess.py, line 650, in _make_inheritable
DUPLICATE_SAME_ACCESS)
WindowsError: [Errno 6] The handle is invalid
C:\Tmp
--
Robin
subprocess, but I recall there's a
known bug where pythonw actually crashes on win9x when you write to
sys.stdout, since it's not connected to anything...
John
So then it's not possible to get pythonw apps eg tkinter guis to use
subprocess properly? Seems a bit daft to me.
--
Robin Becker
to tell it to ignore stdin. The value None seems to be used to signal that
the existing stdin is used and that fails. I believe the solution is just to
use
PIPE for stdin as well and then I don't have to write to it.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Ilpo Nyyssönen wrote:
...
with locking(mutex), opening(readfile) as input:
...
with EXPR as x:
BLOCK
EXPR can be a tuple so the above would be ambiguous.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
. Switching uid at startup allows the client code to
be private; so is that a strategy for protecting the
encryption/decryption which obfuscates the xmlrpc channel?
Anyone done this sort of thing before?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Kent Johnson wrote:
Robin Becker wrote:
Ilpo Nyyssönen wrote:
with locking(mutex), opening(readfile) as input:
...
with EXPR as x:
BLOCK
EXPR can be a tuple so the above would be ambiguous.
I don't think EXPR can be a tuple; the result of evaluating EXPR must
have
John J. Lee wrote:
What's a fast object library?
ferrarilib :)
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
state of POLL). I assume that the subprocess is filling
up the pipe and then failing to wake up again. I had expected that
subprocess would take care of this for me, but possibly I'm being
utterly clueless and stupid. What should I do to avoid blocking in the
subprocess?
--
Robin Becker
for
sockets). I guess I need to read repeatedly from the stdout etc to get the
output. Clearly the poll call can't return a status until we've finished
reading.
Dieter
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
):
self._f.write(s)
if '\n' in s:
self._f.flush()
I wondered if I could make a file subclass somehow fail the PyFile_Check which
allows the optimization.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
, and then my LineFlusherFile would be a subclass of that. But
it's the same thing, really.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Jp Calderone wrote:
On Wed, 15 Jun 2005 16:38:32 +0100, Robin Becker [EMAIL PROTECTED] wrote:
Michael Hoffman wrote:
.
Well, you could use python -u:
unfortunately this is in a detached process and I am just reopening stdout
as an ordinary file so another process can do tail -F on it. I
.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
dcrespo wrote:
Hi... Thanks for your answer, but can you give me his contact or tell
him to post here the answer I'm looking for? I'm needing it seriously.
Well I'm not a VB person so perhaps you need to ask on a VB list. Unfortunately
the student has vanished into the real world.
--
Robin
Robin Becker wrote:
dcrespo wrote:
Hi... Thanks for your answer, but can you give me his contact or tell
him to post here the answer I'm looking for? I'm needing it seriously.
Well I'm not a VB person so perhaps you need to ask on a VB list.
Unfortunately
the student has vanished
like to automate my build script to include this file, but cannot think
of an automatic way to determine which of msvcr70/71.dlls are needed.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Heller wrote:
Robin Becker [EMAIL PROTECTED] writes:
.
For a discussion about the rights (or not) to distribute msvcr71.dll you
could read the py2exe-users lists archive.
thanks for the tip, I believe there was a discussion on clpy recently as well
I would like to automate
Paul Rubin wrote:
km [EMAIL PROTECTED] writes:
is true parallelism possible in python ? or atleast in the coming versions ?
is global interpreter lock a bane in this context ?
http://poshmodule.sf.net
Is posh maintained? The page mentions 2003 as the last date.
--
Robin Becker
--
http
to create
a single exe tkinter + twisted app.
The whole thing took about 3 days to build and deploy to testing of which about
one day was figuring out how the NSIS + py2exe stuff worked. I think the nsis
script needed a minor tweak to do exactly what we wanted.
--
Robin Becker
--
http
Could PIL have been compiled without freetype support perhaps?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
if it is on the stable branch or not.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
a watermark to pdfs.
Transparency, size and placement are all editable. Obviously, no use if
you want to do this with Python, but it might suit your needs.
Rob C
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
I'm having a problem with freeze vs Python-2.4. I need to get various codecs
into the freeze, but suspect I need to explicitly import them. Must I just
import codecs or all the ones I'm likely to use?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
and thanks again
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
...
My question is this: what can be substituted for whatever that will
make the example above work?
self.__class__.__name__
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Michael Hoffman wrote:
Robin Becker wrote:
self.__class__.__name__
Unless I misunderstood the question, that won't work. That will
give you the name of the class the object is an instance is of.
I think he wants the name of the class the method was defined in.
Here's a way to do that using
without some coding,
but it has been implemented in various ways using sockets etc etc.
I seem to remember that modern idle uses an rpc technique for debugging.
There are several python projects which address interprocess
communication pyro http://pyro.sourceforge.net/ is a good example.
--
Robin
(Foo):
... def othermeth(self):
... pass
...
def findClass(meth):
... for x in meth.im_class.mro():
... if meth.im_func in x.__dict__.values(): return x
...
findClass(Bar.somemeth)
class '__main__.Foo'
findClass(Bar.othermeth)
class '__main__.Bar'
--
Robin Becker
is Free or Open Source?
What I need are the following things:
- runs in Windows
- single stepping
- variable watches
- breakpoints
Just the typical debugger stuff.
Alex
I used hapdebugger for such a purpose some time ago, but I believe it
needs a special startup python.exe.
--
Robin Becker
Robin Becker wrote:
I'm trying to get a handle on a real world problem related to raising an
exception. This is in the reportlab SimpleDoctemplate class.
The following code takes a very long time (60 seconds) in Python 2.2,
2.3, 2.4, but not in 2.1 (at least on windows).
raise LayoutError
it himself.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Benjamin Niemann wrote:
Robin Becker wrote:
..
I'm also a bit puzzled that www.ironpython.com has no mention of this
release.
Curious that J Hugunin didn't announce it himself.
Jim Hugunin announced it himself in a keynote at PyCon. You can read a lot
about it on Python centric blogs - just
to end of
February so was looking for some recent back and forth.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
...
Has anyone managed to download the new release?
If so please, would you email it to me at luismgz at gmail.com ??
I managed by clicking on the gotdotnet link and got a zip file OK.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern wrote:
Robin Becker wrote:
yes, but the simple download is a bit bare, I was hoping to find out
more and then the passport login seems to come into play. Is there no
other homepage somewhere? I assumed wsa www.ironpython.com, but that
seems a bit out of date now. The mailing list
is there a
modern version of the source on the web somewhere?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
I'm trying to get pySimplex working in Python 2.4, but I find that
kjbucketsmodule.c makes reference to rename2.h which doesn't seem to be
present in Python 2.4.
I suppose that kjbucketsmodule.c needs to be brought up to date. It
occurs to me that someone may have already
important.
Is there a fast way to get enumerate to operate over a slice of an iterable?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Peter Otten wrote:
Robin Becker wrote:
Is there a fast way to get enumerate to operate over a slice of an
iterable?
I think you don't need that here:
e = enumerate(active_nodes)
for insert_index, a in e:
# ...
for index, a in e:
# ...
Peter
I tried your solution, but I think we miss
Raymond Hettinger wrote:
[Robin Becker]
This function from texlib in oedipus.sf.net is a real cpu hog and I determined
to see if it could be optimized.
def add_active_node(self, active_nodes, node):
Add a node to the active node list.
The node is added so that the list of active nodes
for.
-paradoxically yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
.
-wondering where my paper tape editor is-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Raymond Hettinger wrote:
[Robin Becker]
People have mentioned the older v6 build scripts/tools still work. Last time I
tried they seemed a bit out of date.
I routinely use the current CVS to build Py2.4 and Py2.5 with MSC6.
It is effortless and I've had no problems.
Raymond Hettinger
I
of rights to this
algorithm or you will hear from my solicitor, Mr J. Peasbody.
Yours in law,
James Harlow.
Isn't it time we decompressed Adolf Hitler so that this thread can die?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
a number of perl modules which do that and other modules which
allow you to overprint etc etc.
You can always hand translate one of the extract perl modules. They don't seem
that hard. Alternatively put a good case to [EMAIL PROTECTED]
--
Robin Becker
--
http://mail.python.org/mailman/listinfo
termination and getting a partial
match to be resumable seems out of the question.
What interface does re actually need for its src objects?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
as the loop progessed through the file). Am I actually saving anything
by not letting normal vm do its thing?
HTH,
Gerald
Robin Becker schrieb:
Is there any way to get regexes to work on non-string/unicode objects.
I would like to split large files by regex and it seems relatively
hard to do so without
1 - 100 of 735 matches
Mail list logo