Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread Robin Becker
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

Re: OT: MoinMoin and Mediawiki?

2005-01-12 Thread Robin Becker
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

Re: Free python server.

2005-01-14 Thread Robin Becker
misuse it's free and I'm no longer an American :) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: rotor replacement

2005-01-19 Thread Robin Becker
from politics? What exactly are/were the political reasons for rotor removal? I might add that the source for rotormodule is still easily obtainable and can be compiled trivially as an extension for Python-2.4. Does the Python community take a position on the sources of removed modules? -- Robin

Re: rotor replacement

2005-01-19 Thread Robin Becker
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

Re: rotor replacement

2005-01-19 Thread Robin Becker
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

Re: rotor replacement

2005-01-20 Thread Robin Becker
=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

Re: python and visual C++

2005-02-02 Thread Robin Becker
which may help -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient checksum calculating on lagre files

2005-02-08 Thread Robin Becker
-- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

customizing metaclass constructed classes

2005-02-15 Thread Robin Becker
= 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

Re: customizing metaclass constructed classes

2005-02-15 Thread Robin Becker
in toto (because it's public domain). -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: override a property

2005-10-21 Thread Robin Becker
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

Re: override a property

2005-10-22 Thread Robin Becker
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

Re: Web-based client code execution

2005-11-20 Thread Robin Becker
/ 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

Re: Web-based client code execution

2005-11-21 Thread Robin Becker
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

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-02 Thread Robin Becker
=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

Re: float point properties access

2004-12-03 Thread Robin Becker
): break ... n += 1 ... pe = e ... return pe ... print dbl_epsilon() 2.22044604925e-016 -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: float point properties access

2004-12-03 Thread Robin Becker
Robin Becker wrote: Neal D. Becker wrote: Is there a way in python to access properties of floats? I need something equiv to C DBL_EPSILON defined in float.h. you could try the traditional algorithm def dbl_epsilon(): ... n = 0 ... while 1: ... e = 1.0/2**n

Win32 Libs for 2.4

2004-12-06 Thread 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

Re: Win32 Libs for 2.4

2004-12-06 Thread Robin Becker
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

Re: Win32 Libs for 2.4

2004-12-06 Thread Robin Becker
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

Re: Win32 Libs for 2.4

2004-12-07 Thread Robin Becker
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

Re: Win32 Libs for 2.4

2004-12-07 Thread Robin Becker
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

Re: PIL for Windows for Python 2.4

2004-12-10 Thread Robin Becker
a decent TCL any more so haven't compiled that stuff. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-14 Thread Robin Becker
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

Re: better lambda support in the future?

2004-12-18 Thread Robin Becker
. 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

Re: Lambda going out of fashion

2004-12-23 Thread Robin Becker
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

Re: Complementary language?

2004-12-26 Thread Robin Becker
to the top in your opinion? Alex -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Complementary language?

2004-12-26 Thread Robin Becker
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

Re: Complementary language?

2004-12-26 Thread Robin Becker
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

Re: Optional Static Typing - Haskell?

2004-12-27 Thread Robin Becker
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

Re: 0 in [True,False] returns True

2005-12-13 Thread Robin Becker
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

Re: closing stdin, stdout and stderr

2005-12-26 Thread Robin Becker
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

Re: closing stdin, stdout and stderr

2005-12-26 Thread Robin Becker
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

viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
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

Re: viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
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

Re: viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
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

Re: viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
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

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jan 3)

2006-01-03 Thread Robin Becker
. Tismer, how cool :) -fleeingly yrs- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Spelling mistakes!

2006-01-08 Thread Robin Becker
. 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

Mysterious non-module A.sys

2006-01-10 Thread Robin Becker
is the entry for? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Mysterious non-module A.sys

2006-01-10 Thread Robin Becker
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

flatten a level one list

2006-01-11 Thread Robin Becker
,]) -- [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

Re: flatten a level one list

2006-01-12 Thread Robin Becker
with a simple index. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: flatten a level one list

2006-01-12 Thread Robin Becker
(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

Re: flatten a level one list

2006-01-13 Thread Robin Becker
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

Re: dual processor

2005-09-07 Thread Robin Becker
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

Re: dual processor

2005-09-09 Thread Robin Becker
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? haven't been able to contact posh's author

Re: dual processor

2005-09-12 Thread Robin Becker
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

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-07 Thread Robin Becker
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

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-07 Thread Robin Becker
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

strange import error with Python-2.4.1

2005-10-11 Thread Robin Becker
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

Re: strange import error with Python-2.4.1

2005-10-11 Thread Robin Becker
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

override a property

2005-10-17 Thread Robin Becker
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

Re: override a property

2005-10-18 Thread Robin Becker
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

Re: override a property

2005-10-18 Thread Robin Becker
= 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

Re: override a property

2005-10-18 Thread Robin Becker
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

Re: override a property

2005-10-19 Thread Robin Becker
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

BUG pythonw vs subprocess

2005-06-01 Thread Robin Becker
(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

Re: BUG pythonw vs subprocess

2005-06-02 Thread Robin Becker
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

Re: BUG pythonw vs subprocess

2005-06-02 Thread 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

Re: For review: PEP 343: Anonymous Block Redux and Generator Enhancements

2005-06-04 Thread Robin Becker
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

SimpleXMLRPCServer security

2005-06-04 Thread Robin Becker
. 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

Re: For review: PEP 343: Anonymous Block Redux and Generator Enhancements

2005-06-04 Thread Robin Becker
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

Re: Q: functional/equational language, smells a little of Python

2005-06-05 Thread Robin Becker
John J. Lee wrote: What's a fast object library? ferrarilib :) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

subprocess module and blocking

2005-06-12 Thread Robin Becker
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

Re: subprocess module and blocking

2005-06-14 Thread 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

non OO behaviour of file

2005-06-15 Thread Robin Becker
): 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

Re: non OO behaviour of file

2005-06-15 Thread Robin Becker
, 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

Re: non OO behaviour of file

2005-06-15 Thread Robin Becker
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

Re: SOAP and XMLRPC

2005-08-15 Thread Robin Becker
. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: SOAP and XMLRPC

2005-08-15 Thread Robin Becker
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

Re: SOAP and XMLRPC

2005-08-15 Thread Robin Becker
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

Determining win32 dll dependency

2005-08-15 Thread Robin Becker
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

Re: Determining win32 dll dependency

2005-08-15 Thread Robin Becker
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

Re: global interpreter lock

2005-08-19 Thread Robin Becker
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

Re: Python Light Revisted?

2005-08-23 Thread Robin Becker
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

Re: Cygwin font problems

2005-08-29 Thread Robin Becker
Could PIL have been compiled without freetype support perhaps? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: reportlab - ttf justify

2006-01-19 Thread Robin Becker
if it is on the stable branch or not. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: good library for pdf

2006-01-26 Thread Robin Becker
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

frozen codecs

2006-02-23 Thread Robin Becker
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

Re: [ANN] Python 2.4 Quick Reference available

2005-02-19 Thread Robin Becker
and thanks again -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: introspection inquiry

2005-02-20 Thread Robin Becker
[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

Re: introspection inquiry

2005-02-20 Thread Robin Becker
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

Re: Attaching to a Python Interpreter a la Tcl

2005-02-23 Thread Robin Becker
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

Re: Is there way to determine which class a method is bound to?

2005-02-25 Thread Robin Becker
(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

Re: Debugging Python Scripts inside other processes

2005-03-12 Thread 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

Re: raise takes a long time

2005-03-18 Thread 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

Re: IronPython 0.7 released!

2005-03-23 Thread Robin Becker
it himself. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython 0.7 released!

2005-03-23 Thread Robin Becker
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

Re: IronPython 0.7 released!

2005-03-24 Thread Robin Becker
to end of February so was looking for some recent back and forth. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython 0.7 released!

2005-03-24 Thread Robin Becker
... 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

Re: IronPython 0.7 released!

2005-03-24 Thread Robin Becker
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

modern kjbuckets anywhere?

2005-03-25 Thread Robin Becker
is there a modern version of the source on the web somewhere? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: modern kjbuckets anywhere?

2005-03-25 Thread Robin Becker
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

split an iteration

2005-03-31 Thread Robin Becker
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

Re: split an iteration

2005-03-31 Thread Robin Becker
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

Re: split an iteration

2005-03-31 Thread Robin Becker
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

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Robin Becker
for. -paradoxically yrs- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Robin Becker
. -wondering where my paper tape editor is-ly yrs- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   >