Recent Mailing List Items
Weather-getter script for conky
get it done without Python. It doesn't show everything in the METAR; just
what I want.
hi
Re: [NORLUG] What is the best way to program in C?
--
For archives and more options, visit this group at [link]
To unsubscribe from this group, send email to norlug-unsubscribe@googlegroup s.com
Re: [NORLUG] What is the best way to program in C?
I want to work on, if you've got a project in mind, I recommend picking what
seems to be the best (whatever that means) language and go for it.
--
For archives and more options, visit this group at [link]
[NORLUG] What is the best way to program in C?
looking for something to do. But if I was to have some goals, it would
be to be more involved in the open source community or to author an
iPhone app. I will be using the new ubuntu release tomorrow, and I'll
look into the book that was first mentioned, the one written by the
Re: [NORLUG] Re: What is the best way to program in C?
When I did C for a living, I used nothing more than Vim with 'set cindent'.
(When writing this, I realized that I purchased the cow book from UMM's
bookstore nigh on 20 years ago. That's crazy.)
Programming C with Vim:
Re: [NORLUG] Re: What is the best way to program in C?
easiest. Just get a text editor (with syntax coloring) and a terminal
window and edit/save/compile/run, edit/save/compile/run... So for this,
Linux and Mac beat Windows (unless you install cygwin on Windows, which
would give you the same effect).
Re: [NORLUG] Re: What is the best way to program in C?
with a plain text editor and compiler on the commandline. That setup is
equal on all platforms. Using an IDE sometimes "helps" you so much you dont
learn what is actually going on. If you want to learn the traditional way,
[NORLUG] Re: What is the best way to program in C?
Linux or OS X? Because I have all three...
--
Steven Carver
--
For archives and more options, visit this group at [link]
To unsubscribe from this group, send email to norlug-unsubscribe@googlegroup s.com
[NORLUG] Re: What is the best way to program in C?
machine, or Linux?
--
Steven Carver
--
For archives and more options, visit this group at [link]
To unsubscribe from this group, send email to norlug-unsubscribe@googlegroup s.com
Re: [NORLUG] What is the best way to program in C?
three you have there and find a good book to teach it, and just sit down and
try to work with it. Which you pick is a matter of personal taste, but I
think C is a good place to start. For C, there is a great book: C
[NORLUG] What is the best way to program in C?
learn a bit of programming. I did some reading and discovered that it would
be best to learn C, C++, Objective-C... So where do I start? There are so
many resources that I'm overwhelmed. I do get the impression that you guys
Re: [NORLUG] Re: python question - copying a list or dictionary
Small numbers and large numbers are both immutable, though: any operation on a number returns a new number. So large numbers are immutable, but get copied (for the reason Jeff described). Ruby and Lisp do a similar optimization. In Ruby, a variable slot is 32 bits, the high bit of which indicates whether it stores a Fixnum or an object reference. So you get 31-bit Fixnums, and Integers above that automatically become Bignums. Python appears to store small *positive* integers up to one byte:
Re: [NORLUG] Re: python question - copying a list or dictionary
[GCC 4.4.3 20100226 (Red Hat 4.4.3-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
True
Is immutability the key?
Small numbers are immutable, but large numbers are not??
--
For archives and more options, visit this group at [link]
Re: [NORLUG] Re: python question - copying a list or dictionary
Every reference to a small integer object (55 is apparently small enough
to be "small") is actually pointing to the same instance. Larger
numbers (e.g. 5555) act more like mutable types.
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
Re: [NORLUG] Re: python question - copying a list or dictionary
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
True 55 55
False 110 55
*shrug*
A
--
Adam Gurno
a...@gurno.com
[NORLUG] Re: python question - copying a list or dictionary
"*" operation, so that answers that part of my question .
--
For archives and more options, visit this group at [link]
To unsubscribe from this group, send email to norlug-unsubscribe@googlegroup s.com
Re: [NORLUG] python question - copying a list or dictionary
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
False [] []
False [44, 'word', 5] [44, 'word', 5]
False [44, 'word', 5] [44, 'word', 5]
Copies copies everwhere, apparently.

