ANN:UliPad 3.4 Release

2006-10-09 Thread limodou
What's it? It's an Editor based on wxPython. NewEdit is the old name, and UliPad is the new name. UliPad uses Mixin and Plugin technique as its architecture. Most of its classes can be extended via mixin and plugin components, and finally become an integrity class at creating the

Re: ANN:UliPad 3.4 Release

2006-10-09 Thread limodou
Sorry for the url download lastest version 3.4: http://wiki.woodpecker.org.cn/moin/UliPad?action=AttachFiledo=gettarget=ulipad_3.4.zip also have windows installer: http://wiki.woodpecker.org.cn/moin/UliPad?action=AttachFiledo=gettarget=UliPad.3.4.exe -- I like python! UliPad The Python

python-dev Summary for 2006-08-01 through 2006-08-15

2006-10-09 Thread steven . bethard
python-dev Summary for 2006-08-01 through 2006-08-15 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-08-01_2006-08-15] = Summaries =

Chicago Python User Group Thurs October 12, 2006

2006-10-09 Thread bray
Thurs. October 12th, 2006. 7pm. This will be our best meeting, yet. David Beasley http://www.dabeaz.com, software developer, writer, and jazz musician will present on PLY. It's 100% Python and very cool. Do not miss this one! Topics -- * PLY (Python Lex Yacc) David Beazley * Performance

[ANN] argparse 0.1 - Command-line parsing library

2006-10-09 Thread Steven Bethard
Announcing argparse 0.1 --- argparse home: http://argparse.python-hosting.com/ argparse at PyPI: http://www.python.org/pypi/argparse/0.1.0 argparse module download: http://argparse.python-hosting.com/file/trunk/argparse.py?format=raw About this release

Re: dictionary containing a list

2006-10-09 Thread Hendrik van Rooyen
Fredrik Lundh [EMAIL PROTECTED] wrote: Steve Holden wrote: One of the fascinating things about c.l.py is that sometimes a questin will be posted that makes almost no sense to me, and somebody else will casually read the OP's mind, home in on the issue and provide a useful and relevant

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Hendrik van Rooyen
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: 8 I wonder if we need another middle field for holding the bin/binte part (could also hold, e.g. Van for those names that use this). NO! - I think of my surname as van Rooyen - its only a

Re: Names changed to protect the guilty

2006-10-09 Thread Hendrik van Rooyen
Steven D'Aprano [EMAIL PROTECTED] wrote: On Fri, 06 Oct 2006 18:29:34 -0700, John Machin wrote: MonkeeSage wrote: On Oct 6, 8:02 pm, MonkeeSage [EMAIL PROTECTED] wrote: it is clearer to you to make the condition explicit (blah not False), blah not False - blah is False Whichever

Re: Unicode strings, struct, and files

2006-10-09 Thread John Machin
Tom Plunket wrote: I am building a file with the help of the struct module. I would like to be able to put Unicode strings into this file, but I'm not sure how to do it. The format I'm trying to write is basically this C structure: struct MyFile { int magic; int flags; short

Re: Asychronous execution *with* return codes?

2006-10-09 Thread Fredrik Lundh
utabintarbo wrote: If so, how do I handle the poll() on long-running processes? Run a bunch and then start a check loop? or use a thread to keep track of each external process. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Access to static members from inside a method decorator?

2006-10-09 Thread Peter Otten
[EMAIL PROTECTED] wrote: Thanks Peter. Yeah I had thought of that earlier, but wasn't sure if this is a standard design pattern for what I'm trying to achieve. It seems ugly to me to use 2 classes when you are essentially describing a single type. To me both Exposed and ExposedType look

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], John Machin wrote: Two problems so far: (1) If you then assume that you should print the phone directory in order of family name, that's not appropriate in some places e.g. Iceland; neither is addressing Jon Jonsson as Mr Jonsson, and

Re: Can't get around IndexError: list index out of range

2006-10-09 Thread Steve Holden
MonkeeSage wrote: On Oct 8, 3:05 pm, Steve Holden [EMAIL PROTECTED] wrote: No: you are proposing to add features to the sequence interface for which there are few demonstrable use cases. If I really wanted to find them, how many instances do you think I could find [in the standard lib and

Re: Unicode strings, struct, and files

2006-10-09 Thread Tom Plunket
John Machin wrote: message = unicode('Hello, world') myFile.write(message) results in 'message' being converted back to a string before being written. Is the way to do this to do something hideous like this: for c in message: myFile.write(struct.pack('H', ord(unicode(c

Re: CGI Tutorial

2006-10-09 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Steve Holden wrote: Credit card numbers should be encrypted in the database, of course, but they rarely are (even by companies whose reputations imply they ought to know better). How would encryption help? They'd still have to be

Re: Why do this?

2006-10-09 Thread Duncan Booth
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: I use the above when I can, when I can't I fall back on http://groups.google.co.nz/[EMAIL PROTECTED], http://groups.google.co.nz/[EMAIL PROTECTED]. Yes, so you said, but you never came up with a convincing use case where that function was better

unexpected behaviour of lambda expression

2006-10-09 Thread leonhard . vogt
Please consider that example: Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. s = 'foo' f = lambda x: s f(None) 'foo' s = 'bar' f(None) 'bar' del(s) f(None) Traceback (most recent call last):

Re: can compile function have a bug?

2006-10-09 Thread Peter Otten
ygao wrote: compile('U中','c:/test','single') code object ? at 00F06B60, file c:/test, line 1 d=compile('U中','c:/test','single') d code object ? at 00F06BA0, file c:/test, line 1 exec(d) u'\xd6\xd0' U中 u'\u4e2d' why is the result different? a bug or another reason? How that

ANN:UliPad 3.4 Release

2006-10-09 Thread limodou
What's it? It's an Editor based on wxPython. NewEdit is the old name, and UliPad is the new name. UliPad uses Mixin and Plugin technique as its architecture. Most of its classes can be extended via mixin and plugin components, and finally become an integrity class at creating the

Re: unexpected behaviour of lambda expression

2006-10-09 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Please consider that example: Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. s = 'foo' f = lambda x: s f(None) 'foo' s = 'bar' f(None) 'bar' del(s) f(None)

Re: ANN:UliPad 3.4 Release

2006-10-09 Thread limodou
Sorry for the url download lastest version 3.4: http://wiki.woodpecker.org.cn/moin/UliPad?action=AttachFiledo=gettarget=ulipad_3.4.zip also have windows installer: http://wiki.woodpecker.org.cn/moin/UliPad?action=AttachFiledo=gettarget=UliPad.3.4.exe -- I like python! UliPad The Python

Re: unexpected behaviour of lambda expression

2006-10-09 Thread Duncan Booth
[EMAIL PROTECTED] wrote: f = lambda x: s ... f(None) Traceback (most recent call last): File stdin, line 1, in ? File stdin, line 1, in lambda NameError: global name 's' is not defined It seems to me, that f is referencing the name s instead of the string object bound to it Of

Re: Why do this?

2006-10-09 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Duncan Booth wrote: Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: I use the above when I can, when I can't I fall back on http://groups.google.co.nz/[EMAIL PROTECTED], http://groups.google.co.nz/[EMAIL PROTECTED]. Yes, so you said, but you never came up with a

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Hendrik van Rooyen wrote: Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: 8 I wonder if we need another middle field for holding the bin/binte part (could also hold, e.g. Van for those names that use this).

Re: Why do this?

2006-10-09 Thread Fredrik Lundh
Dennis Lee Bieber wrote: I'd suspect print() will still do an automatic new-line and take multiple arguments. and do automatic string conversion. and allow you to print stuff without having to import things (or even knowing that you can import things). and let you write code without either

Re: CGI Tutorial

2006-10-09 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Steve Holden wrote: Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Steve Holden wrote: Credit card numbers should be encrypted in the database, of course, but they rarely are (even by companies whose reputations imply they ought to know better).

Re: CGI Tutorial

2006-10-09 Thread Paul Rubin
Lawrence D'Oliveiro [EMAIL PROTECTED] writes: lower. Just last week a police employee in my class told us of an exploit where a major credit card copmany's web site had been hacked using a SQL injection vulnerability. This is usually done with the intent of gaining access to credit card

Re: CGI Tutorial

2006-10-09 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Steve Holden wrote: Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Steve Holden wrote: Credit card numbers should be encrypted in the database, of course, but they rarely are (even by companies whose reputations imply

Memory Management in python 2.5

2006-10-09 Thread cesar . ortiz
Hi, I am starting to have a look to a python program that does not free memory (I am using python 2.4.3). As I have read about a new memory management in python 2.5 (http://evanjones.ca/python-memory.html) I decided to try the program with the new version. With the new version of python the memory

Tkinter: Making a window disappear

2006-10-09 Thread Claus Tondering
I am trying to make a Tkinter main window appear and disappear, but I have problems with that. Here is a small code sample: class MyDialog(Frame): def __init__(self): Frame.__init__(self, None) Label(self, text=Hello).pack() Button(self, text=OK,

Re: Memory Management in python 2.5

2006-10-09 Thread Max M
[EMAIL PROTECTED] skrev: Hi, I am starting to have a look to a python program that does not free memory (I am using python 2.4.3). As I have read about a new memory management in python 2.5 (http://evanjones.ca/python-memory.html) I decided to try the program with the new version. With the

Re: Why do this?

2006-10-09 Thread Fredrik Lundh
Lawrence D'Oliveiro wrote: Secondly, it's less convenient for cases where a dynamic query is being built. I previously gave the SQLStringList example. If that's not enough, here's another (simple) one: Conditions = [] if Name != None : Conditions.append(name = %s % SQLString(Name))

Re: Tkinter: Making a window disappear

2006-10-09 Thread Claus Tondering
I just solved the problem myself: I wrote: self.destroy() Writing self.master.destroy() instead does the trick. Sorry for the inconvenience. -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory Management in python 2.5

2006-10-09 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Hi, I am starting to have a look to a python program that does not free memory (I am using python 2.4.3). As I have read about a new memory management in python 2.5 (http://evanjones.ca/python-memory.html) I decided to try the program with the new version. With the

Re: Why do this?

2006-10-09 Thread Steve Holden
Fredrik Lundh wrote: Lawrence D'Oliveiro wrote: Secondly, it's less convenient for cases where a dynamic query is being built. I previously gave the SQLStringList example. If that's not enough, here's another (simple) one: Conditions = [] if Name != None : Conditions.append(name = %s %

Re: Tkinter: Making a window disappear

2006-10-09 Thread Fredrik Lundh
Claus Tondering wrote: I am trying to make a Tkinter main window appear and disappear, but I have problems with that. Here is a small code sample: class MyDialog(Frame): def __init__(self): Frame.__init__(self, None) Label(self, text=Hello).pack()

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Fredrik you need tools to help you track the bugs and their status, but Fredrik you can handle issue registration, discussion, and most Fredrik maintenance stuff using good old mail just fine. Which is something SourceForge has yet to learn. At work we

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Michael Ströder
Paul Rubin wrote: [EMAIL PROTECTED] writes: Which is something SourceForge has yet to learn. At work we use a system called RT (http://www.bestpractical.com/rt/). While it's not perfect, it does allow submissions and responses via email. That feature alone puts it miles ahead of SF in my

Re: can compile function have a bug?

2006-10-09 Thread John Machin
Peter Otten wrote: ygao wrote: compile('U中','c:/test','single') code object ? at 00F06B60, file c:/test, line 1 d=compile('U中','c:/test','single') d code object ? at 00F06BA0, file c:/test, line 1 exec(d) u'\xd6\xd0' U中 u'\u4e2d' why is the result different? a bug or

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Paul Rubin
Michael Ströder [EMAIL PROTECTED] writes: E-mail spam is an issue but the python.org infrastructure already has to do spam filtering for mailing lists. Or does it simply resend all mail? The problem is that the lists (or at least the pypy list) got mirrored somewhere without having the

Re: Names changed to protect the guilty

2006-10-09 Thread Antoon Pardon
On 2006-10-07, John Machin [EMAIL PROTECTED] wrote: Steven D'Aprano wrote: On Fri, 06 Oct 2006 18:29:34 -0700, John Machin wrote: MonkeeSage wrote: On Oct 6, 8:02 pm, MonkeeSage [EMAIL PROTECTED] wrote: it is clearer to you to make the condition explicit (blah not False), blah not

Re: Memory Management in python 2.5

2006-10-09 Thread cesar . ortiz
I just checked the comsuptiom with the 'top' unix util. I am procesing html docs and the amount of memory rises continiously. I am using a lot of lists and docs. Some of them with objects. Do i have to make any special thing in order to get them released back to the Memory Manager? For instantec..

Re: Implementing a circular counter using property / descriptors?

2006-10-09 Thread Gerard Flanagan
IloChab wrote: I'd like to implement an object that represents a circular counter, i.e. an integer that returns to zero when it goes over it's maxVal. This counter has a particular behavior in comparison: if I compare two of them an they differ less than half of maxVal I want that, for

Re: Memory Management in python 2.5

2006-10-09 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: I just checked the comsuptiom with the 'top' unix util. I am procesing html docs and the amount of memory rises continiously. what library are you using for this ? I am using a lot of lists and docs. Some of them with objects. Do i have to make any special thing in

Re: WSGI - How Does It Affect Me?

2006-10-09 Thread Bruno Desthuilliers
Gregory Piñero wrote: So I keep hearing more and more about this WSGI stuff, and honestly I still don't understand what it is exactly A protocol for web servers/python programs interaction. Just like CGI is a protocol for web servers/whatever-language programs interactions. Gregory, you'll

Re: Names changed to protect the guilty

2006-10-09 Thread Steve Holden
Antoon Pardon wrote: On 2006-10-07, John Machin [EMAIL PROTECTED] wrote: Steven D'Aprano wrote: On Fri, 06 Oct 2006 18:29:34 -0700, John Machin wrote: MonkeeSage wrote: On Oct 6, 8:02 pm, MonkeeSage [EMAIL PROTECTED] wrote: it is clearer to you to make the condition explicit (blah not

Re: Names changed to protect the guilty

2006-10-09 Thread Antoon Pardon
On 2006-10-08, Aahz [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], John J. Lee [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Aahz) writes: The following line of lightly munged code was found in a publicly available Python library... if schema.elements.has_key(key) is False:

PythonWin: error message and endless printing

2006-10-09 Thread Hertha Steck
Using Python 2.5 with pywin32 build 210 on Windows XP Home, first try with PythonWin after installation of this version. Here are the header lines from the interactive window: PythonWin 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32. Portions Copyright 1994-2006 Mark

why this is wrong?

2006-10-09 Thread bruce.who.hk
Hi, all I just donnot know why this is wrong, you can test it in python shell: class B: def __str__(self): return u'\u5929\u4e0b' b=B() str(b) Traceback (most recent call last): File input, line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1:

Re: WSGI - How Does It Affect Me?

2006-10-09 Thread Bruno Desthuilliers
Sybren Stuvel wrote: Gregory Piñero enlightened us with: So I keep hearing more and more about this WSGI stuff, and honestly I still don't understand what it is exactly AFAIK it's a standard for web frameworks. It's not. It's a protocol for HTTP servers - Python web applications

Re: why this is wrong?

2006-10-09 Thread Fredrik Lundh
bruce.who.hk wrote: I just donnot know why this is wrong, you can test it in python shell: class B: def __str__(self): return u'\u5929\u4e0b' b=B() str(b) Traceback (most recent call last): File input, line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode characters in

Re: why this is wrong?

2006-10-09 Thread Fredrik Lundh
bruce.who.hk wrote: I just donnot know why this is wrong btw, you really should try to use more descriptive subject lines. for some tips, see: http://catb.org/~esr/faqs/smart-questions.html#bespecific most notably: ... imagine looking at the index of an archive of questions, with

Re: SqlAlchemy how and where it can be used?

2006-10-09 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: hello, Ive read some articles about SqlAlchemy but i don't know where i can use this? In any Python program. Lets say that i would like to create some application which will be using sqlAlchemy My question is which programming language can i code to use it? (only

Re: Bizzare lst length problem

2006-10-09 Thread Bruno Desthuilliers
Ben wrote: Ah... my list is a string. That explains the len() results, but not why it is a string in the dirst place. I have a dictionary containing a number of instances of the following class as values: class panel: mops =[] This one is a class attribute - it's shared between all

Re: Bizzare lst length problem

2006-10-09 Thread Bruno Desthuilliers
Ben wrote: Using Fredericks advice I managed to track down the problem - it was really very stupid. I had accidentally cast the list to a string There's nothing like type casting in Python. You did not cast the list to a string, you created a string from a list. -- bruno desthuilliers python

Re: Bizzare lst length problem

2006-10-09 Thread Bruno Desthuilliers
Ben wrote: (OT : Ben, please stop top-posting, it's really annoying)0 Ah - I found out why I had cast it to a string. cf my previous anwser on this point. I had not, at that point, worked out ho to pass the list by value rather than reference, There's nothing like 'pass by value/pass by

Re: why this is wrong?

2006-10-09 Thread John Machin
bruce.who.hk wrote: Hi, all I just donnot know why this is wrong, you can test it in python shell: class B: def __str__(self): return u'\u5929\u4e0b' b=B() str(b) Traceback (most recent call last): File input, line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode

Re: wxpython problems using GLCanvas

2006-10-09 Thread Will McGugan
nelson wrote: Hi, i'm coding a 3d interactive geometry progam and i want to use opengl for displaying ogbjects. I can open a opengl canvas (i follow the wxpython demo) and i can draw a cube. First time i execute the application all is ok. second time it freezes X and i can't interact with

Re: Why do this?

2006-10-09 Thread Duncan Booth
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: I use the above when I can, when I can't I fall back on http://groups.google.co.nz/[EMAIL PROTECTED], http://groups.google.co.nz/[EMAIL PROTECTED]. Yes, so you said, but you never came up with a convincing use case where that function was better

Re: can compile function have a bug?

2006-10-09 Thread Peter Otten
John Machin wrote: But it's not an all-UTF-8 environment; his_encoding = 'gb2312' or one of its heirs/successors :-) Ouch. Almost understanding a problem hurts more than not understanding it at all. I just had a refresher of the experience... Peter --

Re: operator overloading + - / * = etc...

2006-10-09 Thread Antoon Pardon
On 2006-10-08, Steven D'Aprano [EMAIL PROTECTED] wrote: On Sat, 07 Oct 2006 17:21:55 -0500, Tim Chase wrote: With the caveat of the = mentioned in the subject-line (being different from ==)...I haven't found any way to override assignment in the general case. Why would you want to do that?

intercepting keypresses, mouse movements, joystick movements.

2006-10-09 Thread bryan rasmussen
Hi, I've been looking at autohotkey to do some different usability hacks for windows http://www.autohotkey.com/ one of the benefits of this language is it allows one to catch keyboard usage, joystick usage, and mouse usage inputs very easily at a global level or at application levels by watching

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread John Machin
Steve Holden wrote: Don't forget the UK, where the scots are accommodated by filing Mc before Mac everywhere except the 'phone book, where IIRC they are treated as equivalent. Same/similar phone book treatment here in Australia -- Mc is treated as though it were spelled Mac. An interesting

Re: Where is Python in the scheme of things?

2006-10-09 Thread Magnus Lycka
gord wrote: As a complete novice in the study of Python, I am asking myself where this language is superior or better suited than others. For example, all I see in the tutorials are lots of examples of list processing, arithmetic calculations - all in a DOS-like environment. Python runs on

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Magnus Lycka
Fredrik Lundh wrote: you're not on the infrastructure list, I hear. I tried to figure out where that list is, so I could have a look at the archives, but I didn't find it in the (for me) obvious places. Could someone please provide a link to the archives for this mailing list, or aren't there

Re: unexpected behaviour of lambda expression

2006-10-09 Thread leonhard . vogt
Fredrik Lundh schrieb: [EMAIL PROTECTED] wrote: Please consider that example: Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. s = 'foo' f = lambda x: s f(None) 'foo' s = 'bar'

Re: Dive Into Java?

2006-10-09 Thread Bjoern Schliessmann
erikcw wrote: DiveIntoPython.org was the first book I read on python, and I really got a lot out of it. I need to start learning Java (to maintain a project I've inherited), and was wondering if anyone knew of any similar books for Java? Perhaps a bit of a rant, but learn Python and C++,

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Georg Brandl
Magnus Lycka wrote: Fredrik Lundh wrote: you're not on the infrastructure list, I hear. I tried to figure out where that list is, so I could have a look at the archives, but I didn't find it in the (for me) obvious places. Could someone please provide a link to the archives for this

file system iteration

2006-10-09 Thread rick
In Unix, the file system hierarchy is like a tree that has a base or 'root' that exposes objects (files and folders) that can easily be iterated over. \ \ | / / \ \ | / / \ \|/ / \ | / \|/ | | Root So, when I do os.chdir('/') I am at the base of the tree and

Re: file system iteration

2006-10-09 Thread Gerrit Holl
On 2006-10-09 14:45:35 +0200, rick wrote: import os.path paths = [] if os.path.isdir('A:/'): paths.append('A:/') if os.path.isdir('B:/'): paths.append('B:/') ... That's a kludge, but it works OK. I'm sure WMI may have a function that returns mounted volumes, but under

Re: Python to use a non open source bug tracker?

2006-10-09 Thread skip
Michael E-mail spam is an issue but the python.org infrastructure Michael already has to do spam filtering for mailing lists. Or does it Michael simply resend all mail? Email sent to most mailing lists hosted on mail.python.org are passed through a SpamBayes instance before being

Re: file system iteration

2006-10-09 Thread rick
Gerrit Holl wrote: The very least you can try: import string string.ascii_uppercase for c in string.ascii_uppercase: if os.path.isdir('%s:/' % c): ... etc. But I suppose there should be a better way. Oh yes, I do that. I spelled out the example very explicitly for

Tkinter systray

2006-10-09 Thread billie
Hi all. I'd like to develop a GUI-based application the most portable as possible, able to run in systray. I think that, for portability reasons, Tkinter could be the best choice, so I tried to google a little bit about it. According to this :

Re: switching to numpy and failing, a user story

2006-10-09 Thread Istvan Albert
Fernando Perez wrote: It's funny how I don't see anyone complaining about any of the Python books sold here (or at any other publishing house): That is maybe because the language is fairly well documented to begin with. Try to imagine for a moment how many people would use Python if on the

Re: Dive Into Java?

2006-10-09 Thread Diez B. Roggisch
Bjoern Schliessmann wrote: erikcw wrote: DiveIntoPython.org was the first book I read on python, and I really got a lot out of it. I need to start learning Java (to maintain a project I've inherited), and was wondering if anyone knew of any similar books for Java? Perhaps a bit of a

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Paul Boddie
Magnus Lycka wrote: It seems to me that an obvious advantage with either Roundup or Trac, is that if the Python project used it, the Python project would have a significant impact on how this product developed. Even if the Jira people seem eager to please us, I'm pretty convinced that it

Re: file system iteration

2006-10-09 Thread Georg Brandl
rick wrote: In Unix, the file system hierarchy is like a tree that has a base or 'root' that exposes objects (files and folders) that can easily be iterated over. \ \ | / / \ \ | / / \ \|/ / \ | / \|/ | | Root So, when I do os.chdir('/') I am at

Re: Dive Into Java?

2006-10-09 Thread Bjoern Schliessmann
Diez B. Roggisch wrote: While I do not love java, this is one of the dumbest statements for a while in this NG - even though it is not meant to be too serious. Thanks for your concern. I didn't really state this from dumbness though. BTW, definitely consider looking up irony and emoticon in

RE: file system iteration

2006-10-09 Thread Tim Golden
[Georg Brandl] | rick wrote: | In Windows, the file system is disjointed and there is now | real 'root' | At least none that I can see. It looks more like this: | | | | | | | | | | |_|_|_|_|_|_| | A B C D E F G | | How do you guys handle this when working with scripts that | need to

Re: file system iteration

2006-10-09 Thread rick
Georg Brandl wrote: Which application needs to walk over ALL files? Normally, you just have a starting path and walk over everything under it. Searching for a file by name. Scanning for viruses. Etc. There are lots of legitimate reason to walk all paths from a central starting point, no??? --

RE: file system iteration

2006-10-09 Thread Tim Golden
[Rick] | Searching for a file by name. Scanning for viruses. Etc. | There are lots | of legitimate reason to walk all paths from a central | starting point, no??? Well, to get you started, I think this is the kind of thing you'll want. Uses ctypes, which is built-in to Python 2.5 so presumably

Re: file system iteration

2006-10-09 Thread Fredrik Lundh
rick [EMAIL PROTECTED] wrote: Which application needs to walk over ALL files? Normally, you just have a starting path and walk over everything under it. Searching for a file by name. Scanning for viruses. Etc. There are lots of legitimate reason to walk all paths from a central starting

Re: file system iteration

2006-10-09 Thread rick
Fredrik Lundh wrote: what's the difference between a starting path and a starting point ? None. What starting path or point would you suggest under Windows? Is there something obvious that I'm missing? I see no starting point under windows as my initial question clearly stated. --

RE: file system iteration

2006-10-09 Thread Rob Williscroft
Tim Golden wrote in news:mailman.119.1160403292.11739.python- [EMAIL PROTECTED] in comp.lang.python: [Rick] | Searching for a file by name. Scanning for viruses. Etc. | There are lots | of legitimate reason to walk all paths from a centra l | starting point, no??? Well, to get you

Re: Dive Into Java?

2006-10-09 Thread Antoine De Groote
erikcw wrote: DiveIntoPython.org was the first book I read on python, and I really got a lot out of it. I need to start learning Java (to maintain a project I've inherited), and was wondering if anyone knew of any similar books for Java? Maybe once I know my way around the language, I can

Re: Dive Into Java?

2006-10-09 Thread Diez B. Roggisch
Bjoern Schliessmann wrote: Diez B. Roggisch wrote: While I do not love java, this is one of the dumbest statements for a while in this NG - even though it is not meant to be too serious. Thanks for your concern. I didn't really state this from dumbness though. What do you mean by from

Re: file system iteration

2006-10-09 Thread rick
Tim Golden wrote: [Rick] | Searching for a file by name. Scanning for viruses. Etc. | There are lots | of legitimate reason to walk all paths from a central | starting point, no??? Well, to get you started, I think this is the kind of thing you'll want. Uses ctypes, which is built-in

Re: ANN: SimpleJSONRPCServer

2006-10-09 Thread Jim Washington
On Sun, 08 Oct 2006 10:16:05 +1300, aum wrote: I've built a module called SimpleJSONRPCServer, which is essentially the same as the familiar python library module SimpleXMLRPCServer, except that it uses the JSON-RPC protocol. Cool. There is a new JSON-RPC 1.1 specification, currently in

Re: file system iteration

2006-10-09 Thread Jonathan Hartley
Georg Brandl wrote: Which application needs to walk over ALL files? How about 'updatedb' for starters, the index-maintainer for the common *nix command-line utility 'locate'. I'm pretty sure that os.walk( ) deals with symbolic links (by not visiting them) and ' /proc' type complexities by

Re: can compile function have a bug?

2006-10-09 Thread ygao
Peter Otten wrote: ygao wrote: compile('U中','c:/test','single') code object ? at 00F06B60, file c:/test, line 1 d=compile('U中','c:/test','single') d code object ? at 00F06BA0, file c:/test, line 1 exec(d) u'\xd6\xd0' U中 u'\u4e2d' why is the result different? a bug or

Re: Python to use a non open source bug tracker?

2006-10-09 Thread A.M. Kuchling
On 9 Oct 2006 06:36:30 -0700, Paul Boddie [EMAIL PROTECTED] wrote: ... Meanwhile, despite the python.org codebase presumably running various commercial sites, ... Nothing should have given you this impression! python.org's formatting is handled through a custom script called Pyramid,

Re: file system iteration

2006-10-09 Thread Georg Brandl
rick wrote: Georg Brandl wrote: Which application needs to walk over ALL files? Normally, you just have a starting path and walk over everything under it. Searching for a file by name. Scanning for viruses. Etc. There are lots of legitimate reason to walk all paths from a central

Re: file system iteration

2006-10-09 Thread Georg Brandl
Jonathan Hartley wrote: Georg Brandl wrote: Which application needs to walk over ALL files? How about 'updatedb' for starters, the index-maintainer for the common *nix command-line utility 'locate'. I'm pretty sure that os.walk( ) deals with symbolic links (by not visiting them) and

Re: operator overloading + - / * = etc...

2006-10-09 Thread Bruno Desthuilliers
Steven D'Aprano wrote: On Sat, 07 Oct 2006 17:21:55 -0500, Tim Chase wrote: With the caveat of the = mentioned in the subject-line (being different from ==)...I haven't found any way to override assignment in the general case. Why would you want to do that? For the same reason one would

Re: WSGI - How Does It Affect Me?

2006-10-09 Thread Ian Bicking
Gregory Piñero wrote: What I'm most confused about is how it affects me. I've been writing small CGI programs in Python for a while now whenever I have a need for a web program. Is CGI now considered Bad? I've just always found it easier to write something quickly with the CGI library than

Re: problem with split

2006-10-09 Thread Bruno Desthuilliers
hanumizzle wrote: (snip) Regexes are usually passed as literals directly to re.compile(). For which definition of usually ? -- bruno desthuilliers python -c print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')]) --

python-dev Summary for 2006-08-01 through 2006-08-15

2006-10-09 Thread steven . bethard
python-dev Summary for 2006-08-01 through 2006-08-15 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-08-01_2006-08-15] = Summaries =

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Paul Boddie
A.M. Kuchling wrote: On 9 Oct 2006 06:36:30 -0700, Paul Boddie [EMAIL PROTECTED] wrote: ... Meanwhile, despite the python.org codebase presumably running various commercial sites, ... Nothing should have given you this impression! python.org's formatting is handled through a custom

Re: Dive Into Java?

2006-10-09 Thread Bjoern Schliessmann
Diez B. Roggisch wrote: What do you mean by from dumbness? It didn't originate from the dumbness area of my brain (== it wasn't my honest opinion). It was meant satirical. And in context of somebody seeking enlightment regarding java, it's especially unhelpful and confusing I think. Which

Re: intercepting keypresses, mouse movements, joystick movements.

2006-10-09 Thread TheSeeker
bryan rasmussen wrote: Hi, I've been looking at autohotkey to do some different usability hacks for windows http://www.autohotkey.com/ one of the benefits of this language is it allows one to catch keyboard usage, joystick usage, and mouse usage inputs very easily at a global level or at

  1   2   >