Re: Problems of Symbol Congestion in Computer Languages

2011-02-20 Thread Steven D'Aprano
On Sun, 20 Feb 2011 20:52:36 -0800, alex23 wrote: > Also, Enough! With! The! Hyperbole! Already! "Visionary" is _never_ a > self-appointed title. You only say that because you lack the vision to see just how visionary rantingrick's vision is1!11! Followups set to c.l.p. -- Steven -- h

Re: SQLite server using execnet ?

2011-02-20 Thread Grigory Javadyan
Are you sure you'll still be able to guarantee the ACID'ity of transactions? What about performance? Also, what kind of load are you expecting? I believe this will choke under too much simultaneous queries. On Mon, Feb 21, 2011 at 4:55 AM, Stef Mientki wrote: > hello, > > knowing that SQllite is

Re: Problems of Symbol Congestion in Computer Languages

2011-02-20 Thread alex23
rantingrick wrote: > You lack vision. And you lack education. > Evolution is the pursuit of perfection at the expense of anything and > everything! Evolution is the process by which organisms change over time through genetically shared traits. There is no 'perfection', there is only 'fitness',

Re: IDLE won't wrap lines of text

2011-02-20 Thread André Roberge
On Sunday, February 20, 2011 10:51:38 PM UTC-4, Dick Moores wrote: > On Sun, Feb 20, 2011 at 18:32, Rhodri James > wrote: > > On Mon, 21 Feb 2011 01:41:12 -, Richard D. Moores > > wrote: > > > >> On Sun, Feb 20, 2011 at 16:31, Rhodri James > >> wrote: > >>> > >>> On Sat, 19 Feb 2011 23:56:4

Re: IDLE won't wrap lines of text

2011-02-20 Thread Richard D. Moores
On Sun, Feb 20, 2011 at 18:32, Rhodri James wrote: > On Mon, 21 Feb 2011 01:41:12 -, Richard D. Moores > wrote: > >> On Sun, Feb 20, 2011 at 16:31, Rhodri James >> wrote: >>> >>> On Sat, 19 Feb 2011 23:56:45 -, Richard D. Moores >>> >>> wrote: >>> Vista Python 3.1.3

Re: IDLE won't wrap lines of text

2011-02-20 Thread Rhodri James
On Mon, 21 Feb 2011 01:41:12 -, Richard D. Moores wrote: On Sun, Feb 20, 2011 at 16:31, Rhodri James wrote: On Sat, 19 Feb 2011 23:56:45 -, Richard D. Moores wrote: Vista Python 3.1.3 I can't figure out how to get IDLE to wrap text pasted in from, say, a newspaper article. Us

Re: IDLE won't wrap lines of text

2011-02-20 Thread Richard D. Moores
On Sun, Feb 20, 2011 at 16:31, Rhodri James wrote: > On Sat, 19 Feb 2011 23:56:45 -, Richard D. Moores > wrote: > >> Vista >> Python 3.1.3 >> >> I can't figure out how to get IDLE to wrap text pasted in from, say, a >> newspaper article. Usually, a each paragraph will appear as one long >> un

Re: Problems of Symbol Congestion in Computer Languages

2011-02-20 Thread BartC
"WestleyMartínez" wrote in message news:mailman.202.1298081685.1189.python-l...@python.org... You have provided me with some well thought out arguments and have stimulated my young programmer's mind, but I think we're coming from different angles. You seem to come from a more math-minded,

SQLite server using execnet ?

2011-02-20 Thread Stef Mientki
hello, knowing that SQllite is not a client/server database, still want to see if a simple client/server setup would solve my current problems for the moment (because I love the simplicity of SQLlite, and planned to go to a client / server database in the future) Now I wonder if anyone has consi

Re: IDLE won't wrap lines of text

2011-02-20 Thread Rhodri James
On Sat, 19 Feb 2011 23:56:45 -, Richard D. Moores wrote: Vista Python 3.1.3 I can't figure out how to get IDLE to wrap text pasted in from, say, a newspaper article. Usually, a each paragraph will appear as one long unwrapped line, with no way to read the whole line, because no horizonta

Re: IDLE won't wrap lines of text

2011-02-20 Thread Terry Reedy
On 2/19/2011 6:56 PM, Richard D. Moores wrote: Vista Python 3.1.3 I can't figure out how to get IDLE to wrap text pasted in from, say, a newspaper article. Usually, a each paragraph will appear as one long unwrapped line, with no way to read the whole line, because no horizontal bar is created.

[RELEASED] Python 3.2

2011-02-20 Thread Georg Brandl
On behalf of the Python development team, I'm delighted to announce Python 3.2 final release. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x line will only receive bugfixes, and new features are developed fo

Re: wxPython in the context of Eclipse

2011-02-20 Thread Brendan Simon (eTRIX)
On 20/02/2011 10:00 PM, python-list-requ...@python.org wrote: Subject: wxPython in the context of Eclipse From: Fred Marshall Date: Sat, 19 Feb 2011 23:22:44 -0800 To: python-list@python.org I asked earlier: How do I use wxPython or wxGlade in the context of Eclipse? A link to a howto would

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Ben Finney
Anssi Saari writes: > Ben Finney writes: > > It [appeared correctly] in my reader. Perhaps your server has > > encoding trouble? > > He (or rather Google) used iso-8859-7 as a character set, which is the > Latin/Greek alphabet and definitely has pi at 0xF0. Not exactly a > common character set t

Re: hmac module and key format

2011-02-20 Thread Peter Pearson
On Sun, 20 Feb 2011 04:01:20 -0800, Paul Rubin wrote: > Stuart Longland writes: >> What format does hmac require the key to be in? > > It's an arbitrary string. > > I have a key in hexadecimal, do I give it the hex? Do I decode that > to binary and give it that? > > Probably yes. Do

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Martin v. Loewis
> eps would be a better name than e. py> ε = 10.0 ** -7; n = 0; z = c = complex(-0.75, ε) py> while abs(z) < 2.0: ... n += 1 ... z = z * z + c ... py> π = n * ε py> print(π) 3.1415926 Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use Python well?

2011-02-20 Thread Chris Jones
On Sat, Feb 19, 2011 at 05:27:24PM EST, Cameron Simpson wrote: [..] > Any yet I (and others, based on stuff I've seen) find info to be a > disaster. Why? > > - it forces the reader to use a non-standard pager to look >at info, typically the utterly weird one that comes with the info >co

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Roy Smith
In article <87oc679bl2@benfinney.id.au>, Ben Finney wrote: > Raymond Hettinger writes: > > > Compute � � e by counting Mandlebrot set iterations :-) > > Very cool! I love � nerdery. > > > Raymond Hettinger writes: > > > > Compute ð ± e by counting Mandlebrot set iterations :-)

Python 3.2 and html.escape function

2011-02-20 Thread Gerald Britton
Forgot to include the reference: http://docs.python.org/dev/whatsnew/3.2.html html A new html module was introduced with only a single function, escape(), which is used for escaping reserved characters from HTML markup: >>> import html >>> html.escape('x > 2 && x < 7') 'x > 2 && x < 7' -- Gera

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Anssi Saari
Ben Finney writes: > Raymond Hettinger writes: > >> Compute π ± e by counting Mandlebrot set iterations :-) > > Very cool! I love π nerdery. > > > Raymond Hettinger writes: > >> > Compute ð ± e by counting Mandlebrot set iterations :-) >> >> That should be: pi plus-or-minus e > > It was in my

Re: Best way to gain root privileges

2011-02-20 Thread GSO
> http://hal.freedesktop.org/docs/polkit/pkexec.1.html > http://hal.freedesktop.org/docs/polkit/polkit.8.html > http://www.freedesktop.org/wiki/Software/PolicyKit > > A python package: > > http://pypi.python.org/pypi?:action=search&term=polkit&submit=search > > But there is example python code here

Re: Python 3.2 and html.escape function

2011-02-20 Thread Peter Otten
Steven D'Aprano wrote: > On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: > >> I see that Python 3.2 includes a new module -- html -- with a single >> function -- escape. I would like to know how this function differs from >> xml.sax.saxutils.escape and, if there is no difference (or on

Re: Python 3.2 and html.escape function

2011-02-20 Thread Steven D'Aprano
On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: > I see that Python 3.2 includes a new module -- html -- with a single > function -- escape. I would like to know how this function differs from > xml.sax.saxutils.escape and, if there is no difference (or only a minor > one), what the nee

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Steven D'Aprano
On Sun, 20 Feb 2011 00:08:58 -0800, Raymond Hettinger wrote: e = 10.0 ** -7; n = 0; z = c = complex(-0.75, e) while abs(z) < 2.0: > n += 1 > z = z * z + c > n * e > 3.1415926 Absolutely brilliant! That alone justifies including complex as a built- in type. *wi

Python 3.2 and html.escape function

2011-02-20 Thread Gerald Britton
I see that Python 3.2 includes a new module -- html -- with a single function -- escape. I would like to know how this function differs from xml.sax.saxutils.escape and, if there is no difference (or only a minor one), what the need is for this new module and its lone function -- Gerald Britton

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Martin Gregorie
On Sun, 20 Feb 2011 22:42:17 +1100, Ben Finney wrote: > Raymond Hettinger writes: > >> Compute π ± e by counting Mandlebrot set iterations :-) > > Very cool! I love π nerdery. > > > Raymond Hettinger writes: > >> > Compute ð ± e by counting Mandlebrot set iterations :-) >> >> That should be

Re: hmac module and key format

2011-02-20 Thread Paul Rubin
Stuart Longland writes: > What format does hmac require the key to be in? It's an arbitrary string. I have a key in hexadecimal, do I give it the hex? Do I decode that to binary and give it that? Probably yes. Do you have test vectors? See if they work. -- http://mail.python.org

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Ben Finney
Raymond Hettinger writes: > Compute π ± e by counting Mandlebrot set iterations :-) Very cool! I love π nerdery. Raymond Hettinger writes: > > Compute ð ± e by counting Mandlebrot set iterations :-) > > That should be: pi plus-or-minus e It was in my reader. Perhaps your server has encodin

hmac module and key format

2011-02-20 Thread Stuart Longland
Hi, Maybe I'm completely dense with regards to the hmac module and HMAC in general, but I've searched and cannot find for the life of me the answer to this very basic question. What format does hmac require the key to be in? I have a key in hexadecimal, do I give it the hex? Do I decode that to

Re: Unbinding a name referenced by an enclosing scope

2011-02-20 Thread Peter Otten
Grigory Javadyan wrote: >>From the Python Language Reference (v 3.1): > >> It is illegal to unbind a name referenced by an enclosing scope; the >> compiler will report a SyntaxError. > > But when I run the following code: > > a = 3 > def x(): > global a > del(a) > > print(a) > x() > > it

Unbinding a name referenced by an enclosing scope

2011-02-20 Thread Grigory Javadyan
>From the Python Language Reference (v 3.1): > It is illegal to unbind a name referenced by an enclosing scope; the compiler > will report a SyntaxError. But when I run the following code: a = 3 def x(): global a del(a) print(a) x() it works fine; and when I change the order of calls: x(

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Raymond Hettinger
> Compute ð ± e by counting Mandlebrot set iterations :-) That should be: pi plus-or-minus e Raymond -- http://mail.python.org/mailman/listinfo/python-list

An amazing one-minute bit of fun at the interactive prompt

2011-02-20 Thread Raymond Hettinger
>>> e = 10.0 ** -7; n = 0; z = c = complex(-0.75, e) >>> while abs(z) < 2.0: n += 1 z = z * z + c >>> n * e 3.1415926 Compute π ± e by counting Mandlebrot set iterations :-) Raymond -- http://mail.python.org/mailman/listinfo/python-list