On 24/07/12 06:13, rusi wrote:
On Jul 22, 10:23 pm, Lipska the Katlip...@lipskathekat.com wrote:
Heh heh, Nothing to do with Eclipse, just another thing to get my head
around. For work and Java IMHO you can't beat eclipse...
at the moment I'm getting my head around git,
Bumped into this
On 24 July 2012 21:34, Lipska the Kat lipskathe...@yahoo.co.uk wrote:
On 24/07/12 06:13, rusi wrote:
On Jul 22, 10:23 pm, Lipska the Katlip...@lipskathekat.com wrote:
Heh heh, Nothing to do with Eclipse, just another thing to get my head
around. For work and Java IMHO you can't beat
On 21.07.2012 21:08, Lipska the Kat wrote:
Greetings Pythoners
A short while back I posted a message that described a task I had set
myself. I wanted to implement the following bash shell script in Python
Here's the script
sort -nr $1 | head -${2:-10}
this script takes a filename and an
On Jul 22, 10:23 pm, Lipska the Kat lip...@lipskathekat.com wrote:
Heh heh, Nothing to do with Eclipse, just another thing to get my head
around. For work and Java IMHO you can't beat eclipse...
at the moment I'm getting my head around git,
Bumped into this yesterday. Seems like a good aid to
Lipska the Kat wrote:
Greetings Pythoners
A short while back I posted a message that described a task I had set
myself. I wanted to implement the following bash shell script in Python
Here's the script
sort -nr $1 | head -${2:-10}
this script takes a filename and an optional number
On 22/07/2012 03:55, rusi wrote:
On Jul 22, 1:10 am, Dave Angel d...@davea.name wrote:
A totally off-the-wall query. Are you using a source control system,
such as git ? It can make you much braver about refactoring a working
program.
Question in a similar vein: What development
On 21/07/12 21:10, Dave Angel wrote:
On 07/21/2012 03:08 PM, Lipska the Kat wrote:
Greetings Pythoners
A short while back I posted a message that described a task I had set
myself. I wanted to implement the following bash shell script in Python
snip
A totally off-the-wall query. Are
On 7/22/2012 3:37 AM, Lipska the Kat wrote:
Many in
the Linux world seem to use git. Seeing as I've been using Linux at home
since the early days of slackware I suppose I'd better look into it.
There are Mercurial (aka Hg) and Bazaar as well for DVCS. AFAIK, git,
Mercurial, and Bazaar are all
On 22/07/12 03:55, rusi wrote:
On Jul 22, 1:10 am, Dave Angeld...@davea.name wrote:
A totally off-the-wall query. Are you using a source control system,
such as git ? It can make you much braver about refactoring a working
program.
Question in a similar vein: What development environment
On Sun, Jul 22, 2012 at 6:49 PM, Andrew Berg bahamutzero8...@gmail.com wrote:
On 7/22/2012 3:37 AM, Lipska the Kat wrote:
Many in
the Linux world seem to use git. Seeing as I've been using Linux at home
since the early days of slackware I suppose I'd better look into it.
There are Mercurial
On 22/07/2012, Lipska the Kat lip...@lipskathekat.com wrote:
On 21/07/12 21:10, Dave Angel wrote:
A totally off-the-wall query. Are you using a source control system,
such as git ? It can make you much braver about refactoring a working
program.
Thanks for your comments, I've taken them
On 22/07/12 11:17, Chris Angelico wrote:
On Sun, Jul 22, 2012 at 6:49 PM, Andrew Bergbahamutzero8...@gmail.com wrote:
On 7/22/2012 3:37 AM, Lipska the Kat wrote:
Many in
the Linux world seem to use git.
snip
Use source control now; you'll reap the benefits later!
from sudo apt-get
On Jul 22, 2:20 pm, Lipska the Kat lip...@lipskathekat.com wrote:
Well I have to say that I've used Eclipse with the myEclipse plugin for
a number of years now and although it has it's moments it has earned me
LOADS of MONEY so I can't really criticise it.
Ive probably tried to use eclipse
On 22/07/12 17:18, rusi wrote:
On Jul 22, 2:20 pm, Lipska the Katlip...@lipskathekat.com wrote:
Well I have to say that I've used Eclipse with the myEclipse plugin for
a number of years now and although it has it's moments it has earned me
LOADS of MONEY so I can't really criticise it.
Ive
Greetings Pythoners
A short while back I posted a message that described a task I had set
myself. I wanted to implement the following bash shell script in Python
Here's the script
sort -nr $1 | head -${2:-10}
this script takes a filename and an optional number of lines to display
and sorts
On 21/07/12 20:08, Lipska the Kat wrote:
Greetings Pythoners
A short while back I posted a message that described a task I had set
myself. I wanted to implement the following bash shell script in Python
Here's the script
sort -nr $1 | head -${2:-10}
this script takes a filename and an
On 21/07/2012 20:08, Lipska the Kat wrote:
Greetings Pythoners
A short while back I posted a message that described a task I had set
myself. I wanted to implement the following bash shell script in Python
Here's the script
sort -nr $1 | head -${2:-10}
this script takes a filename and an
On 07/21/2012 03:08 PM, Lipska the Kat wrote:
Greetings Pythoners
A short while back I posted a message that described a task I had set
myself. I wanted to implement the following bash shell script in Python
You already have comments from Ian and MRAB, and I'll try to point out
only things
On Sat, 21 Jul 2012 20:40:46 +0100, MRAB wrote:
On 21/07/2012 20:08, Lipska the Kat wrote:
l=sorted(l, key=itemgetter(0))
Short is:
l.sort(key=itemgetter(0))
Shorter, and the semantics are subtly different.
The sorted function returns a copy of the input list.
The list.sort
On Sat, 21 Jul 2012 16:10:51 -0400, Dave Angel wrote:
with fileinput.input(files=(filename)) as f:
fileinput is much more general than you want for processing a single
file. That may be deliberate, if you're picturing somebody using
wildcards on their input. But if so, you should probably
On 22/07/2012 01:32, Steven D'Aprano wrote:
On Sat, 21 Jul 2012 20:40:46 +0100, MRAB wrote:
On 21/07/2012 20:08, Lipska the Kat wrote:
l=sorted(l, key=itemgetter(0))
Short is:
l.sort(key=itemgetter(0))
Shorter, and the semantics are subtly different.
The sorted function
On Sun, Jul 22, 2012 at 11:56 AM, MRAB pyt...@mrabarnett.plus.com wrote:
Since the result is bound to the original name, the
result is the same.
Yes, assuming there are no other refs.
a=[3,2,1]
b=a
a=sorted(a)
a
[1, 2, 3]
b
[3, 2, 1]
ChrisA
--
On 07/21/2012 09:56 PM, MRAB wrote:
On 22/07/2012 01:32, Steven D'Aprano wrote:
On Sat, 21 Jul 2012 20:40:46 +0100, MRAB wrote:
On 21/07/2012 20:08, Lipska the Kat wrote:
l=sorted(l, key=itemgetter(0))
Short is:
l.sort(key=itemgetter(0))
Shorter, and the semantics are subtly
On Jul 22, 1:10 am, Dave Angel d...@davea.name wrote:
A totally off-the-wall query. Are you using a source control system,
such as git ? It can make you much braver about refactoring a working
program.
Question in a similar vein: What development environment do you use?
My impression is
24 matches
Mail list logo