Re: SOAPpy and callback

2006-10-13 Thread Diez B. Roggisch
Paul McGuire schrieb: > "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> [EMAIL PROTECTED] schrieb: >>> Hello, >>> >>> I'm trying to find how to use a callback in a SOAP client using SOAPpy. >>&

Re: SOAPpy and callback

2006-10-13 Thread Diez B. Roggisch
> I like your term "standard-wise". Although there is nothing in the SOAP > "standard" that prevents this architecture, it is probably open for > discussion whether it is "wise." Might stem from "standardweise", the german word for something that is part of a standard, or e.g. something always

Weekly Python Patch/Bug Summary

2006-10-15 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 431 open ( +3) / 3425 closed ( +8) / 3856 total (+11) Bugs: 916 open (-23) / 6273 closed (+44) / 7189 total (+21) RFE : 244 open ( +4) / 240 closed ( +1) / 484 total ( +5) New / Reopened Patches __ typo in P

Re: Strange Behavior

2006-10-16 Thread Diez B. Roggisch
abcd wrote: > Rob Williscroft wrote: >> http://docs.python.org/ref/function.html#l2h-619 > > > thanks. weird that it works that way since they even state "This is > generally not what was intended." The "not intended" refers to the programmer making the mistake of creating a shared instance -

Re: COM Error -- Urgent help

2006-10-17 Thread Diez B. Roggisch
Teja wrote: > > Dennis Lee Bieber wrote: >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed >> the following in comp.lang.python: >> >> >thread.start_new_thread(self.nav, (s,'www.google.com') >> > >> > I am getting an attribute error >> >> That can not be the REAL code

Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Diez B. Roggisch
Lou Pecora wrote: > I installed the SciPy superpackage and have pylab, matplotlib, scipy, > and numpy apparently running well. But I want to use matplotlib/pylab > interactively. The instructions suggest doing this in IPython. But > using ipython on the command line gives me an error. The syst

Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Diez B. Roggisch
Lou Pecora wrote: > In article <[EMAIL PROTECTED]>, > "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> Lou Pecora wrote: >> >> > I installed the SciPy superpackage and have pylab, matplotlib, scipy, >> > and numpy

Re: block devices

2006-10-17 Thread Diez B. Roggisch
rick schrieb: > What's the best way to read a byte of data directly from a block device > (a scsi hard drive) on Linux using Python? Reading it? Using read? f = open("/dev/foo") f.read(1) Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Web Site?

2006-10-17 Thread Michael B. Trausch
Tim Chase wrote: >> Is there a problem with the Python and wxPython web sites? >> I cannot seem to get them up > > Sounds like someone needs some pyagra... > > (grins, ducks, and runs) > Interesting. I thought at first it was a problem with Python's sites... but I got through to the Python sit

Re: More Noob Questions

2006-10-18 Thread Diez B. Roggisch
Omar schrieb: > 1) I'm also learning to program flash movies while I learn to do > python. How can one implement flash movies into their python code? You can't - flash uses action script, a variant of ECMA script. There is a PyPy-javascript-backend available, but I guess that's a little bit bey

Re: Can I use decorators to manipulate return type or create methods?

2006-10-19 Thread Diez B. Roggisch
WakeBdr schrieb: > I'm writing a class that will query a database for some data and return > the result to the caller. I need to be able to return the result of > the query in several different ways: list, xml, dictionary, etc. I was > wondering if I can use decorators to accomplish this. > > Fo

Re: Can I use decorators to manipulate return type or create methods?

2006-10-19 Thread Diez B. Roggisch
WakeBdr schrieb: > Diez, > What does the function._marked accomplish? Its a decorator that tells the metaclass which functions to provide with a *XML/*FOO variant as well. I thought that was pretty obvious, given the name "mark" and all that. Diez -- http://mail.python.org/mailman/listinf

Re: Can I use decorators to manipulate return type or create methods?

2006-10-20 Thread Diez B. Roggisch
WakeBdr schrieb: > Diez, > I get what that accomplishes now, but I'm having problems in my > implementation. I was able to write a standalone class that worked > correctly. However, in my code the class that I need to exhibit this > functionality inherits from another class. This seems to cause

Re: Unicode support in python

2006-10-20 Thread Diez B. Roggisch
sonald schrieb: > Fredrik Lundh wrote: >>>http://www.google.com/search?q=python+unicode >> (and before anyone starts screaming about how they hate RTFM replies, look >> at the search result) >> >> > Thanks!! but i have already tried this... Tried - might be. But you certainly didn't understan

Re: Can I use decorators to manipulate return type or create methods?

2006-10-20 Thread Diez B. Roggisch
WakeBdr schrieb: OK, I think I'm close now. I just can't get past this one error. Here is my code, followed by the output produced when I run it. Stupid mistake of me - I didn't properly create a closure for the functions to set. See the corrected version in the attachment. Diez test2.py

Re: User Access to the docstring of a property

2006-10-20 Thread Diez B. Roggisch
Colin J. Williams schrieb: > Is there some way that the user can access the docstring specified for a > property? You need to access it using the class, not an instance of it. class Foo(object): @apply def prop(): def fget(self): return 10 def fset(self,

Re: curious paramstyle qmark behavior

2006-10-20 Thread Diez B. Roggisch
BartlebyScrivener schrieb: > With > > aColumn = "Topics.Topic1"' > > The first statement "works" in the sense that it finds a number of > matching rows. > > c.execute ("SELECT Author, Quote, ID, Topics.Topic1, Topic2 FROM > QUOTES7 WHERE " + aColumn + " LIKE ?", ("%" + sys.argv[1] + "%",)) > >

Re: Inheriting property functions

2006-10-21 Thread Diez B. Roggisch
Dustan schrieb: > Looking at this interactive session: > >>>> class A(object): > def __init__(self, a): > self.a = a > def get_a(self): return self.__a > def set_a(self, new_a): self.__a = new_a > a = property(get_a, set_a)

Re: FOR statement

2006-10-21 Thread Diez B. Roggisch
Theerasak Photha schrieb: > On 21 Oct 2006 00:50:34 -0700, Ant <[EMAIL PROTECTED]> wrote: > >> But there's a good reason not to. Try: >> >> printreverse(range(1000)) >> >> Recursion has a maximum depth (of 1000 by default) in Python. > > I guess Python isn't tail-recursive then? Nope. And given

Re: FOR statement

2006-10-21 Thread Diez B. Roggisch
Theerasak Photha schrieb: > On 21 Oct 2006 00:50:34 -0700, Ant <[EMAIL PROTECTED]> wrote: > >> But there's a good reason not to. Try: >> >> printreverse(range(1000)) >> >> Recursion has a maximum depth (of 1000 by default) in Python. > > I guess Python isn't tail-recursive then? To complement my

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread Diez B. Roggisch
> I'm a Mac developer--Gtk does not run natively on the Mac (i.e. as an > Aqua framework), only under X11. So that's a non-starter for me. Besides the excellent PyObjc-bridge that of course only works for Mac-only-development, you might consider PyQt. Biggest drawback: the GPL-license. But feat

Re: User Access to the docstring of a property

2006-10-21 Thread Diez B. Roggisch
plain the use of @apply in the > example Dietz gave. The documentation gives no reference to @ or to The decorator semantics are simple: @a @b(argument) def foo(): pass get translated to foo = a(b(argument)(foo)) as a decorator is nothing but function that is called with one thing, a

Attempting to parse free-form ANSI text.

2006-10-21 Thread Michael B. Trausch
Alright... I am attempting to find a way to parse ANSI text from a telnet application. However, I am experiencing a bit of trouble. What I want to do is have all ANSI sequences _removed_ from the output, save for those that manage color codes or text presentation (in short, the ones that are ESC[

Re: Script to count files in a folder

2006-10-23 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > > > On Oct 23, 3:11 pm, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > A batch file creates this file and deletes that file in the same loop. >> > This file is intended to start the reading of an input file. After it >> > is read batch file

Re: Attempting to parse free-form ANSI text.

2006-10-23 Thread Michael B. Trausch
Jean-Paul Calderone wrote: > On Sun, 22 Oct 2006 00:34:14 -0400, "Michael B. Trausch" > wrote: >> Alright... I am attempting to find a way to parse ANSI text from a >> telnet application. However, I am experiencing a bit of trouble. >> >> What I want to

Re: Attempting to parse free-form ANSI text.

2006-10-23 Thread Michael B. Trausch
Frederic Rentsch wrote: > Michael B. Trausch wrote: >> Alright... I am attempting to find a way to parse ANSI text from a >> telnet application. However, I am experiencing a bit of trouble. >> [snip] > > *I have no experience with reading from TCP/IP. But looking at y

Python segmentation fault?

2006-10-23 Thread Michael B. Trausch
Is there a way to debug scripts that cause segmentation faults? I can do a backtrace in gdb on Python, but that doesn't really help me all that much since, well, it has nothing to do with my script... :-P Any ideas? Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-

Re: Attempting to parse free-form ANSI text.

2006-10-24 Thread Michael B. Trausch
Jean-Paul Calderone wrote: > On Sun, 22 Oct 2006 00:34:14 -0400, "Michael B. Trausch" > wrote: >> Alright... I am attempting to find a way to parse ANSI text from a >> telnet application. However, I am experiencing a bit of trouble. >> >> What I want to

Re: batteries included

2006-10-25 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Could someone confirm that modules like socket don't use libraries/ > dlls on a particular OS, they are completly self contained. They might need DLLs, but if so they ship with the distribution. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: python html 2 image (png)

2006-10-25 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: >> what tools are you using to do that today? > > where are many of EXE programs > but i need python solution for adding it to my automate program under > lunix Whatever lunix is, under linux, a popular free OS you could e.g. use PyKDE and let Qt render a KHTML-compone

Debugging/Networking ?s.

2006-10-26 Thread Michael B. Trausch
I am having a little bit of trouble figuring out what to do about a problem that I am having with the program I am working with. I had it working yesterday, and up through till this morning. I hadn't thought about putting it in version control until now, so whatever it was I did, I can't just hit

PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-26 Thread Michael B. Trausch
Kenneth McDonald wrote: > > With the most recent edition of PyDev, I find Eclipse works quite well > for me. > Since you mentioned it, I have a question that searching around and poking around has not solved for me, yet. Do you have auto-completion working with your setup? It does not seem to w

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-26 Thread Michael B. Trausch
olive wrote: > > Did you try to set your PYTHONPATH properly with the same content in > both central AND project preferences ? > Yep. Still does it. And the kicker is, that it does it with things that it shouldn't have to wonder terribly much about -- classes that I have custom-built, where it

Re: which one of these is better?

2006-10-26 Thread Michael B. Trausch
John Salerno wrote: > def create_sql_script(self): > try: > with open('labtables.sql') as sql_script: > return sql_script.read() > except IOError: > wx.MessageBox('Could not locate the file "labtables.sql"', > 'Fi

Re: Python segmentation fault?

2006-10-26 Thread Michael B. Trausch
Klaas wrote: > Michael B. Trausch wrote: >> Is there a way to debug scripts that cause segmentation faults? I can >> do a backtrace in gdb on Python, but that doesn't really help me all >> that much since, well, it has nothing to do with my script... :-P > > Y

Tracing the execution of scripts?

2006-10-26 Thread Michael B. Trausch
Alright, I seem to be at a loss for what I am looking for, and I am not even really all that sure if it is possible or not. I found the 'pdb' debugger, but I was wondering if there was something that would trace or log the order of line execution for a multi-module Python program. I am having a l

Weekly Python Patch/Bug Summary

2006-10-26 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 434 open ( +3) / 3430 closed ( +5) / 3864 total ( +8) Bugs: 929 open (+13) / 6285 closed (+12) / 7214 total (+25) RFE : 245 open ( +1) / 240 closed ( +0) / 485 total ( +1) New / Reopened Patches __ various d

Re: Tracing the execution of scripts?

2006-10-27 Thread Michael B. Trausch
Jean-Paul Calderone wrote: > > In order of importance: > > 1) Write unit tests for your code. Keep writing unit tests until you have > some that _don't pass_. Then fix your code so that they do. When you do > further development, write the tests first, then implement the code that > makes them

Re: Tracing the execution of scripts?

2006-10-27 Thread Michael B. Trausch
Ben Finney wrote: > Jean-Paul Calderone <[EMAIL PROTECTED]> writes: > >> 1) Write unit tests for your code. Keep writing unit tests until >> you have some that _don't pass_. Then fix your code so that they >> do. When you do further development, write the tests first, then >> implement the code

Re: Tracing the execution of scripts?

2006-10-27 Thread Michael B. Trausch
Stephan Kuhagen wrote: > "Michael B. Trausch" <"mike$#at^&nospam!%trauschus"> wrote: > >> Basically, is there something that will log every line of Python code >> executed, in its order of execution, to a text file so that I can see >> what is

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-27 Thread Michael B. Trausch
olive wrote: > Michael B. Trausch wrote: > >> Yep. Still does it. > > I'm running PyDev 1.2.4 without completion problem so far. > > Are you up to date ? > > Maybe you should install the latest from scratch. > Yep, I am up to date. As I said, I

Re: Configfile

2006-10-27 Thread Diez B. Roggisch
Fulvio schrieb: > *** > Your mail has been scanned by InterScan MSS. > *** > > > HI, > > I've a small doubt regarding the way to save a configuration file on the file > manipulated by ConfigParser. > As far as I could understand this: > > cp = ConfigPars

Re: What is the cleanest way to for a module to access objects from the script that imports it?

2006-10-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi, > > I am new to python and am currently writing my first application. One > of the problems I quickly ran into, however, is that python's imports > are very different from php/C++ includes in the sense that they > completely wrap the imported script in a module obj

Re: Safely renaming a file without overwriting

2006-10-28 Thread Diez B. Roggisch
Wolfgang Draxinger schrieb: > Steven D'Aprano wrote: > >> I want to rename a file, but only if the destination file name >> doesn't already exist. >> >> I can do this: >> >> if os.path.exists(dest): >> # skip file, raise an exception, make a backup... >> do_something_else() >> else: >>

Re: Where do nested functions live?

2006-10-28 Thread Diez B. Roggisch
> If I may turn the issue around, I could see a need for an inner function > to be able to access the variables of the outer function, the same way a > function can access globals. Why? Because inner functions serve to > de-multiply code segments one would otherwise need to repeat or to > provi

Re: Safely renaming a file without overwriting

2006-10-28 Thread Diez B. Roggisch
Wolfgang Draxinger schrieb: > Steven D'Aprano wrote: > >> But the source file always exists, otherwise there is nothing >> to rename! Do you mean, open the destination filename? > > Of course I meant the destination file. Someone please spill some > ice chilled water over me to get me awake again

Re: "from module import *" and modifying module's top-level vars

2006-10-29 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi everyone, > > I define some vars and functions in a "support" module which gets > called from my > main app module. Using Python 2.5. > > I import all symbols in the support module at the top of the main > module through: > > from support import * > > Is there a

Re: enumerate improvement proposal

2006-10-30 Thread Diez B. Roggisch
> Okay, I've googled "leaky abstractions" (as was probably your intended > affect with your silence), read the famous essay, and still > don't know what you mean and how it applies to what I have described. > > Do you plan to justify your statement or emptily accuse people of violating > esoteric

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-11-01 Thread Michael B. Trausch
Éric Daigneault wrote: > > I run the latest pydev on both windows and linux... The setup is > excatcly the same (on the eclipse, path setup and all) > My windows setup is much better at auto-complete that the linux > setup... In linux, other than with self, I seldom get auto complete on > other

Re: Remote Objects via CGI?

2006-11-01 Thread Diez B. Roggisch
kpd wrote: > Three are lots of good looking remote-object implementations for Python > such as Pyro, Rpyc, and PyInvoke.All of these require a deamon > running to serve the remote objects. > > Has anyone seen a method of doing this using CGI or FastCGI instead of > a deamon? I'm not worried

Re: scared about refrences...

2006-11-01 Thread Diez B. Roggisch
SpreadTooThin schrieb: > Bruno Desthuilliers wrote: >> Nick Vatamaniuc a écrit : >> (snip) >>> In Python all the primitives are copied and all other entities are >>> references. >> Plain wrong. There's no "primitives" (ie : primitive data types) in >> Python, only objects. And they all get passed

Re: other ways to check for ?

2006-11-02 Thread Diez B. Roggisch
Sybren Stuvel schrieb: > elderic enlightened us with: >> are there other ways than the ones below to check for > 'function'> in a python script? > > First of all, why would you want to? If you want to call the object > as a function, just do so. Handle the exception that is raised when > it's rais

Using Python within a Python application.

2006-11-02 Thread Michael B. Trausch
Hello, everyone. I am doing some searching and winding up a little bit confused. I have a MUD client that I am writing using Python and wxWidgets, as some of you may remember. What I am looking to do now, is add "trigger" functionality to it. In essence, the application receives text from the g

Re: creating new objects with references to them

2006-11-02 Thread Diez B. Roggisch
> >> Anyway, a simple list of Researchers should suffice for any of these >> purposes, and assuming you want to commit them all in one hit, you have >> a list of objects ready to iterate over. > > Ok, so in making a list does this mean that I won't have a name for > each instance? I just have to

Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread Michael B. Trausch
I was wondering if anyone has had any experience with this. Someone I know is trying to move away from Microsoft Works, and I am trying to look into a solution that would convert their data in a lossless fashion to a more modern format. The database has more than 65K rows, so converting it to be

Re: Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread Michael B. Trausch
GISDude wrote: > Mike, > I totally forgot that MS Works was out there. Haven't used that one in > about 6 or 7 years. Honestly, your best bet is to convert to .csv or > some delimited .txt file. Once that is done, all your rows/columns will > be "nice and neat" . > Once that is done, (and since you

Re: Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread Michael B. Trausch
Larry Bates wrote: > > MS ships ODBC interface to xBase databases in all versions of Windows. > You don't need Access. Just create DSN to your exported dBase database > and MS Word, MS Excel, and any other ODBC aware product can read the > data. If the data size is large or if you want to move to

Re: forwarding *arg parameter

2006-11-05 Thread Diez B. Roggisch
Tuomas schrieb: > >>> def g(*arg): > ... return arg > ... > >>> g('foo', 'bar') > ('foo', 'bar') > >>> # seems reasonable > ... > >>> g(g('foo', 'bar')) > (('foo', 'bar'),) > >>> # not so good, what g should return to get rid of the outer tuple g(*g('foo', 'bar')) * and ** are the syme

Re: Projecting MUD maps

2006-11-05 Thread Diez B. Roggisch
and south) that connects it to another room. So it > is very easy to model a MUD as a directed graph. But projecting the > graph on a surface is very complicated. For example, Room A:s North > edge may connect it to Room B. But Room B:s South edge may connect it > to Room C. Or another tric

Re: Is there any python lib for calling CVS api?

2006-11-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi everyone, this should be a quick question. I'm writing some > scripts > to take some file and move them into a CVS repository, but it's pretty > slow, because it uses system calls to execute the CVS commands. > > Has anyone ever made a python to CVS interface lib

Re: Projecting MUD maps

2006-11-06 Thread Diez B. Roggisch
BJörn Lindqvist wrote: > On 11/5/06, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >> BJörn Lindqvist schrieb: >> > Hello, I'm looking for an algorithm to project "MUD maps" such as the >> > following map: http://www.aww-mud.org/maps/MUD_Maps/Cae

Weekly Python Patch/Bug Summary

2006-11-07 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 430 open ( -4) / 3447 closed (+17) / 3877 total (+13) Bugs: 922 open ( -7) / 6316 closed (+31) / 7238 total (+24) RFE : 245 open ( +0) / 241 closed ( +1) / 486 total ( +1) New / Reopened Patches __ modulefin

Re: for x in... x remains global

2006-11-08 Thread Diez B. Roggisch
Antoine De Groote wrote: > for x in range(3): pass > > After this statement is executed x is global variable. This seems very > unnatural to me and caused me 3 three days of debugging because I was > unintentionally using x further down in my program (typo). I would have > thought that variables

Lists of lists and tuples, and finding things within them

2006-11-09 Thread Michael B. Trausch
t" entry from the list above; but I can only retrieve it if I know what it contains (e.g., x.index(('host', 'dragonstone.org'))). Is there a better way to do this than a construct similar the following? for key, value in x:     if key == 'host':     print value Thanks

Re: how to create a multicolor "font-string" in pygame??

2006-11-09 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi! I need to manipulate multicolor strings, i.e. strings with a color > associated with each letter. > Any suggestions? There is no support for multi-color strings as such in pygame. If you use a fixed-width font, things are easy. Just create the strings one after a

Re: Simple question to split

2006-11-09 Thread Diez B. Roggisch
Matthias Winterland schrieb: > Hi, > > I have a simple question. When I read in a string like: > a='1,2,3,4,5 6 7,3,4', can I get the list l=[1,2,3,4,5,6,7,3,4] with a > single split-call? Nope. But you could replace the commas with spaces, and then split. Diez -- http://mail.python.org/mailma

Re: Simple question to split

2006-11-09 Thread Diez B. Roggisch
Diez B. Roggisch schrieb: > Matthias Winterland schrieb: >> Hi, >> >> I have a simple question. When I read in a string like: >> a='1,2,3,4,5 6 7,3,4', can I get the list l=[1,2,3,4,5,6,7,3,4] with a >> single split-call? > > Nope. But you cou

Re: how to create a multicolor "font-string" in pygame??

2006-11-09 Thread Diez B. Roggisch
Diez B. Roggisch schrieb: > [EMAIL PROTECTED] schrieb: >> Hi! I need to manipulate multicolor strings, i.e. strings with a color >> associated with each letter. >> Any suggestions? > > There is no support for multi-color strings as such in pygame. If you > use a fix

Getting externally-facing IP address?

2006-11-10 Thread Michael B. Trausch
?  For example, my laptop's IP address is 192.168.0.101, and I want to bind a server to that address.  Is there a clean way of doing so that will work, for example, when I move the code to my server (which obviously doesn't have the same IP address)? Thanks in advance.     -- Mike --

Re: Need help with Subversion bindings

2006-11-10 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > I'm trying to write a basic Subversion client because I need to > integrate Subversion with a product that keeps source code in a > database (so it has no notion of "working copy"). > > I have tried to translate the simple C examples in Garrett Rooney's > book into Pyt

Decimal() instead of float?

2006-11-11 Thread Michael B. Trausch
).  For example, I have a ZIP code database that can do some processing on its numbers, and the numbers are stored as floating point values (exactly) but Python doesn't get them right; so the Decimal() thing would be needed.  *shrugs*     Thanks a bunch,     Mike -- Michael B. Trausch

Re: writing wx code in emacs - how to make easier?

2006-11-12 Thread Diez B. Roggisch
> I would like to write wx code in emacs. For now I'm using python-mode > but I hope they are stuff which make it easier. I mean some > autocompletion or abbrevs of such things as wx.ALIGN* wx.EVT_* ... Create a TAGS-file using e.g. find -type f | xargs -L1 etags --append Then use the emacs co

Re: logging

2006-11-13 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi all ! > How to remove a logger ? > There si no logging.removeLogger(name) method. > I've a lot of objects that create loging. > When objects are destroyed, associated logger are not. This create > memory leak... Instead of removing unused loggers, reuse them. Calling

Re: logging

2006-11-13 Thread Diez B. Roggisch
> > That's a good idea but object name change (necessity). So what? You can log the name, but you don't need a logger with that name for that! Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: CORBA: Fnorb Problems

2006-11-13 Thread Diez B. Roggisch
rodmc wrote: > Hi, > > I have installed Fnorb and everything seems to have gone ok. However I > keep getting the error message below. This is despite the fact that the > MS CL c++ preprocessor seems to be in PATH. I can type "cl" and > although I get nothing back in the DOS window, there is also

Re: Python development time is faster.

2006-11-13 Thread Diez B. Roggisch
> Oh, the memories... I went down the same road about two years ago, > though I didn't know about PyLucene at the time and wrapped in jython > the parts of Lucene I used... never bothered to deal with java's > verbosity after that. It's a pity that jython resembles abandon-ware > these days, when j

Re: Character Encodings and display of strings

2006-11-13 Thread Diez B. Roggisch
JKPeck wrote: > Thanks for the quick answer. I thought repr was involved here, but > when I use repr explicitly I get a notation where the backslashes are > escaped. I also though that with the encoding explictily declared in > the source, that repr would take that into account and use the > cha

Re: How to make a python file to a DLL?

2006-11-16 Thread Diez B. Roggisch
many_years_after schrieb: > Any solution? http://wiki.python.org/moin/elmer -- http://mail.python.org/mailman/listinfo/python-list

Re: split CSV fields

2006-11-16 Thread Diez B. Roggisch
robert wrote: > What is a most simple expression for splitting a CSV line with "-protected > fields? > > s='"123","a,b,\"c\"",5.640' Use the csv-module. It should have a dialect for this, albeit I'm not 100% sure if the escaping of

Re: pyj file extension

2006-11-16 Thread Diez B. Roggisch
bituman wrote: > I have two questions for the list: > - what extension is pyj ? AFAIK custom to some game that uses python - but I guess you already know that. > - is there a good python debugger that can inspect precompiled python > files? You can decompyle them: http://www.crazy-compiler

Re: Secure Python

2006-11-16 Thread Diez B. Roggisch
> > as posted before, linux kernel limit. > > then you and your users can go as crazy as you want and you won't take > out your system. > > maybe you should think a little more before going on the attack like that. You should maybe read a little bit more when making bold statements about the fe

Re: Secure Python

2006-11-16 Thread Diez B. Roggisch
> A significant issue is the architecture of the server itself. Is a > per-process solution acceptable or must everything happen in the same > process with lots of threads (or microthreads)? Of course, there are > games using lots of microthreads, although I'm not sure whether they > also use lots

Weekly Python Patch/Bug Summary

2006-11-16 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 416 open (-14) / 3463 closed (+16) / 3879 total ( +2) Bugs: 930 open ( +8) / 6333 closed (+17) / 7263 total (+25) RFE : 244 open ( -1) / 244 closed ( +3) / 488 total ( +2) New / Reopened Patches __ tkSimpleD

problem with defining a global class instance

2006-11-16 Thread sharath B N
hi, i am sort of newbie to python. I am trying to do a super Market simulation with OOP in python. I have problems with using a class instance as global... def generate (... ,,...) " in this function i define the global variables " global stock,stockManager, manager etc. class Manager ... .

Re: Array? Please help.

2006-05-28 Thread Diez B. Roggisch
George Sakkis schrieb: > Diez B. Roggisch wrote: >> Dr. Pastor schrieb: >>> I need a row of 127 bytes that I will use as a >>> circular buffer. Into the bytes (at unspecified times) >>> a mark (0>> After some time the "buffer" will contain the l

Re: dynamically loaded libraries

2006-05-29 Thread Diez B. Roggisch
mhearne808 wrote: > I have a question about how dynamically loaded C++ modules work, which > I will phrase as a hypothetical scenario involving the Numeric module. > Please understand that I don't really care about Numeric per se, it's > just a useful example of a module that defines a generally

Re: saving settings

2006-05-29 Thread Diez B. Roggisch
SuperHik wrote: > aum wrote: >> On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote: >> >>> Hi, >>> >>> I was wondering how to make a single .exe file, say some kind od clock, >>> and be able to save some settings (alarm for example) into the same >>> file? Basically make code rewrite it self... >

Re: saving settings

2006-05-29 Thread Diez B. Roggisch
> that doesn't shock me :p > anyway you're talking about instalation while I'm talkig about single > standalone file. > Besides, if it was neccessary I bet MS would make that option (and it > wouldn't be a problem since installation is not done from a sinlge file > but from the CD (should be CD-RW

Re: omniorbpy: problems sending float values

2006-05-29 Thread Diez B. Roggisch
Juergen wrote: > hi, > > I've got a problem sending floating point values to an corba server. > With other datatyes like short or string it works fine. It works fine for me with floats, too. You'd better ask this on the omniorb ML, and don't forget to give some more details on the python & omn

Weekly Python Patch/Bug Summary

2006-05-29 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 375 open ( -3) / 3264 closed (+26) / 3639 total (+23) Bugs: 910 open ( +3) / 5851 closed (+20) / 6761 total (+23) RFE : 217 open ( -1) / 220 closed ( +3) / 437 total ( +2) New / Reopened Patches __ Minor Cor

Re: os.time()

2006-05-30 Thread Diez B. Roggisch
Anthony wrote: > i have a problem with the os.times() command, on different Python > versions, i get different printout: > and on the 3 servers, the linux command: $date > returns the same value. > > any suggestions??? > what is the command that gives me the actual time? time.time(), not o

Re: saving settings

2006-05-30 Thread Diez B. Roggisch
Grant Edwards wrote: > Documents and settings aren't quite the same thing, but it's a > valid point. > >> Especially not the ones you wrote on that other machine. >> >> Seriously: Who is going to copy a executable around? > > I do. I copy putty.exe around all of the time. I download it every

Re: Beginner Python OpenGL difficulties

2006-05-30 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > > Mike C. Fletcher wrote: >> [EMAIL PROTECTED] wrote: >> > I'm beginning learning Python and OpenGL in Python. >> > > [...] >> > ImportError: No module named OpenGL.GLUT >> > >> > [EMAIL PROTECTED]/etc/python>$ echo $PYTHONPATH >> > /usr/lib/python2.2/site-packages/Open

Re: iterator? way of generating all possible combinations?

2006-05-30 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > > > Well thanks for the mathematical restatement of my problem. I had > forgotten the proper terms. Searching on those terms generates some > interesting results. > > However, none of the algo's I have checked will work with generated > sequences, or iterable classe

Re: Way to get an array of latitude/longitude points (tuples) from a trip

2006-05-30 Thread Diez B. Roggisch
Can anyone out there help? The problem is not the latitude/longitude. It would be trivial to compute the great circle, thus the length of the trip between A and B and divide it in smaller pieces to get 1-mile-distances. But unless you own an Aircraft & are important enough to take flights

Re: image lib & Qt4

2006-06-01 Thread Diez B. Roggisch
aljosa wrote: > i'm looking for image lib which supports common image types (maybe > freeimagepy?) and is relatively easy to display image loaded through > that lib in PyQt4. > any ideas? Use PIL & StringIO to create a in-memory representation of the image as e.g. PNG. Load that using Qt. Diez -

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? > > Any suggestions on what that something else is? Is it hard to convert > the code from DOM to SAX? Yes. You

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Diez B. Roggisch
K.S.Sreeram schrieb: > [EMAIL PROTECTED] wrote: >> I wrote a program that takes an XML file into memory using Minidom. I >> found out that the XML document is 10gb. > > With a 10gb file, you're best bet might be to juse use Expat and C!! No what exactly makes C grok a 10Gb file where python will

Re: Python language problem

2006-06-07 Thread Diez B. Roggisch
> > Thanks for your so detailed explain, I think I know you, But my Engish > is not enough > to explain. > > I create same object in Tree, I want to update Tree, when I need to > delete subtree. > If where no references, I can't do that. some thing like blow: > for i in list: >del i This ma

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Diez B. Roggisch
http://en.wikipedia.org/wiki/Ilias_Lazaridis [posted publicly to comp.lang.python, with no email notification to recipients that certainly don't consider this a relevant topic and for all those who don't know Illias] Diez -- http://mail.python.org/mailman/listinfo/python-list

<    6   7   8   9   10   11   12   13   14   15   >