Ann: FarPy GUIE v0.5.3

2006-12-01 Thread [EMAIL PROTECTED]
About http://farpy.holev.com GUIE (GUI Editor) provides a simple WYSIWYG GUI editor for wxWidgets. The program was made in C# and saves the GUI that was created to a XML format I called GUIML. This GUIML is a pretty standard representation of the GUI created with the program with some helpful

PyCon: talks and tutorials announced

2006-12-01 Thread A.M. Kuchling
The slate of talks and tutorials for PyCon 2007 is now public. Talks: http://us.pycon.org/apps07/talks/ Tutorials: http://us.pycon.org/TX2007/Tutorials A first draft of the schedule is at http://spreadsheets.google.com/pub?key=phUfAEt_ZocCS4W_dPL53cQ. Caution: This schedule is still subject to

Functions, callable objects, and bound/unbound methods

2006-12-01 Thread Ron Garret
If I do this: def f(self): print self class c1: pass setattr(c1, 'm1', f) Then f is automagically transmogrified into the appropriate sort of method depending on how it is used: c1.m1 unbound method c1.f c1().m1 bound method c1.f of __main__.c1 instance at 0x51e738 c1().m1() __main__.c1

Re: Functions, callable objects, and bound/unbound methods

2006-12-01 Thread Duncan Booth
Ron Garret [EMAIL PROTECTED] wrote: I want to say: trace(c1.m1) and have c1.m1 be replaced with a wrapper that prints debugging info before actually calling the old value of m1. The reason I want that to be an instance of a callable class instead of a function is that I need a place

How to read the directory which the actively running python file is located in?

2006-12-01 Thread Michael Malinowski
Is there a way to read the directory that the currently running python file is located in? Cheers Mike. -- http://mail.python.org/mailman/listinfo/python-list

Re: v2.3, 2.4, and 2.5's GUI is slow for me

2006-12-01 Thread Duncan Booth
g4rlik [EMAIL PROTECTED] wrote: No one can help? This is seriously bugging me to no end. My problem is..the GUI for versions 2.3, 2.4, and 2.5 of Python run very sluggishly. When I type in them or move them around my desktop, it's very slow. I have figured out that this is because of the

RE: detecting that a SQL db is running

2006-12-01 Thread Tim Golden
[EMAIL PROTECTED] | Sorry if i did not make myself clear. let me try again. | | I can detect when the db is up and not responding, however, | if the DB does not start at all, my local application hangs. I need to find a | way to determine if the DB has started, that's all. Maybe (and

Re: How can I change the icon

2006-12-01 Thread Godson
On 30 Nov 2006 13:05:23 -0800, Boneh [EMAIL PROTECTED] wrote: Boneh wrote: Is it possible to change the icon Tk of the windows popped up ? I am using tkinter for widgets, thanks :-) -- http://mail.python.org/mailman/listinfo/python-list user iconbitmap method to change the icon of the

Re: Is there a reason not to do this?

2006-12-01 Thread Michele Simionato
Ron Garret wrote: One of the things I find annoying about Python is that when you make a change to a method definition that change is not reflected in existing instances of a class (because you're really defining a new class when you reload a class definition, not actually redefining it). So

Re: why would anyone use python when java is there?

2006-12-01 Thread Mark Westwood
may I, as a former Englishman, say how proud we always were to be exploited by our betters many thanks guv Mark Jonathan Smith wrote: gavino wrote: wtf Java is a coffee, and coffee comes from exploited Ethiopians (they do have some damn fine coffee, though). Most of us prefer to exploit

How to turn AUTOCOMMIT ON with cx_Oracle

2006-12-01 Thread Jia Lu
Hi all. I use cx_Oracle to connect to an Oracle9i DB. And I want to turn on AUTOCOMMIT function. I see that cur.execute(SET AUTOCOMMIT ON) cannot work. Is there any method to do that ?? Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

Re: Ruby/Python/REXX as a MUCK scripting language

2006-12-01 Thread Laurent Pointal
Cameron Laird a écrit : In article [EMAIL PROTECTED], Laurent Pointal [EMAIL PROTECTED] wrote: Fred Bayer a écrit : Tony Belding wrote: I'm interested in using an off-the-shelf interpreted language as a user-accessible scripting language for a MUCK. I'm just not sure if I

Re: Is there a reason not to do this?

2006-12-01 Thread Paul McGuire
Ron Garret [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] These objects can be parts of huge networks of massively linked data structures. They are in constant flux. It is not uncommon to hit a bug after many minutes, sometimes hours, of computation. Having to store the whole

python vs java eclipse

2006-12-01 Thread Amir Michail
Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it is no longer obvious to me that one would be much more productive in python for medium sized projects.

Re: String formatters with variable argument length

2006-12-01 Thread Peter Otten
John Machin wrote: Fredrik Tolf wrote: The thing is, I want to get format strings from the user, and I don't want to require the user to consume all the arguments. what's ugly about this: [untested]: def count_format_args(s): pending = False count = 0 for c in s:

Re: How to turn AUTOCOMMIT ON with cx_Oracle

2006-12-01 Thread Paul McGuire
Jia Lu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I use cx_Oracle to connect to an Oracle9i DB. And I want to turn on AUTOCOMMIT function. I see that cur.execute(SET AUTOCOMMIT ON) cannot work. Is there any method to do that ?? Thanks a lot! AUTOCOMMIT is a

Re: How to turn AUTOCOMMIT ON with cx_Oracle

2006-12-01 Thread Jia Lu
Paul McGuire のメッセージ: AUTOCOMMIT is a dangerous crutch, beware. Ok for single record updates, but if you need to update 2 records in synch, AUTOCOMMIT leaves you open to hard-to-debug bugs (will work ok in development under light load, then fail intermittently with concurrent users). Thanx.

Re: PIL throws exception when reading bitmap/pnm data

2006-12-01 Thread Roel Schroeven
Dennis Lee Bieber schreef: Send a complaint to M$ requesting them to open document the NTFS format... I've been out of the loop for a while, but the last time I checked, NTFS was something that should be treated as read-only from LINUX -- the recommendation was to make a small FAT-32

Re: python vs java eclipse

2006-12-01 Thread Simon Brunning
On 1 Dec 2006 01:24:47 -0800, Amir Michail [EMAIL PROTECTED] wrote: Eclipse for example provides such an amazing IDE for java that it is no longer obvious to me that one would be much more productive in python for medium sized projects. Eclipse can generate a lot of the Java boilerplate code,

Re: Slicing versus loops, was Re: for i in range() anti-pattern

2006-12-01 Thread Peter Otten
Steven D'Aprano wrote: On Thu, 30 Nov 2006 11:17:17 +0100, Peter Otten wrote: Steven D'Aprano wrote: And remember that if alist is truly huge, you may take a performance hit due to duplicating all those megabytes of data when you slice it. Having the same object in two lists

Re: Slicing versus loops, was Re: for i in range() anti-pattern

2006-12-01 Thread Peter Otten
Peter Otten wrote: Here is another implementation that cuts maximum memory down from 100 to 50%. from itertools import islice def swap(items): items[::2], items[1::2] = islice(items, 1, None, 2), items[::2] return items Unfortunately, the following a = [1, 2, 3] a[::2] =

Distutils questions.

2006-12-01 Thread José Rui Faustino de Sousa
Hi! I am writing a package installation using distutils it is very nice but I have it two snags: setup(... data_files=[(foo,[*.data])],\ ...) setup.py install --prefix=/usr/bar/baz a) Shouldn't the *.data syntax work? b) Why does it install the data files on /usr/bar/baz/foo and not in

Re: Functions, callable objects, and bound/unbound methods

2006-12-01 Thread Michele Simionato
Duncan Booth wrote: Ron Garret [EMAIL PROTECTED] wrote: I want to say: trace(c1.m1) and have c1.m1 be replaced with a wrapper that prints debugging info before actually calling the old value of m1. The reason I want that to be an instance of a callable class instead of a function

RE: How to read the directory which the actively running python file islocated in?

2006-12-01 Thread Michael Malinowski
Nevermind, I got it using the sys.argv[0] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Malinowski Sent: Friday, December 01, 2006 9:07 AM To: python-list@python.org Subject: How to read the directory which the actively running python file

Win32 Excel Generation Slow

2006-12-01 Thread Daniel Bowett
I am trying to create an excel document that displays a table of data. It does exactly what I want but takes a long time. I am writing around 1000 rows and it takes around a second to do each row. Is there a quicker way to write this? The reason I want excel is this needs to read and

python 2.5 install from source problem

2006-12-01 Thread Fabian Braennstroem
Hi, I just tried to install python 2.5 from source on my ScienticLinux (Redhat Clone) machine. It seems to work without any problem, at least I am able to run some of my old scripts. I installed it with './configure --prefix=/opt/python make make altinstall', but now for a 'vtk' installation

Re: python vs java eclipse

2006-12-01 Thread krishnakant Mane
just used the py dev plugin for eclipse. it is great. auto indentation and intellisence. and all other things. so now how does it look from this end? python + productivity and eclipse + productivity = double productivity! only problem with the plugin is that I find it difficult to manage the

Re: python vs java eclipse

2006-12-01 Thread hg
krishnakant Mane wrote: just used the py dev plugin for eclipse. it is great. auto indentation and intellisence. and all other things. so now how does it look from this end? python + productivity and eclipse + productivity = double productivity! only problem with the plugin is that I find

Re: python vs java eclipse

2006-12-01 Thread Thomas Ploch
Thomas Ploch schrieb: Amir Michail schrieb: Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it is no longer obvious to me that one would be much

RE: How to read the directory which the actively running python file islocated in?

2006-12-01 Thread Jeremy Sanders
Michael Malinowski wrote: Nevermind, I got it using the sys.argv[0] That doesn't always work, as on unix the path isn't prepended onto sys.argv[0] necessarily. import os.path ... os.path.dirname(os.path.abspath(__file__)) may be better. -- Jeremy Sanders http://www.jeremysanders.net/ --

Re: python vs java eclipse

2006-12-01 Thread hg
Thomas Ploch wrote: Thomas Ploch schrieb: Amir Michail schrieb: Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it is no longer obvious to me that

Re: python vs java eclipse

2006-12-01 Thread Amir Michail
krishnakant Mane wrote: just used the py dev plugin for eclipse. it is great. But isn't support for java better because the eclipse ide can take advantage of explicit type declarations (e.g., for intellisense, refactoring, etc.)? Amir auto indentation and intellisence. and all other

python voip modules

2006-12-01 Thread Croteam
Hello, If somebody know any python module that uses voip or sip except shtoom and yate Please tell me full url of that module or send to [EMAIL PROTECTED] Thanks,I will really appreciate that -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Question About Compiling.

2006-12-01 Thread Paul Boddie
Fredrik Lundh wrote: yndesai wrote: Is it that no compiling facility is hindering the growth of python in commercial circuit . . . ? I can see the point of people who are confused about single file executables for Python programs, who are possibly new to the technology and don't know where

Re: How to read the directory which the actively running python file is located in?

2006-12-01 Thread anders
in os module there is many funktion/methods to extract this information to ask the path to the current running pythonprogram you can do likes this - CUT--- import os print os.getcwd() - CUT -- // Anders Michael Malinowski skrev: Is there a way to read the directory that

Re: How to read the directory which the actively running python file is located in?

2006-12-01 Thread anders
in os module there is many funktion/methods to extract this information to ask the path to the current running pythonprogram you can do likes this - CUT--- import os print os.getcwd() - CUT -- // Anders Michael Malinowski skrev: Is there a way to read the directory that

recover/extract content from html with help of cheetah templates

2006-12-01 Thread [EMAIL PROTECTED]
Hello, currently i am developing a very small cms using python and cheetah. very early i have noticed that i was lacking the method to extract/recover the contents (html,text) from the html that is generated by cheetah and delivered to the site viewer. to explain it further: during the output

PythonWin And Excel Problem

2006-12-01 Thread Andrea Gavana
Hi All, I am having some problems in running a very simple python script, which prints some numbers in an Excel spreadsheet. The numbers are stored in a list. I know that the numbers are different (random generated), but when I open the Excel file I get a column of data with all the numbers

route planning

2006-12-01 Thread Andre Meyer
Hi all Just a very simple question: where can I find a module for route planning? I have looked around and found some implementations of graph theory, e.g. http://sourceforge.net/projects/pynetwork/. But, what I need is not an abstract graph, but one where nodes/vertices have locations (2D),

Re: PythonWin And Excel Problem

2006-12-01 Thread Michael S
First of all you should call the random.seed() function. That was at least what I´ve always done. seed([x]) Initialize the basic random number generator. Second of all, calling random.random() will give you this: random() Return the next random floating point number in the range [0.0,

PythonWin And Excel Problem

2006-12-01 Thread Andrea Gavana
Hi Michael, First of all you should call the random.seed() function. That was at least what I´ve always done. seed([x]) Thanks for your suggestion, but it doesn't matter whether you call seed() or not. The random number generator can *not* return 10 equal values if called 10 times,

Re: Win32 Excel Generation Slow

2006-12-01 Thread Roger Upole
Daniel Bowett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to create an excel document that displays a table of data. It does exactly what I want but takes a long time. I am writing around 1000 rows and it takes around a second to do each row. Is there a quicker way

Re: PythonWin And Excel Problem

2006-12-01 Thread Roger Upole
Andrea Gavana [EMAIL PROTECTED] wrote: Hi All, I am having some problems in running a very simple python script, which prints some numbers in an Excel spreadsheet. The numbers are stored in a list. I know that the numbers are different (random generated), but when I open the Excel file I

I/O Multiplexing and non blocking socket

2006-12-01 Thread Salvatore Di Fazio
Hi guys, I'm looking for a tutorial to make a client with a i/o multiplexing and non blocking socket. Anybody knows where is a tutorial? Tnx -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a reason not to do this?

2006-12-01 Thread Carl Banks
Ron Garret wrote: In article [EMAIL PROTECTED], Ron Garret [EMAIL PROTECTED] wrote: I don't want to get into a philosophical debate. Actually, I changed my mind. Consider: def g(): print 'G' def h(): print 'H' def f(): g() class C1: def m1(self): f() class C2: def m1(self):

Re: I/O Multiplexing and non blocking socket

2006-12-01 Thread Jean-Paul Calderone
On 1 Dec 2006 06:07:28 -0800, Salvatore Di Fazio [EMAIL PROTECTED] wrote: Hi guys, I'm looking for a tutorial to make a client with a i/o multiplexing and non blocking socket. Anybody knows where is a tutorial? http://twistedmatrix.com/projects/core/documentation/howto/clients.html Jean-Paul --

Re: I/O Multiplexing and non blocking socket

2006-12-01 Thread Bjoern Schliessmann
Salvatore Di Fazio wrote: I'm looking for a tutorial to make a client with a i/o multiplexing and non blocking socket. Anybody knows where is a tutorial? Perhaps a bit of an overkill, but try this: http://twistedmatrix.com/projects/core/documentation/howto/clients.html Regards, Björn

Re: Win32 Excel Generation Slow

2006-12-01 Thread Paul McGuire
Daniel Bowett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to create an excel document that displays a table of data. It does exactly what I want but takes a long time. I am writing around 1000 rows and it takes around a second to do each row. Is there a quicker way

client/server design and advice

2006-12-01 Thread TonyM
I recently completed the general guidelines for a future project that I would like to start developing...but I've sort of hit a wall with respect to how to design it. In short, I want to run through approximately 5gigs of financial data, all of which is stored in a large number of text files.

Re: I/O Multiplexing and non blocking socket

2006-12-01 Thread Salvatore Di Fazio
Jean-Paul Calderone ha scritto: On 1 Dec 2006 06:07:28 -0800, Salvatore Di Fazio [EMAIL PROTECTED] wrote: Hi guys, I'm looking for a tutorial to make a client with a i/o multiplexing and non blocking socket. Anybody knows where is a tutorial?

Re: PythonWin And Excel Problem

2006-12-01 Thread Michael S
Andrea, Also, could it be that when you do the following: sheet.Range(A1:A10).Value = therand you actually initialize all 10 cells to the first element of the array? Try to iterate and initialize every cell separately. Michael --- Andrea Gavana [EMAIL PROTECTED] wrote: Hi All, I am

Re: client/server design and advice

2006-12-01 Thread Diez B. Roggisch
First off, i was wondering if this is a reasonable setup: The entire process would involve a server which manages which pc is processing which set of data (which may be a given text file or the like), and a client application which i would run on a few pc's locally when they aren't in use.

Re: More elegant to get a name: o.__class__.__name__

2006-12-01 Thread George Sakkis
Carl Banks wrote: alf wrote: Hi, is there a more elegant way to get o.__class__.__name__. For instance I would imagine name(o). def name_of_type(o): return o.__class__.__name__ name_of_type(o) Carl Banks P.S. name(o) suggests it's the name of the object, not the type P.P.S.

Is python memory shared between theads?

2006-12-01 Thread Wesley Henwood
So I declare a variable named A in thread1, in script1.py. I assign the value of 2.5 to A. I then run script2.py in thread2. Script2.py assigns the value of 5.5 to a variable named A. Now, when thread1 resums execution, I see that A = 5.5, rather than 2.5 as I expected. Is this normal

good documentation about win32api ??

2006-12-01 Thread __schronos__
Hi all. Recently I've to developed a project in python that made operation under win32 platform and I found a lot of problema to find good information. The only one documentation is in ActivePython page (http://aspn.activestate.com/ASPN/docs/ASPNTOC-APYTH2.4.0) but it is not very good and

Re: Is python memory shared between theads?

2006-12-01 Thread Grant Edwards
On 2006-12-01, Wesley Henwood [EMAIL PROTECTED] wrote: So I declare a variable named A in thread1, in script1.py. I assign the value of 2.5 to A. I then run script2.py in thread2. Script2.py assigns the value of 5.5 to a variable named A. Now, when thread1 resums execution, I see that A =

Re: client/server design and advice

2006-12-01 Thread Jean-Paul Calderone
On 1 Dec 2006 06:52:37 -0800, TonyM [EMAIL PROTECTED] wrote: I recently completed the general guidelines for a future project that I would like to start developing...but I've sort of hit a wall with respect to how to design it. In short, I want to run through approximately 5gigs of financial

Re: proof of concept python and tkinter gnugo interface

2006-12-01 Thread Anton Vredegoor
grindel wrote: Anton Vredegoor wrote: [...] Here's the proof of concept, just copy it to some dir and run the Python script: http://home.hccnet.nl/a.vredegoor/gnugo/ It needs Python 2.5 which you can get at: http://www.python.org/ If you talking about a simple gui for gnu go it's

Simple question on indexing

2006-12-01 Thread Tartifola
Hi, I would like to obtain the position index in a tuple when an IF statement is true. Something like a=['aaa','bbb','ccc'] [ ??? for name in a if name == 'bbb'] 1 but I'm not able to find the name of the function ??? in the python documentation, any help? Thanks --

Re: good documentation about win32api ??

2006-12-01 Thread Paul McGuire
__schronos__ [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] And the question is: ¿Anybody knows where can I find good documentation about win32api? There is the book, Python Programming on WIN32, by Mark Hammond.

Re: Detecting recursion loops

2006-12-01 Thread robert
Ben Finney wrote: robert [EMAIL PROTECTED] writes: Carl Banks wrote: 2. Consider whether you're unwittingly trying to cover up a bug. ISTM no matter how problematic the input is, you should at least be able to make progress on it. Are you getting this error because, say, you're not

Re: Detecting recursion loops

2006-12-01 Thread Neil Cerutti
On 2006-12-01, robert [EMAIL PROTECTED] wrote: Ben Finney wrote: robert [EMAIL PROTECTED] writes: Carl Banks wrote: 2. Consider whether you're unwittingly trying to cover up a bug. ISTM no matter how problematic the input is, you should at least be able to make progress on it. Are you

Re: Simple question on indexing

2006-12-01 Thread Jon Clements
Tartifola wrote: Hi, I would like to obtain the position index in a tuple when an IF statement is true. Something like a=['aaa','bbb','ccc'] [ ??? for name in a if name == 'bbb'] 1 but I'm not able to find the name of the function ??? in the python documentation, any help? Thanks

Re: Simple question on indexing

2006-12-01 Thread Christoph Haas
On Friday 01 December 2006 17:21, Tartifola wrote: I would like to obtain the position index in a tuple when an IF statement is true. Something like a=['aaa','bbb','ccc'] [ ??? for name in a if name == 'bbb'] 1 What about: [ x for x,y in enumerate(a) if y == 'bbb' ] Or if there is only

Re: Pimping the 'cgi' module

2006-12-01 Thread robert
Harry George wrote: When I came from Perl, I too missed perl-isms and specifically CGI.pm, so wrote my own: http://www.seanet.com/~hgg9140/comp/index.html http://www.seanet.com/~hgg9140/comp/pyperlish/doc/manual.html http://www.seanet.com/~hgg9140/comp/cgipm/doc/index.html Others on this

Re: Detecting recursion loops

2006-12-01 Thread fumanchu
robert wrote: Ben Finney wrote: robert [EMAIL PROTECTED] writes: Carl Banks wrote: 2. Consider whether you're unwittingly trying to cover up a bug. ISTM no matter how problematic the input is, you should at least be able to make progress on it. Are you getting this error because,

Re: python vs java eclipse

2006-12-01 Thread Stephen Eilert
Amir Michail escreveu: krishnakant Mane wrote: just used the py dev plugin for eclipse. it is great. But isn't support for java better because the eclipse ide can take advantage of explicit type declarations (e.g., for intellisense, refactoring, etc.)? Amir The support for Java is

Re: client/server design and advice

2006-12-01 Thread Josh Bloom
You may also want to take a look at Erlang http://www.erlang.org/ for some ideas of how to do distributed programming. -- http://mail.python.org/mailman/listinfo/python-list

Re: Detecting recursion loops

2006-12-01 Thread robert
Neil Cerutti wrote: On 2006-12-01, robert [EMAIL PROTECTED] wrote: Ben Finney wrote: robert [EMAIL PROTECTED] writes: Carl Banks wrote: 2. Consider whether you're unwittingly trying to cover up a bug. ISTM no matter how problematic the input is, you should at least be able to make progress

Re: Is python memory shared between theads?

2006-12-01 Thread John Henry
Wesley Henwood wrote: So I declare a variable named A in thread1, in script1.py. I assign the value of 2.5 to A. I then run script2.py in thread2. Script2.py assigns the value of 5.5 to a variable named A. Now, when thread1 resums execution, I see that A = 5.5, rather than 2.5 as I

Re: Functions, callable objects, and bound/unbound methods

2006-12-01 Thread Kent Johnson
Ron Garret wrote: The reason I want to do this is that I want to implement a trace facility that traces only specific class methods. I want to say: trace(c1.m1) and have c1.m1 be replaced with a wrapper that prints debugging info before actually calling the old value of m1. The reason

Re: Functions, callable objects, and bound/unbound methods

2006-12-01 Thread Kent Johnson
Ron Garret wrote: The reason I want to do this is that I want to implement a trace facility that traces only specific class methods. I want to say: trace(c1.m1) and have c1.m1 be replaced with a wrapper that prints debugging info before actually calling the old value of m1. The reason

Re: Is python memory shared between theads?

2006-12-01 Thread Daniel Dittmar
Wesley Henwood wrote: So I declare a variable named A in thread1, in script1.py. I assign the value of 2.5 to A. I then run script2.py in thread2. Script2.py assigns the value of 5.5 to a variable named A. Now, when thread1 resums execution, I see that A = 5.5, rather than 2.5 as I

Re: Functions, callable objects, and bound/unbound methods

2006-12-01 Thread Ron Garret
In article [EMAIL PROTECTED], Kent Johnson [EMAIL PROTECTED] wrote: Ron Garret wrote: The reason I want to do this is that I want to implement a trace facility that traces only specific class methods. I want to say: trace(c1.m1) and have c1.m1 be replaced with a wrapper that

Re: client/server design and advice

2006-12-01 Thread TonyM
Don't use sqlite, use a real RDBMS. sqlite is cool, but not really suited for large amounts of data, and the concurrent access aspects that are dealt with with an RDBMS for free are not to be underestimated. Would PostgreSQL be suitable in this situation? I hadn't even thought about the

Re: Functions, callable objects, and bound/unbound methods

2006-12-01 Thread Ron Garret
In article [EMAIL PROTECTED], Michele Simionato [EMAIL PROTECTED] wrote: Duncan Booth wrote: Ron Garret [EMAIL PROTECTED] wrote: I want to say: trace(c1.m1) and have c1.m1 be replaced with a wrapper that prints debugging info before actually calling the old value of m1.

[no subject]

2006-12-01 Thread Thomas Ploch
Amir Michail schrieb: krishnakant Mane wrote: just used the py dev plugin for eclipse. it is great. But isn't support for java better because the eclipse ide can take advantage of explicit type declarations (e.g., for intellisense, refactoring, etc.)? Amir Obviously, since eclipse

Re: Is there a reason not to do this?

2006-12-01 Thread Ron Garret
In article [EMAIL PROTECTED], Carl Banks [EMAIL PROTECTED] wrote: The principle behind this is pretty much it was just a language design decision. Yes, and I'm not taking issue with the decision, just pointing out that the desire to do things differently is not necessarily perverse. P.S.

Re: Is there a reason not to do this?

2006-12-01 Thread Ron Garret
In article [EMAIL PROTECTED], Michele Simionato [EMAIL PROTECTED] wrote: Ron Garret wrote: One of the things I find annoying about Python is that when you make a change to a method definition that change is not reflected in existing instances of a class (because you're really defining a

Re: good documentation about win32api ??

2006-12-01 Thread olsongt
__schronos__ wrote: Hi all. Recently I've to developed a project in python that made operation under win32 platform and I found a lot of problema to find good information. The only one documentation is in ActivePython page (http://aspn.activestate.com/ASPN/docs/ASPNTOC-APYTH2.4.0) but it

Re: client/server design and advice

2006-12-01 Thread Irmen de Jong
TonyM wrote: Lastly, as far as the networking goes, i have seen posts and such about something called Pyro (http://pyro.sourceforge.net) and wondered if that was worth looking into for the client/server interaction. I'm currently busy with a new version of Pyro (3.6) and it already includes a

Re: python vs java eclipse

2006-12-01 Thread Paul Boddie
Stephen Eilert wrote: The support for Java is light-years ahead. Sometimes I feel that Eclipse is coding for me (quickfix, for instance). Eclipse may be quite a technical achievement, but I found it irritating. Aside from the misuse of screen real-estate, I found that typing two characters and

Re: v2.3, 2.4, and 2.5's GUI is slow for me

2006-12-01 Thread John Salerno
g4rlik wrote: I've been asking all over the place, namely different forums. I even e-mailed [EMAIL PROTECTED] about my problem, but they couldn't assist me too much. My problem is..the GUI for versions 2.3, 2.4, and 2.5 of Python run very sluggishly. When I type in them or move them

RE: client/server design and advice

2006-12-01 Thread bruce
hi irmen... happened to come across this post. haven't looked at pyro. regarding your 'work packets' could these essentially be 'programs/apps' that that are requested by the client apps, and are then granted by the dispatch/server app? i'm considering condor (univ of wisconsin) but am curious

RE: v2.3, 2.4, and 2.5's GUI is slow for me

2006-12-01 Thread Michael . Coll-Barth
-Original Message- From: John Salerno I don't use IDLE too much anymore, just for quick tests, but Just curious. I have tried IDLE, but stopped using it after going through a few of the tutorials. I just type things in at the 'python' prompt, regardless of which platform I am

Re: Python spam?

2006-12-01 Thread skip
aahz Anyone else getting Python-related spam? So far, I've seen aahz messages from Barry Warsaw and Skip Montanaro (although of aahz course header analysis proves they didn't send it). I blacklisted Barry long ago. He's probably sending out spam in my name in retaliation. ;-)

Re: client/server design and advice

2006-12-01 Thread John Henry
TonyM wrote: snip Pyro rocks for that. Awesome, ill look into it in greater detail and will most likely use it. Given what ive seen so far it looks like it will make the client/server interface fairly easy to write. Correction: not fairly easy - make that incredibly easy. Even Micky

Re: good documentation about win32api ??

2006-12-01 Thread krishnakant Mane
On 1 Dec 2006 09:56:09 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: http://msdn.microsoft.com covers the API itself, although you need to transliterate from the C code to python. Exactly! that's where the problem lyes. I am pritty well to do with windows API, I am an a good python

Security Descriptor and CoInitializeSecurity

2006-12-01 Thread Huayang Xia
I'd like to call pythoncom.CoInitializeSecurity with a PySecurityDescriptor object to set the process-wide security values. But I'm not able to find a way to let the code go through. I have read MSDN and searched web, I've not been able to find answer. I cooked a security descriptor like this

Thread help

2006-12-01 Thread Salvatore Di Fazio
Hi guys, I would make 3 threads for a client application. Tnx -- http://mail.python.org/mailman/listinfo/python-list

Re: String formatters with variable argument length

2006-12-01 Thread John Machin
Peter Otten wrote: John Machin wrote: Fredrik Tolf wrote: The thing is, I want to get format strings from the user, and I don't want to require the user to consume all the arguments. what's ugly about this: [untested]: def count_format_args(s): pending = False

Watch Alex Jones' Terror Storm, Bohemian Grove, Arrest Video, on video.google.com and infowars.com

2006-12-01 Thread st911
The one who digs a trap for others falls into it himself. - Moral law of all religions. == Our confidence in 911 controlled demolition is such that we have invited people to see the truth under the pretext of debunking it. This letter was sent to professors in many

Re: Ruby/Python/REXX as a MUCK scripting language

2006-12-01 Thread Cameron Laird
In article [EMAIL PROTECTED], Laurent Pointal [EMAIL PROTECTED] wrote: . . . there's the security issue that really worries me. . . I have to be able to limit what the interpreter can execute. I can't have my users

Re: How to read the directory which the actively running python file is located in?

2006-12-01 Thread Gerold Penz
Michael Malinowski schrieb: Is there a way to read the directory that the currently running python file is located in? Hi Mike! To get the started program: sys.argv[0] Don´t use ``os.curdir``. To get the filename, of the current module: __file__ To get the directory:

Re: Thread help

2006-12-01 Thread Grant Edwards
On 2006-12-01, Salvatore Di Fazio [EMAIL PROTECTED] wrote: I would make 3 threads for a client application. You should use 4. -- Grant Edwards grante Yow! My TOYOTA is built at like a... BAGEL with CREAM

Re: Take the $million challenge: Prove 911 conspriracy theorists are wrong

2006-12-01 Thread st911
I found this nice dialog on the internet: = Well, if you want to convice me, just answer these questions: If you can prove that the official explanation is correct, what's keeping you from collecting a MILLION dollars? Even if you're too wealthy to bother,

Re: Thread help

2006-12-01 Thread Salvatore Di Fazio
Grant Edwards ha scritto: You should use 4. Yes, but I don't know how can I make a thread :) -- http://mail.python.org/mailman/listinfo/python-list

RE: v2.3, 2.4, and 2.5's GUI is slow for me

2006-12-01 Thread Duncan Booth
[EMAIL PROTECTED] wrote: I don't use IDLE too much anymore, just for quick tests, but Just curious. I have tried IDLE, but stopped using it after going through a few of the tutorials. I just type things in at the 'python' prompt, regardless of which platform I am working on; Linux, AIX

Re: good documentation about win32api ??

2006-12-01 Thread Thomas Heller
krishnakant Mane schrieb: On 1 Dec 2006 09:56:09 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: http://msdn.microsoft.com covers the API itself, although you need to transliterate from the C code to python. Exactly! that's where the problem lyes. I am pritty well to do with windows API,

Re: How to read the directory which the actively running python file is located in?

2006-12-01 Thread John Machin
anders wrote: in os module there is many funktion/methods to extract this information to ask the path to the current running pythonprogram you can do likes this - CUT--- import os print os.getcwd() - CUT -- // Anders Michael Malinowski skrev: Is there a way to

  1   2   >