Self-identifying functions and macro-ish behavior

2006-02-14 Thread 63q2o4i02
Hi, I was wondering how I may get a python function to know what its name is without me having to write it manually? For example: def func1(): print 'func1' return True def func2(): print 'func2' return True should be more like def func1(): print return T

Excel and TrackChanges

2006-02-14 Thread pierre_py
I have a problem with pycom automation with excel. If i use the following in my excel_wrapper: """ self.Workbook.Save() self.Workbook.HighlightChangesOptions(When=1) self.Workbook.ListChangesOnNewSheet = True """ I don't get any history worksheet. If i use 2 (xlAllChanges) or 3 (xlNotYetReviewed),

Re: Which is faster? (if not b in m) or (if m.count(b) > 0)

2006-02-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Farel wrote: > Which is Faster in Python and Why? ``if not b in m`` looks at each element of `m` until it finds `b` in it and stops then. Assuming `b` is in `m`, otherwise all elements of `m` are "touched". ``if m.count(b) > 0`` will always goes through all elements of `

Re: how to write a C-style for loop?

2006-02-14 Thread bonono
John Salerno wrote: > for (int i = 0; i < 50; i += 5) > > How would that go in Python, in the simplest and most efficient way? for i in xrange(0,50,5): print i -- http://mail.python.org/mailman/listinfo/python-list

Re: how to write a C-style for loop?

2006-02-14 Thread Dylan Moreland
John Salerno wrote: > I assume this is the way for loops are written in C, but if it helps to > be specific, I'm referring to C# for loops. The Python for loop seems to > be the same (or similar) to C#'s foreach loop: > > foreach int i in X > > But how would you write a C# for loop in Python? Do y

how to write a C-style for loop?

2006-02-14 Thread John Salerno
I assume this is the way for loops are written in C, but if it helps to be specific, I'm referring to C# for loops. The Python for loop seems to be the same (or similar) to C#'s foreach loop: foreach int i in X But how would you write a C# for loop in Python? Do you rework a while loop, or use

Do you want your own free virtual mall?? Come here...

2006-02-14 Thread dukeblues1975
http://www.telebay.com/esolutions/mall.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: accountability & lying thru the teeth

2006-02-14 Thread Kenny Tilton
Al Balmer wrote: > On Tue, 14 Feb 2006 23:59:19 GMT, Kenny Tilton > <[EMAIL PROTECTED]> wrote: > > >>Ulrich Hobelmann wrote: >> >>>Xah Lee wrote: >>> >>> here's a site: http://www.longbets.org/bets that takes socially important predictions. I might have to enter one or two. i lon

Re: How to *Search* with google from inside my programme and get the search result?

2006-02-14 Thread Alex Martelli
Frank Potter <[EMAIL PROTECTED]> wrote: ... > Does google supply some webservice to programmers? I did see Yep, see http://www.google.com/apis/index.html . Alex -- http://mail.python.org/mailman/listinfo/python-list

Which is faster? (if not b in m) or (if m.count(b) > 0)

2006-02-14 Thread Farel
Which is Faster in Python and Why? jc = {}; m = [] x = [ [1,2,3,4,5,6,7,8,9],[..],...] # upwards of 1 entries def mcountb(): for item in x: b = item[:]; b.sort(); bc = 0 for bitem in b: bc += int(bitem) try: m = jc[bc] except: m = [] if m.count

Re: How to *Search* with google from inside my programme and get the search result?

2006-02-14 Thread I V
Frank Potter wrote: > Does google supply some webservice to programmers? I did see Googling for "google api" gets you to: http://www.google.com/apis/ It appears to be a SOAP API, which you can access with python, but I think you'll need a third-party library. Googling for "python soap" gets you:

Re: How to cat None

2006-02-14 Thread bonono
Seems that what you want to do is to create a string in the form of : "55Init=Init\n55First=first\n55Last=Last\n55Alias=None" for each dictionary. If that is the case, may be you can try this : "\n".join("%s=%s" % x for x in user1.iteritems()) Note that you cannot control the ordering of the ke

Re: processing limitation in Python

2006-02-14 Thread Atanas Banov
[EMAIL PROTECTED] wrote: > But running it in IDLE just locks up the > computer. Bad Windows. yeah, right - blame it all on Microsoft! try ctrl-F6 (or Shell / Restart Shell from the menu) in IDLE, which stops programs from infinite looping - nas -- http://mail.python.org/mailman/listinfo/pytho

Re: How to cat None

2006-02-14 Thread rtilley
LittlePython wrote: I am not too sure I know what None really means. It means null, void or lack of value. It is not an empty string. You can't add None to stings. >>> r = None >>> print r None >>> print type(r) -- http://mail.python.org/mailman/listinfo/python-list

Re: How to cat None

2006-02-14 Thread Jonathan Gardner
You can just surround the offending value with str(...). You should probably be doing that anyway, because the value might be a number or something else not stringish. -- http://mail.python.org/mailman/listinfo/python-list

Re: Soduku

2006-02-14 Thread Atanas Banov
you dont measure single run, you measure multiple runs using the "timeit" module (for me 1000 repeats was about right). here are some results which i recorded when i was implementing Sudoku solver (on AMD Athlon 1.25GHz, using the sample shown on www.sudoku.com front page): brute: 10

Re: Soduku

2006-02-14 Thread Jonathan Gardner
27ms == 0.027s How do you have a 16x16 grid for soduku? Are you using 16 digits? 0-F? The one I am using has 9 digits, 9 squares of 9 cells each, or 9x9 cells. The least efficient part of the algorithm is that part to calculate what to put in a hole (as anyone might've guessed.) My algorithm cal

How to cat None

2006-02-14 Thread LittlePython
I found out the hard way that I can not cat None. I get an error. Is there a simple way to cat None without doing some kind of equation ( if this then that). Is there a isNone() somewhere. I am not too sure I know what None really means. I include an example to show what I am talking about in cas

Re: Unexpected behaviour of getattr(obj, __dict__)

2006-02-14 Thread Terry Reedy
"Carl Banks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > But wait, it gets weirder. Not weird at all. Just an artifact of CPython's storage recycling algorithm. id(Parrot.f) == id(Parrot.f) > True id(Parrot.__dict__) == id(Parrot.__dict__) > True A wrapper is crea

Re: Newbie

2006-02-14 Thread bonono
This is top posting, i.e. my post is above yours. For this particular response, it seems to be a bit more appropriate to do bottom posting, see below. However, don't take that as a rule or convention that you need to do one or another exclusively, it depends and I believe mature and sincere posters

Re: Newbie

2006-02-14 Thread LittlePython
I have no idea what top-posting or bottom-posting is? "Felipe Almeida Lessa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Em Qua, 2006-02-15 às 00:30 +, LittlePython escreveu: > > I really do not wish to limit myself to MS. My bread and butter is MS but I > > am a BSD fan at h

Re: Python equivilant to msgbox()

2006-02-14 Thread LittlePython
I am glad you did remind me of WScript.Shell ... I have to keep in mind that most if not all of what I have been using in VBS is avail to me. Thx "Claudio Grondi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > LittlePython wrote: > > I am no VB programmer just dabble in vbscripting

Re: Embedding an Application in a Web browser

2006-02-14 Thread DH
bruno at modulix wrote: > rodmc wrote: >> Is it possible to embed a Python application within Internet explorer? > > No. Nor in any other browser (except from Grail, but I think this > doesn't count). You can if you use IronPython. Of course it will only work with Internet Explorer on windows. J

Re: Pythonic gui format?

2006-02-14 Thread DH
bruno at modulix wrote: > DH wrote: >> bruno at modulix wrote: >> >>> DH wrote: >>> Bruno Desthuilliers wrote: >> I am currently seeking for pythonic alternative for XML. > > A pretty obvious one is dicts and lists. What about (Q&D): That's like JSON: http://www.jso

Re: processing limitation in Python

2006-02-14 Thread [EMAIL PROTECTED]
Big help guys, thanks. There does seem to be a problem with Pythons IDLE. If I run my oridgional program from a dos shell I can hit Ctrl-C and free up the procesor, But running it in IDLE just locks up the computer. Bad Windows. Thanks for the help with a more efficent algorythm. David KG2LI

How to *Search* with google from inside my programme and get the search result?

2006-02-14 Thread Frank Potter
I want to search something by a key word from inside my py script. The using google idea comes to my mind first because write a search programme from scratch is not so easy. I want to take advantage of goolge results, but I don't know how. To extract the result from html of google can get the resu

Re: Python and ASP

2006-02-14 Thread Tempo
What do you mean? I can't just upload the file to the server that is going to host my site? -- http://mail.python.org/mailman/listinfo/python-list

Re: html source

2006-02-14 Thread Kartic
Hi Steve (Young), Here is my take. It is possible that the web page you are accessing dynamically generates the page using the user-agent. The user-agent when used from urllib2 will be set to Python-urllib/x.x. If the page were generated dynamically, this would go into the "else" part (of the

Re: Python and ASP

2006-02-14 Thread Roger Upole
ASP files have to be served up by a web server. Roger "Tempo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It still doesn't work. I fixed that one error that you pointed out > Roger Upole, but it still isn't working. All I did was copy and past > the code above, plus Roger

Re: Soduku

2006-02-14 Thread Jack Diederich
On Tue, Feb 14, 2006 at 05:32:48PM -0800, Jonathan Gardner wrote: > Here at my job, Python gets no respect. > > A programmer here wanted to see which language among Python, Perl, and > Java was better. So he wrote a Python, perl, and Java version. Except > the Python version was 20x slower than th

Re: listing attributes

2006-02-14 Thread Thomas Girod
You are right, using __dict__ is what i needed. But I chose the solution explained before because i don't want to list all attributes of the object, only attributes that are instances of the class Property (or a subclass of it). -- http://mail.python.org/mailman/listinfo/python-list

'could not open display' error when import gtk - how fix?

2006-02-14 Thread [EMAIL PROTECTED]
Why can't I import gtk (pygtk) module? It appears gtk module want X perms? >>> import gtk Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ?from _gtk import * RuntimeError: could not open display -- ht

Re: Python and ASP

2006-02-14 Thread Tempo
It still doesn't work. I fixed that one error that you pointed out Roger Upole, but it still isn't working. All I did was copy and past the code above, plus Roger's fix, into Notepad2 and saved it as a '.asp'. When I opened it in Firefox, all that showed up was the source code of the file. It seems

Re: Soduku

2006-02-14 Thread Felipe Almeida Lessa
Em Ter, 2006-02-14 às 17:32 -0800, Jonathan Gardner escreveu: > So, one more story on why Python is really good. I think, at least with > 2.4, we should start bragging about Python's speed. I mean, it beats > Java AND perl! Maybe the other implementations also have errors? Well, I'm not saying Pyt

Soduku

2006-02-14 Thread Jonathan Gardner
Here at my job, Python gets no respect. A programmer here wanted to see which language among Python, Perl, and Java was better. So he wrote a Python, perl, and Java version. Except the Python version was 20x slower than the perl and Java versions. Well, luckily he asked around in our little Pytho

Re: Newbie

2006-02-14 Thread Felipe Almeida Lessa
Em Ter, 2006-02-14 às 19:54 -0500, Ken Stevens escreveu: > Some people or group of people decided bottom posting was better and it > MUST be that way. To me that even goes against one of the main > philosophies of Linux which is that of choice. So, to any who think, > otherwise... there is absol

Re: how do you pronounce 'tuple'?

2006-02-14 Thread Terry Hancock
On Tue, 14 Feb 2006 09:16:18 -0600 Rocco Moretti <[EMAIL PROTECTED]> wrote: > Erik Max Francis wrote: > > If a 4-tuple is a quadruple, a 3-tuple is a triple, a > > 2-tuple is an pair, then I guess a 1-tuple would be a > > single. Granted that's not nearly as gruesome enough a > > name to go wit

Re: Newbie

2006-02-14 Thread Scott David Daniels
Ken Stevens wrote: > Felipe Almeida Lessa wrote: >> Em Qua, 2006-02-15 às 00:30 +, LittlePython escreveu: >>> >> Please start by not top-posting ;-) > Sigh! This has been bothering me for some time. I tend to bottom post > primarily because people here are so anal about it. > > In an

Re: how do you pronounce 'tuple'?

2006-02-14 Thread Terry Hancock
On Tue, 14 Feb 2006 10:40:09 -0500 Tim Peters <[EMAIL PROTECTED]> wrote: > the-acid-test-is-whether-you-say-"xor"-with-one-syllable- > or-three-ly y'rs - tim -- Oh dear, I say it with two, am I just not cool, or what? ;-) "ex-or" -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://w

Re: Python equivilant to msgbox()

2006-02-14 Thread Claudio Grondi
LittlePython wrote: > I am no VB programmer just dabble in vbscripting abit. The only one I am > aware of is the popup as self closing. I never thought of using com. Ok, so my remarks about COM were not for you. > > Do you know of any thing for a busy box in the same vain as easygui No, I don't, b

Re: Xah's Edu Corner: accountability & lying thru the teeth

2006-02-14 Thread John Bokma
Kenny Tilton <[EMAIL PROTECTED]> wrote: > If only some of the people castigating Xah you misspelled castrated -- John Small Perl scripts: http://johnbokma.com/perl/ Perl programmer available: http://castleamber.com/ I

Re: Newbie

2006-02-14 Thread Ken Stevens
Felipe Almeida Lessa wrote: >Em Qua, 2006-02-15 às 00:30 +, LittlePython escreveu: > > >>I really do not wish to limit myself to MS. My bread and butter is MS but I >>am a BSD fan at heart. I wanted to learn something I can use in both. >> >> > >Please start by not top-posting ;-). Also,

Re: Mac OS X - Deployment

2006-02-14 Thread James Stroud
Matt Trivisonno wrote: > Hi Everybody, > > I just spent about an hour googling and still can't find out how to deploy a > Python app to Mac OS X. > > I just finished a simple Hello-World GUI app using wxPython and deployed it > to > a WinXP system using PyInstaller. So I am familiar with the b

Re: Newbie

2006-02-14 Thread Felipe Almeida Lessa
Em Qua, 2006-02-15 às 00:30 +, LittlePython escreveu: > I really do not wish to limit myself to MS. My bread and butter is MS but I > am a BSD fan at heart. I wanted to learn something I can use in both. Please start by not top-posting ;-). Also, see http://www.mono-project.com/VisualBasic.NET

Re: Newbie

2006-02-14 Thread LittlePython
I really do not wish to limit myself to MS. My bread and butter is MS but I am a BSD fan at heart. I wanted to learn something I can use in both. I thought about Perl first but I feel the learning curve is to steep (to get it right), it seems easier to make a mistake in Perl and not catch it. Py

Re: Xah's Edu Corner: accountability & lying thru the teeth

2006-02-14 Thread Al Balmer
On Tue, 14 Feb 2006 23:59:19 GMT, Kenny Tilton <[EMAIL PROTECTED]> wrote: >Ulrich Hobelmann wrote: >> Xah Lee wrote: >> >>> here's a site: http://www.longbets.org/bets that takes socially >>> important predictions. I might have to enter one or two. >>> >>> i longed for such a accountable predicti

Re: Python equivilant to msgbox()

2006-02-14 Thread LittlePython
I am no VB programmer just dabble in vbscripting abit. The only one I am aware of is the popup as self closing. I never thought of using com. Do you know of any thing for a busy box in the same vain as easygui "Claudio Grondi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > LittleP

Re: Xah's Edu Corner: accountability & lying thru the teeth

2006-02-14 Thread Kenny Tilton
Ulrich Hobelmann wrote: > Xah Lee wrote: > >> here's a site: http://www.longbets.org/bets that takes socially >> important predictions. I might have to enter one or two. >> >> i longed for such a accountable predictions for a long time. Usually, >> some fucking fart will do predictions, but the pr

[ANN] python-openid 1.0.4

2006-02-14 Thread Kevin Turner
This morning there was a message in my inbox from my DNS registrar inviting me to click through for a "special message" from them. An animation loaded with elaborately rendered red roses and candlelight, and wishes for a happy valentines day written out in a flowing font. Well, I guess we could h

Re: Pythonic gui format?

2006-02-14 Thread Bruno Desthuilliers
Gregory Petrosyan a écrit : (snip) > Your dicts example is nice, but this approach (and some others) lacks > one important feature: ordering of GUI elements. In XML, the order of > all elements is specified, and with dicts (or with very clean Georg's > model) it is not. (BTW remember topics about

Re: Python and ASP

2006-02-14 Thread Roger Upole
It looks like you have a space before the first Response.Write. This works fine for me if that line is left-justified. hth Roger "Tempo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I recently uploaded a sample ASP-Python page to my web server and it > didn't show u

Re: Embedding an Application in a Web browser

2006-02-14 Thread Roger Upole
Using the Pywin32 extensions ( http://sourceforge.net/projects/pywin32/ ) , you can register Python as an Active Scripting language. Then it can be used anywhere javascript or vbscript are used, in IE, ASP, etc. It should only be used in IE for trusted applications, however. Roger "rodm

Re: Python and ASP

2006-02-14 Thread Atanas Banov
Did you save it with ".asp" extension? Is the directory enabled to run scripts? Can you run any other server-side script snippet (say VBscript)? -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic gui format?

2006-02-14 Thread Christoph Zwerschke
bruno at modulix schrieb: > And finally, you could write your own ordered mapping type - but then > you loose the builtin syntax... I still don't understand why so many objected there are no "use cases" for ordered dicts when I tried to discuss these in a recent thread... Actually I see them eve

Python and ASP

2006-02-14 Thread Tempo
I recently uploaded a sample ASP-Python page to my web server and it didn't show up correctly. Before I explain what it did, I should mention that I got the same result when I tried to view the page from my desktop (winxp user). So when I tried to view the sample ASP with Python page from my deskto

Re: Pythonic gui format?

2006-02-14 Thread Atanas Banov
ever considered doing the mapping this way? window = [ ["item", {'k1': 'v1', 'k2': 'v2'], ["otheritem", {'k1n': 'v1n', 'k2n': 'v2n'}] ] it is as simple as it gets: for 1:1 mapping from XML, list of Attributes becomes py List. the list of Properties of an attribute becomes a py Dictionary ps.

Copying zlib compression objects

2006-02-14 Thread [EMAIL PROTECTED]
I'm writing a program in python that creates tar files of a certain maximum size (to fit onto CD/DVD). One of the problems I'm running into is that when using compression, it's pretty much impossible to determine if a file, once added to an archive, will cause the archive size to exceed the maximu

Re: How can I find a freelance programmer?

2006-02-14 Thread Peter Decker
On 2/14/06, Charles <[EMAIL PROTECTED]> wrote: > I am looking for a freelance Python programmer to create a cross-platform > application with wxPython. > Any idea where I could find one? You should check out the Dabo project, which is a very impressive framework that uses wxPython for its UI. The

Re: Clearing the screen

2006-02-14 Thread mwt
It clears the screen by scrolling all the characters out of sight at the top of the terminal window. So the screen is blank, but not cleared in the sense that I mean it. The behavior I want is for the display to be effectively "erased" and ready to receive the next wave of data -- like you would do

Mac OS X - Deployment

2006-02-14 Thread Matt
Hi Everybody, I just spent about an hour googling and still can't find out how to deploy a Python app to Mac OS X. I just finished a simple Hello-World GUI app using wxPython and deployed it to a WinXP system using PyInstaller. So I am familiar with the basic tools. It would be great if I coul

Re: how do you pronounce 'tuple'?

2006-02-14 Thread Steve Holden
Paddy wrote: > Hmm, > I've found a term for a large tuple, a muckle: > > > http://www.google.co.uk/search?hl=en&q=define%3Amuckle&btnG=Search&meta= > > Definitions of muckle on the Web: > > * batch: (often followed by `of') a large number or amount or > extent; "a batch of letters"; "a deal

Re: How can I find a freelance programmer?

2006-02-14 Thread Steve Holden
Tim Parkin wrote: > Charles wrote: > > >>Hello, >> >>I am looking for a freelance Python programmer to create a cross-platform >>application with wxPython. >>Any idea where I could find one? >>Thanks, >> >> >> > > You could ask Steve Holden? - that'll be 10% commission Steve! ;-) > Hi, Cha

Re: How can I find a freelance programmer?

2006-02-14 Thread Gregory Piñero
That's not Steve Holden. Steve Holden is a folk hero around here, in fact when the Boogeyman goes to sleep every night, he checks his closet for Steve Holden. ... sorry, just want an excuse to use a Chuck Norris fact ;-) http://www.chucknorrisfacts.com/ -Greg On 2/14/06, Charles <[EMAIL PROTE

Re: Pythonic gui format?

2006-02-14 Thread Patrik Blommaskog
How about this: def mogrify(): print "Mogrifying" gui = window(title = "Hello World!") [ image(text = "nice pics here", pos = (5, 5), src = "img.png"), text(opts = "italic") ["(some text here)"], lst() [ "first element", "second element"

Re: How can I find a freelance programmer?

2006-02-14 Thread Charles
On Tue, 14 Feb 2006 17:46:46 -0300, Tim Parkin <[EMAIL PROTECTED]> wrote: > You could ask Steve Holden? - that'll be 10% commission Steve! ;-) Him: http://sholden.typepad.com/ ? -- Charles. Desenvolvimento e criação de sites: www.auriance.com Hospedagem de sites e servidores dedicados: www.

Re: Embedding an Application in a Web browser

2006-02-14 Thread Michael Ströder
bruno at modulix wrote: > rodmc wrote: > >>Is it possible to embed a Python application within Internet explorer? > > No. Nor in any other browser (except from Grail, but I think this > doesn't count). I remember there was a project for running CGI-BIN-like programs directly in Mozilla without a

Re: How can I find a freelance programmer?

2006-02-14 Thread Tim Parkin
Charles wrote: >Hello, > >I am looking for a freelance Python programmer to create a cross-platform >application with wxPython. >Any idea where I could find one? >Thanks, > > > You could ask Steve Holden? - that'll be 10% commission Steve! ;-) Tim Parkin -- http://mail.python.org/mailman/l

Re: Embedding an Application in a Web browser

2006-02-14 Thread Atanas Banov
try this: create file named "test.hta" and put inside - import sys document.writeln("Hello from Python", sys.version) - double click to open it, it will work if you have activestate extensions installed. -- http://mail.python.org/mailman/listinfo/p

Re: installing python on a server?

2006-02-14 Thread John Salerno
John Salerno wrote: > Can anyone tell me how complicated it might be to install Python on my > server so I can use it for web apps? Is it a one-time process, or > something to maintain? > > Thanks. As it turns out, my hosting company supports Python on their servers! I know I didn't see it the

Re: Rethinking the Python tutorial

2006-02-14 Thread JW
Here's my two cents - I started with the official tutorial. It seemed up to date to me. Things that changed from 2.4 to 2.5 changed in the tutorial as well. I still refer to it every few days, because it had been a useful reference for the basic data types. I like that it seemlessly links into

Re: How can I find a freelance programmer?

2006-02-14 Thread Sanjay Arora
Try this site I use them. You will make many freelancer contacts...some good some bad...don't pay without escrow but good jobs get done. Hope you will find it worthwhile. Best regards & good luck. Sanjay. On 2/15/06, Jorge Godoy <[EMAIL PROTECTED]> wrote: Charles <[EMAIL PROTECTED]> writes:> I

Re: using an existing DLL file without having access to the source code?

2006-02-14 Thread Carsten Haese
On Tue, 2006-02-14 at 13:50, Dieter Vanderelst wrote: > Dear all, > > Could anybody tell me whether there are ways to use an existing DLL file > in Python without having access to the source code? That sounds like a job for ctypes: http://starship.python.net/crew/theller/ctypes/ HTH, Carsten.

Re: Xah's Edu Corner: accountability & lying thru the teeth

2006-02-14 Thread Steve Holden
Xah Lee wrote: > here's a site: http://www.longbets.org/bets that takes socially > important predictions. I might have to enter one or two. > I predict Xah Lee will remain as clueless as he currently is. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

windows security descriptors

2006-02-14 Thread rtilley
Hope this isn't too inappropriate: Thanks to tips from comp.lang.python and the Python win32 mailing list, I've been able to begin using Python to work with Windows security descriptors with some small success. http://opensource.w2k.vt.edu/brad_scripts.php I've just started, not a whole lot th

Re: using an existing DLL file without having access to the source code?

2006-02-14 Thread jay graves
Dieter Vanderelst wrote: > Could anybody tell me whether there are ways to use an existing DLL file > in Python without having access to the source code? Try ctypes. http://starship.python.net/crew/theller/ctypes/ > I'm trying to find a way to use the image filters available in the > Filters-proj

using an existing DLL file without having access to the source code?

2006-02-14 Thread Dieter Vanderelst
Dear all, Could anybody tell me whether there are ways to use an existing DLL file in Python without having access to the source code? I'm trying to find a way to use the image filters available in the Filters-project (http://filters.sourceforge.net/) without having to compile or build the DLL

Re: Embedding an Application in a Web browser

2006-02-14 Thread rodmc
Thanks for all the comments. I will elaborate slightly to give everyone an idea of what is going on. Basically I need to create a dynamic visualisation which sits in the active desktop, basically behind the desktop icons and in front of the windows wallpaper. Windows lets you define a web page whi

Re: Location of Python modules

2006-02-14 Thread Fredrik Lundh
Byte wrote: > >if it is in the sys.path > > sys.path, what is this? a variable in the sys module. quoting from a reply that you might have missed: $ python -c "import sys; print sys.path" ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/

Re: Python advocacy in scientific computation

2006-02-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Tobis <[EMAIL PROTECTED]> wrote: . . . >Among the Python components and Python bindings of special interest to >scientists are the elegant and powerful matplotlib plotting package, >which

Re: Python / Apache / MySQL

2006-02-14 Thread Paul Boddie
Sybren Stuvel wrote: > Dennis Lee Bieber enlightened us with: > > I believe that since 4.1, the "default table format" is InnoDB, and > > that DOES have some support foreign keys and transactions. > > Finally they are starting to make more sense. I'd still rather use a > database that has had those

Re: How can I find a freelance programmer?

2006-02-14 Thread Jorge Godoy
Charles <[EMAIL PROTECTED]> writes: > I am looking for a freelance Python programmer to create a cross-platform > application with wxPython. > Any idea where I could find one? Here? At Python-jobs? :-) At the wxPython mailing list? -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine d

How can I find a freelance programmer?

2006-02-14 Thread Charles
Hello, I am looking for a freelance Python programmer to create a cross-platform application with wxPython. Any idea where I could find one? Thanks, -- Charles. landemaine[at]gmail[dot]com -- http://mail.python.org/mailman/listinfo/python-list

Re: Location of Python modules

2006-02-14 Thread Byte
>if it is in the sys.path sys.path, what is this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python advocacy in scientific computation

2006-02-14 Thread mrmakent
Nicely done. But now for a couple of small nits: > other language is that they are suddenly dramatically several times > more productive 'suddenly dramatically several times' seems a bit redundantly repeditively excessive, don't you think? > Among the Python components and Python bindings of

Re: processing limitation in Python

2006-02-14 Thread Steven D'Aprano
On Tue, 14 Feb 2006 08:42:38 -0800, [EMAIL PROTECTED] wrote: > If I un-comment any line in this program below the line where I > commented " all OK up to this point " This program locks up my > computer. It locks up the operating system as well? Shame on Windows. What happens if you type ctrl-C

Re: Python 3000 deat !? Is true division ever coming ?

2006-02-14 Thread Gregory Piñero
I knew about that approach. I just wanted less typing :-( On 2/14/06, Rocco Moretti <[EMAIL PROTECTED]> wrote: > Gregory Piñero wrote: > > On 14 Feb 2006 06:44:02 -0800, [EMAIL PROTECTED] > > > > > >>5./2.=2.5 is floating point math, with all the round off errors that > >>incorporates. > > > > T

Re: processing limitation in Python

2006-02-14 Thread Dave Hansen
On 14 Feb 2006 08:42:38 -0800 in comp.lang.python, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >If I un-comment any line in this program below the line where I >commented " all OK up to this point " This program locks up my >computer. Hmm. Ctrl-C gets me out just fine. In Idle, at least. >

Re: Python / Apache / MySQL

2006-02-14 Thread Sybren Stuvel
Dennis Lee Bieber enlightened us with: > I believe that since 4.1, the "default table format" is InnoDB, and > that DOES have some support foreign keys and transactions. Finally they are starting to make more sense. I'd still rather use a database that has had those features for a longer time, tho

Re: processing limitation in Python

2006-02-14 Thread bearophileHUGS
Using CPython or GMPY with a smarter algorithm in acceptable time you can find that: 12345678987654 == 2 * 3 * 2057613164609 It's a very big number to factorize with that naive algorithm, so the program hangs... (I have used an online factoring service). Bye, bearophile -- http://mail.python.o

Re: Python 3000 deat !? Is true division ever coming ?

2006-02-14 Thread Rocco Moretti
Gregory Piñero wrote: > On 14 Feb 2006 06:44:02 -0800, [EMAIL PROTECTED] > > >>5./2.=2.5 is floating point math, with all the round off errors that >>incorporates. > > Thanks Curtis, I never knew that trick. I guess for variables do have > true division you have to make them floats? e.g. > flo

Re: processing limitation in Python

2006-02-14 Thread Tim Peters
[EMAIL PROTECTED] > If I un-comment any line in this program below the line where I > commented " all OK up to this point " This program locks up my > computer. > > Windows task manager will show "Not Responding" for Python in the > Applications tab and in the Performance tabe the CPU usage will be

Python advocacy in scientific computation

2006-02-14 Thread Michael Tobis
Someone asked me to write a brief essay regarding the value-add proposition for Python in the Fortran community. Slightly modified to remove a few climatology-related specifics, here it is. I would welcome comments and corrections, and would be happy to contribute some version of this to the Pytho

RE: Win32_Process.Create -- not starting process

2006-02-14 Thread Tim Golden
[abcd] | I am using Python to create a process on another computer. Both | computers are on the same domain with admin privileges. | | On computer B I have a batch script which starts a python | script. From computer A I am doing the following: | | import wmi | w = wmi.WMI("1.2.3.4") | p = w.

Re: [OT] Pythonic gui format?

2006-02-14 Thread Christoph Zwerschke
bruno at modulix schrieb: > Christoph Zwerschke wrote: >> Bruno Desthuilliers schrieb: >> >>> Gregory Petrosyan a écrit : >>> I am currently seeking for pythonic alternative for XML. >> Bruno, before writing another simple GUI, > > > Sorry, Christoph, wrong attribution !-) > I'm sorry,

Re: how do you pronounce 'tuple'?

2006-02-14 Thread Jack Diederich
On Tue, Feb 14, 2006 at 10:40:09AM -0500, Tim Peters wrote: > > the-acid-test-is-whether-you-say-"xor"-with-one-syllable-or-three-ly y'rs - > tim "Zorr!" of course. Saying "All hail the mighty Exclusive Or!" would just sound silly. -jackdied -- http://mail.python.org/mailman/listinfo/python-

processing limitation in Python

2006-02-14 Thread [EMAIL PROTECTED]
If I un-comment any line in this program below the line where I commented " all OK up to this point " This program locks up my computer. Windows task manager will show "Not Responding" for Python in the Applications tab and in the Performance tabe the CPU usage will be locked at %100. I've experi

Re: Cygwin IDLE has no menu bar

2006-02-14 Thread Steve Holden
Thorsten Kampe wrote: > * Steve Holden (2006-02-14 04:14 +0100) > >>I just wondered whether anyone has seen this problem and fixed it. An >>IDLE with no menu bar isn't much use ... > > > It's not fixed but the workaround is "idle -n" So it is! Thanks. regards Steve -- Steve Holden +44

Win32_Process.Create -- not starting process

2006-02-14 Thread abcd
I am using Python to create a process on another computer. Both computers are on the same domain with admin privileges. On computer B I have a batch script which starts a python script. From computer A I am doing the following: import wmi w = wmi.WMI("1.2.3.4") p = w.new("Win32_Process") pid, r

Re: how do you pronounce 'tuple'?

2006-02-14 Thread John Salerno
::snip a thousand responses:: Well, I'm certainly glad I brought it up. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you pronounce 'tuple'?

2006-02-14 Thread John Salerno
Tim Peters wrote: > "tuhple" is a girly-man affectation. That's why Guido and I both say > the manly "toople". Heh heh. Actually, 'toople' sounds like a noun to me, and 'tuple' sounds like a verb, so I prefer 'toople' anyway. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >