Re: migrating to packages

2007-10-03 Thread Hrvoje Niksic
[EMAIL PROTECTED] writes: > I will expose my case quicly. > The MYCLASES.py file contains the A class, so i can use > from MYCLASES import A > a = () > > Using the "package mode" (wich looks fine BTW), having the simple > MYCLASES/ > __init__.py > A.py > > forces my (i guess) to use the

Re: A question about subprocess

2007-10-03 Thread Karthik Gurusamy
On Oct 3, 9:46 am, JD <[EMAIL PROTECTED]> wrote: > Hi, > > I want send my jobs over a whole bunch of machines (using ssh). The > jobs will need to be run in the following pattern: > > (Machine A) (Machine B) (Machine C) > > Job A1 Job B1Job C1 > > Job A2 Job B2

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread George Neuner
On Wed, 03 Oct 2007 23:07:32 +0100, [EMAIL PROTECTED] wrote: >George Neuner wrote: >> Symbolism over substance has become the mantra >> of the young. > >"Symbolism: The practice of representing things by means of symbols or >of attributing symbolic meanings or significance to objects, events, or

RE: Mysqldb printing sql and params ... NEVER MIND

2007-10-03 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Sells, Fred wrote: > el stupido here "accidently" put a couple of print statements into a > mysqldb module when eclipse opened it from the link in the stacktrace; Dimdows, right? -- http://mail.python.org/mailman/listinfo/python-list

Re: Having fun with python

2007-10-03 Thread Tzury Bar Yochay
> However, one point you have shown very clearly: the second one is much > easier to tear apart and reassemble. Sure. Zen Of Python: Readbility Counts -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Steve Holden wrote: > Lawrence D'Oliveiro wrote: >> In message <[EMAIL PROTECTED]>, George Neuner >> wrote: >> >>> Dictionaries used to be the arbiters of the language ... >> >> No they didn't. Before Doctor Johnson, there were no dictionaries. > > And before the

Re: module confusion

2007-10-03 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Carsten Haese wrote: > On Thu, 2007-10-04 at 11:11 +1300, Lawrence D'Oliveiro wrote: > >> In Python, all names _are_ variables. They are not "bound" to objects. >> The value of os.path is a pointer. > > No. "os.path" refers to the object that's known as the "path"

Re: module confusion

2007-10-03 Thread Steve Holden
Ben Finney wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > >> You and I know that the semantics of Python names are precisely >> those of (to use an Algol 68 term, unless I am mistaken) >> automatically dereferenced pointers to objects of arbitrary type. > > Yes. That's exactly why it's wrong

Re: racism kontrol

2007-10-03 Thread George Sakkis
On Oct 3, 6:47 pm, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > Steve Holden wrote: > > Wildemar Wildenburger wrote: > >> (I aplogize for that last remark. I have nothing against turkish > >> people, I just couldn't let the opportunity for a mean joke slip.) > > > Does this mean you are an eq

Re: racism kontrol

2007-10-03 Thread Steve Holden
Wildemar Wildenburger wrote: > Steve Holden wrote: >> Wildemar Wildenburger wrote: >>> (I aplogize for that last remark. I have nothing against turkish >>> people, I just couldn't let the opportunity for a mean joke slip.) >> Does this mean you are an equal-opportunity racist? >> > Yeah! Well obse

Re: module confusion

2007-10-03 Thread Ben Finney
Steve Holden <[EMAIL PROTECTED]> writes: > You and I know that the semantics of Python names are precisely > those of (to use an Algol 68 term, unless I am mistaken) > automatically dereferenced pointers to objects of arbitrary type. Yes. That's exactly why it's wrong to refer to them as pointers

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread George Neuner
On Wed, 3 Oct 2007 18:20:38 + (UTC), [EMAIL PROTECTED] (Bent C Dalager) wrote: >In article <[EMAIL PROTECTED]>, >George Neuner wrote: >>On Wed, 3 Oct 2007 09:36:40 + (UTC), [EMAIL PROTECTED] (Bent C >>Dalager) wrote: >> >>> >>>Only if you're being exceedingly pedantic and probably not ev

Re: migrating to packages

2007-10-03 Thread Carl Banks
On Wed, 03 Oct 2007 22:28:57 -0300, gherzig wrote: >> On Oct 3, 2007, at 11:42 AM, Gerardo Herzig wrote: >> >>> Hi all. I have a single file with several classes, wich i want to >>> separate into several packages. >>> The big file is named, say MYCLASES, and contains a class named >>> A(object),

Re: migrating to packages

2007-10-03 Thread Ben Finney
[EMAIL PROTECTED] writes: > The MYCLASES.py file contains the A class, so i can use > from MYCLASES import A > a = () > > Using the "package mode" (wich looks fine BTW), having the simple > MYCLASES/ > __init__.py > A.py > > forces my (i guess) to use the > from MYCLASES.A import A Y

Re: module confusion

2007-10-03 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Ben Finney wrote: > >> Lawrence D'Oliveiro <[EMAIL PROTECTED]> writes: >> >>> On my Gentoo system: >>> >>> >>> import os >>> >>> os.path >>> >>> >>> It's just a variable that happens to point to the posixpath module. >> Ther

Re: module confusion

2007-10-03 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Ben Finney wrote: > >> Lawrence D'Oliveiro <[EMAIL PROTECTED]> writes: >> >>> On my Gentoo system: >>> >>> >>> import os >>> >>> os.path >>> >>> >>> It's just a variable that happens to point to the posixpath module. >> Ther

Re: reliable unit test logging

2007-10-03 Thread Ben Finney
Vyacheslav Maslov <[EMAIL PROTECTED]> writes: > I have one more question related to logging module, not unit test. Please do readers a favour, then, and start a new thread (i.e. compose a new message, not a reply in an existing thread) for unrelated questions. -- \ "Philosophy is questio

Re: migrating to packages

2007-10-03 Thread gherzig
> > On Oct 3, 2007, at 11:42 AM, Gerardo Herzig wrote: > >> Hi all. I have a single file with several classes, wich i want to >> separate into several packages. >> The big file is named, say MYCLASES, and contains a class named >> A(object), and B(A). >> >> We have been using this MYCLASES in the >

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread rjack
>Tell me, do you know what "hyperbole" means? Betcha' Ludwig Wittgenstein coulda' told ya'! -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert on uppercase unaccentent unicode character

2007-10-03 Thread John Machin
On Oct 4, 7:06 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: > >> No, that will uppercase the string, but it doesn't (and shouldn't) > >> strip the accents: > > > I can agree that is doesn't (though I am taking your word for it), but > > a French person will

Computer Security Information (Free Articles and eBooks)

2007-10-03 Thread murray . james . com . use
I Want To Share Computer Security Information To All Internet Netter. A. Computer Security Articles: 1.Firewalls Torn Apart 2.Guide To Social Engineering 3.Social Engineering And Email Account Cracking 4.Network Firewall Security 5.Hijacking Hotmail Accounts For Newbies 6.V

Re: module confusion

2007-10-03 Thread Carsten Haese
On Thu, 2007-10-04 at 11:11 +1300, Lawrence D'Oliveiro wrote: > In Python, all names _are_ variables. They are not "bound" to objects. The > value of os.path is a pointer. No. "os.path" refers to the object that's known as the "path" attribute of the object known as "os". That object, in turn, is

Re: Howto Launch a windows application ?

2007-10-03 Thread Yu-Xi Lim
stef mientki wrote: > cmd =[] > cmd.append ( 'D:\\PIC-tools\\JALxxx\\jalv2_3.exe' ) > cmd.append ( '-long-start' ) > cmd.append ( '-d') > cmd.append ( '-clear' ) > cmd.append ( '-sD:\\PIC-tools\\JAL\\libs2' ) > cmd.append ( > 'd:\\pic-tools\\jal\\programs\\test_rs232\\test_rs232_hw.jal' ) > cmd.ap

Re: racism kontrol

2007-10-03 Thread Wildemar Wildenburger
Steve Holden wrote: > Wildemar Wildenburger wrote: >> (I aplogize for that last remark. I have nothing against turkish >> people, I just couldn't let the opportunity for a mean joke slip.) > > Does this mean you are an equal-opportunity racist? > Yeah! Well observed. :) Although "equal-opportuni

Re: Howto Launch a windows application ?

2007-10-03 Thread Matimus
stef mientki wrote: > hello, > > I'm trying to launch a windows application, > but as many others on this list, I've some trouble. > I read some other threads about this topic, > but sorry, I still don't understand all this (never heard of pipes). > > When I use a batch file, I can launch the bat-

Re: module confusion

2007-10-03 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Ben Finney wrote: > Lawrence D'Oliveiro <[EMAIL PROTECTED]> writes: > >> On my Gentoo system: >> >> >>> import os >> >>> os.path >> >> >> It's just a variable that happens to point to the posixpath module. > > There's no "pointing" going on. It's an

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread dan
George Neuner wrote: > Symbolism over substance has become the mantra > of the young. "Symbolism: The practice of representing things by means of symbols or of attributing symbolic meanings or significance to objects, events, or relationships." One might even suggest that all written language i

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, George Neuner > wrote: > >> Dictionaries used to be the arbiters of the language ... > > No they didn't. Before Doctor Johnson, there were no dictionaries. And before the Big bang there was nothing (perhaps). What's your point? regard

Closing pexpect connections using threads

2007-10-03 Thread Vishal Sethia
I am trying to write a multi-threaded program and use pexpect along with it. All works fine until I try to close the connection handle. That thread keeps waiting until the connection handle closes. It actually never comes out of that command(connection_handle.close()). If I manually kill it using k

Howto Launch a windows application ?

2007-10-03 Thread stef mientki
hello, I'm trying to launch a windows application, but as many others on this list, I've some trouble. I read some other threads about this topic, but sorry, I still don't understand all this (never heard of pipes). When I use a batch file, I can launch the bat-file from python, and the windows a

Re: enumerate overflow

2007-10-03 Thread Raymond Hettinger
On Oct 3, 12:52 pm, koara <[EMAIL PROTECTED]> wrote: > Thanks everybody for the reply and suggestions, I'm glad to see the > issues's already been discovered/discussed/almostresolved. The new code is checked-in. In Py2.6, enumerate() will no longer raise an OverflowError and it will automatically

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, George Neuner wrote: > Dictionaries used to be the arbiters of the language ... No they didn't. Before Doctor Johnson, there were no dictionaries. -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Lew
rjack wrote: > Webster? WEBSTER. . . ? > > Whatever happened to the Oxford English Dictionary ? > Seems to me the English have always spoken the definitive > English. . . that's why they call it ENGLISH. What is in a name? A rose by any other name would still smell as sweet. -- Lew -- http://

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, rjack <[EMAIL PROTECTED]> wrote: >Webster? WEBSTER. . . ? > >Whatever happened to the Oxford English Dictionary ? It suffers from not being in my "dict" installation I suppose. >Seems to me the English have always spoken the definitive >English. . . that's why the

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Lew
Bent C Dalager wrote: > In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] (Bent C Dalager) writes: >> >>> I have never claimed equivalence. What I have made claims about are >>> the properties of one of the meanings of a word. Specifically, my >>> claim

Re: Convert on uppercase unaccentent unicode character

2007-10-03 Thread Duncan Booth
Steve Holden <[EMAIL PROTECTED]> wrote: >> No, that will uppercase the string, but it doesn't (and shouldn't) >> strip the accents: >> > I can agree that is doesn't (though I am taking your word for it), but > a French person will definitely feel it's doing the wrong thing. Upper > case letters a

Re: List of objects X Database

2007-10-03 Thread Pierre Quentel
On 3 oct, 22:01, MindMaster32 <[EMAIL PROTECTED]> wrote: Hi, Maybe PyDbLite (http://quentel.pierre.free.fr/PyDbLite/index.html) is what you need : a single Python module, compatible with Python 2.3+, that lets you manipulate data in memory You can manage a database like this : import PyDbLite d

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread rjack
Webster? WEBSTER. . . ? Whatever happened to the Oxford English Dictionary ? Seems to me the English have always spoken the definitive English. . . that's why they call it ENGLISH. -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert on uppercase unaccentent unicode character

2007-10-03 Thread Steve Holden
Duncan Booth wrote: > [EMAIL PROTECTED] wrote: > >> On Oct 4, 7:35 am, JBJ > [EMAIL PROTECTED]> wrote: >>> Hi, >>> I'am very newbie in Python. >>> For the moment I'am trying to convert an unicode character to his >>> uppercase unaccented character. >>> By example with locale fr_FR: >>> a,A,à,À sho

Re: migrating to packages

2007-10-03 Thread Erik Jones
On Oct 3, 2007, at 11:42 AM, Gerardo Herzig wrote: > Hi all. I have a single file with several classes, wich i want to > separate into several packages. > The big file is named, say MYCLASES, and contains a class named > A(object), and B(A). > > We have been using this MYCLASES in the > from MYCL

Re: spam kontrol

2007-10-03 Thread Steve Holden
Wildemar Wildenburger wrote: > George Sakkis wrote: >> On Oct 3, 12:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >>> hii >>> ý think you know spam page is the most pest for net user. >> ...closely followed in the second position by incoherent misspelled >> posts in silly IM-speak. >> >> >

Re: List of objects X Database

2007-10-03 Thread Wildemar Wildenburger
Michael Bentley wrote: > > On Oct 3, 2007, at 1:01 PM, MindMaster32 wrote: > >> I am writing a script that has to read data from an ASCII file of >> about 50 Mb and do a lot of searches and calculations with that data. >> That would be a classic problem solved by the use of a database >> (SQLite

Re: Class design question

2007-10-03 Thread Wildemar Wildenburger
Adam Lanier wrote: >> class Foo(object): >> def __init__(self, *args): >> self.params = [arg if isinstance(arg, Bar) else Bar(arg) for >> arg in args] >> > > Interesting, I'm not familiar with this idiom... > > These are two idioms actually: 1. a "list comprehension": >>> newlis

Re: List of objects X Database

2007-10-03 Thread Michael Bentley
On Oct 3, 2007, at 1:01 PM, MindMaster32 wrote: > I am writing a script that has to read data from an ASCII file of > about 50 Mb and do a lot of searches and calculations with that data. > That would be a classic problem solved by the use of a database > (SQLite would suit just fine), but that w

Re: A question about subprocess

2007-10-03 Thread Lawrence Oluyede
JD <[EMAIL PROTECTED]> wrote: > How can I do it with the subprocess? You can't. Subprocess is a library to spawn new processes on the local machine. If you want to handle external machines you need something like parallel python: -- Lawrence, oluyede.org - nerope

Re: spam kontrol

2007-10-03 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: > hii > ı think you know spam page is the most pest for net user.I want > distinguish spam page to usefull page > if you have a idea whit this problem pleas share to me > thank you > GIYF: http://www.google.com/search?hl=en&safe=off&q=spam+detection+python&btnG=Search> S

Re: spam kontrol

2007-10-03 Thread Wildemar Wildenburger
George Sakkis wrote: > On Oct 3, 12:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> hii >> ý think you know spam page is the most pest for net user. > > ...closely followed in the second position by incoherent misspelled > posts in silly IM-speak. > > You know, there are such people as

Re: Convert on uppercase unaccentent unicode character

2007-10-03 Thread John Machin
On Oct 4, 4:35 am, JBJ wrote: > Hi, > I'am very newbie in Python. > For the moment I'am trying to convert an unicode character to his uppercase > unaccented character. > By example with locale fr_FR: > a,A,à,À should return A > o,O,ô,Ô should return O > ½,¼ should return ¼ > i,I,î,Î should return

List of objects X Database

2007-10-03 Thread MindMaster32
I am writing a script that has to read data from an ASCII file of about 50 Mb and do a lot of searches and calculations with that data. That would be a classic problem solved by the use of a database (SQLite would suit just fine), but that would require the user to install more packages other than

Re: enumerate overflow

2007-10-03 Thread koara
On Oct 3, 7:22 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > In Py2.6, I will mostly likely put in an automatic promotion to long > for both enumerate() and count(). It took a while to figure-out how > to do this without killing the performance for normal cases (ones used > in real programs,

Re: toprettyxml messes up with whitespaces

2007-10-03 Thread Legrandin
Hi Jorgen, > I parse an XML file, replace a node with a new one (like updating cache) > and write it back. Every write, new spaces are added. [ ... ] > And this goes on. The node is one that is not touched in the XML, it is > simply written back after reading. I have the same with void spaces in >

Re: Convert on uppercase unaccentent unicode character

2007-10-03 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > On Oct 4, 7:35 am, JBJ [EMAIL PROTECTED]> wrote: >> Hi, >> I'am very newbie in Python. >> For the moment I'am trying to convert an unicode character to his >> uppercase unaccented character. >> By example with locale fr_FR: >> a,A,à,À should return A >> o,O,ô,Ô should r

Re: Class design question

2007-10-03 Thread Adam Lanier
On Wed, 2007-10-03 at 18:47 +, George Sakkis wrote: > > > > I would use variable argument list for this; it's also consistent with > > your example Foo( 'baz', Bar( 'something else' )), otherwise you need > > to call it as Foo([ 'baz', Bar( 'something else' ) ]) Good point, this is what was tr

Re: Convert on uppercase unaccentent unicode character

2007-10-03 Thread timaranz
On Oct 4, 7:35 am, JBJ wrote: > Hi, > I'am very newbie in Python. > For the moment I'am trying to convert an unicode character to his uppercase > unaccented character. > By example with locale fr_FR: > a,A,à,À should return A > o,O,ô,Ô should return O > ½,¼ should return ¼ > i,I,î,Î should return

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Steve Holden
David Kastrup wrote: > [EMAIL PROTECTED] (Bent C Dalager) writes: > >> In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >>> [EMAIL PROTECTED] (Bent C Dalager) writes: >>> >>> Not as much "been" liberated, but "turned" liberated. >> I expect that either way you split this h

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Bent C Dalager) writes: > >> I have never claimed equivalence. What I have made claims about are >> the properties of one of the meanings of a word. Specifically, my >> claim is that "free" is a reasonable

Re: gdbm objects not iterable?

2007-10-03 Thread Steve Holden
Laszlo Nagy wrote: > >>> E.g. I would not allow to change the keys of the gdbm object during >>> iteration. I'm not sure how to detect "end of iteration" though. >>> >>> (Maybe I misunderstood your question.) >>> >>> >> All I meant was that it's essential to trap this condition. >> > Dict

Re: gdbm objects not iterable?

2007-10-03 Thread Laszlo Nagy
>> E.g. I would not allow to change the keys of the gdbm object during >> iteration. I'm not sure how to detect "end of iteration" though. >> >> (Maybe I misunderstood your question.) >> >> > All I meant was that it's essential to trap this condition. > Dictionary size change is easy to d

Re: enumerate overflow

2007-10-03 Thread Hrvoje Niksic
Raymond Hettinger <[EMAIL PROTECTED]> writes: > [Paul Rubin] >> I hope in 3.0 there's a real fix, i.e. the count should promote to >> long. > > In Py2.6, I will mostly likely put in an automatic promotion to long > for both enumerate() and count(). It took a while to figure-out how > to do this w

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-10-03 Thread John Nagle
John Nagle wrote: > Heikki Toivonen wrote: >That's progress, but the build still doesn't work: ... > during a C compile, we get > > SWIG/_m2crypto_wrap.c:2529:18: error: _lib.h: No such file or directory > > and the build goes downhill from there, with many compile errors in the > GCC phase.

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread David Kastrup
[EMAIL PROTECTED] (Bent C Dalager) writes: > In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >>[EMAIL PROTECTED] (Bent C Dalager) writes: >> >>Not as much "been" liberated, but "turned" liberated. > > I expect that either way you split this hair, using "free" in the > sen

Re: Class design question

2007-10-03 Thread George Sakkis
On Oct 3, 2:27 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Oct 3, 1:04 pm, Adam Lanier <[EMAIL PROTECTED]> wrote: > > > > > Relatively new to python development and I have a general question > > regarding good class design. > > > Say I have a couple of classes: > > > Class Foo: > >

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Bent C Dalager) writes: > >Not as much "been" liberated, but "turned" liberated. I expect that either way you split this hair, using "free" in the sense of "possessing liberty" is still going to be quite

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-03 Thread Chris Mellon
On 10/3/07, bramble <[EMAIL PROTECTED]> wrote: > On Oct 3, 1:39 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > On 10/3/07, Grant Edwards <[EMAIL PROTECTED]> wrote: > > > > > On 2007-10-03, Chris Mellon <[EMAIL PROTECTED]> wrote: > > > > On 10/2/07, Grant Edwards <[EMAIL PROTECTED]> wrote: > > >

Re: Python and SSL

2007-10-03 Thread John J. Lee
Johny <[EMAIL PROTECTED]> writes: > On Oct 3, 2:17 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> > It looks like this >> >> > MyPythonProgram --->Proxy>Server You want MyPythonProgram being to be proxied by Proxy, using the HTTP CONNECT method? (CONNECT is a way of asking the proxy to j

Convert on uppercase unaccentent unicode character

2007-10-03 Thread JBJ
Hi, I'am very newbie in Python. For the moment I'am trying to convert an unicode character to his uppercase unaccented character. By example with locale fr_FR: a,A,à,À should return A o,O,ô,Ô should return O œ,Œ should return Œ i,I,î,Î should return I Have you some suggestions ? Thank. -- http:

Re: Class design question

2007-10-03 Thread George Sakkis
On Oct 3, 1:04 pm, Adam Lanier <[EMAIL PROTECTED]> wrote: > Relatively new to python development and I have a general question > regarding good class design. > > Say I have a couple of classes: > > Class Foo: > params = [ ] > __init__( self, param ): >

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread David Kastrup
[EMAIL PROTECTED] (Bent C Dalager) writes: > In article <[EMAIL PROTECTED]>, > George Neuner wrote: >>On Wed, 3 Oct 2007 09:36:40 + (UTC), [EMAIL PROTECTED] (Bent C >>Dalager) wrote: >> >>> >>>Only if you're being exceedingly pedantic and probably not even >>>then. Webster 1913 lists, among

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-03 Thread bramble
On Oct 3, 1:39 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 10/3/07, Grant Edwards <[EMAIL PROTECTED]> wrote: > > > On 2007-10-03, Chris Mellon <[EMAIL PROTECTED]> wrote: > > > On 10/2/07, Grant Edwards <[EMAIL PROTECTED]> wrote: > > >> On 2007-10-02, Chris Mellon <[EMAIL PROTECTED]> wrote: >

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread Bent C Dalager
In article <[EMAIL PROTECTED]>, George Neuner wrote: >On Wed, 3 Oct 2007 09:36:40 + (UTC), [EMAIL PROTECTED] (Bent C >Dalager) wrote: > >> >>Only if you're being exceedingly pedantic and probably not even >>then. Webster 1913 lists, among other meanings, >> >>Free >>(...) >>"Liberated, by arr

Re: module confusion

2007-10-03 Thread Michael Spencer
+1 Subject line of the week (SLOTW) rjcarr wrote: > So my question is ... why are they [os.path and logging.handlers] different? [A] wrote: > Because you misspelled it. First, do a dir() on logging: [B] wrote: > No, he didn't... OP: logging is a package and logging.handlers is one module > in t

Re: enumerate overflow

2007-10-03 Thread Paul Rubin
Raymond Hettinger <[EMAIL PROTECTED]> writes: > In Py2.6, I will mostly likely put in an automatic promotion to long > for both enumerate() and count(). It took a while to figure-out how > to do this without killing the performance for normal cases (ones used > in real programs, not examples contr

Re: spam kontrol

2007-10-03 Thread George Sakkis
On Oct 3, 12:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hii > ý think you know spam page is the most pest for net user. ...closely followed in the second position by incoherent misspelled posts in silly IM-speak. -- http://mail.python.org/mailman/listinfo/python-list

python autoconf macro for building ming extension

2007-10-03 Thread Daniel Nogradi
It might be slightly off topic here but couldn't find a more suitable place for this question: I'm trying to build the python binding for ming -- http://ming.sf.net -- but for some reason the python macro for autoconf -- python.m4 -- doesn't seem to detect my python installation correctly. The str

Re: module confusion

2007-10-03 Thread Robert Kern
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Robert > Kern wrote: > >> Lawrence D'Oliveiro wrote: >> >>> In message <[EMAIL PROTECTED]>, Robert >>> Kern wrote: >>> Not all of the modules in a package are imported by importing the top-level package. >>> You can't import pa

Re: C Source Code Generator For Test Cases

2007-10-03 Thread gamename
> You might want to look at COG (http://www.nedbatchelder.com/code/ > cog/). It might be helpful to you. I really enjoy using it and keep > finding things to use it with. Thanks Mike. I agree. COG looks really promising. -T -- http://mail.python.org/mailman/listinfo/python-list

RE: module confusion

2007-10-03 Thread Carsten Haese
On Wed, 2007-10-03 at 17:24 +, wang frank wrote: > Sorry for the wrong title of this email. Please ignore this email. I > have resend the question with correct title. But it's still in the wrong thread. When asking a new question, you should compose a new message instead of replying to an exis

How can I access MySQL Version 4.1.22 from Python 2.2.3 ???

2007-10-03 Thread tavspamnofwd
Hi all, I would like to use Python with MySQL to create a database backend for my website. Therefore I look at the module MySQLdb. However the hosting my organisation uses has: Python 2.2.3 (#1, Dec 21 2006, 18:29:13) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-56)] MySQL Version 4.1.22-standard-l

Class design question

2007-10-03 Thread Adam Lanier
Relatively new to python development and I have a general question regarding good class design. Say I have a couple of classes: Class Foo: params = [ ] __init__( self, param ): ... Class Bar: data = None __init__( se

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-03 Thread Chris Mellon
On 10/3/07, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-10-03, Chris Mellon <[EMAIL PROTECTED]> wrote: > > On 10/2/07, Grant Edwards <[EMAIL PROTECTED]> wrote: > >> On 2007-10-02, Chris Mellon <[EMAIL PROTECTED]> wrote: > >> > >> > PyGtk has poor cross platform support, a very large footprin

Re: enumerate overflow

2007-10-03 Thread Raymond Hettinger
[Paul Rubin] > I hope in 3.0 there's a real fix, i.e. the count should promote to > long. In Py2.6, I will mostly likely put in an automatic promotion to long for both enumerate() and count(). It took a while to figure-out how to do this without killing the performance for normal cases (ones used

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread George Neuner
On Wed, 3 Oct 2007 09:36:40 + (UTC), [EMAIL PROTECTED] (Bent C Dalager) wrote: >In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: >>[EMAIL PROTECTED] (Bent C Dalager) writes: >> >>> In article <[EMAIL PROTECTED]>, >>> Frank Goenninger <[EMAIL PROTECTED]> wrote: >>

RE: module confusion

2007-10-03 Thread wang frank
Sorry for the wrong title of this email. Please ignore this email. I have resend the question with correct title. Thanks frank From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: module confusionDate: Wed, 3 Oct 2007 17:14:19 + Hi, I am moving from Matlab to Python+numpy+scipy. In Matla

function to convert data into binary, hex and back.

2007-10-03 Thread wang frank
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: module confusionDate: Wed, 3 Oct 2007 17:14:19 + Hi, I am moving from Matlab to Python+numpy+scipy. In Matlab you can use function dec2bin, hex2dec, dec2hex bin2dec functions to convert decimal to binary and heximal etc. Before I try to

RE: module confusion

2007-10-03 Thread wang frank
Hi, I am moving from Matlab to Python+numpy+scipy. In Matlab you can use function dec2bin, hex2dec, dec2hex bin2dec functions to convert decimal to binary and heximal etc. Before I try to implement my own function in Python, I want to know whether in Python such functionalities are already t

Re: enumerate overflow

2007-10-03 Thread Paul Rubin
Tim Chase <[EMAIL PROTECTED]> writes: > I'd consider this a bug: either in the implementation of enumerate(), > or in the documentation > > http://docs.python.org/lib/built-in-funcs.html#l2h-24 2.5 has a patch that causes enumerate() and count() to raise overflow if the count wraps around, which

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-03 Thread Grant Edwards
On 2007-10-03, Chris Mellon <[EMAIL PROTECTED]> wrote: > On 10/2/07, bramble <[EMAIL PROTECTED]> wrote: >> On Oct 2, 11:07 am, "Chris Mellon" <[EMAIL PROTECTED]> wrote: >> > >> > PyGtk has poor cross platform support, a very large footprint (the >> > largest of all these libraries) as well as a com

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-03 Thread Grant Edwards
On 2007-10-03, Chris Mellon <[EMAIL PROTECTED]> wrote: > On 10/2/07, Grant Edwards <[EMAIL PROTECTED]> wrote: >> On 2007-10-02, Chris Mellon <[EMAIL PROTECTED]> wrote: >> >> > PyGtk has poor cross platform support, a very large footprint (the >> > largest of all these libraries) >> >> It's larger t

spam kontrol

2007-10-03 Thread [EMAIL PROTECTED]
hii ı think you know spam page is the most pest for net user.I want distinguish spam page to usefull page if you have a idea whit this problem pleas share to me thank you -- http://mail.python.org/mailman/listinfo/python-list

A question about subprocess

2007-10-03 Thread JD
Hi, I want send my jobs over a whole bunch of machines (using ssh). The jobs will need to be run in the following pattern: (Machine A) (Machine B) (Machine C) Job A1 Job B1Job C1 Job A2 Job B2etc Job A3 etc etc Jobs runing on machi

Re: toprettyxml messes up with whitespaces

2007-10-03 Thread Martin v. Löwis
> > Such white space is typically not intended for inclusion in the > delivered version of the document. On the other hand, "significant" > white space that should be preserved in the delivered version is > common, for example in poetry and source code. > > > I interpret "significant" whitespace

Re: generating range of numbers

2007-10-03 Thread Wildemar Wildenburger
vimal wrote: > hi all, > > i am new to python. > i just want to generate numbers in the form like: > > 1,2,4,8,16,32.to a maximum of 1024 > > using a range function > Homework? /W -- http://mail.python.org/mailman/listinfo/python-list

Duplicate content filter..

2007-10-03 Thread Abandoned
Hi.. I'm working a search engine project now. And i have a problem. My problem is Duplicate Contents.. I can find the percentage of similarity between two pages but i have a 5 millions index and i search 5 million page contents to find one duplicate :( I want to a idea for how can i find duplicat

migrating to packages

2007-10-03 Thread Gerardo Herzig
Hi all. I have a single file with several classes, wich i want to separate into several packages. The big file is named, say MYCLASES, and contains a class named A(object), and B(A). We have been using this MYCLASES in the from MYCLASES import B syntax, but i cant reproduce this syntax using pa

Re: gdbm objects not iterable?

2007-10-03 Thread Steve Holden
[back on-list] Laszlo Nagy wrote: > >> Ir probably would be helpful to add the method, but it might be tricky >> to trap changes to the mapping as iteration proceeded: what kind of >> isolation would you implement? > Probably I would do the same that Python does with dicts: > > >>> d = {1:'a',

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-03 Thread Chris Mellon
On 10/2/07, bramble <[EMAIL PROTECTED]> wrote: > On Oct 2, 11:07 am, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > > > PyGtk has poor cross platform support, a very large footprint (the > > largest of all these libraries) as well as a complicated runtime > > environment. > > What's complicated abou

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-03 Thread Chris Mellon
On 10/2/07, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-10-02, Chris Mellon <[EMAIL PROTECTED]> wrote: > > > PyGtk has poor cross platform support, a very large footprint (the > > largest of all these libraries) > > It's larger than wxWidgets on top of Gtk? > No, but it's larger than wx on

I/O error

2007-10-03 Thread MV
Hi all, I recently started getting the following error: *Can't save config file, I/O error: file() constructor not accessible in restrictive mode * The app I am using is called Nicotine+ ( www.nicotine-plus.org ). According to the developper N+ does not use restrictive mode for anything. Can any

Re: enumerate overflow

2007-10-03 Thread Tim Golden
Steve Holden wrote: > I wouldn't dream of suggesting it's impossible. > I just regard "soon" as less than an hour in > commuter's terms, I suppose. Sadly, speaking as a Londoner, an hour is indeed "soon" in commuter terms. TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] data from excel spreadsheet to csv and manipulate

2007-10-03 Thread Neal Becker
look at xlrd module and also csv module. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >