Re: JSON translated into SQL by python

2013-11-22 Thread Chris Angelico
On Sat, Nov 23, 2013 at 4:54 PM, Aaron G. wrote: > query = "INSERT INTO TABLE temp2 (enterprise) VALUES("+ str(curObservation) > +");" You just put the contents of curObservation into the query, as SQL code. Is that really what you wanted to do? Most likely, you should be using a parameterized q

Re: select.select()

2013-11-22 Thread Chris Angelico
On Sat, Nov 23, 2013 at 1:15 PM, Roy Smith wrote: > (*) I'm not sure if real MUDs are programmed this way, but it's a > plausible architecture. For simplicity sake, I'm assuming a > single-threaded server. Yeah, they certainly can. That's effectively the way that I programmed the MUD kernel that

Re: python for everyday tasks

2013-11-22 Thread Chris Angelico
On Sat, Nov 23, 2013 at 5:28 PM, Dan Stromberg wrote: > Teach that python has builtins, not keywords - IOW, you can redefine list or > int, but you probably shouldn't. pylint helps with this. Well, Python has keywords, but uses builtins for many things that other languages use keywords (or magic

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Ian Kelly
On Fri, Nov 22, 2013 at 7:18 PM, Steven D'Aprano wrote: > I'm not an expert on Indian English, but I understand that in that > dialect it is grammatically correct to say "the codes", just as in UK and > US English it is grammatically correct to say "the programs". I wouldn't necessarily even cons

Re: python for everyday tasks

2013-11-22 Thread Dan Stromberg
I almost forgot: Talk about pypi and pip (or similar) too. On Fri, Nov 22, 2013 at 3:59 PM, wrote: > >> Hello, >> >> I'm about held a short course with the title indicated in the subjects. >> The students are very experienced programmers of our company, with deep >> knoledge on C, C++, C#, Perl a

Re: Recursive generator for combinations of a multiset?

2013-11-22 Thread Dan Stromberg
On Fri, Nov 22, 2013 at 4:58 PM, John O'Hagan wrote: > On Thu, 21 Nov 2013 12:59:26 -0800 > Dan Stromberg wrote: > > > On Wed, Nov 20, 2013 at 10:46 PM, John O'Hagan > > wrote: > > > > > > > > Short story: the subject says it all, so if you have an answer > > > already, fire away. Below is the lo

Re: python for everyday tasks

2013-11-22 Thread Dan Stromberg
Teach that Python emphasizes readability. Perhaps talk about bugs / lines_of_code being roughly a constant. Then talk about the fact that Python generally takes fewer lines of code to express the same thing. This implies fewer bugs for many projects. Teach the fundamental types, with difference

JSON translated into SQL by python

2013-11-22 Thread Aaron G.
I am new to programming python for JSON to SQL and I was wondering why this does not work. All the values for entering the DB are correct. The EnterpriseValue data is not entering the database. #collect data from JSON source at Yahoo url = ["db", "http://y.ahoo.it/wlB89";] #check all sites che

Re: select.select()

2013-11-22 Thread Bhanu Karthik
On Friday, 22 November 2013 18:15:10 UTC-8, Roy Smith wrote: > In article , > > Bhanu Karthik wrote: > > > > > please help me.. what does the following line do? > > > > > > read_sockets,write_sockets,error_sockets = > > > select.select(CONNECTION_LIST,[],[]) > > > > This is a little

Re: select.select()

2013-11-22 Thread Bhanu Karthik
On Friday, 22 November 2013 18:29:12 UTC-8, Steven D'Aprano wrote: > On Fri, 22 Nov 2013 17:42:07 -0800, Bhanu Karthik wrote: > > > > > please help me.. what does the following line do? > > > > > > read_sockets,write_sockets,error_sockets = > > > select.select(CONNECTION_LIST,[],[]) > > >

Re: Recursive generator for combinations of a multiset?

2013-11-22 Thread MRAB
On 23/11/2013 00:58, John O'Hagan wrote: On Thu, 21 Nov 2013 12:59:26 -0800 Dan Stromberg wrote: On Wed, Nov 20, 2013 at 10:46 PM, John O'Hagan wrote: > > Short story: the subject says it all, so if you have an answer > already, fire away. Below is the long story of what I'm using it > for, a

Re: python for everyday tasks

2013-11-22 Thread Ned Batchelder
On Friday, November 22, 2013 6:59:19 PM UTC-5, koch...@gmail.com wrote: > Hello, > > I'm about held a short course with the title indicated in the subjects. The > students are very experienced programmers of our company, with deep knoledge > on C, C++, C#, Perl and similar languages, but very li

Re: select.select()

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 17:42:07 -0800, Bhanu Karthik wrote: > please help me.. what does the following line do? > > read_sockets,write_sockets,error_sockets = > select.select(CONNECTION_LIST,[],[]) The select.select function takes three arguments (plus an optional fourth): select.select(read_list

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Dave Angel
Try posting in text, as some of us see nothing in your message. This is a text newsgroup, not html. Also make a subject line that summarizes your issue, not the urgency. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Steven D'Aprano
On Sat, 23 Nov 2013 01:55:44 +, Denis McMahon wrote: > On Fri, 22 Nov 2013 18:22:29 +0530, Bharath Kummar wrote: >> Could you PLEASE provide me with the codes (codes only for the asked >> queries) ? > > The codes are: > > 1) 7373a28109a7c4473a475b2137aa92d5 > 2) f2fae9a4ad5ded75e4d8ac34b90d

Re: select.select()

2013-11-22 Thread Roy Smith
In article , Bhanu Karthik wrote: > please help me.. what does the following line do? > > read_sockets,write_sockets,error_sockets = > select.select(CONNECTION_LIST,[],[]) This is a little tricky. First,read the docs at http://docs.python.org/2/library/select.html. There's a lot of complic

Re: Newbie - Trying to Help a Friend

2013-11-22 Thread Denis McMahon
On Wed, 20 Nov 2013 11:38:14 +, Duncan Booth wrote: > Denis McMahon wrote: >> 1) Find all the numbers less than n that are not divisible by a, b, or >> c. >> ask the user for x; >> assign the value 0 to some other variable i; >> while i is not greater than than x do the following [ >> if i

Re: python for everyday tasks

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 15:59:19 -0800, koch.mate wrote: > Hello, > > I'm about held a short course with the title indicated in the subjects. > The students are very experienced programmers of our company, with deep > knoledge on C, C++, C#, Perl and similar languages, but very limited, or > absolute

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Denis McMahon
On Fri, 22 Nov 2013 18:22:29 +0530, Bharath Kummar wrote: > Could you please help me with my current research ? Am implementing the > concept in python language. > My doubts are : > 1) Is it possible to Retrieve the address of a variable in python ? > 2) Is it possible to Delete the Address of

select.select()

2013-11-22 Thread Bhanu Karthik
please help me.. what does the following line do? read_sockets,write_sockets,error_sockets = select.select(CONNECTION_LIST,[],[]) -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-22 Thread Alec Taylor
Miki: I would much prefer a Python implementation. On Thu, Nov 21, 2013 at 4:07 AM, Miki Tebeka wrote: > On Wednesday, November 20, 2013 6:36:56 AM UTC-8, Alec Taylor wrote: >> Anyway, here is the link: https://github.com/rauhryan/huboard > I thought you wanted a Python bases solution. > -- > htt

Re: Periodic execution with asyncio

2013-11-22 Thread Terry Reedy
On 11/22/2013 7:00 PM, Terry Reedy wrote: On 11/22/2013 4:30 PM, Tobias M. wrote: [snip callback versions by Tobias and me] 2. How would you implement the second approach from the PEP (using a coroutine) with the same interface as my PeriodicTask above? Theoretically, by Guido's rationale,

Re: Recursive generator for combinations of a multiset?

2013-11-22 Thread John O'Hagan
On Thu, 21 Nov 2013 18:14:41 -0800 (PST) James wrote: > On Thursday, November 21, 2013 5:01:15 AM UTC-8, John O'Hagan wrote: [...] > > > On 21 November 2013 06:46, John O'Hagan > > > > > wrote: > > [...] > > > > > > def multicombs(it, r): > > > > > > result = it[:r] > > > > > >

Re: Recursive generator for combinations of a multiset?

2013-11-22 Thread John O'Hagan
On Thu, 21 Nov 2013 12:59:26 -0800 Dan Stromberg wrote: > On Wed, Nov 20, 2013 at 10:46 PM, John O'Hagan > wrote: > > > > > Short story: the subject says it all, so if you have an answer > > already, fire away. Below is the long story of what I'm using it > > for, and why I think it needs to be

find matching contiguous text

2013-11-22 Thread bruce
Hi. I have a xpath test that generates the text/html between two xpath functions, basically a chunk of HTML between two dom elements. However, it's slow. As a test, I'd like to compare the speed if I get all the HTML following a given element, and then get all the HTML preceding a given element..

Re: Periodic execution with asyncio

2013-11-22 Thread Terry Reedy
On 11/22/2013 4:30 PM, Tobias M. wrote: I am using the asyncio package (Codename 'Tulip'), which will be available in Python 3.4, for the first time. Great. New stuff, both behavior and API, needs to be 'exercised', especially by non-experts in the subject. I have no experience with async s

python for everyday tasks

2013-11-22 Thread koch . mate
Hello, I'm about held a short course with the title indicated in the subjects. The students are very experienced programmers of our company, with deep knoledge on C, C++, C#, Perl and similar languages, but very limited, or absolutely no knowledge on python. what would you teach to such a grou

Re: Why pickling (was: Traceback when using multiprocessing)

2013-11-22 Thread Chris Angelico
On Sat, Nov 23, 2013 at 3:38 AM, John Ladasky wrote: > On Thursday, November 21, 2013 8:24:05 PM UTC-8, Chris Angelico wrote: > >> Oh, that part's easy. Let's leave the multiprocessing module out of it >> for the moment; imagine you spin up two completely separate instances >> of Python. Create so

Periodic execution with asyncio

2013-11-22 Thread Tobias M.
Hello guys, I am using the asyncio package (Codename 'Tulip'), which will be available in Python 3.4, for the first time. I want the event loop to run a function periodically (e.g. every 2 seconds). PEP 3156 suggests two ways to implement such a periodic call: 1. Using a callback that resched

Re: argparse feature request

2013-11-22 Thread Robert Kern
On 2013-11-22 18:15, Neal Becker wrote: Robert Kern wrote: On 2013-11-22 16:52, Neal Becker wrote: Robert Kern wrote: On 2013-11-22 14:56, Neal Becker wrote: I use arparse all the time and find it serves my needs well. One thing I'd like to see. In the help message, I'd like to automatica

Re: How to install pip for python3 on OS X?

2013-11-22 Thread xDog Walker
On Friday 2013 November 22 12:10, Travis Griggs wrote: > (aside. I do not use GoogleGroups, but have been accused of somehow sending > email that looks like I do. Does this email look like that?) No. -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers. -- https://mail

Re: How to install pip for python3 on OS X?

2013-11-22 Thread Travis Griggs
On Nov 19, 2013, at 11:27 PM, Ned Deily wrote: > In article <6856a21c-57e8-4cdd-a9e8-5dd738c36...@gmail.com>, > Travis Griggs wrote: > >> OSX (Mavericks) has python2.7 stock installed. But I do all my own personal >> python stuff with 3.3. I just flushed my 3.3.2 install and installed the new

Re: How to install pip for python3 on OS X?

2013-11-22 Thread Travis Griggs
On Nov 20, 2013, at 6:01 AM, Mark Lawrence wrote: > On 20/11/2013 06:55, Travis Griggs wrote: >> OSX (Mavericks) has python2.7 stock installed. But I do all my own >> personal python stuff with 3.3. I just flushed my 3.3.2 install and >> installed the new 3.3.3. So I need to install pyserial aga

Re: argparse feature request

2013-11-22 Thread Neal Becker
Robert Kern wrote: > On 2013-11-22 16:52, Neal Becker wrote: >> Robert Kern wrote: >> >>> On 2013-11-22 14:56, Neal Becker wrote: I use arparse all the time and find it serves my needs well. One thing I'd like to see. In the help message, I'd like to automatically add the default

Re: Method chaining

2013-11-22 Thread Wolfgang Maier
Wolfgang Maier biologie.uni-freiburg.de> writes: > > Steven D'Aprano pearwood.info> writes: > > > # With chaining > > thing = func(MyClass().spam().eggs().cheese(), > > MyClass().aardvark(), > > OtherClass().fe().fi().fo().fum(), > > ) > > do_stuff_with(

Re: Having trouble setting up an extremely simple server...

2013-11-22 Thread Jean-Michel Pichavant
- Original Message - > Please help! I'm very > new to networking, but I've been using Python for a while now, just > recent;y getting into networking, trying to get things down. Hi, Nothing wrong with diving into the muddy waters of network programming. If you like blue lagoons like me, t

Re: argparse feature request

2013-11-22 Thread Robert Kern
On 2013-11-22 16:52, Neal Becker wrote: Robert Kern wrote: On 2013-11-22 14:56, Neal Becker wrote: I use arparse all the time and find it serves my needs well. One thing I'd like to see. In the help message, I'd like to automatically add the default values. What I'd like to see is: --siz

Re: Method chaining

2013-11-22 Thread Wolfgang Maier
Steven D'Aprano pearwood.info> writes: > # With chaining > thing = func(MyClass().spam().eggs().cheese(), > MyClass().aardvark(), > OtherClass().fe().fi().fo().fum(), > ) > do_stuff_with(thing) > > versus: > > # Without chaining > temp1 = MyClass() > temp

Re: argparse feature request

2013-11-22 Thread Neal Becker
Robert Kern wrote: > On 2013-11-22 14:56, Neal Becker wrote: >> I use arparse all the time and find it serves my needs well. One thing I'd >> like >> to see. In the help message, I'd like to automatically add the default >> values. >> >> For example, here's one of my programs: >> >> python3 te

Re: Dvalve! we called the heart of outsourcing world.

2013-11-22 Thread John Ladasky
On Friday, November 22, 2013 12:44:38 AM UTC-8, kevow...@gmail.com wrote: > You know your website doesn't work? > Do you have any contact details You're responding to a (spam!) post which is dated April 9, 2010 -- two and a half years ago. -- https://mail.python.org/mailman/listinfo/python-lis

Why pickling (was: Traceback when using multiprocessing)

2013-11-22 Thread John Ladasky
On Thursday, November 21, 2013 8:24:05 PM UTC-8, Chris Angelico wrote: > Oh, that part's easy. Let's leave the multiprocessing module out of it > for the moment; imagine you spin up two completely separate instances > of Python. Create some object in one of them; now, transfer it to the > other. H

Re: Method chaining

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 16:20:03 +0100, Peter Otten wrote: > Steven D'Aprano wrote: > >> On Fri, 22 Nov 2013 13:08:03 +0100, Peter Otten wrote: >> >>> These things are nice to write as long as you omit the gory details, >>> but personally I don't want to see the style it favours in my or other >>> p

Re: Help me to print to screen as well as log

2013-11-22 Thread Mark Lawrence
On 22/11/2013 14:15, Steven D'Aprano wrote: On Fri, 22 Nov 2013 05:51:21 -0800, Himanshu Garg wrote: I want that print "hello" should appear on screen as well as get saved in a log file. How can I accomplish this? print "hello" logfile.write("hello\n") Does that satisfy your need? If not,

Re: Method chaining

2013-11-22 Thread Antoon Pardon
Op 22-11-13 16:20, Peter Otten schreef: > Steven D'Aprano wrote: > >> On Fri, 22 Nov 2013 13:08:03 +0100, Peter Otten wrote: >> >>> These things are nice to write as long as you omit the gory details, but >>> personally I don't want to see the style it favours in my or other >>> people's code. >>

Re: What's wrong?New hand.chapter7/8 webapp -No such CGI script

2013-11-22 Thread 曹守正
在 2013年11月22日星期五UTC+8下午4时48分35秒,曹守正写道: > My webapp is once good to use. Now I do not know what happened. It can not > work. > > when i type http://localhost:8080/cgi-bin/generate_list.py , > http://localhost:8080/cgi-bin/generate_timing_data.py, or anything after > cgi-bin in my chrome. It all

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Ned Batchelder
On Friday, November 22, 2013 9:13:50 AM UTC-5, rusi wrote: > On Friday, November 22, 2013 6:22:29 PM UTC+5:30, Bharath Kummar wrote: > > Hello Sir/Mam,  > > Could you please help me with my current research ?  Am implementing the > > concept in python language.  > > My doubts are : > > 1)  Is it p

Re: Method chaining

2013-11-22 Thread Peter Otten
Steven D'Aprano wrote: > On Fri, 22 Nov 2013 13:08:03 +0100, Peter Otten wrote: > >> These things are nice to write as long as you omit the gory details, but >> personally I don't want to see the style it favours in my or other >> people's code. > > There's not really a lot of difference That

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Grant Edwards
On 2013-11-22, Steven D'Aprano wrote: > On Fri, 22 Nov 2013 18:22:29 +0530, Bharath Kummar wrote: > >> 1) Is it possible to Retrieve the address of a variable in python ? > > No. Variables in Python are not at fixed addresses, like in Pascal or C, > they are names in a namespace. > > You can re

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Ian Kelly
On Fri, Nov 22, 2013 at 7:13 AM, rusi wrote: > 2) del will delete objects -- like free in C >Except that like above, thinking in C will cause more problems than it > solves No, del will only delete name bindings. Whether the bound object is also deleted depends on whether it is still refere

Re: argparse feature request

2013-11-22 Thread Robert Kern
On 2013-11-22 14:56, Neal Becker wrote: I use arparse all the time and find it serves my needs well. One thing I'd like to see. In the help message, I'd like to automatically add the default values. For example, here's one of my programs: python3 test_freq3.py --help usage: test_freq3.py [-

argparse feature request

2013-11-22 Thread Neal Becker
I use arparse all the time and find it serves my needs well. One thing I'd like to see. In the help message, I'd like to automatically add the default values. For example, here's one of my programs: python3 test_freq3.py --help usage: test_freq3.py [-h] [--size SIZE] [--esnodB ESNODB] [--tau

Re: Method chaining

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 07:34:53 -0500, Terry Reedy wrote: > On 11/22/2013 6:26 AM, Steven D'Aprano wrote: >> A frequently missed feature is the ability to chain method calls: >> >> x = [] >> x.append(1).append(2).append(3).reverse().append(4) => x now equals [3, >> 2, 1, 4] >> >> >> This doesn't work

Re: Method chaining

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 13:08:03 +0100, Peter Otten wrote: > These things are nice to write as long as you omit the gory details, but > personally I don't want to see the style it favours in my or other > people's code. There's not really a lot of difference between: obj = MyClass() obj.spam

Re: Help me to print to screen as well as log

2013-11-22 Thread Peter Otten
Himanshu Garg wrote: > I want that print "hello" should appear on screen as well as get saved in > a log file. > > How can I accomplish this? In Python 3 print() is a function -- you can replace it with a custom function that invokes the original print() twice. In both Python 3 and Python 2 yo

Re: Having trouble setting up an extremely simple server...

2013-11-22 Thread Chris Angelico
On Sat, Nov 23, 2013 at 12:41 AM, Roy Smith wrote: > Also, every semicolon we save can be broken down and res-used as TWO > decimal points! The Americans use the top part, most other places use > the bottom part. It's like a punctuation breeder reactor. One piece > goes in, and two come out. T

Re: Help me to print to screen as well as log

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 05:51:21 -0800, Himanshu Garg wrote: > I want that print "hello" should appear on screen as well as get saved > in a log file. > > How can I accomplish this? print "hello" logfile.write("hello\n") Does that satisfy your need? If not, please explain in more detail what you

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread rusi
On Friday, November 22, 2013 6:22:29 PM UTC+5:30, Bharath Kummar wrote: > Hello Sir/Mam,  > Could you please help me with my current research ?  Am implementing the > concept in python language.  > My doubts are : > 1)  Is it possible to Retrieve the address of a variable in python ? > 2)  Is it p

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 18:22:29 +0530, Bharath Kummar wrote: > 1) Is it possible to Retrieve the address of a variable in python ? No. Variables in Python are not at fixed addresses, like in Pascal or C, they are names in a namespace. You can read this post for some more information about the di

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Roy Smith
In article , Bharath Kummar wrote: > Could you please help me with my current research ? Am implementing the > concept in python language. > My doubts are : [Note to readers of American/British English; Indian English uses "doubt" the same way we would use "question"] > 1) Is it possible t

Help me to print to screen as well as log

2013-11-22 Thread Himanshu Garg
I want that print "hello" should appear on screen as well as get saved in a log file. How can I accomplish this? -- https://mail.python.org/mailman/listinfo/python-list

Re: Having trouble setting up an extremely simple server...

2013-11-22 Thread Roy Smith
In article <528eec7a$0$29992$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > There are all sorts of things that you can do that don't make your code > "wrong" but do make it difficult to deal with. Why stop with semi-colons? > > import socket; pass; pass; pass; pass; pass; > serv

Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Bharath Kummar
Hello Sir/Mam, Could you please help me with my current research ? Am implementing the concept in python language. My doubts are : 1) Is it possible to Retrieve the address of a variable in python ? 2) Is it possible to Delete the Address of the Variable and create a new dynamic address inside

Special Issue on "Software Development Tools" - High Visibility & Fast Publication

2013-11-22 Thread Journal of Software Engineering and Applications
This message was sent to [python-list@python.org]. Unsubscribe If you cannot read it, please click here. Special Issue on "Software Development Tools" Submission Deadline: February 19th, 2014Dear ,Journal of Software Engineering and Applications (JSEA) is seeking papers for the upcoming special i

Re: Method chaining

2013-11-22 Thread Terry Reedy
On 11/22/2013 6:26 AM, Steven D'Aprano wrote: A frequently missed feature is the ability to chain method calls: x = [] x.append(1).append(2).append(3).reverse().append(4) => x now equals [3, 2, 1, 4] This doesn't work with lists, as the methods return None True for the 7 pure mutation method

Re: Method chaining

2013-11-22 Thread Peter Otten
Steven D'Aprano wrote: > A frequently missed feature is the ability to chain method calls: > > x = [] > x.append(1).append(2).append(3).reverse().append(4) > => x now equals [3, 2, 1, 4] > > > This doesn't work with lists, as the methods return None rather than > self. The class needs to be des

Re: Web Page Parsing/Downloading

2013-11-22 Thread Chris Angelico
On Fri, Nov 22, 2013 at 9:10 PM, TheRandomPast wrote: > Can anyone help because I've become a little stuck? None of the scripts are > running for me and I can't see where I'm having issues I'm rather lost in what you're trying to accomplish here. The first thing to do would be to separate out yo

Re: Method chaining

2013-11-22 Thread Chris Angelico
On Fri, Nov 22, 2013 at 10:26 PM, Steven D'Aprano wrote: > if callable(obj): > def selfie(*args, **kw): > # Call the method just for side-effects, return self. > _ = obj(*args, **kw) > return self > return selfie >

Method chaining

2013-11-22 Thread Steven D'Aprano
A frequently missed feature is the ability to chain method calls: x = [] x.append(1).append(2).append(3).reverse().append(4) => x now equals [3, 2, 1, 4] This doesn't work with lists, as the methods return None rather than self. The class needs to be designed with method chaining in mind before

Re: Web framework

2013-11-22 Thread David Froger
Hi, > I'm thinking of porting a Python application that uses numpy for web, > basically would like to upload a user-defined data, perform the > calculations with numpy and plot charts with the general structure of a > site such as a blog for example, I have studied a bit of django and > web2py, bu

Web Page Parsing/Downloading

2013-11-22 Thread TheRandomPast
Hi. I'm self taught at Python and I used http://www.codecademy.com/ to learn which was great help i must say but now, I'm attempting it all on my own and need a little help? I have three scripts and this is what I'm trying to do with them; Download from webpage Parse Links from Page Output su

Re: Traceback when using multiprocessing, less than helpful?

2013-11-22 Thread Mark Lawrence
On 22/11/2013 03:57, John Ladasky wrote: ...Richard submits his "hack" (his description) to Python 3.4 which pickles and passes the string. When time permits, I'll try it out. Or maybe I'll wait, since Python 3.4.0 is still in alpha. FTR beta 1 is due this Saturday 24/11/2013. -- Python

What's wrong?New hand.chapter7/8 webapp -No such CGI script

2013-11-22 Thread 曹守正
My webapp is once good to use. Now I do not know what happened. It can not work. when i type http://localhost:8080/cgi-bin/generate_list.py , http://localhost:8080/cgi-bin/generate_timing_data.py, or anything after cgi-bin in my chrome. It all turns out like Message: No such CGI script ('/cgi-bi

Re: Dvalve! we called the heart of outsourcing world.

2013-11-22 Thread kevowen779
On Friday, 9 April 2010 23:14:16 UTC+2, Dvalve.com wrote: > Dvalve.com is an online talent workplace that helps companies hire and > manage professionals online to get work done and grow their > businesses. Dvalve matches employers with a ready and qualified > workforce and rated, tested professio

Re: Web framework

2013-11-22 Thread Ben Finney
Renato Barbosa Pim Pereira writes: > I'm thinking of porting a Python application that uses numpy for web, > basically would like to upload a user-defined data, perform the > calculations with numpy and plot charts with the general structure of > a site such as a blog for example The “default” o