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

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 stand

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

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 sti

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 >, >. Yes, so you said, but you never came up with a convincing use case where that function was be

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

Re: can compile function have a bug?

2006-10-09 Thread Peter Otten
ygao wrote: compile('U"中"','c:/test','single') > d=compile('U"中"','c:/test','single') d > exec(d) > u'\xd6\xd0' U"中" > u'\u4e2d' > > why is the result different? > a bug or another reason? How that particular output came to be I don't know, but you should be able

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 instance

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)

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=AttachFile&do=get&target=ulipad_3.4.zip also have windows installer: http://wiki.woodpecker.org.cn/moin/UliPad?action=AttachFile&do=get&target=UliPad.3.4.exe -- I like python! UliPad <>: http://wi

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 "", line 1, in ? > File "", line 1, in > 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 co

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 >>, >>. > > Yes, so you said, but you neve

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 n

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

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 credi

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 com

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 th

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

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 t

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.appen

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 wo

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

Re: can compile function have a bug?

2006-10-09 Thread John Machin
Peter Otten wrote: > ygao wrote: > > compile('U"中"','c:/test','single') > > > d=compile('U"中"','c:/test','single') > d > > > exec(d) > > u'\xd6\xd0' > U"中" > > u'\u4e2d' > > > > > why is the result different? > > a bug or another reason? > > How that particular outp

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 addre

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 ("bl

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 i

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 fi

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 t

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_ke

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 H

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 "", line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: or

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 int

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 "", line 1, in ? > UnicodeEncodeError: 'ascii' codec can't encode char

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 j

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?

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 betwe

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 py

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 r

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 "", line 1, in ? > UnicodeEncodeError: 'ascii' codec can't

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 >

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 >>>, >>>. >> >> Yes, so you said, but you never came up with a convincing use case >> where that f

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 -- http://mail.python.org/mailman/listinfo

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 w

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 a

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 interestin

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

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

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 th

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 ca

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

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 f

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

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 : http://mail.python.org/pipermail/python-list/2002-Septe

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 fi

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

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 i

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.chdi

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 "emotico

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

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 sta

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. -- http://

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 y

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

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 mea

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 bui

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 Wo

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') > > > d=compile('U"中"','c:/test','single') > d > > > exec(d) > > u'\xd6\xd0' > U"中" > > u'\u4e2d' > > > > > why is the result different? > > a bug or another reason? > > How that particular outp

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 Pyram

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 t

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 sa

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

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('@')])" -- http://mail.python.org/mailma

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 = Mix

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

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. Wh

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 o

Re: A curses-game I need help with.

2006-10-09 Thread Gasten
Hi. I would like to know why no one have answered my post http://groups.google.com/group/comp.lang.python/browse_thread/thread/8424904058bd1734 . It were my first post here (and on the Usenet overall), so I would like to know what I did wrong. Too´many spellingmisstakes? Shitty code? No one underst

Re: WSGI - How Does It Affect Me?

2006-10-09 Thread Gregory Piñero
Thanks for all the answers everyone. It's finally starting to come together for me. Bruno, I tried reading some tutorials but perhaps I made the content out to be more complicated than it really was and got confused. So my final question is if WSGI will work on any web hosting company that suppo

Re: Tkinter & systray

2006-10-09 Thread hg
billie wrote: > 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 : > http://mail.python.org/piperm

Re: ANN: SimpleJSONRPCServer

2006-10-09 Thread Istvan Albert
Sybren Stuvel wrote: > aum enlightened us with: > > 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. > > Thanks a lot! I've used XML-RPC on a low-speed device, a

Re: file system iteration

2006-10-09 Thread Duncan Booth
rick <[EMAIL PROTECTED]> 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

Python component model

2006-10-09 Thread Edward Diener No Spam
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection outside of that class. This structured way allows visual tools to host components, and allows programme

Re: switching to numpy and failing, a user story

2006-10-09 Thread Robert Kern
Istvan Albert wrote: > No one is questioning one's right to try to sell a product/book etc. > But I happen to believe that trying to make money by selling the docs > is stupid, you'll scare away potential users, hinder the acceptance of > the product, further fragment the community of users needing

Re: Python component model

2006-10-09 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Edward Diener No Spam wrote: > I believe that Python should have a common components model for all RAD > development environments, as that would allow the Python programmer to > create a set of classes representing components which would work in any > environment. I want

Re: switching to numpy and failing, a user story

2006-10-09 Thread Robert Kern
Istvan Albert wrote: > No one is questioning one's right to try to sell a product/book etc. > But I happen to believe that trying to make money by selling the docs > is stupid, you'll scare away potential users, hinder the acceptance of > the product, further fragment the community of users needing

Re: Python component model

2006-10-09 Thread skip
Edward> The definition of a component model I use below is a class which Edward> allows properties, methods, and events in a structured way which Edward> can be recognized, usually through some form of introspection Edward> outside of that class. This structured way allows visual t

Re: file system iteration

2006-10-09 Thread rick
Thanks Tim and Rob... this works really well! -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >