Re: Client side GUI-like web framework ?

2008-02-04 Thread Michael L Torrie
USCode wrote: [EMAIL PROTECTED] wrote: You just described what XUL aims to be http://developer.mozilla.org/en/docs/The_Joy_of_XUL http://developer.mozilla.org/en/docs/XULRunner At present it lacks for sure documentation (or maybe it isn't organized really well) Just took a look at XUL

Re: Client side GUI-like web framework ?

2008-02-04 Thread Michael L Torrie
USCode wrote: Michael L Torrie wrote: But it is served up in the firefox web browser. A good example is: http://www.faser.net/mab/chrome/content/mab.xul That's pretty slick, but unfortunately then you're locked into only the Firefox web browser, which many folks don't use. You're trading

Re: Last 4 Letters of String

2008-02-21 Thread Michael L Torrie
Robert Rawlins - Think Blue wrote: Hello Guys, I'm looking for a function which will give me the last 4 characters of a given string. I'm sure it's a very simple task but I couldn't find anything of it. Use the same technique as you'd use slicing a list.

Re: Professional Grant Proposal Writing Workshop (April 2008: Vancouver, British Columbia)

2008-02-22 Thread Michael L Torrie
Anthony Jones wrote: The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held in Vancouver, British Columbia, April 14 - 16, 2008. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as

Re: Hi

2008-03-06 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: Hello can u plz tell how to send and read msg from device(telit-863-GPS) and the coding is in python. if this can happen then plz send the source code to my mail account Sounds like a new development model. You should patent this. Just e-mail lists with cryptic

Re: Zope/DTML Infuriating...

2008-05-01 Thread Michael L Torrie
Michael Torrie wrote: The second example, x = Integer.fromString('5') demonstrates a huge weakness in Java. Ahem. Javascript. Sorry. -- Michael Torrie Assistant CSR, System Administrator Chemistry and Biochemistry Department Brigham Young University Provo, UT 84602 +1.801.422.5771 A:

Re: Code correctness, and testing strategies

2008-05-24 Thread Michael L Torrie
David wrote: Seriously, 10 hours of testing for code developed in 10 hours? What kind of environment do you write code for? This may be practical for large companies with hordes of full-time testing QA staff, but not for small companies with just a handful of developers (and where you need

Re: code indentation

2007-07-26 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: .so maybe if you can help me with this? If I understand you correctly, you're trying to make a pretty-printer in python, right? Something that will take arbitrary python source code, recognize the blocks and so forth, and then emit clean python code (text) with

Re: Any reason why cStringIO in 2.5 behaves different from 2.4?

2007-07-28 Thread Michael L Torrie
Stefan Scholl wrote: Don't let the subject line fool you. I'm OK with cStringIO. The thread is now about xml.sax's parseString(). Giving you the benefit of the doubt here, despite the fact that Stefan Behnel has state this over and over again and you just haven't listened. xml.sax's use of

Re: why psyco using more memery in liunx?

2007-08-17 Thread Michael L Torrie
kyo guan wrote: Hi all: When you import psyco in python2.5, you can see the memery grow up near 40MB in linux. but the same version python and psyco, is only grow up 1MB under windows. I have a hunch it's because of how the OS's are reporting shared memory usage. IE, the 1 MB

Re: More than one interpreter per process?

2007-12-17 Thread Michael L Torrie
sturlamolden wrote: Python has a GIL that impairs scalability on computers with more than one processor. The problem seems to be that there is only one GIL per process. Solutions to removing the GIL has always stranded on the need for 'fine grained locking' on reference counts. I believe there

Re: Mix different C source files into a single one

2007-12-29 Thread Michael L Torrie
Horacius ReX wrote: Hi, I have a C program split into different source files. I am trying a new compiler and for some reason it only accepts a single source file. So I need to mix all my different C source files into a single one. Do you know about some type of python script able to do

Re: Linux/Win32 func. to get Python instdir (not exedir) + site-packages = extensions mgmt

2008-01-20 Thread Michael L Torrie
pythonewbie wrote: Hi all, I am newbie in Python, my wish would be to create python applications for both Linux/Win32. I am stucked on creating a function to get the Python install directory (and site-packages directory) with a 100% reliable method... My goal is to verify if an/several

Re: Cross-platform GUI development

2007-10-12 Thread Michael L Torrie
Alexandre Badez wrote: Personnaly, I use PyQt simply because I prefere Qt to Gtk, witch is much more integrated with all desktop than Gtk. In fact, your application in Qt on Mac, Win or Linux look like a native app. Qt doesn't look very native on my desktop. In fact, Qt apps have always

Re: C++ version of the C Python API?

2007-10-21 Thread Michael L Torrie
Robert Dailey wrote: On 10/21/07, Martin v. Löwis [EMAIL PROTECTED] wrote: No, I literally meant that the Python C API is object-oriented. You don't need an object-oriented language to write object-oriented code. I disagree with this statement. C is not an object oriented language, and

Re: tuples within tuples

2007-10-26 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: On 26 Ott, 19:23, Dennis Lee Bieber [EMAIL PROTECTED] wrote: (A,B,C,D) that could be ('tagA', None, [('tagB', None, ['bobloblaw], None)], None) C isn't a tuple in your example either. It is a one-element list (the single element INSIDE the list is a tuple

Re: Pari Python

2007-10-28 Thread Michael L Torrie
Anton Mellit wrote: And I think (correct me if I am wrong) that the ^ operator (xor) is used very very infrequently. And it is not difficult to replace all ^ with say ^^. The division is probably used more often, but python has this trend anyway - to replace division with 'true' division, so

Re: A Python 3000 Question

2007-10-29 Thread Michael L Torrie
brad wrote: Not complaining. len is simple and understandable and IMO fits nicely with split(), strip(), etc... that's why I used it as an example, but list(), etc. could be used as examples as well: a_string.list() instead of list(a_string) This is a great example of why list() needs to

Re: List Moderator

2007-05-21 Thread Michael L Torrie
On Mon, 2007-05-21 at 14:24 +, Grant Edwards wrote: To quantify things for curiosity's sake, I just scanned through the last 1000 postings in c.l.p. There was exactly 1 spam message and two replies to spam messages complaining about them. I'm seeing 2 messages a day, lately, to c.l.p

Re: Python compared to other language

2007-05-21 Thread Michael L Torrie
On Mon, 2007-05-21 at 16:00 +0200, Marc 'BlackJack' Rintsch wrote: In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Python is a strongly typed but dynamic language ... In the A few questions thread, John Nagle's summary of Python begins Python is a byte-code interpreted untyped

Re: Python and GUI

2007-05-21 Thread Michael L Torrie
On Mon, 2007-05-21 at 18:23 +0200, Petr Muller wrote: There's PyQt thingy, imho very good and easy to learn/use, but still powerful. I've used it for a small gui-oriented project with almost no problems and it worked like a charm. However, sometimes I had troubles finding useful

Re: Slightly OT: Why all the spam?

2007-05-22 Thread Michael L Torrie
On Tue, 2007-05-22 at 09:08 +0200, bryan rasmussen wrote: Well two things I would suppose: 1. relative popularity and volume of the group leads spammers to put more resources towards spamming the group. 2. I seem to remember that python-list is also a usenet group? non-moderated, meaning

Re: Restart Linux System

2007-05-22 Thread Michael L Torrie
On Mon, 2007-05-21 at 09:25 +0100, Robert Rawlins - Think Blue wrote: Hello Guys, I’m looking to restart a Linux system from my python application. What’s the best way to achieve this, is there something in the OS module? Probably not. You need to just spawn the reboot command, or run

Re: Restart Linux System

2007-05-22 Thread Michael L Torrie
On Tue, 2007-05-22 at 09:34 -0700, Alexandre Gans wrote: You can use sudo on your user or the bit suid in your application... Just know that you cannot setuid any shebang executable, of which python scripts usually are. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help in Placing Object in Memory

2007-03-27 Thread Michael L Torrie
On Tue, 2007-03-27 at 16:49 +0200, Diez B. Roggisch wrote: can two python script share a common object? What do you mean by that? They can both load a pickled object, yes. But they can't share it as a at-runtime object, where changes in one script are immediately are known to the other.

Re: IDE for Python

2007-08-21 Thread Michael L Torrie
Ricardo Aráoz wrote: Hi, Do you know if for in-house development a GPL license applies? (Qt4 and/or Eric4). If your programs are used in-house and never released, then you don't have to abide by the terms of the GPL. BUT (this is a big but) if you ever release your code or distribute

Re: list index()

2007-09-01 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: In my case of have done os.listdir() on two directories. I want to see what files are in directory A that are not in directory B. I have used exceptions in other languages and only do so on logic that should never happen. In this case it is known that some of the files

Re: list index()

2007-09-01 Thread Michael L Torrie
Alex Martelli wrote: is the one obvious way to do it (the set(...) is just a simple and powerful optimization -- checking membership in a set is roughly O(1), while checking membership in a list of N items is O(N)...). Depending on a how a set is stored, I'd estimate any membership check in a

Re: if then elif

2007-10-10 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: that's the most incorrect thing i've heard all day! if cal or fat = 0 is parsed as if (cal) or (fat = 0) Which is exactly what he said. He also said that what the poster probably wanted was if cal = 0 or fat =0 --

Re: if then elif

2007-10-11 Thread Michael L Torrie
Michael L Torrie wrote: Which is exactly what he said. Haha. Nevermind. You're right. A subtle distinction, isn't it. He also said that what the poster probably wanted was if cal = 0 or fat =0 -- http://mail.python.org/mailman/listinfo/python-list

Re: building extensions for Windows Python

2006-10-13 Thread Michael L Torrie
On Fri, 2006-10-13 at 11:39 -0400, JW wrote: I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything works. My employer wants me to create a Windows version

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

2006-10-31 Thread Michael L Torrie
On Fri, 2006-10-27 at 14:53 -0700, [EMAIL PROTECTED] wrote: Hi, I am new to python and am currently writing my first application. One of the problems I quickly ran into, however, is that python's imports are very different from php/C++ includes in the sense that they completely wrap the

Re: PIL - Pixel Level Image Manipulation?

2006-11-08 Thread Michael L Torrie
On Wed, 2006-11-08 at 11:53 -0500, Gregory Piñero wrote: I want to be able to randomly change pixels in an image and view the results. I can use whatever format of image makes this easiest, e.g., gray scale, bit tonal, etc. Ideally I'd like to keep the pixels in an intermediate format like

Re: Excellent Interview with Dennis D'Souza, full of laughs

2007-01-29 Thread Michael L Torrie
On Mon, 2007-01-29 at 15:47 -0800, [EMAIL PROTECTED] wrote: stuff I know this is a useless gesture, but my normal tolerance for such behavior has reached an end. Please stop spamming this list with off-topic profanities. Your ramblings have nothing to do with programming in Python (this is a

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-27 Thread Michael L Torrie
On 10/27/2016 11:05 PM, Michael Torrie wrote: > On 10/27/2016 04:07 AM, Terry Reedy wrote: >> As I and others have said, those keyboard functions are not available on >> text terminals. I predict that keyboard functions that so not work on >> all systems will never become built-ins. But some