Emacs topic

2007-06-21 Thread Gabor Urban
Hi guys, I kindly ask you to stop this topic. Though I see the importance to have a good editor for programming, this is outside of the focus of a Python mailing list. The open source world offers a lot of very good tools to edit source files, even for cross-platform development. Emacs is one of

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Bruno Desthuilliers
Stephen R Laniel a écrit : > On Wed, Jun 20, 2007 at 12:59:28PM -0700, [EMAIL PROTECTED] wrote: >> Then you should use another language. > > This is what I meant about knowing how Internet discussions > go. > Please let not forget the context. You said: "I'm new to Python", and then : "if I *w

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Diez B. Roggisch
kaens schrieb: > On 6/20/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > >> That is exactly the problem - there is no "some more" static typing. >> There is static typing - or not. You can't have it "just a bit". > > Couldn't a language be made so that if you declared a variable like, say: > >

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Bruno Desthuilliers
Stephen R Laniel a écrit : > On Wed, Jun 20, 2007 at 09:41:09PM +0100, Michael Hoffman wrote: >> If you asked Java programmers why you couldn't turn *off* Java's static >> type checking if you wanted to, you'd probably get a similar response. > > Perhaps it would help for me to explain what I'd

Re: Split file into several and reformat

2007-06-21 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Hi, > > I want to take read an input file (sels.txt) that looks like: > (snip) > > And turn it into an output file for each of the "sels" in the input file, i.e > sel1.txt: > (snip) > and sel2.txt: > (snip) > And so on. Yes, fine. All this is documented here:

Re: visual gui ides for python/jythpn

2007-06-21 Thread kromakey
Thanks, I'll take a look at these. Kromakey On 20 Jun, 22:10, "Peter Decker" <[EMAIL PROTECTED]> wrote: > On 6/20/07, kromakey <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Are there any free visual GUI IDE's available for python/jython, which > > have a drag and drop form designer similar to Visual

Re: Help With Better Design

2007-06-21 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) >>> I would like to be able to get a good hold of the concept >> state machines ? > > Well both state machines and classes (objects). That may be a bit of a > tall order to take on all at once but the concepts seem to be quite > related. They are, since OO was

Making decimal default datatype for floats during runtime

2007-06-21 Thread Stefan Sonnenberg-Carstens
Hi, I was wondering if there are any tricks around to do some sort of changing types, float in particular. I do many operations like summing etc on lots of floats and always have to do some extra checks where results are heading 0.0, like round(n,10) for example. My idea was to tell python in some

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread M�ta-MCI
Hi! >Given that one can add/replace/remove methods and attributes >dynamically either on a per-class or per-instance basis, and even >dynamically change the class of an object, I fail to see how static >typechecking could be meaningfull. Et toc ! -- http://mail.python.org/mailman/listinfo/

Re: Invisible processes in Win2K

2007-06-21 Thread M�ta-MCI
Hi! When you lock (the cpu), interactive mode is off. You can try to use services, who run independently of sessions. But... -- http://mail.python.org/mailman/listinfo/python-list

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-21 Thread peter
OK. Not my intention to start a flame war, but as DFW did not mean a thing to me (other than being my late father in law's initials) I was a bit peeved about the assumption that everybody would understand it. I think posts which are essentially local should make this clear to all in the title. I

Re: The Modernization of Emacs

2007-06-21 Thread Sascha Bohnenkamp
E M A C S i e n o w g g d n a h a t p t b i p y n i t o n e u g s s l o y f m e m o r y -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs

2007-06-21 Thread Sascha Bohnenkamp
> Windows text editors are not normal: most are devoid of all but the most > primitive functions and are further hampered by having an interface that > required frequent time wasting hand transfers from keyboard to mouse > because, if they provide keyboard equivalents at all, these are > remarkably

For Python programmers in Egypt

2007-06-21 Thread Mohammad Tayseer
Dear Pythonistas My company, Silverkey, is going to hold a demo day on 07/07/2007. We are going to make a comparison between static languages and dynamic languages. I'm going to represent the dynamic languages side. If you are in Egypt, we will be happy to meet you. http://www.demoday.us/ Than

Looking to embed python into html like mason

2007-06-21 Thread Steven W. Orr
Does something like that exist? TIA -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if

Re: Invisible processes in Win2K

2007-06-21 Thread Tim Golden
[EMAIL PROTECTED] wrote: > I'm running a Python program on M$ Windows 2000 as a test monitor. The > program > should close various processes, mostly "Application error"-windows, as they > are > created. This works fine until the screensaver gets active or until I press > Ctrl-Alt-Del and choos

Error while installing Python2.5.1

2007-06-21 Thread zaperaj
I use red hat 9 which comes with python2.2 installed in it. Wanting to use the latest version, i downloaded python 2.5.1 from the official python website. After downloading, i performed the following steps, but there is some error during the configuration process and hence i'm not able to run the "

Re: Python and (n)curses

2007-06-21 Thread peter
> You could write your own little console interface, tailored to > your needs, which is implemented using curses on Unix, and the > effbot's 'console' on Windows. Indeed, that's basically what I have done. Just can't help thinking how much simpler (and so less error prone) it would have been had

Re: Looking to embed python into html like mason

2007-06-21 Thread Stefan Behnel
Steven W. Orr wrote: > Does something like that exist? Many of them, as usual :) http://wiki.python.org/moin/WebProgramming Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Error while installing Python2.5.1

2007-06-21 Thread Pavel
On Thu, 21 Jun 2007 10:03:43 +0200, <[EMAIL PROTECTED]> wrote: > checking for --without-gcc... no > checking for gcc... no > checking for cc... no > checking for cc... no > checking for cl... no > configure: error: no acceptable C compiler found in $PATH > See `config.log' for more details. It app

Re: string formatter %x and a class instance with __int__ cannot handle long

2007-06-21 Thread Kenji Noguchi
2007/6/20, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > In your second example y is an instance of class X...not an int. y.v > is an int. Are you hoping it will cast it to an int as needed using > your method? If so, I think you need to do so explicitly...ie "%08x" > % int(y) > > ~Sean I confirmed

Indenting in Emacs

2007-06-21 Thread [EMAIL PROTECTED]
Hello, Does anyone know how to make python-mode correctly indent nested lists and dictionaries. I hate indenting Django url patterns and Zope Archetypes schemas by hand, because python-mode indents them in incorrect and ugly way. Here's how it should be: StringField('reference',

Re: SimplePrograms challenge

2007-06-21 Thread Pete Forman
Steve Howell <[EMAIL PROTECTED]> writes: > The BankAccount example is about as small of a "complete" class > example that I could come up with, even though it's "complete" only > a basic level. It would be good to have a larger class example > that fleshes out the concept a bit more, even if

Re: SimplePrograms challenge

2007-06-21 Thread pelon
*** New Thread #5 has been bothering me. def greet(name): print 'hello', name greet('Jack') greet('Jill') greet('Bob') Using greet() three times is cheating and doesn't teach much and doesn't have any real world use that #1 can't fulfill. I offer this replacement: def greet(name): """

Can python access windows clipboard

2007-06-21 Thread MaHL
Can I use python to copy something(like a string) to the clipboard, so that I can paste it somewhere else. Is there a way to do this? Thanks very much! -- http://mail.python.org/mailman/listinfo/python-list

Re: Indenting in Emacs

2007-06-21 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: > Hello, > Does anyone know how to make python-mode correctly indent nested lists > and dictionaries. I hate indenting Django url patterns and Zope > Archetypes schemas by hand, because python-mode indents them in > incorrect and ugly way. > > Here's how it should be: >

Re: Internationalised email subjects

2007-06-21 Thread bugmagnet
Seems some characters are missing from my last post. The line that says: h = Header(' ', 'GB2312') should say: h = Header(' ', 'GB2312') -- http://mail.python.org/mailman/listinfo/python-list

Re: SimplePrograms challenge

2007-06-21 Thread pelon
And while I'm at it... Although Guido's tutorial was a great place to start when I first came to python I would have learned more and faster had SimplePrograms existed. My only complaint with the python documentation is the dearth of examples. The PHP documentation is chock full. Steve, You int

Re: Can python access windows clipboard

2007-06-21 Thread Ant
On Jun 21, 9:59 am, MaHL <[EMAIL PROTECTED]> wrote: > Can I use python to copy something(like a string) to the clipboard, so > that I can paste it somewhere else. Is there a way to do this? The following requires Mark Hammond's win32all package (http:// sourceforge.net/projects/pywin32/): import

Re: Internationalised email subjects

2007-06-21 Thread bugmagnet
That's really strange. The chinese characters I am inputing into the post are not being displayed. Basically, what I am doing is this: h = Header('(Some Chinese characters inserted here', 'GB2312') And when I run this code, I receive the following error message: UnicodeDecodeError: 'gb2312' co

Re: metaclasses and performance

2007-06-21 Thread Mirko Dziadzka
Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > I don't know if C asserts are active in release Python, but for > new-style classes one thing that happens during attribute lookup is that > an object's class is asserted to be an instance of type. Thank's for the explanation. My Linux distribution

Re: Can python access windows clipboard

2007-06-21 Thread Gabriel Genellina
En Thu, 21 Jun 2007 05:59:06 -0300, MaHL <[EMAIL PROTECTED]> escribió: > Can I use python to copy something(like a string) to the clipboard, so > that I can paste it somewhere else. Is there a way to do this? Yes, using the pywin32 extensions that you can download from Sourceforge py> from win32

Re: Can python access windows clipboard

2007-06-21 Thread Michael Hoffman
MaHL wrote: > Can I use python to copy something(like a string) to the clipboard, so > that I can paste it somewhere else. Is there a way to do this? If you're using Cygwin Python you can just open /dev/clipboard and work on that. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/py

Re: The Modernization of Emacs

2007-06-21 Thread anno4000
Dave Hansen <[EMAIL PROTECTED]> wrote in comp.lang.perl.misc: > Speaking of which, vi is a piece of wombat do. ;-) You can have Emacs when you pry it from my cold hypertrophied escape-pressing pinky! Anno -- http://mail.python.org/mailman/listinfo/python-list

Re: Can python access windows clipboard

2007-06-21 Thread MaHL
thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

Re: Split file into several and reformat

2007-06-21 Thread half . italian
On Jun 20, 10:45 pm, [EMAIL PROTECTED] wrote: > Hi, > > I want to take read an input file (sels.txt) that looks like: > > Begin sels >sel1 = {1001, 1002, 1003, ... >... >1099} > >sel2 = {1001, 1008, 1009 ... >... >1299} > End sels > > And turn

install paramiko on AIX (ActiveState)

2007-06-21 Thread loial
I need help installing paramiko on ActiveState python on AIX 5 I am new to python so need info on how to download and install paramiko AIX box does not have internet connection so presume cannot use ez_setup.py? Can anyone help? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-21 Thread Steven D'Aprano
On Wed, 20 Jun 2007 17:23:42 -0400, Douglas Alan wrote: >> But "Scheme has macros" isn't a justification for why Python should >> have them. > > No one ever gave that justification. The justification is that they are > *good*. > > Macros are a way to abstract syntax the way that objects are use

Re: Python live environment on web-site?

2007-06-21 Thread André
On Jun 21, 3:00 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 21, 1:18 am, [EMAIL PROTECTED] (Thomas Lenarz) wrote: > > > > > Hi all, > > > I was wondering if there was a python-live-environment available on a > > public web-site similar to the ruby-live-tutorial on > > >http://tryrub

Re: Internationalised email subjects

2007-06-21 Thread Gabriel Genellina
En Thu, 21 Jun 2007 06:23:43 -0300, <[EMAIL PROTECTED]> escribió: > That's really strange. The chinese characters I am inputing into the > post are not being displayed. Basically, what I am doing is this: > > h = Header('(Some Chinese characters inserted here', 'GB2312') > > And when I run this

Re: something similar to shutil.copytree that can overwrite?

2007-06-21 Thread Ben Sizer
On 20 Jun, 11:40, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > On Jun 20, 5:30 pm, Ben Sizer <[EMAIL PROTECTED]> wrote: > > > I need to copy directories from one place to another, but it needs to > > overwrite individual files and directories rather than just exiting if > > a destination file alrea

Globals in nested functions

2007-06-21 Thread [EMAIL PROTECTED]
def f(): a = 12 def g(): global a if a < 14: a=13 g() return a print f() This function raises an error. Is there any way to access the a in f() from inside g(). I could find few past discussions on this subject, I could not find the simple answer wheth

Re: How to hide a program?

2007-06-21 Thread jvdb
Hi all, thanks very much! it was indeed how i compiled to .exe After using the windows= , my issue was solved. Thanks to all who took the time on helping me. Jeroen -- http://mail.python.org/mailman/listinfo/python-list

Re: fetching text from the screen

2007-06-21 Thread Juergen Kareta
Gabriel Genellina schrieb: > En Mon, 18 Jun 2007 09:13:16 -0300, Juergen Kareta <[EMAIL PROTECTED]> > escribió: > >> I'm thinking about a python script which fetch some text from the screen >> independent of what application provides the text on the screen. In this >> regard it should be similar

Re: The Modernization of Emacs

2007-06-21 Thread Karsten Wutzke
On 17 Jun., 17:13, Xah Lee <[EMAIL PROTECTED]> wrote: Yaawn! > Xah > [EMAIL PROTECTED] > ∑http://xahlee.org/ Hmm I just had to think about the C64/Amiga etc. game "California Games"... The game displayed a comment when the player broke his neck the 13th time when BMXing: "Geek of the week!"

Re: visual gui ides for python/jythpn

2007-06-21 Thread Kelvie Wong
If Qt/PyQt is an option, I'd recommend the Qt designer. There is the odd dual license that they have, though. On 6/21/07, kromakey <[EMAIL PROTECTED]> wrote: > Thanks, I'll take a look at these. > Kromakey > > On 20 Jun, 22:10, "Peter Decker" <[EMAIL PROTECTED]> wrote: > > On 6/20/07, kromakey <[

Re: Globals in nested functions

2007-06-21 Thread Duncan Booth
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > def f(): > a = 12 > def g(): > global a > if a < 14: > a=13 > g() > return a > > print f() > > This function raises an error. Is there any way to access the a in f() > from inside g(). > > I could find

Re: Split file into several and reformat

2007-06-21 Thread Neil Cerutti
On 2007-06-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I want to take read an input file (sels.txt) that looks like: > > Begin sels >sel1 = {1001, 1002, 1003, ... >... >1099} > >sel2 = {1001, 1008, 1009 ... >... >1299} > End sel

Re: Indenting in Emacs

2007-06-21 Thread Steven W. Orr
On Thursday, Jun 21st 2007 at 10:11 +0100, quoth Michael Hoffman: =>[EMAIL PROTECTED] wrote: =>> Hello, =>> Does anyone know how to make python-mode correctly indent nested lists =>> and dictionaries. I hate indenting Django url patterns and Zope =>> Archetypes schemas by hand, because python-mode

Re: Downloading from a clean url

2007-06-21 Thread D.Hering
Evan Klitzke wrote: > On 6/20/07, D.Hering <[EMAIL PROTECTED]> wrote: > > General: > > How do I download a page's data from a clean url. > > > > Specific: > > I'm using PyQt's QHttp and QUrl classes for requests and acquiring the > > response, but I can't figure out how to access a page's data wit

Re: The Modernization of Emacs

2007-06-21 Thread notbob
On 2007-06-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > You can have Emacs when you pry it from my cold hypertrophied > escape-pressing pinky! LOL! nb -- http://mail.python.org/mailman/listinfo/python-list

Re: Split file into several and reformat

2007-06-21 Thread Amit Khemka
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I want to take read an input file (sels.txt) that looks like: > > Begin sels >sel1 = {1001, 1002, 1003, ... >... >1099} > >sel2 = {1001, 1008, 1009 ... >... >1299} > End sels >

Re: Reading multiline values using ConfigParser

2007-06-21 Thread Carsten Haese
On Thu, 2007-06-21 at 02:51 +, Phoe6 wrote: > On Jun 20, 10:35 pm, "John Krukoff" <[EMAIL PROTECTED]> wrote: > > > > Is there anyway, I can include multi-line value in the configfile? I > > > > > Following the link to RFC 822 (http://www.faqs.org/rfcs/rfc822.html) > > indicates that you can s

Re: The Modernization of Emacs

2007-06-21 Thread Martin Gregorie
Sascha Bohnenkamp wrote: >> Windows text editors are not normal: most are devoid of all but the most >> primitive functions and are further hampered by having an interface that >> required frequent time wasting hand transfers from keyboard to mouse >> because, if they provide keyboard equivalents a

Re: Making decimal default datatype for floats during runtime

2007-06-21 Thread Carsten Haese
On Thu, 2007-06-21 at 09:34 +0200, Stefan Sonnenberg-Carstens wrote: > Hi, > I was wondering if there are any tricks around to > do some sort of changing types, float in particular. > I do many operations like summing etc on lots > of floats and always have to do some extra checks where > results a

strip() 2.4.4

2007-06-21 Thread Nick
strip() isn't working as i expect, am i doing something wrong - Sample data in file in.txt: 'AF':'AFG':'004':'AFGHANISTAN':'Afghanistan' 'AL':'ALB':'008':'ALBANIA':'Albania' 'DZ':'DZA':'012':'ALGERIA':'Algeria' 'AS':'ASM':'016':'AMERICAN SAMOA':'American Samoa' Code: f1 = open('in.txt', 'r')

Re: strip() 2.4.4

2007-06-21 Thread Stephen R Laniel
On Thu, Jun 21, 2007 at 06:23:01AM -0700, Nick wrote: > Why is there a apostrophe still at the end? Is it possible that you actually have whitespace at the end of the line? So then strip() is looking for an apostrophe at the end of the line, not finding it, and therefore not stripping it? -- Ste

Re: strip() 2.4.4

2007-06-21 Thread linuxprog
Stephen R Laniel a écrit : On Thu, Jun 21, 2007 at 06:23:01AM -0700, Nick wrote: Why is there a apostrophe still at the end? Is it possible that you actually have whitespace at the end of the line? So then strip() is looking for an apostrophe at the end of the line, not finding it, and

Re: strip() 2.4.4

2007-06-21 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Nick <[EMAIL PROTECTED]> wrote: > strip() isn't working as i expect, am i doing something wrong - > > Sample data in file in.txt: > > 'AF':'AFG':'004':'AFGHANISTAN':'Afghanistan' > 'AL':'ALB':'008':'ALBANIA':'Albania' > 'DZ':'DZA':'012':'ALGERIA':'Algeria' > 'AS'

Re: strip() 2.4.4

2007-06-21 Thread Stephen R Laniel
On Thu, Jun 21, 2007 at 01:42:03PM +, linuxprog wrote: > that should work for you ? I reproduced the original poster's problem by adding one extra space after the final "'" on each line. I'd vote that that's the problem. -- Stephen R. Laniel [EMAIL PROTECTED] Cell: +(617) 308-5571 http://lan

Re: Globals in nested functions

2007-06-21 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > def f(): > a = 12 > def g(): > global a > if a < 14: > a=13 > g() > return a > > print f() > > This function raises an error. Is there any way to access the a in > f() from inside g(). Yes. Pass it to g when calling the latt

newbie question: parsing street name from address

2007-06-21 Thread cjl
P: I am working on a project that requires geocoding, and have written a very simple geocoder that uses the Google service. I would like to be able to extract the name of the street from the addresses in my data, however they vary significantly. Here a some examples: 25 Main St 2500 14th St 12 B

Re: The Modernization of Emacs

2007-06-21 Thread Roy Smith
In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote: > Kaldrenon <[EMAIL PROTECTED]> writes: > > > I'm very, very new to emacs. I used it a little this past year in > > college, but I didn't try at all to delve into its features. I'm > > starting that process now, and frankly

Conceptualizing Threading

2007-06-21 Thread JonathanB
I have a multi-access problem that I'm pretty sure needs to be solved with threading, but I'm not sure how to do it. This will be my first foray into threading, so I'm a little confused by all of the new landscape. So, I'm going to lay out the problem I'm facing and if someone could point me toward

Re: strip() 2.4.4

2007-06-21 Thread Neil Cerutti
On 2007-06-21, Nick <[EMAIL PROTECTED]> wrote: > strip() isn't working as i expect, am i doing something wrong - > > Sample data in file in.txt: > > 'AF':'AFG':'004':'AFGHANISTAN':'Afghanistan' > 'AL':'ALB':'008':'ALBANIA':'Albania' > 'DZ':'DZA':'012':'ALGERIA':'Algeria' > 'AS':'ASM':'016':'AMERICA

Re: The Modernization of Emacs

2007-06-21 Thread David Kastrup
Roy Smith <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> > wrote: > >> Kaldrenon <[EMAIL PROTECTED]> writes: >> >> > I'm very, very new to emacs. I used it a little this past year in >> > college, but I didn't try at all to delve into its features

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Bjoern Schliessmann
Stephen R Laniel wrote: > On Wed, Jun 20, 2007 at 12:59:28PM -0700, > [EMAIL PROTECTED] wrote: >> Then you should use another language. > > This is what I meant about knowing how Internet discussions > go. I agree. I also notice that (rather newbie-) OPs with not-so-simple questions are easily o

Re: strip() 2.4.4

2007-06-21 Thread Peter Otten
Nick wrote: > strip() isn't working as i expect, am i doing something wrong - > > Sample data in file in.txt: > > 'AF':'AFG':'004':'AFGHANISTAN':'Afghanistan' > 'AL':'ALB':'008':'ALBANIA':'Albania' > 'DZ':'DZA':'012':'ALGERIA':'Algeria' > 'AS':'ASM':'016':'AMERICAN SAMOA':'American Samoa' > >

Re: strip() 2.4.4

2007-06-21 Thread Nick
On 21 Jun, 14:53, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-06-21, Nick <[EMAIL PROTECTED]> wrote: > > > > > strip() isn't working as i expect, am i doing something wrong - > > > Sample data in file in.txt: > > > 'AF':'AFG':'004':'AFGHANISTAN':'Afghanistan' > > 'AL':'ALB':'008':'ALBANIA':'A

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Stephen R Laniel
On Thu, Jun 21, 2007 at 03:55:48PM +0200, Bjoern Schliessmann wrote: > I agree. I also notice that (rather newbie-) OPs with not-so-simple > questions are easily offended by technical answers. I'd love to > know why. One doesn't like to get meta on such things, as so often happens, so I'll be brie

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Peter Decker
On 6/21/07, Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: > Stephen R Laniel wrote: > > On Wed, Jun 20, 2007 at 12:59:28PM -0700, > > [EMAIL PROTECTED] wrote: > > >> Then you should use another language. > > > > This is what I meant about knowing how Internet discussions > > go. > > I agree. I als

Re: The Modernization of Emacs

2007-06-21 Thread Bjorn Borud
[Twisted <[EMAIL PROTECTED]>] | | Given that in its out-of-the-box configuration it's well-nigh unusable | without a printed-out "cheat sheet" of some kind, of the sort that | were supposed to have died out in the 80s, getting it customized poses | something of a catch-22 for anyone trying to get

Re: Conceptualizing Threading

2007-06-21 Thread Jean-Paul Calderone
On Thu, 21 Jun 2007 06:51:17 -0700, JonathanB <[EMAIL PROTECTED]> wrote: >I have a multi-access problem that I'm pretty sure needs to be solved >with threading, but I'm not sure how to do it. This will be my first >foray into threading, so I'm a little confused by all of the new >landscape. So, I'm

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Stephen R Laniel
On Thu, Jun 21, 2007 at 10:11:57AM -0400, Stephen R Laniel wrote: > "Use another language" is not a technical answer. "Python > could not adopt static typing without substantially changing > the language and destroying what everyone loves about it, > and here are examples of where the problem shows

Re: The Modernization of Emacs

2007-06-21 Thread Bjorn Borud
[Martin Gregorie <[EMAIL PROTECTED]>] | | As for documentation, lets look at vi. Not a great editor, but every | *nix variation has it installed and any fool can learn to use it in | about 2 hours flat and it does at least have good pattern matching. there's also the "info" system in Emacs, which

RE: Reading multiline values using ConfigParser

2007-06-21 Thread John Krukoff
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Phoe6 > Sent: Wednesday, June 20, 2007 8:51 PM > To: python-list@python.org > Subject: Re: Reading multiline values using ConfigParser > > On Jun 20, 10:35 pm, "John Krukoff" <[EMAIL PROTECTED]>

Re: Looking to embed python into html like mason

2007-06-21 Thread Bruno Desthuilliers
Steven W. Orr a écrit : > Does something like that exist? http://www.myghty.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs

2007-06-21 Thread Bjorn Borud
[BartlebyScrivener <[EMAIL PROTECTED]>] | | http://www.debian-administration.org/polls/89 this is hardly surprising. I use both editors. for most sysadmin tasks I use vi(m). for programming i use Emacs. in part out of old habit (most UNIX systems had vi installed) and partly because vi(m) i

Re: Edit Audio Using Python?

2007-06-21 Thread Ultrus
Aaron, Thanks for sharing this! > I think you'll find that you have to put a lot of pieces together > to manipulate audio -- it's all there, but it's not straightforward. The challenge of building something unique makes it more worth while. > I did it in my "skimpygimpy" audio components, which

Problem with using ConfigParser.py

2007-06-21 Thread Anthony Raj
Hi Folks, Having a very strange problem in using python with apache/mod_python. [conf.py attached] >>> from ast.conf import conf >>> c = conf() >>> a = c.readPath('sandbox') >>> len (a) >>> 30 The same code when run thru the a web script gives following error - [Errno 13] P

Re: The Modernization of Emacs

2007-06-21 Thread David Kastrup
Bjorn Borud <[EMAIL PROTECTED]> writes: > [BartlebyScrivener <[EMAIL PROTECTED]>] > | > | http://www.debian-administration.org/polls/89 > > this is hardly surprising. I use both editors. for most sysadmin > tasks I use vi(m). for programming i use Emacs. > > in part out of old habit (most UN

Re: The Modernization of Emacs

2007-06-21 Thread Lew
Bjorn Borud <[EMAIL PROTECTED]> writes: >> so if the context was system administration, I'd vote for vi as >> well. if the context was programming I'd vote Emacs. David Kastrup wrote: > You know you can use something like > C-x C-f /su::/etc/fstab RET > (or /sudo::/etc/fstab) in order to edit file

Re: The Modernization of Emacs

2007-06-21 Thread Robert Uhl
Twisted <[EMAIL PROTECTED]> writes: > > Given that in its out-of-the-box configuration it's well-nigh unusable > without a printed-out "cheat sheet" of some kind, of the sort that > were supposed to have died out in the 80s, getting it customized poses > something of a catch-22 for anyone trying to

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-21 Thread Bjorn Borud
[Twisted <[EMAIL PROTECTED]>] | | Being beginner-friendly doesn't have to be at the expense of power or | expert-user usability. depends on your definition of "expert". :-) | On the other hand, being actively beginner-hostile leads to nobody | adopting the tool. Then again, if you don't mind be

Adding Python to the path in Windows

2007-06-21 Thread kyle
I have many users using two different versions of python, 2.4 and 2.5. I am running Python scripts on their computers programmatically, but I can't run it with the full path because they have different versions installed. I need to run it like 'python {script name}'. So I need to add Python to t

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-21 Thread Bjorn Borud
[Twisted <[EMAIL PROTECTED]>] | | Emacs does have documentation. The problem is you have to already know | a load of emacs navigation oddities^Wkeyboard commands to get to and | use it. that, or just start Emacs and follow the instructions that appear on the screen. indeed, I *am* aware that som

Re: The Modernization of Emacs

2007-06-21 Thread Joel J. Adamson
Twisted <[EMAIL PROTECTED]> writes: > On Jun 20, 12:39 pm, [EMAIL PROTECTED] (Joel J. Adamson) wrote: >> The point is that the responsibility to customize is on the user. > > Given that in its out-of-the-box configuration it's well-nigh unusable > without a printed-out "cheat sheet" of some kind,

Re: The Modernization of Emacs

2007-06-21 Thread notbob
On 2007-06-21, David Kastrup <[EMAIL PROTECTED]> wrote: > You know you can use something like > C-x C-f /su::/etc/fstab RET > (or /sudo::/etc/fstab) in order to edit files as root in a normal > Emacs session? As I understand it, this will only work for ver 22 and later or if you have tramp(?) ins

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Bruno Desthuilliers
Peter Decker a écrit : (snip) > Oh, c'mon. The OP was asking for an explanation, and got an indignant > response. There is a world of difference between explaining *why* > Python is the way it is, and getting the equivalent of a 4-year-old's > "Because!" as a reply. Python is the way it is becaus

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-21 Thread Joel J. Adamson
Twisted <[EMAIL PROTECTED]> writes: > On Jun 20, 5:03 pm, Kaldrenon <[EMAIL PROTECTED]> wrote: >> I still have a good deal to learn, even of the basics, but I've toyed >> with it casually for a little bit (a total of two hours at most, but >> almost certainly less) and I already know enough that f

Re: The Modernization of Emacs

2007-06-21 Thread David Kastrup
Lew <[EMAIL PROTECTED]> writes: > Bjorn Borud <[EMAIL PROTECTED]> writes: >>> so if the context was system administration, I'd vote for vi as >>> well. if the context was programming I'd vote Emacs. > > David Kastrup wrote: >> You know you can use something like >> C-x C-f /su::/etc/fstab RET >> (

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-21 Thread David Kastrup
[EMAIL PROTECTED] (Joel J. Adamson) writes: > Twisted <[EMAIL PROTECTED]> writes: > >> On Jun 20, 5:03 pm, Kaldrenon <[EMAIL PROTECTED]> wrote: >>> I still have a good deal to learn, even of the basics, but I've toyed >>> with it casually for a little bit (a total of two hours at most, but >>> alm

Re: Conceptualizing Threading

2007-06-21 Thread JonathanB
> You described how threads introduce a problem in your program -- that of > generating a sequence of sequential identifiers -- but you didn't describe > the problem that threads are solving in your program. Maybe you don't > need them at all? What led you to threading in the first place? > > Je

Re: The Modernization of Emacs

2007-06-21 Thread David Kastrup
notbob <[EMAIL PROTECTED]> writes: > On 2007-06-21, David Kastrup <[EMAIL PROTECTED]> wrote: > >> You know you can use something like >> C-x C-f /su::/etc/fstab RET >> (or /sudo::/etc/fstab) in order to edit files as root in a normal >> Emacs session? > > As I understand it, this will only work fo

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Carsten Haese
On Thu, 2007-06-21 at 10:11 -0400, Stephen R Laniel wrote: > "Use another language" is not a technical answer. The very same post you're referring to did give a technical answer two paragraphs down: """ Given that one can add/replace/remove methods and attributes dynamically either on a per-clas

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-21 Thread Joel J. Adamson
Matthias Buelow <[EMAIL PROTECTED]> writes: > > Here's a nice one from Ken Thompson: > > ``I abhor a system designed for the "user", if that word is a coded > pejorative meaning "stupid and unsophisticated".'' That's a good one. It's going on my wall. Joel -- Joel J. Adamson Biostatistician P

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-21 Thread Joel J. Adamson
Matthias Buelow <[EMAIL PROTECTED]> writes: > > Here's a nice one from Ken Thompson: > > ``I abhor a system designed for the "user", if that word is a coded > pejorative meaning "stupid and unsophisticated".'' That's a good one. It's going on my wall. Joel -- Joel J. Adamson Biostatistician P

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-21 Thread Joel J. Adamson
Twisted <[EMAIL PROTECTED]> writes: > Yeah, and I abhor the elitist systems that are designed with the > philosophy that anyone who hasn't mastered years of arcane > memorization and training in just that one idiosyncratic system is / > ipso facto/ "stupid and unsophisticated". Most of us 6 and a

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread Carsten Haese
On Thu, 2007-06-21 at 10:14 -0400, Peter Decker wrote: > On 6/21/07, Bjoern Schliessmann > <[EMAIL PROTECTED]> wrote: > > Stephen R Laniel wrote: > > > On Wed, Jun 20, 2007 at 12:59:28PM -0700, > > > [EMAIL PROTECTED] wrote: > > > > >> Then you should use another language. > > > > > > This is what

Re: Adding Python to the path in Windows

2007-06-21 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > I have many users using two different versions of python, 2.4 and > 2.5. I am running Python scripts on their computers programmatically, > but I can't run it with the full path because they have different > versions installed. I need to run it like 'python {script nam

  1   2   3   >