Re: difflib-like library supporting moved blocks detection?

2011-07-13 Thread Chris Torek
In article Vlastimil Brom wrote: >I'd like to ask about the availability of a text diff library, like >difflib, which would support the detection of moved text blocks. If you allow arbitrary moves, the "minimal edit distance" problem (string-to-string edit) becomes substantially harder. If you

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Steven D'Aprano
On Thu, 14 Jul 2011 01:32 pm Gregory Ewing wrote: > Anthony Kong wrote: > >> So I have picked this topic for one of my presentation. It is because >> functional programming technique is one of my favorite in my bag of >> python trick. > > I'm not sure it's a good idea to emphasise functional >

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Gregory Ewing
Anthony Kong wrote: So I have picked this topic for one of my presentation. It is because functional programming technique is one of my favorite in my bag of python trick. I'm not sure it's a good idea to emphasise functional programming too much. Python doesn't really lend itself to a heavi

Re: Lisp refactoring puzzle

2011-07-13 Thread Gregory Ewing
Teemu Likonen wrote: Please don't forget that the whole point of Lisps' (f x) syntax is that code is also Lisp data. It's possible to design other syntaxes that have a similar property. Prolog, for example -- a Prolog program is expressed in terms of Prolog data structures, yet it manages to h

ANN: Urwid 0.9.9.2 - Console UI Library

2011-07-13 Thread Ian Ward
Announcing Urwid 0.9.9.2 Urwid home page: http://excess.org/urwid/ Screen shots: http://excess.org/urwid/examples.html Tarball: http://excess.org/urwid/urwid-0.9.9.2.tar.gz About this release: === This release is *not* the big, exciting, wow-look

Re: should i install python image library by myself?

2011-07-13 Thread MRAB
On 14/07/2011 01:18, think wrote: when i type import image in the python interactive command, i am surprised to find that it does not work. the details are as follows: >>> import image Traceback (most recent call last): File "", line 1, in ? ImportError: No module named image i wonder the image

Re: should i install python image library by myself?

2011-07-13 Thread Chris Rebert
On Wed, Jul 13, 2011 at 5:18 PM, think wrote: > when i type import image in the python interactive command, i am surprised > to find that it does not work. the details are as follows: What led you to expect that exact command would work in the first place??  import image > Traceback (most re

Re: PyCon Australia 2011: Schedule Announced

2011-07-13 Thread MRAB
On 14/07/2011 00:24, Ryan Kelly wrote: [snip] Ah! I see you have the machine that goes "BING"! (Graeme Cross) Surely it goes "PING"! -- http://mail.python.org/mailman/listinfo/python-list

Re: Lisp refactoring puzzle

2011-07-13 Thread William Clifford
Neil Cerutti writes: > On 2011-07-12, Petter Gustad wrote: >> Xah Lee writes: >> >>> it's funny, in all these supposedly modern high-level langs, they >>> don't provide even simple list manipulation functions such as union, >>> intersection, and the like. Not in perl, not in python, not in lisp

should i install python image library by myself?

2011-07-13 Thread think
when i type import image in the python interactive command, i am surprised to find that it does not work. the details are as follows: >>> import image Traceback (most recent call last): File "", line 1, in ? ImportError: No module named image i wonder the image library should be a buildin modu

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread rantingrick
On Jul 13, 4:40 pm, Chris Angelico wrote: > Having not known the original, I can't properly appreciate the parody, It's only a click away Chris... here let me youtube that for you... http://www.youtube.com/watch?v=4AKbUm8GrbM http://www.youtube.com/watch?v=SHhrZgojY1Q http://www.youtube.com/

PyCon Australia 2011: Schedule Announced

2011-07-13 Thread Ryan Kelly
Hi Everyone, The official schedule for PyCon Australia 2011 has been announced! This year's conference will feature 3 fantastic keynotes, 7 introductory classroom sessions, and 26 presentations on topics as diverse as web programming, benchmarking, social issues and API design. PyCon Australia

Re: I don't know list, I not good at list.

2011-07-13 Thread MRAB
> I've been beating my head against the desk trying to figure out a > method to accomplish this: > > Take a list (this example is 5 items, It could be 150 or more - i.e. > it's variable length depending on the city/local calling zones) > > The first 6 digits of phone numbers(NPA/NXX) in a local ca

Re: I don't know list, I not good at list.

2011-07-13 Thread Emile van Sebille
On 7/13/2011 2:13 PM Ellerbee, Edward said... I've been beating my head against the desk trying to figure out a method to accomplish this: #- My intent is to have the end data come out (from the example list above) in the forma

Re: What Programing Language are the Largest Website Written In?

2011-07-13 Thread Anton Fonarev
2011/7/12 Xah Lee : >23 yandex.ru (Russian) ◇ ? > As far as I know, the site is written in Perl. However, they are using lots of python in their products and for internal use. Anton. -- http://mail.python.org/mailman/listinfo/python-list

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread Chris Angelico
On Thu, Jul 14, 2011 at 5:31 AM, John Keisling wrote: > I very much appreciate that, coming from someone who clearly values > well-written poetry and lyrics as much as I do! I double majored in > math and English, and I always liked structured poetry. It's very > important to match not only the sy

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
On Jul 13, 5:19 pm, John Gordon wrote: > In <0730c5fb-3b65-45ce-9cc5-69d639f48...@g2g2000vbl.googlegroups.com> > Adeoluwa Odein writes: > > > if you define the function in the execute() method, it works (as seen > > on the page).  But this is a stored procedure already residing on the > > DB.  A

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
On Jul 13, 5:19 pm, John Gordon wrote: > In <0730c5fb-3b65-45ce-9cc5-69d639f48...@g2g2000vbl.googlegroups.com> > Adeoluwa Odein writes: > > > if you define the function in the execute() method, it works (as seen > > on the page).  But this is a stored procedure already residing on the > > DB.  A

Re: losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Marco Nawijn
On Jul 13, 10:22 pm, Neil Berg wrote: > Hello all, > > I am having an issue with my attempts to accurately filter some data from a > CSV file I am importing.  I have attached both a sample of the CSV data and > my script.   > > The attached CSV file contains two rows and 27 columns of data.  The

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread John Gordon
In <0730c5fb-3b65-45ce-9cc5-69d639f48...@g2g2000vbl.googlegroups.com> Adeoluwa Odein writes: > if you define the function in the execute() method, it works (as seen > on the page). But this is a stored procedure already residing on the > DB. A function/procedure outside of a package, actually

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Terry Reedy
On 7/13/2011 4:33 PM, Adeoluwa Odein wrote: The same error. The sample were found on the following site --I copied exactly what is written there: 1. http://www.jython.org/archive/21/docs/zxjdbc.html The jython-users mailing list might be a better place to ask your question. Most people here a

Re: losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Neil Berg
Ethan, Thank you for this tip- you are correct that I saved the data as rich text. I remade the files in VI instead of TextEdit, which allowed me to write a true csv file and the script works as expected now. Thanks again, Neil On Jul 13, 2011, at 2:17 PM, Ethan Furman wrote: > Neil Berg w

I don't know list, I not good at list.

2011-07-13 Thread Ellerbee, Edward
I've been beating my head against the desk trying to figure out a method to accomplish this: Take a list (this example is 5 items, It could be 150 or more - i.e. it's variable length depending on the city/local calling zones) The first 6 digits of phone numbers(NPA/NXX) in a local calling area. I

difflib-like library supporting moved blocks detection?

2011-07-13 Thread Vlastimil Brom
Hi all, I'd like to ask about the availability of a text diff library, like difflib, which would support the detection of moved text blocks. Currently I am almost happy with the results of difflib.SequenceMatcher in my app (comparing different versions of natural language texts), however the only d

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
On Jul 13, 5:02 pm, John Gordon wrote: > In <86b9e6f2-e18e-41b9-92a2-86ea8d7b4...@f35g2000vbr.googlegroups.com> > Adeoluwa Odein writes: > > > The same error. The sample were found on the following site --I copied > > exactly what is written there: > > 1.http://www.jython.org/archive/21/docs/zxj

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread John Gordon
In <86b9e6f2-e18e-41b9-92a2-86ea8d7b4...@f35g2000vbr.googlegroups.com> Adeoluwa Odein writes: > The same error. The sample were found on the following site --I copied > exactly what is written there: > 1. http://www.jython.org/archive/21/docs/zxjdbc.html Ah, I see. You're supposed to call c.fe

Re: losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Ethan Furman
Neil Berg wrote: Hello all, I am having an issue with my attempts to accurately filter some data from a CSV file I am importing. I have attached both a sample of the CSV data and my script. The attached CSV file contains two rows and 27 columns of data. The first column is the station ID "B

Re: losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Marco Nawijn
On Jul 13, 10:22 pm, Neil Berg wrote: > Hello all, > > I am having an issue with my attempts to accurately filter some data from a > CSV file I am importing.  I have attached both a sample of the CSV data and > my script.   > > The attached CSV file contains two rows and 27 columns of data.  The

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
On Jul 13, 4:09 pm, John Gordon wrote: > > It's taking an OUT parameter.. I'm just following the examples as > > documented by zxJDBC.  How can I fix it? > > I suspect the example you're looking at was for a procedure which has no > arguments, so in that case it would make sense to pass an empty p

losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Neil Berg
Hello all, I am having an issue with my attempts to accurately filter some data from a CSV file I am importing. I have attached both a sample of the CSV data and my script. The attached CSV file contains two rows and 27 columns of data. The first column is the station ID "BLS", the second

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread John Gordon
> It's taking an OUT parameter.. I'm just following the examples as > documented by zxJDBC. How can I fix it? I suspect the example you're looking at was for a procedure which has no arguments, so in that case it would make sense to pass an empty parameter list. I haven't worked with OUT paramet

Re: What Programing Language are the Largest Website Written In?

2011-07-13 Thread ccc31807
On Jul 12, 7:54 am, Xah Lee wrote: > maybe this will be of interest. > > 〈What Programing Language Are the Largest Website Written > In?〉http://xahlee.org/comp/website_lang_popularity.html About five years ago, I did some pretty extensive research, and concluded that the biggest sites were writt

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread John Keisling
On Jul 13, 12:32 pm, rantingrick wrote: > On Jul 13, 10:14 am, rusi wrote: > > > Well written, funny, educative. Thanks > > But whats 'the modeling and sym guy' reference? > > I believe it's "esoteric". I actually had myself in mind, with tongue in cheek, of course! I work in modeling and simula

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread John Keisling
On Jul 13, 6:53 am, Chris Angelico wrote: > On Wed, Jul 13, 2011 at 10:46 PM, bruno.desthuilli...@gmail.com > > wrote: > > On Jul 12, 6:40 pm, John Keisling wrote: > >> After too much time coding Python scripts and reading Mark Lutz's > >> Python books, I was inspired to write the following lyri

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread John Keisling
On Jul 12, 7:02 pm, Steven D'Aprano wrote: > John Keisling wrote: > > After too much time coding Python scripts and reading Mark Lutz's > > Python books, I was inspired to write the following lyrics. For those > > too young to remember, the tune is that of "Pinball Wizard," by The > > Who. May it

Re: Installing PyPy alongside Python 2.7 on Windows?

2011-07-13 Thread Ben Sizer
On Jul 13, 7:29 am, cjrh wrote: > You can just extract the windows pypy 1.5 distribution to any folder and run > "pypy.exe" from there as if it was called "python.exe".  This is how I have > been using it.  In fact, pypy has been the default python for my portable > eclipse for a good while now

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
On Jul 13, 2:26 pm, John Gordon wrote: > In > Adeoluwa Odein writes: > > > The actual jython/python call is: > > p =3D [None] > > c.callproc('c2_pkg.RS22', p); > > I used a placeholder initially; now that you have the SQL code, there > > it is.  It essentially invokes the stored procedure, and

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread rantingrick
On Jul 13, 10:14 am, rusi wrote: > Well written, funny, educative. Thanks > But whats 'the modeling and sym guy' reference? I believe it's "esoteric". -- http://mail.python.org/mailman/listinfo/python-list

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
On Jul 13, 2:26 pm, John Gordon wrote: > In > Adeoluwa Odein writes: > > > The actual jython/python call is: It's taking an OUT parameter.. I'm just following the examples as documented by zxJDBC. How can I fix it? > > p =3D [None] > > c.callproc('c2_pkg.RS22', p); > > I used a placeholder

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread John Gordon
In Adeoluwa Odein writes: > The actual jython/python call is: > p =3D [None] > c.callproc('c2_pkg.RS22', p); > I used a placeholder initially; now that you have the SQL code, there > it is. It essentially invokes the stored procedure, and it should > return the OUT variable p, with some valu

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
The actual jython/python call is: p = [None] c.callproc('c2_pkg.RS22', p); I used a placeholder initially; now that you have the SQL code, there it is. It essentially invokes the stored procedure, and it should return the OUT variable p, with some value. It doesn't have to be a cursor fetch; ev

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread John Gordon
In <9e937261-d05d-477a-90d2-a690e85e1...@h17g2000yqn.googlegroups.com> Adeoluwa Odein writes: > Thanks, your assistance will be greatly appreciated on the right way > forward. See the Stored Procedure Below -very simple: I don't see a procedure named "pkg1_returns", which is the prodecure call

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
Thanks, your assistance will be greatly appreciated on the right way forward. See the Stored Procedure Below -very simple: create or replace package c2_pkg as procedure openc; procedure closec; procedure RS22(v out varchar); end; / create or replace package body c2_pkg as

Re: python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread John Gordon
In <01efb6ac-deaa-4bdb-8b2d-b603bddde...@n5g2000yqh.googlegroups.com> Adeoluwa Odein writes: > Hello > I am using the zxJDBC package with jython (similar to python), and I > am having "python error PLS-00306: wrong number or types of arguments" > error when using the "callproc()" method to execu

python error PLS-00306: wrong number or types of arguments in

2011-07-13 Thread Adeoluwa Odein
Hello I am using the zxJDBC package with jython (similar to python), and I am having "python error PLS-00306: wrong number or types of arguments" error when using the "callproc()" method to execute a stored procedure. The Oracle stored procedure takes a single OUT varchar2 parameter. My code is a

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Thorsten Kampe
* Grant Edwards (Wed, 13 Jul 2011 13:03:22 + (UTC)) > On 2011-07-13, Thorsten Kampe wrote: > > >> and that that block is to be considered in relation to what was just > >> said, before the colon. > > > > The indentation makes it abundantly clear to the human reader that > > that indented bloc

Re: sys.tracebacklimit

2011-07-13 Thread Chris Rebert
On Wed, Jul 13, 2011 at 6:42 AM, Vlad Didenko wrote: > Colleagues, > Per documentation > at http://docs.python.org/py3k/library/sys.html#sys.tracebacklimit : >      When [sys.tracebacklimit] set to 0 or less, all traceback information > is suppressed and only the exception type and value are print

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Ian Kelly
On Wed, Jul 13, 2011 at 10:29 AM, Terry Reedy wrote: > The iteration protocol and the notion of iteraables as the common data > exchange format, with associated notions of iterators, generator functions, > and generators, are important features of Python. Not really functional > style, I guess. X

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Terry Reedy
On 7/13/2011 10:19 AM, Anthony Kong wrote: One of the main difference is that pypy supports only R-Python, which stands for 'Restricted Python". Not true. PyPy is *written* in rpython. It runs standard Python. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Terry Reedy
On 7/13/2011 8:39 AM, Anthony Kong wrote: I am giving a few presentations on python to my colleagues who are mainly java developers and starting to pick up python at work. So I have picked this topic for one of my presentation. It is because functional programming technique is one of my favo

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Dan Stromberg
On Wed, Jul 13, 2011 at 8:18 AM, Ian Kelly wrote: > On Wed, Jul 13, 2011 at 8:19 AM, Anthony Kong > wrote: > > One of the main difference is that pypy supports only R-Python, which > stands > > for 'Restricted Python". > > It is a subset of C-python language. > > This is wrong. The PyPy *interp

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Terry Reedy
On 7/13/2011 2:26 AM, alex23 wrote: Thomas Jollans wrote: Coincidentally, Guido wrote this blog post just last week, without which I'd be just as much at a loss as you: http://python-history.blogspot.com/2011/07/karin-dewar-indentation-an... It's also part of the Python FAQ: http://docs.pyt

Re: How do you get the value you entered using the Entry widget in Tkinter?

2011-07-13 Thread Vlastimil Brom
2011/7/13 Benji Benjokal : > What is the simplist way to get the value you entered from the Entry widget > in  Tkinter? > Thanks Benji > -- > http://mail.python.org/mailman/listinfo/python-list > > Hi, you can use the get() method of that widget; see e.g. http://effbot.org/tkinterbook/entry.htm fo

Re: How do you get the value you entered using the Entry widget in Tkinter?

2011-07-13 Thread Godson Gera
On Wed, Jul 13, 2011 at 1:31 PM, Benji Benjokal wrote: > What is the simplist way to get the value you entered from the Entry widget > in Tkinter? > Have you tried the get method of Entry widget ? Here is a crude example from Tkinter import* r = Tk() e = Entry(r) e.pack() def printData():

Re: Code hosting services

2011-07-13 Thread Eric Snow
On Wed, Jul 13, 2011 at 4:23 AM, Adam Tauno Williams wrote: > On Wed, 2011-07-13 at 01:54 -0500, Andrew Berg wrote: >> What can you guys recommend? > > SourceForge;  it is a comprehensive platform [in addition to being an > Open Source platform: Allura].  It is a much improved platform over > seve

Re: Python Contribution

2011-07-13 Thread Eric Snow
On Wed, Jul 13, 2011 at 4:31 AM, Shankar Raman wrote: >  Hello everyone, >      My name is Shankarraman and I have been working with Python for past 5 > months.I find it really interesting and cool and would like to know > different ways I can contribute to it. Though I went through the bug lists,

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Anthony Kong
I stand corrected. Thanks Ian Cheers On Thu, Jul 14, 2011 at 1:18 AM, Ian Kelly wrote: > On Wed, Jul 13, 2011 at 8:19 AM, Anthony Kong > wrote: > > One of the main difference is that pypy supports only R-Python, which > stands > > for 'Restricted Python". > > It is a subset of C-python langua

Re: Lisp refactoring puzzle

2011-07-13 Thread Teemu Likonen
* 2011-07-13T10:34:41-04:00 * Terry Reedy wrote: > On 7/13/2011 4:29 AM, Teemu Likonen wrote: >> Please don't forget that the whole point of Lisps' (f x) syntax is >> that code is also Lisp data. > > Thank you for clarifying that. Some Lispers appear to promote the > simple, uniform syntax' as a e

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread rusi
On Jul 13, 5:53 pm, Chris Angelico wrote: > On Wed, Jul 13, 2011 at 10:46 PM, bruno.desthuilli...@gmail.com > > wrote: > > On Jul 12, 6:40 pm, John Keisling wrote: > >> After too much time coding Python scripts and reading Mark Lutz's > >> Python books, I was inspired to write the following lyri

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Ian Kelly
On Wed, Jul 13, 2011 at 8:19 AM, Anthony Kong wrote: > One of the main difference is that pypy supports only R-Python, which stands > for 'Restricted Python". > It is a subset of C-python language. This is wrong. The PyPy *interpreter* is written in RPython. At the application level, PyPy suppo

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-13 Thread rusi
On Jul 13, 5:22 am, CM wrote: > On Jul 12, 5:18 pm, rantingrick wrote: > > Kevin made the argument earlier that Tkinter (and others) are so easy > > to use that they render needing a GUI builder useless -- and he is > > correct! But did you know that there are GUI libraries EVEN more > > highly

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread sturlamolden
On 13 Jul, 16:06, ArrC wrote: > And they also talked about the lack of type check in python. > > So, how does it help (strongly typed) in debugging? Python is strongly typed. There are no static type checks in Python. Type checks are done at runtime. Dynamic typing does not mean that Python is

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread ArrC
Thanks Chris, That was a nice brief explanation,but i got the point. -- http://mail.python.org/mailman/listinfo/python-list

Odd caracteres

2011-07-13 Thread remi.druilhe
Hello everyone, I am using a Python script to get data from a BlueTooth device but it seems there is some problem when reading from the interface on Linux. I have a three devices (PowerSpy) that measure energy from an outlet (I plug a computer on a PowerSpy that I plug on an outlet). This device

Re: Lisp refactoring puzzle

2011-07-13 Thread Terry Reedy
On 7/13/2011 4:29 AM, Teemu Likonen wrote: * 2001-01-01T14:11:11-05:00 * Terry Reedy wrote: As a side note, the same principle of expressions matching operations in symmetry suggest that majority of up are quite sensible and not dumb idiots for preferring 'f(x)' to the '(f x)' of Lisp. In a fun

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Chris Angelico
On Thu, Jul 14, 2011 at 12:06 AM, ArrC wrote: > So, i want to know what are the core diff btw PyPy and Python ? Python is a language; PyPy is one implementation of that language. The "classic" implementation of Python is CPython, not to be confused with Cython; there are a few others as well. If

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Anthony Kong
One of the main difference is that pypy supports only R-Python, which stands for 'Restricted Python". It is a subset of C-python language. See here for more info: http://codespeak.net/pypy/dist/pypy/doc/coding-guide.html#rpython-definition-not Cheers On Thu, Jul 14, 2011 at 12:06 AM, ArrC wrot

What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread ArrC
Hey guys,i am a python newbie, i just read a qustion on quora where it said that quora quys used pypy (and pylon) to develop quora. So, i want to know what are the core diff btw PyPy and Python ? And they also talked about the lack of type check in python. So, how does it help (strongly typed)

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Anthony Kong
Hi, James, > > You might also want to cover gotchas like Python's references. > Not sure what it means in the context of functional programming. If you can give some code to demonstrate, it will be great. Cheers -- Tony Kong *blog:* www.ahwkong.com Don’t EVER make the mistake that you can de

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread J Kenneth King
Anthony Kong writes: > (My post did not appear in the mailing list, so this is my second try. > Apology if it ends up posted twice) > > Hi, all, > > If you have read my previous posts to the group, you probably have some idea > why I asked this question. > > I am giving a few presentations on p

sys.tracebacklimit

2011-07-13 Thread Vlad Didenko
Colleagues, Per documentation at http://docs.python.org/py3k/library/sys.html#sys.tracebacklimit : When [sys.tracebacklimit] set to 0 or less, all traceback information is suppressed and only the exception type and value are printed So, I expect to be able to have a program like: imp

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread gene heskett
On Wednesday, July 13, 2011 09:38:26 AM Anthony Kong did opine: > (My post did not appear in the mailing list, so this is my second try. > Apology if it ends up posted twice) > Actually, it did, but gmail, in its infinite wisdom, thinks an echo of your post to a mailing list is a duplicate, and

XXX HOT PHOTOS & VIDEOS

2011-07-13 Thread SUPREME
FOR GOOD JOBS SITES TO YOU http://goodjobssites.blogspot.com/ FOR HOT PHOTO&VIDEOS TAMANNA HOT SEXY PHOTOS & VIDEOS http://southactresstou.blogspot.com/2011/07/tamanna-wallpapers.html PRANI

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Grant Edwards
On 2011-07-13, Steven D'Aprano wrote: > Thorsten Kampe wrote: > >> * Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200) >>> Basically, it looks better, and is more readable. >> >> People tend to overlook the colon for the same reason they tend to >> forget to set the colon in the first place: >> a)

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Chris Angelico
On Wed, Jul 13, 2011 at 11:03 PM, Grant Edwards wrote: > You would think so, but human readers like redundancy. > One of the benefits of redundancy is error-trapping. If you see a list of numbers like this: 40 14 24 56 48 12 60 16 = 269 then you know the result can

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Grant Edwards
On 2011-07-13, Thorsten Kampe wrote: >> and that that block is to be considered in relation to what was just >> said, before the colon. > > The indentation makes it abundantly clear to the human reader that > that indented block is to be considered in relation to what was just > said, before the

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread Chris Angelico
On Wed, Jul 13, 2011 at 10:46 PM, bruno.desthuilli...@gmail.com wrote: > On Jul 12, 6:40 pm, John Keisling wrote: >> After too much time coding Python scripts and reading Mark Lutz's >> Python books, I was inspired to write the following lyrics. > > Brillant. This deserves to become a cpython eas

Re: "Python Wizard," with apologies to The Who

2011-07-13 Thread bruno.desthuilli...@gmail.com
On Jul 12, 6:40 pm, John Keisling wrote: > After too much time coding Python scripts and reading Mark Lutz's > Python books, I was inspired to write the following lyrics. Brillant. This deserves to become a cpython easter egg along with import this or from __future__ import braces. -- http://mai

Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Anthony Kong
(My post did not appear in the mailing list, so this is my second try. Apology if it ends up posted twice) Hi, all, If you have read my previous posts to the group, you probably have some idea why I asked this question. I am giving a few presentations on python to my colleagues who are mainly

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Tim Chase
On 07/13/2011 06:26 AM, Thorsten Kampe wrote: Source code is (unlike normal text) not read line by line. So you (at least I) don't have to backtrack from line 2 to line 1 because you see them both at the same time. $a You mean there are people who don't use "ed" to write their code? ;-) -tkc .

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Chris Angelico
On Wed, Jul 13, 2011 at 9:07 PM, Steven D'Aprano wrote: > The colon indicates that the sentence has more to follow: I think of it as a > pointer. It doesn't finish the thought, like a full stop, nor is it a mere > pause, like a comma or semi-colon. > >    An indented block on its own is surprising

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Thorsten Kampe
* Steven D'Aprano (Wed, 13 Jul 2011 21:07:17 +1000) > Thorsten Kampe wrote: > > * Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200) > >> Basically, it looks better, and is more readable. > > > > People tend to overlook the colon for the same reason they tend to > > forget to set the colon in the fi

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Steven D'Aprano
Thorsten Kampe wrote: > * Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200) >> Basically, it looks better, and is more readable. > > People tend to overlook the colon for the same reason they tend to > forget to set the colon in the first place: > a) it's a very weak marker in comparison to indent

Re: Code hosting services

2011-07-13 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.13 05:34 AM, Thomas Jollans wrote: > Okay, fair enough. Question is, does it integrate with the bug > tracker? It does for Google Plus. In the olden days when Mercurial > was young, Savannah, IIRC, bolted on Mercurial hosting that didn'

Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Anthony Kong
Hi, all, If you have read my previous posts to the group, you probably have some idea why I asked this question. I am giving a few presentations on python to my colleagues who are mainly java developers and starting to pick up python at work. So I have picked this topic for one of my presentati

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Anthony Kong
Thanks, mate! I was writing that up really late at night. Somehow I changed term to semi-colon half way through, Cheers On Wed, Jul 13, 2011 at 5:36 PM, Thorsten Kampe wrote: > * Dave Angel (Mon, 11 Jul 2011 10:36:48 -0400) > > On 01/-10/-28163 02:59 PM, Anthony Kong wrote: > > > My immediate re

Re: Code hosting services

2011-07-13 Thread Thomas Jollans
On 07/13/2011 12:34 PM, Thomas Jollans wrote: > It does for Google Plus. Code. Code, not plus. Not concentrating. Argh. -- http://mail.python.org/mailman/listinfo/python-list

Re: Code hosting services

2011-07-13 Thread Thomas Jollans
On 07/13/2011 12:23 PM, Andrew Berg wrote: > On 2011.07.13 05:05 AM, Thomas Jollans wrote: >> There are a load of older sites, SourceForge, Savannah, Gna!, etc >> etc etc, but they don't support VCS other than CVS/Svn for the most >> part. > Many do support Mercurial. In fact, I have a Mercurial re

Python Contribution

2011-07-13 Thread Shankar Raman
Hello everyone, My name is Shankarraman and I have been working with Python for past 5 months.I find it really interesting and cool and would like to know different ways I can contribute to it. Though I went through the bug lists, I was wondering if I could contribute to Python in other ways.

Re: Code hosting services

2011-07-13 Thread Adam Tauno Williams
On Wed, 2011-07-13 at 01:54 -0500, Andrew Berg wrote: > I know this isn't specific to Python, but it is somewhat on topic. Way > back when I had a simple project, SourceForge was by far the most > prominent place to host (and it still is, though to a lesser extent > now). SourceForge is still an op

Re: Code hosting services

2011-07-13 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.13 05:05 AM, Thomas Jollans wrote: > There are a load of older sites, SourceForge, Savannah, Gna!, etc > etc etc, but they don't support VCS other than CVS/Svn for the most > part. Many do support Mercurial. In fact, I have a Mercurial

Re: Code hosting services

2011-07-13 Thread Thomas Jollans
On 07/13/2011 08:54 AM, Andrew Berg wrote: > I know this isn't specific to Python, but it is somewhat on topic. Way > back when I had a simple project, SourceForge was by far the most > prominent place to host (and it still is, though to a lesser extent > now). SourceForge is still an option for me

Re: Code hosting services

2011-07-13 Thread Cameron Simpson
On 13Jul2011 01:54, Andrew Berg wrote: | I know this isn't specific to Python, but it is somewhat on topic. Way | back when I had a simple project, SourceForge was by far the most | prominent place to host (and it still is, though to a lesser extent | now). SourceForge is still an option for me, b

Re: Lisp refactoring puzzle

2011-07-13 Thread gene heskett
On Wednesday, July 13, 2011 05:34:23 AM Terry Reedy did opine: > On 7/12/2011 2:23 PM, gene heskett wrote: > > Now, I hate to mention it Terry, but your clock seems to be about 126 > > months behind the rest of the world. > > Please do not hate to be helpful. It was a bad malfunction perhaps due

Re: Lisp refactoring puzzle

2011-07-13 Thread Teemu Likonen
* 2001-01-01T14:11:11-05:00 * Terry Reedy wrote: > As a side note, the same principle of expressions matching operations > in symmetry suggest that majority of up are quite sensible and not > dumb idiots for preferring 'f(x)' to the '(f x)' of Lisp. In a > function call, the function has a differe

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Thorsten Kampe
* Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200) > Basically, it looks better, and is more readable. People tend to overlook the colon for the same reason they tend to forget to set the colon in the first place: a) it's a very weak marker in comparison to indentation and b) it looks like doubl

How do you get the value you entered using the Entry widget in Tkinter?

2011-07-13 Thread Benji Benjokal
What is the simplist way to get the value you entered from the Entry widget in Tkinter? Thanks Benji -- http://mail.python.org/mailman/listinfo/python-list

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Thorsten Kampe
* Dave Angel (Mon, 11 Jul 2011 10:36:48 -0400) > On 01/-10/-28163 02:59 PM, Anthony Kong wrote: > > My immediate response is: it allows us to fit statements into one > > line. e.g. > > if a == 1: print a > > > You're confusing the colon with the semi-colon. If you want two > statements on the same

Re: Code hosting services

2011-07-13 Thread Thomas Rachel
Am 13.07.2011 08:54 schrieb Andrew Berg: BTW, I'll likely be sticking with Mercurial for revision control. TortoiseHg is a wonderful tool set and I managed to get MercurialEclipse working well. In this case, I would recommend bitbucket. Thomas -- http://mail.python.org/mailman/listinfo/pytho