>>> 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
> Compute ð ± e by counting Mandlebrot set iterations :-)
That should be: pi plus-or-minus e
Raymond
--
http://mail.python.org/mailman/listinfo/python-list
>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(
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
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
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
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
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
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
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
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
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
> 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
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
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
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 :-)
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
> 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
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
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
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
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
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.
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
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
"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,
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
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
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
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
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',
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
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
33 matches
Mail list logo