ANN: stats0.1.1a calculator statistics for Python

2010-11-13 Thread Steven D'Aprano
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

hi

2010-11-13 Thread sms
http://infohivaids.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Looking For Tutorial Comparison Of sh - perl - python

2010-11-13 Thread Tim Daneliuk
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

Re: strange behavor....

2010-11-13 Thread alex23
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

Re: Some Machine Learning related questions

2010-11-13 Thread joy99
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

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
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:

Re: Some Machine Learning related questions

2010-11-13 Thread Robert Kern
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

Re: regenerating unicodedata for py2.7 using py3 makeunicodedata.py?

2010-11-13 Thread Vlastimil Brom
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 am away

2010-11-13 Thread chris . p . clark
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

Re: strange behavor....

2010-11-13 Thread Mark Wooding
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

Re: strange behavor....

2010-11-13 Thread Mark Wooding
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

Re: strange behavor....

2010-11-13 Thread Mark Wooding
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 >

Re: strange behavor....

2010-11-13 Thread Arnaud Delobelle
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 = [] >

[RELEASED] Python 2.7.1 release candidate 1

2010-11-13 Thread Benjamin Peterson
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.

Re: drawing with the mouse with turtle...solved?

2010-11-13 Thread Steven D'Aprano
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

[RELEASED] Python 3.1.3 release candidate 1

2010-11-13 Thread Benjamin Peterson
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

Re: drawing with the mouse with turtle

2010-11-13 Thread Steven D'Aprano
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

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
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

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
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

Re: regenerating unicodedata for py2.7 using py3 makeunicodedata.py?

2010-11-13 Thread 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 are the same in 2.7 and 3.2. However, th

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread Steven D'Aprano
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

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
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

Re: strange behavor....

2010-11-13 Thread Mark Wooding
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

want to start your own revenue generation site?

2010-11-13 Thread Vanesa Singh
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

Re: strange behavor....

2010-11-13 Thread Mark Wooding
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

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
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

Re: strange behavor....

2010-11-13 Thread Arnaud Delobelle
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

Re: strange behavor....

2010-11-13 Thread Dan Stromberg
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)

Re: strange behavor....

2010-11-13 Thread Dave Angel
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

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread Terry Reedy
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

Re: strange behavor....

2010-11-13 Thread Chris Rebert
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) >

Re: strange behavor....

2010-11-13 Thread Mark Wooding
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

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
I understand it now. Thanks for the responses. -- http://mail.python.org/mailman/listinfo/python-list

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread Ben James
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

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread dmitrey
Well, I think I have found an appropriate solution. Regards, D. -- http://mail.python.org/mailman/listinfo/python-list

namespace issue, Python vs numpy min/max problem

2010-11-13 Thread dmitrey
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 =

Re: Is it possible to break a string literal into multiple lines?

2010-11-13 Thread Zeynel
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

Question on Django and Django Book

2010-11-13 Thread John Posner
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

Re: strange behavor....

2010-11-13 Thread Terry Reedy
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.

Re: IDLE debugger questions

2010-11-13 Thread cbr...@cbrownsystems.com
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,

Re: Is it possible to break a string literal into multiple lines?

2010-11-13 Thread Tim Chase
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

Re: Is it possible to break a string literal into multiple lines?

2010-11-13 Thread MRAB
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

Re: scipy code runs in empty directory, not another

2010-11-13 Thread Terry Reedy
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

Is it possible to break a string literal into multiple lines?

2010-11-13 Thread Zeynel
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:

regenerating unicodedata for py2.7 using py3 makeunicodedata.py?

2010-11-13 Thread Vlastimil Brom
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

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Tim Harig
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

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread MRAB
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

sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
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

Re: scipy code runs in empty directory, not another

2010-11-13 Thread Dave Angel
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

Re: strange behavor....

2010-11-13 Thread Mark Wooding
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

Re: drawing with the mouse with turtle...solved?

2010-11-13 Thread Brian Blais
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

Some Machine Learning related questions

2010-11-13 Thread joy99
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

Re: [Python] scipy code runs in empty directory, not another

2010-11-13 Thread Benjamin Kaplan
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

Re: scipy code runs in empty directory, not another

2010-11-13 Thread Diez B. Roggisch
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

Re: strange behavor....

2010-11-13 Thread Diez B. Roggisch
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

Re: [Python] scipy code runs in empty directory, not another

2010-11-13 Thread Chris Gonnerman
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

scipy code runs in empty directory, not another

2010-11-13 Thread Beliavsky
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

Re: strange behavor....

2010-11-13 Thread alex23
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

strange behavor....

2010-11-13 Thread Tracubik
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

Re: Is a 32-bit build faster than a 64-bit build

2010-11-13 Thread Antoine Pitrou
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

Re: drawing with the mouse with turtle

2010-11-13 Thread Brian Blais
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...

2010-11-13 Thread naughty girl
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

Re: IDLE debugger questions

2010-11-13 Thread Ned Deily
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

hello

2010-11-13 Thread sms
http://infoukhotels.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list