Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread David Kastrup
Twisted <[EMAIL PROTECTED]> writes: > On Jun 20, 5:37 pm, David Kastrup <[EMAIL PROTECTED]> wrote: >> ...spewing...babbling... > > I won't dignify your insulting twaddle and random ad-hominem verbiage > with any more responses after this one. Something with actual logical > argumentation to rebut

Re: The Modernization of Emacs

2007-06-20 Thread David Kastrup
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: string formatter %x and a class instance with __int__ or __long__ cannot handle long

2007-06-20 Thread Gabriel Genellina
En Thu, 21 Jun 2007 00:24:28 -0300, Kenji Noguchi <[EMAIL PROTECTED]> escribió: > Example2 -- pass an instance of a class with __int__() class X: > ... def __init__(self, v): > ... self.v = v > ... def __int__(self): > ... return self.v > ... y = X(0x8000) >

Re: Python live environment on web-site?

2007-06-20 Thread Daniel Nogradi
> > I was wondering if there was a python-live-environment available on a > > public web-site similar to the ruby-live-tutorial on > > > > http://tryruby.hobix.com/ > > > > I would prefer something which allows to paste small scripts into a > > text-field, to run them on the server, and to be able

Split file into several and reformat

2007-06-20 Thread bomber71
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 it into an output file for each of the "sels" in the input file, i.e se

Re: subprocess.popen question

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 22:28:06 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > On Jun 20, 7:50 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Wed, 20 Jun 2007 20:02:52 -0300, [EMAIL PROTECTED] >> <[EMAIL PROTECTED]> escribió: >> > On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL

Re: python website

2007-06-20 Thread [EMAIL PROTECTED]
On Jun 21, 12:53 am, Martin Skou <[EMAIL PROTECTED]> wrote: > The Daily Python-URLhttp://www.pythonware.com/daily/ pythonpapers.org :) -T -- http://mail.python.org/mailman/listinfo/python-list

Re: Python live environment on web-site?

2007-06-20 Thread [EMAIL PROTECTED]
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://tryruby.hobix.com/ > > I would prefer something which allows to paste small scripts into

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

2007-06-20 Thread Evan Klitzke
On 6/20/07, kaens <[EMAIL PROTECTED]> wrote: > 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 decla

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

2007-06-20 Thread Alex Martelli
kaens <[EMAIL PROTECTED]> wrote: > 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 var

Re: The Modernization of Emacs

2007-06-20 Thread kaens
On 6/20/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Wed, 20 Jun 2007 19:33:29 -0300, alguien escribió: > > > Speaking of which, vi is a piece of wombat do. ;-) > > Would you all please stop posting (and crossposting) about something that > is mostly off topic for 80% of the groups involv

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

2007-06-20 Thread kaens
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: string foo = "I'm a string"

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

2007-06-20 Thread John Nagle
Paul Rubin wrote: > Michele Simionato <[EMAIL PROTECTED]> writes: > >>I see Python or C as much better practical implementations >>of Sussman's quote about minimalism than real Scheme (for >>an example of real Scheme, I refer for instance to the PLT >>implementation). > > > Python and C as progr

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

2007-06-20 Thread half . italian
On Jun 20, 8:24 pm, "Kenji Noguchi" <[EMAIL PROTECTED]> wrote: > Hi > > I'm using Python 2.4.4 on 32bit x86 Linux. I have a problem with printing > hex string for a value larger than 0x8 when the value is given to > % operator via an instance of a class with __int__(). If I pass a long va

Re: Downloading from a clean url

2007-06-20 Thread Evan Klitzke
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 without > knowing the file of the url'

string formatter %x and a class instance with __int__ or __long__ cannot handle long

2007-06-20 Thread Kenji Noguchi
Hi I'm using Python 2.4.4 on 32bit x86 Linux. I have a problem with printing hex string for a value larger than 0x8 when the value is given to % operator via an instance of a class with __int__(). If I pass a long value to % operator it works just fine. Example1 -- pass a long value dir

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

2007-06-20 Thread Terry Reedy
"Stephen R Laniel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || Reading [1], I wonder: why isn't the compiler making better | use of (purely optional) type labeling? Why not make a compiler | directive so that | | a) it will check the types of all my arguments and return | val

Re: Reading multiline values using ConfigParser

2007-06-20 Thread Phoe6
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 spread values out over multiple lines as long as > there is a s

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

2007-06-20 Thread Ben Finney
Stephen R Laniel <[EMAIL PROTECTED]> writes: > Perhaps it would help for me to explain what I'd like. Thanks for taking the time to think about the request and re-formulate it. > Under both Perl and Python, I've found myself > having/wanting to write things like so: > > def my_func( int_arg, str

Re: The Modernization of Emacs

2007-06-20 Thread Evan Klitzke
On 6/20/07, Evan Klitzke <[EMAIL PROTECTED]> wrote: > On 6/20/07, Martin Gregorie <[EMAIL PROTECTED]> wrote: > > Amongst its benefits are that you can do anything its capable of by > > using only a standard QUERTY keyboard plus ESC - no function keys, etc > > are needed - which can save your bacon

Re: The Modernization of Emacs

2007-06-20 Thread Evan Klitzke
On 6/20/07, Martin Gregorie <[EMAIL PROTECTED]> wrote: > Amongst its benefits are that you can do anything its capable of by > using only a standard QUERTY keyboard plus ESC - no function keys, etc > are needed - which can save your bacon if somebody misconfigured your > console or the computer is

Downloading from a clean url

2007-06-20 Thread D.Hering
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 without knowing the file of the url's path. For instance http://kde.org Thanks, -Dieter -- htt

Secured CPython interpreter in embedded situations

2007-06-20 Thread Brett C.
I have been working on making Python a secure interpreter to run when embedded in terms of resources with an object representation (e.g., files but not memory or CPU). To save myself from repeating myself and missing some details of exactly what I have done I am going to point to a post to my Pyth

Re: Text-To-Speech for the Mac (OS X)

2007-06-20 Thread Brian
Hi Graham, Ahh, that works! Thank you... :-) Brian --- Graham Dumpleton wrote: > On Jun 21, 9:41 am, Brian <[EMAIL PROTECTED]> wrote: >> Hello, >> >> Does anyone know how to get Python to be able to perform text-to-speech >> abilities for the Mac (OS X)? I have been searching Google, but have

Re: subprocess.popen question

2007-06-20 Thread [EMAIL PROTECTED]
On Jun 20, 7:50 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 20 Jun 2007 20:02:52 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > > > > > On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > > >> cmd = ["gawk", "-f", "altertime.awk", "-v", "time_

Re: The Modernization of Emacs

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 19:33:29 -0300, alguien escribió: > Speaking of which, vi is a piece of wombat do. ;-) Would you all please stop posting (and crossposting) about something that is mostly off topic for 80% of the groups involved? Or is someone going for the Longest Off Topic Thread Of The Y

Re: subprocess.popen question

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 20:02:52 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> >> cmd = ["gawk", "-f", "altertime.awk", "-v", "time_offset=4", "-v", >> "outfile=testdat.sco", "i1.sco"] >> Now, what do you want to do w

Re: need help with re module

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 17:56:30 -0300, David Wahler <[EMAIL PROTECTED]> escribió: > On 6/20/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >> En Wed, 20 Jun 2007 13:58:34 -0300, linuxprog <[EMAIL PROTECTED]> >> escribió: >> >> > i have that string "helloworldok" and i want to >> > extract all the

Re: Text-To-Speech for the Mac (OS X)

2007-06-20 Thread Graham Dumpleton
On Jun 21, 9:41 am, Brian <[EMAIL PROTECTED]> wrote: > Hello, > > Does anyone know how to get Python to be able to perform text-to-speech > abilities for the Mac (OS X)? I have been searching Google, but have > not found any helpful solutions or resources yet. os.system('say read the man page for

Re: The Modernization of Emacs

2007-06-20 Thread Martin Gregorie
Twisted wrote: > This seems to be a closer analogy with emacs versus normal Windows > text editors. > 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 fr

Re: WebThumb

2007-06-20 Thread pelon
On Jun 17, 8:57 pm, Jay Loden <[EMAIL PROTECTED]> wrote: > John J. Lee wrote: > > Johny <[EMAIL PROTECTED]> writes: > > >> How can I get a website thumbnail? > >> I would like to allow visitors to add their URLs to our pages with > >> the thumbnail of their website. > >> Can anyone suggest a solut

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

2007-06-20 Thread George Sakkis
On Jun 20, 5:22 pm, Stephen R Laniel <[EMAIL PROTECTED]> wrote: > Perhaps it would help for me to explain what I'd like. > > Under both Perl and Python, I've found myself > having/wanting to write things like so: > > def my_func( int_arg, str_arg ): > try: > int_arg = int( int_arg ) >

Text-To-Speech for the Mac (OS X)

2007-06-20 Thread Brian
Hello, Does anyone know how to get Python to be able to perform text-to-speech abilities for the Mac (OS X)? I have been searching Google, but have not found any helpful solutions or resources yet. Brian --- -- http://mail.python.org/mailman/listinfo/python-list

Re: How to code dynamically created methods?

2007-06-20 Thread Ben Finney
kj <[EMAIL PROTECTED]> writes: > Nevermind, I found the problem... Please share the solution with the list, if you would. -- \ "I must say that I find television very educational. The minute | `\ somebody turns it on, I go to the library and read a book." -- | _o__)

RE: Q: listsort and dictsort - official equivalents?

2007-06-20 Thread Delaney, Timothy (Tim)
Steve Howell wrote: > I think Gabriel was making the point that the *input* > to sorted() cannot be a generator, even thought > sorted() itself could in theory be a generator with > the right underlying implementation (e.g. heapsort). Actually, the input to sorted() can be any iterable - sorted p

Re: subprocess.popen question

2007-06-20 Thread [EMAIL PROTECTED]
On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 20 Jun 2007 12:27:47 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > I am trying to modify a programming example and I am coming up with > > two problems... first is that I can't seem to pass along the >

Re: newbie opinion: easygui rocks

2007-06-20 Thread Birdman
You are correct sir! -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess.popen question

2007-06-20 Thread [EMAIL PROTECTED]
On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 20 Jun 2007 12:27:47 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > I am trying to modify a programming example and I am coming up with > > two problems... first is that I can't seem to pass along the >

Re: Permutation over a list with selected elements

2007-06-20 Thread Anton Vredegoor
[EMAIL PROTECTED] wrote: > Given a list of elements that are either a character or a character > follows by a number, e.g. > > ['a', 'b', 'c1', 'd', 'e1', 'f', 'c2', 'x', 'e2'] > > find all the permutations that are given by switching the positions of > the elements that: > (1) begins with the

Re: need help with re module

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 17:24:27 -0300, John Salerno <[EMAIL PROTECTED]> escribió: > Gabriel Genellina wrote: > >> py> from BeautifulSoup import BeautifulSoup >> py> chaine = """helloworldok""" >> py> soup = BeautifulSoup(chaine) >> py> soup.findAll(text=True) >> [u'hello', u'world', u'ok'] > > Wow.

Re: The Modernization of Emacs

2007-06-20 Thread Daniel Dyer
On Wed, 20 Jun 2007 23:33:29 +0100, Dave Hansen <[EMAIL PROTECTED]> wrote: > On Jun 20, 8:28 am, David Kastrup <[EMAIL PROTECTED]> wrote: >> Actually, the "E" in "Emacs" stands for "extensible". Part of the >> appeal of Emacs is that you can change it to accommodate you. > > Actually, though Emac

Re: The Modernization of Emacs

2007-06-20 Thread Dave Hansen
On Jun 20, 8:28 am, David Kastrup <[EMAIL PROTECTED]> wrote: > Actually, the "E" in "Emacs" stands for "extensible". Part of the > appeal of Emacs is that you can change it to accommodate you. Actually, though Emacs is the epitome of extensibility, the "E" stands for "Editor." "EMACS" is simply

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

2007-06-20 Thread Douglas Alan
Robert Kern <[EMAIL PROTECTED]> writes: >> The problem with Python's model is that you >> have to wait for a rather centralized process to agree on and >> implement such a feature. > No, you don't. Philip Eby has been working on various incarnations > of generic functions for some time now. The o

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

2007-06-20 Thread Diez B. Roggisch
> > Of course I understand the virtue of writing code with good > doctests, etc. But my question is why we can't get some more > static typing as well. Given the tools that'll be in Python > 3.0, that doesn't seem unreasonable to ask. That is exactly the problem - there is no "some more" static t

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Cor Gest
Some entity, AKA Twisted <[EMAIL PROTECTED]>, wrote this mindboggling stuff: (selectively-snipped-or-not-p) > On the other hand, being actively beginner-hostile leads to nobody > adopting the tool. Then again, if you don't mind being the last > generation that'll ever use it, then I guess you're

Re: Looking for a wxPython GUI builder

2007-06-20 Thread Lee Merrill
Dick Moores wrote: > And which ones do people > actually use? Commercial or Freeware. I have tried SPE/wxGlade/pycard and a few others and still use xrced, it does basically what I need, it does the grunt work of fitting together the windows and sizers so I don't put a sizer where there should b

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
On Jun 20, 5:37 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > ...spewing...babbling... I won't dignify your insulting twaddle and random ad-hominem verbiage with any more responses after this one. Something with actual logical argumentation to rebut may be another matter of course. One more GG i

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Matthias Buelow
Twisted wrote: > 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. Yes, like hitting the F1 key. > Yeah, and I abhor the elitist systems that are designed with the > philosophy that anyone who h

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

2007-06-20 Thread Douglas Alan
Michele Simionato <[EMAIL PROTECTED]> writes: > In practice Scheme follows exactly the opposite route: there are > dozens of different and redundant object systems, module systems, > even record systems, built just by piling up feature over feature. The solution to this is to have a standard libr

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread David Kastrup
Twisted <[EMAIL PROTECTED]> writes: > On Jun 20, 5:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > >> But Emacs does not have a "clunky" interface. > > That's for the everyday novice-to-intermediate user to decide. And they do. > Your gnu.org email address (and attitude) clearly marks you as n

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread David Kastrup
Twisted <[EMAIL PROTECTED]> writes: > On Jun 20, 5:22 pm, Matthias Buelow <[EMAIL PROTECTED]> wrote: >> Twisted wrote: >> > That's a joke, right? I tried it a time or two. Every time it was >> > rapidly apparent that doing anything non-trivial would require >> > consulting a cheat sheet. The print

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
On Jun 20, 5:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > But Emacs does not have a "clunky" interface. That's for the everyday novice-to-intermediate user to decide. Your gnu.org email address (and attitude) clearly marks you as not a normal user, and so your opinion doesn't count. -- htt

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread David Kastrup
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: Edit Audio Using Python?

2007-06-20 Thread aaronwmail-usenet
On Jun 20, 12:21 pm, Ultrus <[EMAIL PROTECTED]> wrote: > Ah! I found this on the official > website:http://www.python.org/doc/1.5.2p2/lib/module-audioop.html > > That should keep me occupied. If you think of anything interesting > however, I would be happy to know. :) I think you'll find that you

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
On Jun 20, 5:22 pm, Matthias Buelow <[EMAIL PROTECTED]> wrote: > Twisted wrote: > > That's a joke, right? I tried it a time or two. Every time it was > > rapidly apparent that doing anything non-trivial would require > > consulting a cheat sheet. The printed-out kind, since navigating to > > the he

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread David Kastrup
Twisted <[EMAIL PROTECTED]> writes: > On Jun 20, 5:21 pm, David Kastrup <[EMAIL PROTECTED]> wrote: >> Twisted <[EMAIL PROTECTED]> writes: >> > On Jun 20, 4:49 pm, Twisted <[EMAIL PROTECTED]> wrote: >> >> On Jun 20, 4:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: >> >> > Twisted <[EMAIL PROTECTED

Re: The Modernization of Emacs

2007-06-20 Thread BartlebyScrivener
On Jun 20, 3:53 pm, Twisted <[EMAIL PROTECTED]> wrote: > On Jun 20, 4:21 pm, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > > > On Jun 17, 10:13 am, Xah Lee <[EMAIL PROTECTED]> wrote: > > > > [this post is a excerpt from > > > The Modernization of Emacs > > > ---

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
On Jun 20, 5:21 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > Twisted <[EMAIL PROTECTED]> writes: > > On Jun 20, 4:49 pm, Twisted <[EMAIL PROTECTED]> wrote: > >> On Jun 20, 4:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > >> > Twisted <[EMAIL PROTECTED]> writes: > >> > > I continue to suspect t

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
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 finding out how > to do anything else IS tr

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

2007-06-20 Thread Douglas Alan
Steven D'Aprano <[EMAIL PROTECTED]> writes: > All of which makes Douglas Alan's accusations of Not Invented Here > syndrome about Python seem rather silly. I've never made such an accusation about Python itself -- just about the apparent attitude of some pontiffs. > The point I was making isn't

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Matthias Buelow
Twisted wrote: > That's a joke, right? I tried it a time or two. Every time it was > rapidly apparent that doing anything non-trivial would require > consulting a cheat sheet. The printed-out kind, since navigating to > the help and back without already having the help displayed and open > to the

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread David Kastrup
Twisted <[EMAIL PROTECTED]> writes: > On Jun 20, 4:49 pm, Twisted <[EMAIL PROTECTED]> wrote: >> On Jun 20, 4:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: >> > Twisted <[EMAIL PROTECTED]> writes: >> > > I continue to suspect that there's an ulterior motive for making and >> > > keeping certain s

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

2007-06-20 Thread Stephen R Laniel
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 like. Under both Perl and Python, I

Re: wxpython: Redirect the stdout to a textctrl

2007-06-20 Thread kyosohma
On Jun 20, 4:03 pm, Alejandro <[EMAIL PROTECTED]> wrote: > On Jun 19, 5:07 pm, [EMAIL PROTECTED] wrote:> Give this a try: > > > > > [good piece of code] > > > > > It worked like a charm! Thanks. > > I still don't understand why my initial aproach didn't work as > expected. > > Regards, > Alejand

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
On Jun 20, 4:49 pm, Twisted <[EMAIL PROTECTED]> wrote: > On Jun 20, 4:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > > Twisted <[EMAIL PROTECTED]> writes: > > > I continue to suspect that there's an ulterior motive for making and > > > keeping certain software actively beginner-hostile; a certai

Re: visual gui ides for python/jythpn

2007-06-20 Thread Peter Decker
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 Studio or > Delphi ? Watch these screencasts, and then check out Dabo: http://leafe.com/screencasts/dataenvironme

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

2007-06-20 Thread Douglas Alan
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Tue, 19 Jun 2007 20:16:28 -0400, Douglas Alan wrote: >> Steven D'Aprano <[EMAIL PROTECTED]> writes: >>> On Tue, 19 Jun 2007 17:46:35 -0400, Douglas Alan wrote: >> The problem with using Scheme for real work is that it doesn't come >> with enough

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Kaldrenon
On Jun 20, 4:49 pm, Twisted <[EMAIL PROTECTED]> wrote: > On Jun 20, 4:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > > > Twisted <[EMAIL PROTECTED]> writes: > > > On the other hand, being actively beginner-hostile leads to nobody > > > adopting the tool. Then again, if you don't mind being the l

Re: wxpython: Redirect the stdout to a textctrl

2007-06-20 Thread Alejandro
On Jun 19, 5:07 pm, [EMAIL PROTECTED] wrote: > Give this a try: > > [good piece of code] > It worked like a charm! Thanks. I still don't understand why my initial aproach didn't work as expected. Regards, Alejandro. -- http://mail.python.org/mailman/listinfo/python-list

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

2007-06-20 Thread Paddy
On Jun 20, 7:53 pm, Stephen R Laniel <[EMAIL PROTECTED]> wrote: > Before I ask anything, let me note that this is surely an > old question that has inspired its share of flame wars; I'm > new to Python, but not new to how Internet discussions work. > So if there's a canonical thread or web page tha

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

2007-06-20 Thread Robert Kern
Douglas Alan wrote: > "Terry Reedy" <[EMAIL PROTECTED]> writes: >> Which I obviously read and responded to by noting "And 3.0 may add a new >> generic function module to dispatch on multiple arguments and possibly >> predicates." > > So, that's great. Python will once again adopt a wonderful f

Re: need help with re module

2007-06-20 Thread David Wahler
On 6/20/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Wed, 20 Jun 2007 13:58:34 -0300, linuxprog <[EMAIL PROTECTED]> > escribió: > > > i have that string "helloworldok" and i want to > > extract all the text , without html tags , the result should be some > > thing like that : helloworldok

Re: The Modernization of Emacs

2007-06-20 Thread Twisted
On Jun 20, 4:21 pm, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > On Jun 17, 10:13 am, Xah Lee <[EMAIL PROTECTED]> wrote: > > > [this post is a excerpt from > > The Modernization of Emacs > > > > SIMPLE CHANGES > > At the command line, change "emacs" to "gv

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

2007-06-20 Thread Paddy
On Jun 20, 9:05 pm, Stephen R Laniel <[EMAIL PROTECTED]> 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. > And knowing that, why not take more care with the t

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
On Jun 20, 4:35 pm, David Kastrup <[EMAIL PROTECTED]> wrote: > Twisted <[EMAIL PROTECTED]> writes: > > On the other hand, being actively beginner-hostile leads to nobody > > adopting the tool. Then again, if you don't mind being the last > > generation that'll ever use it, then I guess you're okay

Re: The Modernization of Emacs

2007-06-20 Thread Lew
Ed wrote: > Thanks, all, for the answers. > > But, Lew: GWMF? > > - Gardner Winter Music Festival? (You have to love the black'n'white > photo on the right at: http://www.gwmf.org/) > > - Generalized Whitening-Matched Filter? > > - http://www.gwmf.com/ ? > > - http://www.gwmf.de/host/ ? > >

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

2007-06-20 Thread Michael Hoffman
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. You originally said "Before I ask anything, let me note that this is surely an old question

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread David Kastrup
Twisted <[EMAIL PROTECTED]> writes: > On the other hand, being actively beginner-hostile leads to nobody > adopting the tool. Then again, if you don't mind being the last > generation that'll ever use it, then I guess you're okay with > that. If it suits its existing users, the rest of us will jus

Re: need help with re module

2007-06-20 Thread Matimus
Here is an example: >>> s = "Helloworldok" >>> matchtags = re.compile(r"<[^>]+>") >>> matchtags.findall(s) ['', '', ''] >>> matchtags.sub('',s) 'Helloworldok' I probably shouldn't have shown you that. It may not work for all HTML, and you should probably be looking at something like BeautifulSoup

Re: need help with re module

2007-06-20 Thread John Salerno
Gabriel Genellina wrote: > py> from BeautifulSoup import BeautifulSoup > py> chaine = """helloworldok""" > py> soup = BeautifulSoup(chaine) > py> soup.findAll(text=True) > [u'hello', u'world', u'ok'] Wow. That *is* beautiful. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs

2007-06-20 Thread BartlebyScrivener
On Jun 17, 10:13 am, Xah Lee <[EMAIL PROTECTED]> wrote: > [this post is a excerpt from > The Modernization of Emacs > > SIMPLE CHANGES At the command line, change "emacs" to "gvim" http://pinard.progiciels-bpi.ca/opinions/editors.html rd -- http://mail.

Re: The Modernization of Emacs

2007-06-20 Thread Twisted
On Jun 20, 9:09 am, Kaldrenon <[EMAIL PROTECTED]> wrote: > Imagine that a man invents a vehicle that's far safer and more > maneuverable than any existing vehicle. Imagine that the increased > safety comes from the fact that it has five wheels. How incredibly > stupid would it be for that inventor

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Twisted
On Jun 20, 8:52 am, Bjorn Borud <[EMAIL PROTECTED]> wrote: > I found Emacs to be user friendly, but in a different sense than the, > IMHO faulty definition, "beginner friendly". Emacs let me, as a user, > do more with less effort and provides a lot less friction than many > other developer tools I

Re: The Modernization of Emacs

2007-06-20 Thread Twisted
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, of the sort that were supposed to have died o

Re: The Modernization of Emacs

2007-06-20 Thread Twisted
On Jun 20, 1:59 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 19, 9:21 pm, Ed <[EMAIL PROTECTED]> wrote: > > > Have you ever seen an, "Extractmethod," function for emacs? Whereby > > you highlight some lines of code, press a key, and the code is whisked > > into its ownmethod, with th

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

2007-06-20 Thread Stephen R Laniel
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. -- Stephen R. Laniel [EMAIL PROTECTED] Cell: +(617) 308-5571 http://laniels.org/ PGP key: http://laniels.org/slaniel.key --

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

2007-06-20 Thread Douglas Alan
"Terry Reedy" <[EMAIL PROTECTED]> writes: > | I think you are missing the point. Sussman is making a broad > | criticism software engineering in general, as it is understood > | today. > On the contrary, I understood exactly that and said so. *My* point > is that in doing so, he made one jab at

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

2007-06-20 Thread [EMAIL PROTECTED]
On Jun 20, 8:53 pm, Stephen R Laniel <[EMAIL PROTECTED]> wrote: > Before I ask anything, let me note that this is surely an > old question that has inspired its share of flame wars; I'm > new to Python, but not new to how Internet discussions work. > So if there's a canonical thread or web page tha

Re: How can I know the name of "caller"

2007-06-20 Thread billiejoex
On 20 Giu, 06:52, John Nagle <[EMAIL PROTECTED]> wrote: > billiejoex wrote: > > Hi there, > > unfortunately, I'm compelled to apply a sort of monkey patching at the > > code of an existing libreary that I can't modify directly. > ... > > > ...(if it is possible) how can I get, from method "called",

Re: The Modernization of Emacs

2007-06-20 Thread Ed
Thanks, all, for the answers. But, Lew: GWMF? - Gardner Winter Music Festival? (You have to love the black'n'white photo on the right at: http://www.gwmf.org/) - Generalized Whitening-Matched Filter? - http://www.gwmf.com/ ? - http://www.gwmf.de/host/ ? - http://www.goatworld.com/gwmf.shtml

Re: Packing a simple dictionary into a string - extending struct?

2007-06-20 Thread Paddy
On Jun 20, 12:19 pm, "Jonathan Fine" <[EMAIL PROTECTED]> wrote: > Hello > > I want to serialise a dictionary, whose keys and values are ordinary strings > (i.e. a sequence of bytes). > > I can of course use pickle, but it has two big faults for me. > 1. It should not be used with untrusted data. >

Babel - Python library for I18N and L10N

2007-06-20 Thread Jonas
Quoting Christopher Lenz: - Babel 0.8 - Jun 20, 2007 We're proud to present the latest release of the Babel: 0.8. Babel is a Python library that provides an integrated collection of ut

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

2007-06-20 Thread Paddy
On Jun 20, 7:53 pm, Stephen R Laniel <[EMAIL PROTECTED]> wrote: > Before I ask anything, let me note that this is surely an > old question that has inspired its share of flame wars; I'm > new to Python, but not new to how Internet discussions work. > So if there's a canonical thread or web page tha

Re: need help with re module

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 13:58:34 -0300, linuxprog <[EMAIL PROTECTED]> escribió: > i have that string "helloworldok" and i want to > extract all the text , without html tags , the result should be some > thing like that : helloworldok > > i have tried that : > > from re import findall > >

Re: python25_d.lib

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 13:43:12 -0300, senthil arasu <[EMAIL PROTECTED]> escribió: > After integrating python 2.5 in visual studio. > Iam getting the linked error "cannot open file python25_d.lib" > Help me to solve this issue. There is a "release" build and a "debug" build; the debug build gener

Re: Help With Better Design

2007-06-20 Thread apollonius2
> I've written code that looks a lot like that, and it's > a perfectly acceptable pattern IMHO. I don't bother > with the variables ON and OFF, though, as they add no > clarity to simply using 'ON' and 'OFF' for the states. > > [...] > The test portion of the code is actually longer than > the cl

Re: subprocess.popen question

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 12:27:47 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > I am trying to modify a programming example and I am coming up with > two problems... first is that I can't seem to pass along the > arguments to the external command (I have been able to do that with > the ol

Re: How to hide a program?

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 11:26:09 -0300, jvdb <[EMAIL PROTECTED]> escribió: > On 20 jun, 15:59, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> jvdb wrote: >> > Is it possible to start a program 'hidden' or minimized to at least >> > the system tray? And, if yes., could some one help me on this? >>

Re: Reference current module?

2007-06-20 Thread Tobiah
Gabriel Genellina wrote: > En Tue, 19 Jun 2007 16:34:50 -0300, Steven Bethard > <[EMAIL PROTECTED]> escribió: > >> Tobiah wrote: >>> >>> getattr(current_module, 'foo') >>> >>> where 'current_module' is a handle the the one >>> that the code is in? Just like > A simple way would be using sys.mod

pictures database project ?

2007-06-20 Thread Patrick Peccatte
Hi, Is anybody knows any pictures database project written in Python ? Search engine and true database needed (preferably MySQL) I am looking for something similar to "Gallery" (written in PHP), see http://gallery.menalto.com/ -- Patrick Peccatte www.softexperience.com -- http://mail.python.org

  1   2   3   >