Re: Considering taking a hammer to the computer...

2012-12-31 Thread Tim Chase
On 12/31/12 19:30, worldsbiggestsabres...@gmail.com wrote: Here is what I've learned: [snip] 4) It's New Year's Eve and I'm trying to learn Python...? Can't think of a much better way to spend New Year's Eve, unless you're learning Python while also watching fireworks. :-) -tkc -- http

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Chris Angelico
On Tue, Jan 1, 2013 at 2:55 PM, Steven D'Aprano wrote: > On Sun, 30 Dec 2012 09:30:10 +1100, Chris Angelico wrote: > >> Absolutely! Though it's roughly as good to have the current cursor >> position shown in a status line somewhere, and takes up less real >> estate. But yes, vital to be able to se

Re: ignore case only for a part of the regex?

2012-12-31 Thread Steven D'Aprano
On Sun, 30 Dec 2012 10:20:19 -0500, Roy Smith wrote: > The way I would typically do something like this is build my regexes in > all lower case and .lower() the text I was matching against them. I'm > curious what you're doing where you want to enforce case sensitivity in > one part of a header,

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Steven D'Aprano
On Sun, 30 Dec 2012 09:30:10 +1100, Chris Angelico wrote: > Absolutely! Though it's roughly as good to have the current cursor > position shown in a status line somewhere, and takes up less real > estate. But yes, vital to be able to see that. Even when I'm sitting > *right next to* my boss and co

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Modulok
> I'm trying to help my son with an assignment and spending hours making an > inch of progress. I know nothing about programming and I'm trying to learn, > on my own, at a rate faster than possible. I would love a little help! > > My son is taking an introductory course and his assignment is to us

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Steven D'Aprano
On Sat, 29 Dec 2012 14:00:23 -0500, Mitya Sirenef wrote: > I think the general idea is that with editors like Vim you don't get > distracted by having to do some kind of an editor task, letting you keep > your full attention on the code logic. For instance, if I need to change > a block inside par

Re: father class name

2012-12-31 Thread Steven D'Aprano
On Mon, 31 Dec 2012 20:23:44 +1100, Ben Finney wrote: > Chris Rebert writes: > >> By contrast, in the first part of the *expression* >> `haha(object).theprint()`, you passed an argument (namely, `object`). >> Since __init__() wasn't expecting any arguments whatsoever, you >> therefore got an err

Re: dict comprehension question.

2012-12-31 Thread Steven D'Aprano
On Sat, 29 Dec 2012 18:56:57 -0500, Terry Reedy wrote: > On 12/29/2012 2:48 PM, Quint Rankid wrote: > >> Given a list like: >> w = [1, 2, 3, 1, 2, 4, 4, 5, 6, 1] >> I would like to be able to do the following as a dict comprehension. >> a = {} >> for x in w: >> a[x] = a.get(x,0) + 1 >> resu

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Mitya Sirenef
On 12/31/2012 08:30 PM, worldsbiggestsabres...@gmail.com wrote: Here is what I've learned: 1) There's a bunch of extremely helpful and wonderful people here. 2) There's a bunch of very intelligent people here. 3) I still don't have any idea what I'm doing. 4) It's New Year's Eve and I'm tryin

Re: Considering taking a hammer to the computer...

2012-12-31 Thread worldsbiggestsabresfan
Here is what I've learned: 1) There's a bunch of extremely helpful and wonderful people here. 2) There's a bunch of very intelligent people here. 3) I still don't have any idea what I'm doing. 4) It's New Year's Eve and I'm trying to learn Python...? I'm going to read all of this over and ov

Re: WWE Divas Nude, plus Nude Diva & full open video, lita, mickey & more....

2012-12-31 Thread wesbass2013
On Sunday, May 3, 2009 5:37:33 AM UTC-7, Mickey wrote: > Wwe,World Wrestling Entertainment,WWE Smackdow,WWE RAW,WWE Divas,WWE > Divas Nude, plus Nude Diva Wallpaper and WWE Nude Diva Screensavers,& > full open video,lita,mickey & more > http://www.earningzones.com/wwe_divas thats would be grea

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Vlastimil Brom
2013/1/1 : > Hey :) > > I'm trying to help my son with an assignment and spending hours making an > inch of progress. I know nothing about programming and I'm trying to learn, > on my own, at a rate faster than possible. I would love a little help! > > My son is taking an introductory course an

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Mitya Sirenef
On 12/31/2012 07:29 PM, Mitya Sirenef wrote: Hi! First I want to note that this task would be easier and better to do with a break statement, so it's quite unfortunate that the teacher did not cover the right tools (and very basic ones, in fact) and yet given this task. Another question: are y

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Mitya Sirenef
On 12/31/2012 06:42 PM, worldsbiggestsabres...@gmail.com wrote: Hey :) > > I'm trying to help my son with an assignment and spending hours making an inch of progress. I know nothing about programming and I'm trying to learn, on my own, at a rate faster than possible. I would love a little hel

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread xDog Walker
On Monday 2012 December 31 14:46, Ben Finney wrote: > “I bought some powdered water, but I don't know what to add.” Suggest to Stephen Wright to add hot coffee. -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Chris Angelico
On Tue, Jan 1, 2013 at 10:42 AM, wrote: > Hey :) Oh, and another tip. Threatening violence to your computer is unlikely to make it change its ways, and it certainly isn't a helpful subject line :) All the best. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Chris Angelico
On Tue, Jan 1, 2013 at 10:42 AM, wrote: > while number_of_floors > 1: > floor_number = floor_number + 1 > print() > print ("For floor #",floor_number) > rooms_on_floor = int(input("How many rooms are on the floor ?: " )) > while rooms_on_floor < 10: > print ("Invalid i

Considering taking a hammer to the computer...

2012-12-31 Thread worldsbiggestsabresfan
Hey :) I'm trying to help my son with an assignment and spending hours making an inch of progress. I know nothing about programming and I'm trying to learn, on my own, at a rate faster than possible. I would love a little help! My son is taking an introductory course and his assignment is to

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Chris Angelico
On Tue, Jan 1, 2013 at 9:46 AM, Ben Finney wrote: > Hans Mulder writes: > >> Don't bother: Python comes with a free IDE named IDLE. > > And any decent Unix-alike (most OSen apart from Windows) comes with its > own IDE: the shell, a good text editor (Vim or Emacs being the primary > candidates), a

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Ben Finney
Hans Mulder writes: > Don't bother: Python comes with a free IDE named IDLE. And any decent Unix-alike (most OSen apart from Windows) comes with its own IDE: the shell, a good text editor (Vim or Emacs being the primary candidates), and a terminal multiplexor (such as ‘tmux’ or GNU Screen). Lea

Re: Question about nested loop

2012-12-31 Thread Isaac Won
On Monday, December 31, 2012 6:59:34 AM UTC-6, Hans Mulder wrote: > On 31/12/12 11:02:56, Isaac Won wrote: > > > Hi all, > > > I am a very novice for Python. Currently, I am trying to read continuous > > > columns repeatedly in the form of array. > > > my code is like below: > > > > > > imp

Re: Question about nested loop

2012-12-31 Thread Isaac Won
On Monday, December 31, 2012 5:25:16 AM UTC-6, Gisle Vanem wrote: > "Isaac Won" wrote: > > > > > while c < 10: > > >c = c + 1 > > > > > >for columns in ( raw.strip().split() for raw in f ): > > > > > > > > >b.append(columns[c]) > > > > > >y =

How to output to syslog before /dev/log exists?

2012-12-31 Thread yanegomi
Basically I'm trying to write a snippet of code that outputs to both syslog and the console at boot on a FreeBSD box, and I'm not 100% sure how to direct the SysLogHandler to use the dmesg buffer instead of trying to use either localhost:514 (and failing silently), or use /dev/log (and throw

Re: Python is awesome (Project Euler)

2012-12-31 Thread Roy Smith
In article , "Alex" wrote: > Yes. Although sometimes I fear that we are becoming a society of > end-users who rely too much on the capability of our tools and fail to > take the time to understand the fundamentals upon which those tools are > based or cultivate the problem-solving skills that Pr

Re: Python is awesome (Project Euler)

2012-12-31 Thread Grant Edwards
On 2012-12-31, Alex wrote: > Yes. Although sometimes I fear that we are becoming a society of > end-users who rely too much on the capability of our tools and fail to > take the time to understand the fundamentals upon which those tools are > based or cultivate the problem-solving skills that Pro

Re: Python is awesome (Project Euler)

2012-12-31 Thread Alex
Yes. Although sometimes I fear that we are becoming a society of end-users who rely too much on the capability of our tools and fail to take the time to understand the fundamentals upon which those tools are based or cultivate the problem-solving skills that Project Euler appears to be trying to ho

Python is awesome (Project Euler)

2012-12-31 Thread Roy Smith
If you haven't heard of it, you should check out Project Euler (http://projecteuler.net/). It's a series of (currently) 408 math-oriented programming problems, of varying degrees of difficulty. The tie-in to this group is just how many of them are trivial in Python. There's a whole slew of th

Re: Question about nested loop

2012-12-31 Thread Hans Mulder
On 31/12/12 11:02:56, Isaac Won wrote: > Hi all, > I am a very novice for Python. Currently, I am trying to read continuous > columns repeatedly in the form of array. > my code is like below: > > import numpy as np > > b = [] > c = 4 > f = open("text.file", "r") > > while c < 10: > c =

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Hans Mulder
On 31/12/12 12:57:59, Adam Tauno Williams wrote: > On Thu, 2012-12-27 at 12:01 -0800, mogul wrote: >> 'Aloha! >> I'm new to python, got 10-20 years perl and C experience, all gained >> on unix alike machines hacking happily in vi, and later on in vim. >> Now it's python, and currently mainly on my

Re: Question about nested loop

2012-12-31 Thread Gisle Vanem
"Isaac Won" wrote: while c < 10: c = c + 1 for columns in ( raw.strip().split() for raw in f ): b.append(columns[c]) y = np.array(b, float) print c, y I thought that can get the arrays of the columns[5] to [10], but I only could get repetition

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-31 Thread Adam Tauno Williams
On Thu, 2012-12-27 at 12:01 -0800, mogul wrote: > 'Aloha! > I'm new to python, got 10-20 years perl and C experience, all gained > on unix alike machines hacking happily in vi, and later on in vim. > Now it's python, and currently mainly on my kubuntu desktop. > Do I really need a real IDE, as the

Question about nested loop

2012-12-31 Thread Isaac Won
Hi all, I am a very novice for Python. Currently, I am trying to read continuous columns repeatedly in the form of array. my code is like below: import numpy as np b = [] c = 4 f = open("text.file", "r") while c < 10: c = c + 1 for columns in ( raw.strip().split() for raw

Re: father class name

2012-12-31 Thread Chris Rebert
On Mon, Dec 31, 2012 at 1:23 AM, Ben Finney wrote: > Chris Rebert writes: > >> By contrast, in the first part of the *expression* >> `haha(object).theprint()`, you passed an argument (namely, `object`). >> Since __init__() wasn't expecting any arguments whatsoever, you >> therefore got an error.

Re: father class name

2012-12-31 Thread Ben Finney
Chris Rebert writes: > By contrast, in the first part of the *expression* > `haha(object).theprint()`, you passed an argument (namely, `object`). > Since __init__() wasn't expecting any arguments whatsoever, you > therefore got an error. Why is everyone talking about the initialiser, ‘__init__’?

Re: Tarfile and usernames

2012-12-31 Thread lars
On Sun, Dec 30, 2012 at 03:07:05PM -0500, Albert Hopkins wrote: > > I can't see documented anywhere what this library does with userids and > > groupids. I can't guarantee that the computers involved will have the > > same users and groups, and would like the archives to be extracted so > > that t

Looking for Python Developers for MNC Client based at Bangalore

2012-12-31 Thread vani...@bharatheadhunters.com
Requirement : Python Developer Work Location:Bangalore Experience: 5-8yrs Skill Set: 1. Excellent Python and C Programming skills 2. Good unde