Re: os.mkdir and mode

2006-12-01 Thread Godson
On 1 Dec 2006 23:17:50 -0800, vj <[EMAIL PROTECTED]> wrote: How do I do the following unix command: mkdir -m770 test with the os.mkdir command. Using os.mkdir(mode=0770) ends with the incorrect permissions. Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list using os.mkd

Re: About alternatives to Matlab

2006-12-01 Thread Jon Harrop
I don't know Python but this benchmark caught my eye. >>def D4_Transform(x, s1=None, d1=None, d2=None): >> """ >> D4 Wavelet transform in NumPy >> (C) Sturla Molden >> """ >> C1 = 1.7320508075688772 >> C2 = 0.4330127018922193 >> C3 = -0.066987298107780702 >> C4 = 0.517638090205041

Re: client/server design and advice

2006-12-01 Thread John Henry
On the subject of passing things around, is there a no brainer way of sending files back and forth over Pyro? I am currently using a shared drive to do that. May be I missed that feature? Irmen de Jong wrote: > bruce wrote: > > hi irmen... > > > > happened to come across this post. haven't looke

Re: Python, PostgreSQL, What next?

2006-12-01 Thread Godson
On 1 Dec 2006 23:04:37 -0800, vbgunz <[EMAIL PROTECTED]> wrote: Hello all, I've studied Python and studied PostgreSQL. What is the absolute next best step to take to merge these two finely together? I've heard of SQLAlchemy and some others but before I dive in, I would really like the opinion o

can't figure out how to create menus in urwid

2006-12-01 Thread krishnakant Mane
hello, I have been trying out urwid for creating ncurses based applications. I will like to know if any one has ever tried to create menu bar with drop down menus using urwid? any suggestion? Krishnakant. -- http://mail.python.org/mailman/listinfo/python-list

os.mkdir and mode

2006-12-01 Thread vj
How do I do the following unix command: mkdir -m770 test with the os.mkdir command. Using os.mkdir(mode=0770) ends with the incorrect permissions. Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

Python, PostgreSQL, What next?

2006-12-01 Thread vbgunz
Hello all, I've studied Python and studied PostgreSQL. What is the absolute next best step to take to merge these two finely together? I've heard of SQLAlchemy and some others but before I dive in, I would really like the opinion of those who tried it and other toolkits. My main concern is, I wou

Printing Barcodes from webapp?

2006-12-01 Thread Burhan
Hello Group: I am in the planning stages of an application that will be accessed over the web, and one of the ideas is to print a barcode that is generated when the user creates a record. The application is to track paperwork/items and uses barcodes to easily identify which paper/item belongs t

Re: python vs java & eclips

2006-12-01 Thread krishnakant Mane
may be emacs can provide code completion (intellicense) I have not used it so far so can't say. but the main reason I use eclipse is for the above feature. and yes indentation happens in eclipse python-mode so that is not a major feature eclipse offers any way. syntax highlighting is a very common

Re: One detail...

2006-12-01 Thread Gabriel G
At Saturday 2/12/2006 00:40, [EMAIL PROTECTED] wrote: I'm trying to do in Zope, which doesn't allow "_" characters at the beginning of identifiers. Even in an external method, it gives me an error when I try to reference the o.a. Is there a trick to do it some other way? Better to ask on a Z

Possible to assure no "cyclic"/"uncollectible" memory leaks?

2006-12-01 Thread Joe Peterson
I've been doing a lot of searching on the topic of one of Python's more disturbing issues (at least to me): the fact that if a __del__ finalizer is defined and a cyclic (circular) reference is made, the garbage collector cannot clean it up. First of all, it seems that it's best to avoid using __de

Re: Is there a reason not to do this?

2006-12-01 Thread Hendrik van Rooyen
"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): g() > > c1 = C1() > c2 = C2()

Re: converting dict to object

2006-12-01 Thread Michel Claveau
Hi! Yes. But... Try:d = {'a': 1, 'b': 2, 'def': 123} Ok, I go out... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

[ANN] InformixDB-2.4 released

2006-12-01 Thread Carsten Haese
I am pleased to announce a new release of InformixDB, the DB-API 2.0 module for connecting to IBM Informix database engines. The list of changes since version 2.3 is short but sweet: - Implement 'named' parameter style to optionally bind query parameters by name - Implement option to retrieve opa

Re: strange problems with code generation

2006-12-01 Thread [EMAIL PROTECTED]
I never see anything from print(data). The example I tried to adapt using readlines may be a little old or something. I did close all the files to prevent problems when I figure out what is wrong with what I have. John Machin wrote: > You say "I am sure the readlines code is crashing it." I ca

Re: Molten Metal Pools in WTC after weeks, only micronuke could have produced so much heat

2006-12-01 Thread Doug
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > W88 warhead design > > http://www.thepriceofliberty.org/06/09/25/wardpics-5.htm > > http://www.thepriceofliberty.org/06/09/25/wardpics-4.htm the diagrams are all wrong, they are fiction. -- http://mail.python.org/mailman/listinf

Re: strange problems with code generation

2006-12-01 Thread John Machin
You say "I am sure the readlines code is crashing it." I can't imagine how you can be sure of anything, but yes, it is a possibility that sys.stdin.readlines() might behave strangely when called from a GUI kit. Why from sys.stdin anyway? You have two *known* definite problems (not closing your out

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
Grant Edwards wrote: > On 2006-12-02, Robert Kern <[EMAIL PROTECTED]> wrote: >> Grant Edwards wrote: >>> On 2006-12-01, Robert Kern <[EMAIL PROTECTED]> wrote: Grant Edwards wrote: > How do you print a numpy array? You might want to ask numpy questions on the numpy list: ht

Re: strange problems with code generation

2006-12-01 Thread [EMAIL PROTECTED]
John Machin wrote: > [EMAIL PROTECTED] wrote: > > I am writing out zero byte files with this (using python 2.5). I have > > no idea why I am having that problem > > Which output file(s) do you mean, temp.orc or temp.sco or both? > Two possible causes outlined below. > > > I am also looking for an

Molten Metal Pools in WTC after weeks, only micronuke could have produced so much heat

2006-12-01 Thread thermate
W88 warhead design http://www.thepriceofliberty.org/06/09/25/wardpics-5.htm http://www.thepriceofliberty.org/06/09/25/wardpics-4.htm Bali bomb was possibly a micronuke from Dimona Israel - the land of milk and honey ;) http://www.vialls.com/nuke/bali_micro_nuke.htm < Excellent anal

Re: strange problems with code generation

2006-12-01 Thread John Machin
[EMAIL PROTECTED] wrote: > I am writing out zero byte files with this (using python 2.5). I have > no idea why I am having that problem Which output file(s) do you mean, temp.orc or temp.sco or both? Two possible causes outlined below. > I am also looking for an example > of readlines where I ca

Re: How do I print a numpy array?

2006-12-01 Thread Grant Edwards
On 2006-12-02, Robert Kern <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: >> On 2006-12-01, Robert Kern <[EMAIL PROTECTED]> wrote: >>> Grant Edwards wrote: How do you print a numpy array? >> >>> You might want to ask numpy questions on the numpy list: >>> >>> http://www.scipy.org/Mailing

Re: converting dict to object

2006-12-01 Thread Gabriel Genellina
At Friday 1/12/2006 22:48, rieh25 wrote: If I have a dictionary such as: d = {'a' : 1, 'b' : 2} is there a way to convert it into an object o, such as: o.a = 1 o.b = 2 >>> class X(object): ... def __init__(self, d): self.__dict__.update(d) ... >>> d = {'a' : 1, 'b' : 2} >>> o=X(d) >>> o.a

converting dict to object

2006-12-01 Thread rieh25
If I have a dictionary such as: d = {'a' : 1, 'b' : 2} is there a way to convert it into an object o, such as: o.a = 1 o.b = 2 thanks -- View this message in context: http://www.nabble.com/converting-dict-to-object-tf2741429.html#a7649225 Sent from the Python - python-list mailing list archi

Re: Thread help

2006-12-01 Thread Gabriel Genellina
At Friday 1/12/2006 17:26, Bjoern Schliessmann wrote: >> I would make 3 threads for a client application. > You should use 4. I vote for just 1. We all know that the correct answer is, and always has been, 42 -- Gabriel Genellina Softlab SRL _

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

2006-12-01 Thread [EMAIL PROTECTED]
The proper edicate would be to write software in python and then link to your point of view. It is common practice in music software. I tend of think of you like ufo people, if there is a conspiracy of some sort they use you to discredit it. https://sourceforge.net/projects/dex-tracker http://ww

strange problems with code generation

2006-12-01 Thread [EMAIL PROTECTED]
I am writing out zero byte files with this (using python 2.5). I have no idea why I am having that problem, I am also looking for an example of readlines where I can choose a number of lines say lines 12 to 14 and then write them back to disk. any help would be apreaceted. import sys as sys2 i

Re: python vs java & eclipse

2006-12-01 Thread [EMAIL PROTECTED]
Amir Michail wrote: > [EMAIL PROTECTED] wrote: > > ... > > > > Is there anything _useful_ that it'll bring that a good editor doesn't? > > e.g. in vim I do get > > * automatic syntax checking (if I type "if a=1:" and hit enter, it'll > > immediately highlight the syntax error) > > * omni-completi

Re: client/server design and advice

2006-12-01 Thread Irmen de Jong
bruce wrote: > 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? > Pyro supports a limited form of

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
Beliavsky wrote: > When I print an array in any language, I (and I think most programmers) > expect by default to have all elements displayed. Matlab, R, and > Fortran 95 have somewhat similar arrays to numpy, and that is what they > do. I don't remember Numeric summarizing arrays by default. R has

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
Grant Edwards wrote: > On 2006-12-01, Robert Kern <[EMAIL PROTECTED]> wrote: >> Grant Edwards wrote: >>> How do you print a numpy array? > >> You might want to ask numpy questions on the numpy list: >> >> http://www.scipy.org/Mailing_Lists > > I tried, but it doesn't seem to be available throug

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

2006-12-01 Thread Tonico
[EMAIL PROTECTED] wrote: > Do you mean to say that the dimension to pursue truth and freedom from > deception lack for people using TeX? or they must not be informed of > it? What kind of "dimension" is needed to pursue t

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

2006-12-01 Thread st911
Do you mean to say that the dimension to pursue truth and freedom from deception lack for people using TeX? or they must not be informed of it? BTW, Mr Siegman from Stanford of Yatches, whats your take on Neturei Karta ? If I am making a guess based on the sample space I have seen in "elite" unive

Fun with with

2006-12-01 Thread Klaas
Occasionally I find myself wanting a block that I can break out of at arbitrary depth--like java's named break statements. Exceptions can obviously be used for this, but it doesn't always look nice. The with statement can be used to whip up something quite usable: class ExitBlock(object): ""

Re: How do I print a numpy array?

2006-12-01 Thread Beliavsky
Robert Kern wrote: > Grant Edwards wrote: > > How do you print a numpy array? > > > > I tried the obvious print a, print `a`, and print str(a), but > > none of them work on anything other than trivially small > > arrays. Most of my real data is elided and replaced with > > ellipses. > > You might

Re: How do I print a numpy array?

2006-12-01 Thread Grant Edwards
On 2006-12-01, Robert Kern <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: >> How do you print a numpy array? > You might want to ask numpy questions on the numpy list: > > http://www.scipy.org/Mailing_Lists I tried, but it doesn't seem to be available through gmane.org. > Use numpy.set_pri

Re: What are python closures realy like?

2006-12-01 Thread Carl Banks
Karl Kofnarson wrote: > Hi, > while writing my last program I came upon the problem > of accessing a common local variable by a bunch of > functions. > I wanted to have a function which would, depending on > some argument, return other functions all having access to > the same variable. An OO appro

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

2006-12-01 Thread Aandi Inston
[EMAIL PROTECTED] wrote: >I found this nice dialog on the internet: Doubtless, but why did you choose to share it with a bunch of news groups which aren't related to the subject? Aandi Inston [EMAIL PROTECTED] http://www.quite.com Please support usenet! P

Re: What are python closures realy like?

2006-12-01 Thread Paul McGuire
"Karl Kofnarson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > while writing my last program I came upon the problem > of accessing a common local variable by a bunch of > functions. > I wanted to have a function which would, depending on > some argument, return other functio

Re: type(foo) == function ?

2006-12-01 Thread Mathias Panzenboeck
Chris Mellon wrote: > On 11/29/06, Tom Plunket <[EMAIL PROTECTED]> wrote: >> I'd like to figure out if a given parameter is a function or not. >> >> E.g. >> >> >>> type(1) >> >> >>> type(1) == int >> True >> >> implies: >> >> >>> def foo(): >> ... pass >> ... >> >>> type(foo) >> >> >>> type(foo

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
Grant Edwards wrote: > How do you print a numpy array? > > I tried the obvious print a, print `a`, and print str(a), but > none of them work on anything other than trivially small > arrays. Most of my real data is elided and replaced with > ellipses. You might want to ask numpy questions on the

Re: route planning

2006-12-01 Thread Jon Clements
It's not really what you're after, but I hope it might give some ideas (useful or not, I don't know). How about considering a vertex as a point in space (most libraries will allow you to decorate a vertex with additonal information), then creating an edge between vertices, which will be your 'path

Re: Thread help

2006-12-01 Thread John Henry
Why stop there? Bjoern Schliessmann wrote: > Grant Edwards wrote: > > On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> > > >> I would make 3 threads for a client application. > > > You should use 4. > > I vote for just 1. > > Regards, > > > Björn > > -- > BOFH excuse #236: > > Fanout droppin

How do I print a numpy array?

2006-12-01 Thread Grant Edwards
How do you print a numpy array? I tried the obvious print a, print `a`, and print str(a), but none of them work on anything other than trivially small arrays. Most of my real data is elided and replaced with ellipses. -- Grant Edwards grante Yow! I want to kill

Re: Detecting recursion loops

2006-12-01 Thread Fuzzyman
robert wrote: > My code does recursion loops through a couple of functions. Due to > problematic I/O input this leads sometimes to "endless" recursions and after > expensive I/O to the Python recursion exception. > What would be a good method to detect recursion loops and stop it by > user-Exce

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

2006-12-01 Thread g4rlik
It is always slow, even when I first start it up and do not enter in any code. This is really bugging me, maybe I have OCD >__> I turned off my anti-virus and that didn't help. Oh well. I'm just glad to know that other people have this problem too. Duncan Booth-2 wrote: > > g4rlik <[EMAIL

Re: Is python memory shared between theads?

2006-12-01 Thread Klaas
John Henry wrote: > Wesley Henwood wrote: > > Is this normal behavior? Based on the little documentation I have been > > able to find on this topic, it is normal behavior. The only way to use > > same-named variables in scripts is to have them run in a different > > process, rather than differe

Re: I/O Multiplexing and non blocking socket

2006-12-01 Thread Paul Boddie
Bjoern Schliessmann wrote: > Salvatore Di Fazio wrote: > > > Thank you guys, but I would like to use the standard libraries > > Then I suggest you read a good book about Unix programming, > especially about the workings of read(), write() and select(). If > you've understood this doing it with pyth

Re: What are python closures realy like?

2006-12-01 Thread Klaas
Karl Kofnarson wrote: > Hi, > while writing my last program I came upon the problem > of accessing a common local variable by a bunch of > functions. > I wanted to have a function which would, depending on > some argument, return other functions all having access to > the same variable. An OO appro

Re: What are python closures realy like?

2006-12-01 Thread Felipe Almeida Lessa
On 12/1/06, Karl Kofnarson <[EMAIL PROTECTED]> wrote: [snip] > def fun_basket(f): > common_var = [0] > def f1(): > print common_var[0] > common_var[0]=1 > def f2(): > print common_var[0] > common_var[0]=2 > if f == 1: > return f1 > if f ==

Re: python vs java & eclipse

2006-12-01 Thread Amir Michail
[EMAIL PROTECTED] wrote: > ... > > Is there anything _useful_ that it'll bring that a good editor doesn't? > e.g. in vim I do get > * automatic syntax checking (if I type "if a=1:" and hit enter, it'll > immediately highlight the syntax error) > * omni-completion (because Intellisense is trademark

What are python closures realy like?

2006-12-01 Thread Karl Kofnarson
Hi, while writing my last program I came upon the problem of accessing a common local variable by a bunch of functions. I wanted to have a function which would, depending on some argument, return other functions all having access to the same variable. An OO approach would do but why not try out cl

Re: Is python memory shared between theads?

2006-12-01 Thread [EMAIL PROTECTED]
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 expe

Re: client/server design and advice

2006-12-01 Thread Peter Decker
On 1 Dec 2006 10:37:39 -0800, John Henry <[EMAIL PROTECTED]> wrote: > > Now...if only i could master python gui programming and development ;) > You would short change yourself if you don't check out the other > packages such as Pythoncard, and Dabo. FWIW, Dabo has all of the database connectivi

Re: python vs java & eclipse

2006-12-01 Thread [EMAIL PROTECTED]
hg wrote: > Thomas Ploch wrote: > > Yes, thats true, but since eclipse is resource monster (it is still > > using java), and some people (like me) don't have a super fresh and new > > computer > > If you compare eclipse to VS, it is not that memory hungry And if you compare Saturn to Jupiter, it's

Re: detecting that a SQL db is running

2006-12-01 Thread bill ramsay
thank you paul, much appreciated -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-12-01 Thread Thomas Heller
Chuck Rhode schrieb: > Thomas Heller wrote this on Thu, Nov 30, 2006 at 09:50:25PM +0100. My > reply is below. > >> The two things that bother me at the moment are how the comments are >> formatted (dunno if that can be customized or changed easily), and >> it would be good if the script took com

Re: Python25.zip

2006-12-01 Thread Colin J. Williams
Dennis Lee Bieber wrote: > On Thu, 30 Nov 2006 18:14:11 -0500, "Colin J. Williams" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> As part of the Python initialization, C:\Windows\System32\Python25.zip >> is set up in the path. >> >> I haven't seen any documentation on the

Re: python vs java & eclipse

2006-12-01 Thread Bjoern Schliessmann
Paul Boddie wrote: > 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 having what seemed like half my > source file underlined in red, with multiple messages telling me > that I had yet

Re: detecting that a SQL db is running

2006-12-01 Thread Josh Bloom
I think the main point is that your Python code should be written in such a way that when you attempt to connect to your local MSDE it will timeout correctly instead of hanging. Do you have a loop somewhere that just keeps retrying the connection instead of giving up at some point? Here are a co

Re: detecting that a SQL db is running

2006-12-01 Thread Paul McNett
bill ramsay wrote: > none of this matters, all i am trying to find out is whether or not > the local MSDE is actually running. If it is a local MSDE then you may be able to rely on the connection being refused if the server isn't running. #-- begin import socket host = "127.0.0.1" port = 1433

Re: I/O Multiplexing and non blocking socket

2006-12-01 Thread Bjoern Schliessmann
Salvatore Di Fazio wrote: > Thank you guys, but I would like to use the standard libraries Then I suggest you read a good book about Unix programming, especially about the workings of read(), write() and select(). If you've understood this doing it with python's read/write/select will be easy. E

Re: Thread help

2006-12-01 Thread Bjoern Schliessmann
Grant Edwards wrote: > On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> >> I would make 3 threads for a client application. > You should use 4. I vote for just 1. Regards, Björn -- BOFH excuse #236: Fanout dropping voltage too much, try cutting some of those little traces -- http

Re: Python popenX() slowness on AIX?

2006-12-01 Thread allenjo5
Stefaan A Eeckels wrote: > On 24 Nov 2006 09:03:41 -0800 > [EMAIL PROTECTED] wrote: > > > Stefaan A Eeckels wrote: > > > On 21 Nov 2006 13:02:14 -0800 > > > [EMAIL PROTECTED] wrote: > > > > > > > The fact that it does this in Python code instead of C is the main > > > > cause of the slowness. So,

Re: Thread help

2006-12-01 Thread Salvatore Di Fazio
Grant Edwards ha scritto: > http://docs.python.org/lib/module-threading.html > http://linuxgazette.net/107/pai.html > http://www.wellho.net/solutions/python-python-threads-a-first-example.html > http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf Thank Edward, I didn't find the linuxgazet

Re: Thread help

2006-12-01 Thread Salvatore Di Fazio
Grant Edwards ha scritto: > http://docs.python.org/lib/module-threading.html > http://linuxgazette.net/107/pai.html > http://www.wellho.net/solutions/python-python-threads-a-first-example.html > http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf Thank Edward, I didn't find the linuxgazet

Re: Python spam?

2006-12-01 Thread Frederic Rentsch
Hendrik van Rooyen wrote: > "Aahz" <[EMAIL PROTECTED]> wrote: > > >> Anyone else getting "Python-related" spam? So far, I've seen messages >> "from" Barry Warsaw and Skip Montanaro (although of course header >> analysis proves they didn't send it). >> -- >> > > not like that - just the nor

Re: detecting that a SQL db is running

2006-12-01 Thread bill ramsay
Dennis none of this matters, all i am trying to find out is whether or not the local MSDE is actually running. I put all the other bits in there to try and put some background to it. kind regards bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread help

2006-12-01 Thread Grant Edwards
On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> wrote: > Grant Edwards ha scritto: > >> You should use 4. > > Yes, but I don't know how can I make a thread :) Perhaps you should have said that earlier? Googling for "pythong threads" finds some useful info: http://docs.python.org/lib/module

Re: good documentation about win32api ??

2006-12-01 Thread Roger Upole
"__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) bu

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: > > > I

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 wind

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,

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: 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, y

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: 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: os.path.

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

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 US/Europe/C

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): > >

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

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 (ass

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 progr

Re: client/server design and advice

2006-12-01 Thread John Henry
TonyM wrote: > > 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 Mi

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: 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

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 as

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: 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 a

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

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) bu

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

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.

[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 e

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 c

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]>, 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

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 expe

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

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

  1   2   >