I am pleased to announce the second public release of stats for Python,
and the first targeted at Python 3.x.
http://pypi.python.org/pypi/stats
stats is a pure-Python module providing basic statistics functions
similar to those found on scientific calculators. It has over 40
statistics functio
http://infohivaids.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
I am putting together a comparison & intro to each of sh, perl, python with
a view towards addressing:
- What is each language naturally good for
- What are their respective strengths and weaknesses
- How do they differ paradigmatically
Audience is non-programming sysadmins, many of whom are tryi
Steven D'Aprano wrote:
> Right website, wrong page :)
>
> http://effbot.org/zone/call-by-object.htm
D'oh. Thanks for the catch :)
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 13, 7:39 pm, joy99 wrote:
> Dear Group,
>
> Hope every one is fine.
>
> I am trying to put some questions.
>
> I am developing some tool boxes for support vector machine (SVM) and
> hidden markov model (HMM).
> For HMM I was following the tutorial by Leeds University Computer
> Science Depa
On Sat, 13 Nov 2010 22:22:00 +, Mark Wooding wrote:
> Challenge: explain the following code using only those concepts.
("those concepts" being name and value/object)
> def foo():
> l = []
> for i in xrange(10):
> (lambda j: l.append((lambda: i, lambda:
On 2010-11-13 08:39 , joy99 wrote:
I am looking for a forum, especially an active forum, like this one (I
searched for few in Google, but all seem to be very lazy), where I can
post these questions.
http://stats.stackexchange.com/
--
Robert Kern
"I have come to believe that the whole world i
2010/11/13 Martin v. Loewis :
>> Is this intended or even guaranteed for these generated files to be
>> compatible across py2.7 and py3, or am I going to be bitten by some
>> less obvious issues later?
>
> It works because the generated files are just arrays of structures,
> and these structures ar
I will be out of the office starting 12/11/2010 and will not return until
16/11/2010.
contact
Narinder Kumar 0208 738 8871 (narinder.ku...@ba.com)
Ian Sherrington (88149)
matthew page 0208 738 3519 (matthew.p...@ba.com)
Greg Lakin 0208 738 3469 (greg.t.la...@ba.com)
Christopher Bristow 208 738 6
Steven D'Aprano writes:
> On Sat, 13 Nov 2010 21:42:03 +, Mark Wooding wrote:
>
> > Dave Angel writes:
> >
> >> No, an (=) assignment is always an assignment.
> >
> > No. In `foo[0] = bar' it's a method call in disguise.
>
> How does that imply that can't also be an assignment?
Is `splat
Dennis Lee Bieber writes:
> def swapFunc(a, b):
> return b, a
That's not what a `swap' function should do.
> > Alas, Python is actually slightly confusing here, since the same
> > notation `=' sometimes means assignment and sometimes means mutation.
>
> "=" means just one thing, a r
Steven D'Aprano writes:
> On Sat, 13 Nov 2010 20:01:42 +, Mark Wooding wrote:
> > Some object types are primitive, provided by the runtime system;
> > there are no `internal' variables to be assigned in these cases.
>
> You seem to be making up your own terminology here, or at least using
>
m...@distorted.org.uk (Mark Wooding) writes:
> Arnaud Delobelle writes:
>> I think I understand Python programs correctly using only the notions
>> of "name" and "value" (or object).
>
> Challenge: explain the following code using only those concepts.
>
> def foo():
> l = []
>
On behalf of the Python development team, I'm chuffed to announce the a release
candidate of Python 2.7.1.
Please test the release candidate with your packages and report any bugs you
find. 2.7.1 final is scheduled in two weeks.
2.7 includes many features that were first released in Python 3.1.
On Sat, 13 Nov 2010 09:10:41 -0500, Brian Blais wrote:
> Here is code that "works", with at least one small oddity:
>
> import turtle
>
> def gothere(event):
> turtle.penup()
> turtle.goto(event.x-360,340-event.y)
> turtle.pendown()
>
> def movearound(event):
> turtle.goto(event
On behalf of the Python development team, I'm gladsome to announce a release
candidate of the third bugfix release for the Python 3.1 series, Python 3.1.3.
This bug fix release fixes numerous issues found in 3.1.2. Please try it with
your packages and report any bugs you find. The final of 3.1.3
On Sat, 13 Nov 2010 06:22:59 -0500, Brian Blais wrote:
> there is no change by changing the order, but I didn't expect one.
> since ondrag is binding a callback, which is only called when the event
> happens, I figure that the pen has to be down when the callback happens,
> not when the binding o
On Sat, 13 Nov 2010 14:37:44 -0800, Dennis Lee Bieber wrote:
> On Sat, 13 Nov 2010 16:29:19 +, m...@distorted.org.uk (Mark Wooding)
> declaimed the following in gmane.comp.python.general:
>
>
>> to a function argument /never/ affects the caller in Python. It's
>> simply not possible to writ
On Sat, 13 Nov 2010 21:42:03 +, Mark Wooding wrote:
> Dave Angel writes:
>
>> No, an (=) assignment is always an assignment.
>
> No. In `foo[0] = bar' it's a method call in disguise.
How does that imply that can't also be an assignment?
Of course, you're correct that it's not *necessaril
> Is this intended or even guaranteed for these generated files to be
> compatible across py2.7 and py3, or am I going to be bitten by some
> less obvious issues later?
It works because the generated files are just arrays of structures,
and these structures are the same in 2.7 and 3.2. However, th
On Sat, 13 Nov 2010 11:41:09 -0800, dmitrey wrote:
> hi all,
> I have the following problem:
> I have overloaded "max" function in my module (FuncDesigner); it works
> like following:
> if some data in arguments is of type "oofun" then my function works,
> elseware numpy.max() is used.
>
> Now th
On Sat, 13 Nov 2010 20:01:42 +, Mark Wooding wrote:
> Terry Reedy writes:
>
>> On 11/13/2010 11:29 AM, Mark Wooding wrote:
>>
>> > Alas, Python is actually slightly confusing here, since the same
>> > notation `=' sometimes means assignment and sometimes means mutation.
>>
>> I disagree some
Arnaud Delobelle writes:
> m...@distorted.org.uk (Mark Wooding) writes:
>
> > Assignment /never/ binds. There is syntactic confusion here too,
> > since Python interprets a simple assignment in a function body -- in
> > the absence of a declaration such as `global' to the contrary -- as
> > indi
If you are willing to convert your groups into websites and want to
earn huge revenue through your group network- do contact us- we have
great service for group owners who has high number of members and
messages. Start your own sms, joke, stories, news, jobs website and
earn huge from your group us
Dave Angel writes:
> No, an (=) assignment is always an assignment.
No. In `foo[0] = bar' it's a method call in disguise.
> It changes the item on the left hand side to refer to a new object.
Not necessarily. It could do anything at all depending on the type of
the recipient object.
-- [m
On Sat, 13 Nov 2010 05:50:40 -0800, alex23 wrote:
> Tracubik wrote:
>> why the integer value doesn't change while the list value do?
>
> http://effbot.org/pyfaq/why-are-default-values-shared-between-
objects.htm
Right website, wrong page :)
http://effbot.org/zone/call-by-object.htm
See also
m...@distorted.org.uk (Mark Wooding) writes:
> Assignment /never/ binds. There is syntactic confusion here too,
> since Python interprets a simple assignment in a function body -- in
> the absence of a declaration such as `global' to the contrary -- as
> indicating that the variable in question s
On Sat, Nov 13, 2010 at 5:46 AM, Tracubik wrote:
> hi all,
> i've this on python 2.6.6:
>
> >>> def change_integer(int_value):
> ... int_value = 10
> ...
> ... def change_list(list):
> ... list[0] = 10
> ...
> ... a = 1
> ... l = [1,1,1]
> ...
> ... change_integer(a)
> ... change_list(l)
On 2:59 PM, Mark Wooding wrote:
Tracubik writes:
def change_integer(int_value):
... int_value = 10
...
Alas, Python is actually slightly confusing here, since the same
notation `=' sometimes means assignment and sometimes means mutation.
You can tell which is which by looking at the l
On 11/13/2010 2:41 PM, dmitrey wrote:
hi all,
I have the following problem:
I have overloaded "max" function in my module (FuncDesigner); it works
like following:
if some data in arguments is of type "oofun" then my function works,
elseware numpy.max() is used.
Now the problem:
suppose someone w
On Sat, Nov 13, 2010 at 5:46 AM, Tracubik wrote:
> hi all,
> i've this on python 2.6.6:
>
def change_integer(int_value):
> ... int_value = 10
> ...
> ... def change_list(list):
> ... list[0] = 10
> ...
> ... a = 1
> ... l = [1,1,1]
> ...
> ... change_integer(a)
> ... change_list(l)
>
Terry Reedy writes:
> On 11/13/2010 11:29 AM, Mark Wooding wrote:
>
> > Alas, Python is actually slightly confusing here, since the same
> > notation `=' sometimes means assignment and sometimes means mutation.
>
> I disagree somewhat. An object is mutated by an internal assignment.
Some object
I understand it now. Thanks for the responses.
--
http://mail.python.org/mailman/listinfo/python-list
On 13/11/2010 19:55, dmitrey wrote:
Well, I think I have found an appropriate solution.
Regards, D.
Hi Dmitrey,
Would you mind briefly describing your solution?
Thanks,
Ben
--
http://mail.python.org/mailman/listinfo/python-list
Well, I think I have found an appropriate solution.
Regards, D.
--
http://mail.python.org/mailman/listinfo/python-list
hi all,
I have the following problem:
I have overloaded "max" function in my module (FuncDesigner); it works
like following:
if some data in arguments is of type "oofun" then my function works,
elseware numpy.max() is used.
Now the problem:
suppose someone writes
from FuncDesigner import *
...
a =
Tim Chase and MRAB: Thanks!!
On Nov 13, 2:14 pm, Tim Chase wrote:
> On 11/13/2010 12:53 PM, Zeynel wrote:
>
>
>
>
>
>
>
>
>
> > I have string formatting line in Google App Engine webframe webapp:
>
> > self.response.out.write("%s: mWEIGHT: %s
> > mDATE0_integer: %s mCOUNT: %s" % (result.mUNIQUE
I've started working, as a tech writer, for a Spanish software
configuration management company. And I'm investigating the idea of
releasing a user manual in the form of a wiki that supports
paragraph-by-paragraph commenting.
I looked at Django Book [1][2], but it's not clear to me how much of
On 11/13/2010 11:29 AM, Mark Wooding wrote:
Alas, Python is actually slightly confusing here, since the same
notation `=' sometimes means assignment and sometimes means mutation.
I disagree somewhat. An object is mutated by an internal assignment.
"ll[0] = 1" assigns 1 to the 0 slot of ll.
"o.
On Oct 23, 7:29 am, Roger Davis wrote:
> Are there any Python debuggers with a decent GUI out there at all that
> will work on a Mac with the following features: (i) ability to pass in
> a sys.srgv[] list that the program would otherwise see without the
> debugger, (ii) display local variables,
On 11/13/2010 12:53 PM, Zeynel wrote:
I have string formatting line in Google App Engine webframe webapp:
self.response.out.write("%s: mWEIGHT: %s
mDATE0_integer: %s mCOUNT: %s" % (result.mUNIQUE,
result.mWEIGHT, mDATE0_integer, result.mCOUNT,))
I would like to be able to write it as
self.re
On 13/11/2010 18:53, Zeynel wrote:
I have string formatting line in Google App Engine webframe webapp:
self.response.out.write("%s: mWEIGHT: %s
mDATE0_integer: %s mCOUNT: %s" % (result.mUNIQUE,
result.mWEIGHT, mDATE0_integer, result.mCOUNT,))
I would like to be able to write it as
self.respo
On 11/13/2010 11:41 AM, Dave Angel wrote:
On 2:59 PM, Beliavsky wrote:
After installing numpy, scipy, and matplotlib for python 2.6 and
running the code from http://www.scipy.org/Cookbook/OptimizationDemo1
(stored as xoptimize.py) in a directory with other python codes, I got
the error messages
I have string formatting line in Google App Engine webframe webapp:
self.response.out.write("%s: mWEIGHT: %s
mDATE0_integer: %s mCOUNT: %s " % (result.mUNIQUE,
result.mWEIGHT, mDATE0_integer, result.mCOUNT,))
I would like to be able to write it as
self.response.out.write("%s:
Hi all,
I'd like to ask about a surprising possibility I found while
investigating the new unicode 6.0 standard for use in python.
As python 2 series won't be updated in this regard
( http://bugs.python.org/issue10400 ),
I tried my "poor man's approach" of compiling the needed pyd file with
the rec
On 2010-11-13, Ravi wrote:
> import sqlite3
> con = sqlite3.connect("any string here")
That is a property of the sqlite database itself. It always opens the
database requested; even if it has to create a new database to do so.
> and there is no error reported. You will get an error you do some
On 13/11/2010 16:54, Ravi wrote:
try this:
import sqlite3
con = sqlite3.connect("any string here")
and there is no error reported. You will get an error you do some
operations on the database which is confusing. I think sqlite3 should
change this behavior.
That will open an existing database
try this:
import sqlite3
con = sqlite3.connect("any string here")
and there is no error reported. You will get an error you do some
operations on the database which is confusing. I think sqlite3 should
change this behavior.
--
http://mail.python.org/mailman/listinfo/python-list
On 2:59 PM, Beliavsky wrote:
After installing numpy, scipy, and matplotlib for python 2.6 and
running the code from http://www.scipy.org/Cookbook/OptimizationDemo1
(stored as xoptimize.py) in a directory with other python codes, I got
the error messages
C:\python\code\mycode>python xoptimize.py
Tracubik writes:
> >>> def change_integer(int_value):
> ... int_value = 10
> ...
> ... def change_list(list):
> ... list[0] = 10
[...]
> why the integer value doesn't change while the list value do?
Because in the first case you changed a variable local to the function,
and that v
On Nov 12, 2010, at 8:48 PM, Brian Blais wrote:
>
> On Nov 12, 2010, at 8:05 PM, Steven D'Aprano wrote:
>
>> On Fri, 12 Nov 2010 19:24:50 -0500, Brian Blais wrote:
>>
>>> I'd like to draw on a turtle canvas, but use the mouse to direct the
>>> turtle. I don't see a good way of getting the mou
Dear Group,
Hope every one is fine.
I am trying to put some questions.
I am developing some tool boxes for support vector machine (SVM) and
hidden markov model (HMM).
For HMM I was following the tutorial by Leeds University Computer
Science Department, available online in HTML format, and for SV
On Saturday, November 13, 2010, Chris Gonnerman
wrote:
> On 11/13/2010 07:52 AM, Beliavsky wrote:
>
> After installing numpy, scipy, and matplotlib for python 2.6 and
> running the code from http://www.scipy.org/Cookbook/OptimizationDemo1
> (stored as xoptimize.py) in a directory with other python
Beliavsky writes:
> After installing numpy, scipy, and matplotlib for python 2.6 and
> running the code from http://www.scipy.org/Cookbook/OptimizationDemo1
> (stored as xoptimize.py) in a directory with other python codes, I got
> the error messages
>
> C:\python\code\mycode>python xoptimize.py
alex23 writes:
> Tracubik wrote:
>> why the integer value doesn't change while the list value do?
>
> http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm
Not the issue here.
The reason the OP sees a difference that there is only one way to pass
parameters in python. Ther
On 11/13/2010 07:52 AM, Beliavsky wrote:
After installing numpy, scipy, and matplotlib for python 2.6 and
running the code from http://www.scipy.org/Cookbook/OptimizationDemo1
(stored as xoptimize.py) in a directory with other python codes, I got
the error messages
C:\python\code\mycode>python x
After installing numpy, scipy, and matplotlib for python 2.6 and
running the code from http://www.scipy.org/Cookbook/OptimizationDemo1
(stored as xoptimize.py) in a directory with other python codes, I got
the error messages
C:\python\code\mycode>python xoptimize.py
Traceback (most recent call las
Tracubik wrote:
> why the integer value doesn't change while the list value do?
http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm
--
http://mail.python.org/mailman/listinfo/python-list
hi all,
i've this on python 2.6.6:
>>> def change_integer(int_value):
... int_value = 10
...
... def change_list(list):
... list[0] = 10
...
... a = 1
... l = [1,1,1]
...
... change_integer(a)
... change_list(l)
...
... print a
... print l
1
[10, 1, 1]
why the integer value do
On Fri, 12 Nov 2010 13:24:09 -0800 (PST)
Raymond Hettinger wrote:
> Has anyone here benchmarked a 32-bit Python versus a 64-bit Python for
> Django or some other webserver?
>
> My hypotheses is that for apps not needing the 64-bit address space,
> the 32-bit version has better memory utilization
On Nov 13, 2010, at 1:31 AM, Dennis Lee Bieber wrote:
> On Fri, 12 Nov 2010 20:48:34 -0500, Brian Blais
> declaimed the following in gmane.comp.python.general:
>
>> turtle.ondrag(turtle.goto)
>> turtle.pendown()
>>
>>
> I'm not familiar with the turtle module but... would it make more
>
NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...
FREE GOLD MEMBER FOR FEMALE PROFILE
http://goo.gl/1bour
http://goo.gl/1bour
http://goo.gl/1bour
http://goo.gl/1bour
http://goo.gl/1bour
http://goo.gl/1bour
http://goo.gl/1bour
--
http://mail.python.org/mailman/listinfo/python-list
In article
,
Roger Davis wrote:
> Thanks for that info, Ned, I can now get the sys.argv[] list I need,
> that's a big help! However, is there any other way to set a breakpoint
> in idle that will work on Mac OS X, maybe entering a manual command
> somewhere with a specified line number? Inabilit
http://infoukhotels.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
64 matches
Mail list logo