Re: [BangPypers] Anyone interested in a specific Django meet

2008-01-05 Thread Roshan Mathews
On Jan 5, 2008 8:38 PM, Ramdas S [EMAIL PROTECTED] wrote:
 It's been sometime since we had a Bangpypers meet up. I was wondering
 whether there is enough interest in having a Django specific meet among
 users in the group. I am looking at a date end of January.

This sounds very interesting, can you be more specific about the time
and place, and what about Django will be discussed.

On Jan 5, 2008 8:46 PM, M.V.Ramana Murty [EMAIL PROTECTED] wrote:
 Good Idea and I m intrested. But like to see its about intoduction or a meet
 of advanced users.

Meets for beginners usually turn out to be pretty bad, maybe people
could read up on what they need to before the meet. :)

-- 
Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] how to learn programming

2009-01-24 Thread Roshan Mathews
On Sun, Jan 25, 2009 at 2:56 AM, Sridhar Ratnakumar
sridhar.ra...@gmail.com wrote:
 On Sat, Jan 24, 2009 at 7:46 AM, Roshan Mathews rmath...@gmail.com wrote:
 The 'knowing the rules' vs. 'being proficient' argument is
 also made in SICP
 http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_sec_1.2
 ... another good read, (Indian version of the dead trees version
 available from University Press.)

 Are you referring to this argument?

Yes.  KG was making a similar point about golf, I think.


 Speaking of SICP,
 http://eli.thegreenplace.net/2008/04/18/sicp-conclusion/ (must have
 been quite a feeling of achievement!)

Indeed.  http://eli.thegreenplace.net/2008/06/06/signed-copy-of-sicp/ :)

~Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Roshan Mathews
On Tue, Feb 10, 2009 at 6:39 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 6:38 PM, Anand Balachandran Pillai
 abpil...@gmail.com wrote:
 import __phello__
 Hello world...

 Apparently, happens only the first time you import it ;)


 import __phello__
Hello world...
 reload(__phello__)
Hello world...
module '__phello__' from 'frozen'
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Roshan Mathews
On Tue, Feb 10, 2009 at 7:07 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
 import this
...
 love = this
 this is love
True
 love is True
False
 love is False
False
 love is not True or False
True
 love is not True or False; love is love
True
True

Friggin' geeks. :D

~Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] PyCon India Proposal

2009-02-28 Thread Roshan Mathews
On Sat, Feb 28, 2009 at 3:14 PM, VidA v...@svaksha.com wrote:
 Hi,

Maybe we should stick to the Wiki for the discussion with maybe weekly
reminders here that the discussion is going on there. :)

~Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Next IRC meeting

2009-03-10 Thread Roshan Mathews
On Wed, Mar 11, 2009 at 4:25 AM, Kenneth Gonsalves law...@au-kbc.org wrote:
 https://svn.nrcfosshelpline.in/public/conference/branches/conference1/


https://svn.nrcfosshelpline.in/public/conference/branches/conference1.x/

~Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Next IRC meeting

2009-03-11 Thread Roshan Mathews
On Wed, Mar 11, 2009 at 11:17 AM, Noufal Ibrahim nou...@gmail.com wrote:
 So, is Thursday night 9:00 pm fine with everyone?

Fine with me.

~Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] Advanced Python or Understanding Python

2009-04-01 Thread Roshan Mathews
Since everyone seems to be mailing in today.

http://video.google.com/videoplay?docid=7760178035196894549

By one of the people behind Unladen Swallow incidentally.  What's with
that name, btw?  Quite the mouthful, hard to swallow, so to speak.

Regards,
Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Guido steps down

2009-04-01 Thread Roshan Mathews
On Wed, Apr 1, 2009 at 12:25 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
 2009/4/1 Venkatraman S venka...@gmail.com:


 On Wed, Apr 1, 2009 at 12:08 PM, Indrajith K indrajit...@gmail.com wrote:

 http://www.python.org/dev/peps/pep-0401/

 Not sure, if this is a April fool joke!

 Come on, the name of the PEP itself should tell you that...
 PEP 04-01 i.e April 01.

Or BDEVIL and FLUFL. :D

~roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Advanced Python or Understanding Python

2009-04-01 Thread Roshan Mathews
On Wed, Apr 1, 2009 at 12:30 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
 On Wed, Apr 1, 2009 at 12:26 PM, Roshan Mathews rmath...@gmail.com wrote:
 Since everyone seems to be mailing in today.

 http://video.google.com/videoplay?docid=7760178035196894549

 By one of the people behind Unladen Swallow incidentally.  What's with
 that name, btw?  Quite the mouthful, hard to swallow, so to speak.

 Unladen = As in unladen transport vehicle, means light on load.
 In this context, it means a lightweight object.

 Swallow - I don't think this means the bird Swallow, but the
 act of swallowing, which is what a Python does - I think this is
 a reference to Python itself.

 So Unladen Swallow - A lightweight Python.

 Quite cryptic I say... they could have opted for something more
 straightforward perhaps...

http://www.style.org/unladenswallow/

The bird, plus Monty Python reference.  Still quite a mouthful, no
reference to Ms. Lovelace.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Interesting historical relation between python distributed OS

2009-04-10 Thread Roshan Mathews
On Fri, Apr 10, 2009 at 2:04 PM, Venkatraman S venka...@gmail.com wrote:
 On Fri, Apr 10, 2009 at 1:09 PM, Pushparajan V vpra...@gmail.com wrote:
 Guess what ??.. already some set of people are getting involved into DS
 with python to overtake java.. but always survival of the fittest and the
 easiest.. :)

 Try watching/hearing Guido's keynote this year in pycon.He talks briefly
 about language design/evolution and how he want/wanted python.

There's also Guido's history blog at
http://python-history.blogspot.com/ for those interested.

~Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Zine for weblogging

2009-04-23 Thread Roshan Mathews
Nice writeup, thank you.

Roshan

On Fri, Apr 24, 2009 at 10:58 AM, Kiran Jonnalagadda j...@pobox.com wrote:
 While seeking a weblog app to replace my ageing Plone+Quills installation, I
 came across Zine, a Python-based WordPress clone. http://zine.pocoo.org/

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] CPython's 'bignum' Implementation

2009-05-15 Thread Roshan Mathews
On Fri, May 15, 2009 at 5:12 PM, Venkatraman S venka...@gmail.com wrote:
 On Fri, May 15, 2009 at 5:09 PM, Amit Saha amitsaha...@gmail.com wrote:
 http://www.python.org/dev/peps/pep-0237/. However, if any of you folks
 know something concrete, I would appreciate it.

 Try searching in c.l.p - i think, have read abt this in there.

That would be news://comp.lang.python
Also at http://groups.google.com/group/comp.lang.python and
http://mail.python.org/pipermail/python-list/

Do let us know what you find.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Responding to people who lack the curiosity

2009-06-13 Thread Roshan Mathews
On Sat, Jun 13, 2009 at 4:07 PM, Kiran Jonnalagaddaj...@pobox.com wrote:
 I will add my little theory to this discussion.

Hahahaha  :D

Nice writeup.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Good Python training in blr

2009-06-16 Thread Roshan Mathews
On Tue, Jun 16, 2009 at 10:27 AM, Dhananjay
Nenedhananjay.n...@gmail.com wrote:
 I respect your calibre in training yourself. But cannot respect every
 organisation has the same luxury of waiting for programmers to train
 themselves so that they can eventually start using python. I trained
 myself in C and even parts of C++. But when I attended a training
 programme by one of the core C++ team members, it substantially
 expanded my capabilities on C++. Can't see how calibre is linked to
 being trained .. every one of us has the potential to be trained
 further - low, medium or high calibre.

What C++ core team member? :-/

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Performance benefits of Generators?

2009-07-01 Thread Roshan Mathews
On Tue, Jun 30, 2009 at 3:37 PM, Amit Sahaamitsaha...@gmail.com wrote:
 Since, this is out of mere curiosity, for the moment, performance
 would be simply the time taken to complete a task.

Please look at:
http://bitbucket.org/rm/substitutions/src/tip/prunepropogate.py#cl-86

This change (in explode) speeded up the rest of the code by a
great deal.  I don't know if it was the generators per se, or just
lesser memory usage, but this might be an example of generator
based speedup.

Anecdotal evidence this is, I'd be interested in something more
concrete.

PS: the program is wrong, don't spend too much time poring over
that.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Performance benefits of Generators?

2009-07-01 Thread Roshan Mathews
On Tue, Jun 30, 2009 at 3:47 PM, Shekharpytho...@gmail.com wrote:
 The pdf at http://www.dabeaz.com/generators-uk/GeneratorsUK.pdf was a great
 deal of help for me.
 It has good examples about performance (some numbers too) gains in different
 situations.

This was quite an amazing read.  I looked when the 4th edition of
Python Essential Reference will be out, and found that it was
announced just two weeks back:
http://mail.python.org/pipermail/python-announce-list/2009-June/007576.html

Flipkart has the 3rd edition for some 400 rupees,
http://www.flipkart.com/python-david-beazley-essential-reference/8131700445-tu23fqcqab
wonder how long it will take for the indian version of the 4th
edition to hit the markets.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Detailed talk on the GIL

2009-07-26 Thread Roshan Mathews
On Sun, Jul 26, 2009 at 6:31 PM, S.Ramaswamysrs...@gmail.com wrote:
 What are the odds, I just downloaded this for later viewing yesterday. :)

 Weird, I viewed the video a bit today morning.

memes I think these are called.  :)

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Any python metaclasses for UID

2009-07-29 Thread Roshan Mathews
I think I just fell down the rabbit hole.

On Wed, Jul 29, 2009 at 10:17 PM, Noufal Ibrahimnou...@gmail.com wrote:
 On Wed, Jul 29, 2009 at 12:58 PM, Shivaraj M Sshivraj...@gmail.com wrote:
 A small typo there

 But an important one.

 super(UID,self).Wind(7)  is super(ClassI,self).Wind(7)
 Well google's is doing definitely a strong attempt here. I guess it's
 metaprogramming than metaclassing.

 Nonsense. It's simple method dispatching.

 Class GoogleOS(OS):
          def __init__(self):
                self.official.languages = ['c++','java','python']
                self.name = 'Chrome'
          def os(self,Browser(Webapps)):
                self.aim.compatibility = Gates().Wind(7).os.compatibility +
 Mac().os.compatibility
                self.patches = tobe decided
 where Gates is extended by Boost for seamless interoperability.

 Not really. You're reinstantiating Boost using the Gates provider
 which won't work in this context.

 I haven't got any more ideas on this.

 Why don't you try to converting Gates to a factory? That might help
 you out rather than the one way UIDs.

 Well about the useful part of the search I think Data Snooping Bias should
 be avoidedl.

 Don't knock it till you've tried it. I'm sure you'll get far with that
 query. Also try frobnicating the bogosphere.

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Any python metaclasses for UID

2009-07-29 Thread Roshan Mathews
On Thu, Jul 30, 2009 at 9:31 AM, Baishampayan Ghoseb.gh...@gmail.com wrote:
 I didn't call _you_ Jo[h]n Harrop, man :) I called the OP a troll
 because his question is pretty much meaningless and is causing
 unnecessary irritation.

 May be it was because of the way I quoted the mail. Sorry for the confusion 
 :-p

Ah, no biggie.   Like KG says, I shouldn't have top posted. :)

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] link

2009-09-03 Thread Roshan Mathews
On Fri, Sep 4, 2009 at 7:33 AM, sridsridhar.ra...@gmail.com wrote:
 I too use print statements almost all the time. Even for debugging
 CPython code. I guess it is due to my own laziness. Putting `print` or
 `LOG.debug` is much easier/quicker compared to firing up a debugging
 console (and remembering how to use it).

Same reasons here, it's just faster to add prints and see if things
are what they should be.  But I also have logging statements in
general, but don't usually add them for debugging.  But I guess I must
check out pdb.  I recently read of an IDE for python which
code-stepping and a fancy debugger.  Don't remember which one it was
though ...

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] link

2009-09-04 Thread Roshan Mathews
On Fri, Sep 4, 2009 at 11:54 AM, Noufal Ibrahimnou...@gmail.com wrote:
 On Fri, Sep 4, 2009 at 11:44 AM, sridsridhar.ra...@gmail.com wrote:
 On Thu, Sep 3, 2009 at 8:09 PM, Roshan Mathewsrmath...@gmail.com wrote:
 I recently read of an IDE for python which
 code-stepping and a fancy debugger.  Don't remember which one it was
 though ...

 Many of them exist - ActiveState Komodo, Wing IDE, Eric3 and so on.

 Emacs!

That's interesting, I use Emacs for my editing needs, but I wasn't
aware of pdb integration with gud (I just googled) ... must check out.

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Fwd: [Baypiggies] A reminder: Why to type slowly when going to python.org

2009-09-07 Thread Roshan Mathews
On Mon, Sep 7, 2009 at 11:09 AM, Venkatraman Svenka...@gmail.com wrote:
 http://pythong.org/

:D

There's also the NSFW http://python.com 
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Python Coding Standards

2009-09-13 Thread Roshan Mathews
On Sun, Sep 13, 2009 at 2:46 PM, Karthik urskarthi...@gmail.com wrote:
 Hello Friends, Can anybody please let me know if there are any coding
 standards for python coding? Thanks.

http://google-styleguide.googlecode.com/svn/trunk/pyguide.html
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Pickle multiple objects

2009-10-07 Thread Roshan Mathews
On Wed, Oct 7, 2009 at 1:23 PM, Roshan Mathews rmath...@gmail.com wrote:
 On Wed, Oct 7, 2009 at 1:14 PM, Aneesh A aneesh...@gmail.com wrote:
 I have to store high scores, so i pickled a list . after pickling, in append
 mode, load method loads only first object.
 How to retrieve multiple objects??

 What does this do:

 import cPickle as pickle
 list = [ (i, str(i)) for i in range(10) ]
 print list
 pickle.dump(list, file('dump', 'wb'), -1)
 list = pickle.load(file('dump', 'rb'))
 print list


Also, in
store_highscores(highscore)

the subject and verb don't match.  Do you want to
store_highscores(highscores) or store_highscore(highscore)?

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Pickle multiple objects

2009-10-07 Thread Roshan Mathews
On Wed, Oct 7, 2009 at 1:14 PM, Aneesh A aneesh...@gmail.com wrote:
 I have to store high scores, so i pickled a list . after pickling, in append
 mode, load method loads only first object.
 How to retrieve multiple objects??

What does this do:

import cPickle as pickle
list = [ (i, str(i)) for i in range(10) ]
print list
pickle.dump(list, file('dump', 'wb'), -1)
list = pickle.load(file('dump', 'rb'))
print list

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] array in python

2009-10-08 Thread Roshan Mathews
On Thu, Oct 8, 2009 at 6:15 AM, harshal jadhav jadhav.hars...@gmail.com wrote:
 I am using python language for GNU Radio. For this i have a sampled signal.
 The signal is a sine wave. I have to trap each sample of this sine wave in
 an array.
 Is it possible to capture the samples of the sine wave in  an array in
 python?

You can use lists, and there is an array module too.

 import array
 help(array)
Help on built-in module array:

NAME
array

FILE
(built-in)

DESCRIPTION
This module defines an object type which can efficiently represent
an array of basic values: characters, integers, floating point
numbers.  Arrays are sequence types and behave very much like lists,
except that the type of objects stored in them is constrained.  The
type is specified at object creation time by using a type code, which
is a single character.  The following type codes are defined:

Type code   C Type Minimum size in bytes
'c' character  1
'b' signed integer 1
'B' unsigned integer   1
'u' Unicode character  2
'h' signed integer 2
'H' unsigned integer   2
'i' signed integer 2
'I' unsigned integer   2
'l' signed integer 4
'L' unsigned integer   4
'f' floating point 4
'd' floating point 8

The constructor is:

array(typecode [, initializer]) -- create a new array
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [ANN][X-Post] SciPy India conference in Dec. 2009

2009-10-11 Thread Roshan Mathews
On Sun, Oct 11, 2009 at 11:12 AM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
  Nobody said Python is a better language than PHP. Indeed comparing both
  is a bit of apples to oranges comparison since both languages are designed
  for totally different intentions. Python is a general purpose language,
 whereas
  PHP was built from the ground up for the web.

FWIW, the comparison is between Python for web applications and PHP.  :)

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] New to python - neuron ring

2009-10-12 Thread Roshan Mathews
On Mon, Oct 12, 2009 at 12:49 PM, Gopinath R gopiindia...@gmail.com wrote:
 I am a newbie to python. i like to learn python strongly. which version is
 recommended to start with 2.6 or 3.0.


http://diveintopython3.org/ has been released, so maybe you can start
with 3.0 but OTOH, I don't know Python 3.0, so you should take this
with a pinch of salt.

Python 2.6 is going to be around for a while, so if you're looking for
employment opportunities maybe that makes more sense.
http://diveintopython.org/ in that case.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Python performance inprovements with GCC 4.4...any details

2009-10-13 Thread Roshan Mathews
On Tue, Oct 13, 2009 at 3:31 PM, Vishal vsapr...@gmail.com wrote:
 Well, what I meant was: Everyone knows its an interpreted language and we
 are choosing it for its productivity. Also, since its interpreted, its
 performance will not / most probably not match that with compiled
 languages...so any news in increase in performance is a giantly welcome
 thing. Sometimes it also acts as a metric when choosing between different
 dynamic languages (especially by managers, who are not going to develop and
 not going to be in love with a particular language anyways)
 Hence, the performance query...


Speed matters.  To programmers.  So there's no need for the legal disclaimers.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-13 Thread Roshan Mathews
On Tue, Oct 13, 2009 at 6:59 PM, kunalkant sen kunalkant...@gmail.com wrote:
 Python may not give you more job opportunity, but it will give you one of
 the best job opportunity.

Why do you say that?  Curious, that's all. :)

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-13 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 12:41 AM, Dhananjay Nene
dhananjay.n...@gmail.com wrote:
 On the other hand python might be helpful for programming related to
 algorithms, computations, web based apps (eg. using django etc.), more
 advanced scripting and some amount of financial apps eg. trading desks.

Any Perl programmers here?  Someone who prefers Perl to Python?

I ask because I met some Perl programmers at one of the early
ChennaiPy meets, there weren't many Perl meets going on, so they had
come along.  So maybe they are hiding here too!

Someone wrote a pretty terse Perl program to wrap lines on the local
LUG list some back, all it did was call a module function, but it left
me curious about the @#$language.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-14 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 11:56 AM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
  I have observed that language fanaticism is not seen very much
  in the Python world. Experienced Pythonistas seem to be better language
 cosmopolitans. This is not meant as a troll or flame, but something which
  I have felt in many years of working with Python and the community.

This is what I read about the Perl community too.  The claim was that
the language didn't crop up in the news so often because Perl hackers
are quite open to using other languages if required, and there was no
active effort to promote/push Perl.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-14 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 12:23 PM, Zaki Manian z...@manian.org wrote:
 This is one the few examples of a high profile Perl Project that I am aware
 of.
 http://syncwith.us/

Large projects written in Perl include Slash, Bugzilla, RT, TWiki, and
Movable Type. Many high-traffic websites use Perl extensively.
Examples include Amazon.com, bbc.co.uk, Booking.com [23]
(Priceline.com), Craigslist, IMDb [24], LiveJournal, Slashdot,
Ticketmaster and Zappos.com.

  -- http://en.wikipedia.org/wiki/Perl

If you're asking that is.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-14 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 1:03 PM, Baiju M mba...@zeomega.com wrote:
 Koha (http://www.koha.org) is great web application written in Perl.

Looks interesting.  It's weird since someone just asked for library
management software on the Chennai LUG list.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-14 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 1:08 PM, Kenneth Gonsalves law...@au-kbc.org wrote:
 the last? great web application written in perl? It was written in 1999-2000
 when perl ruled the roost. Seriously I was a perl guy from 1995 to 2003. It
 was great for one man projects, but not so great for collaborative projects.

Oh, cool.  Maybe you should talk on Perl, at one of the ChennaiPy
meets when the PyCon discussions are over.  If you are interested, and
there are others who would want to attend one.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-14 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 3:01 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
 On Wed, Oct 14, 2009 at 2:52 PM, Baiju M mba...@zeomega.com wrote:
 Now I don't understand the Perl code I wrote there :)

  Someone should quote your post everytime they discuss language
  readability and Perl...

Generalizations are always harmful.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-14 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 3:43 PM, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Wednesday 14 Oct 2009 3:04:10 pm Roshan Mathews wrote:
 On Wed, Oct 14, 2009 at 3:01 PM, Anand Balachandran Pillai

 abpil...@gmail.com wrote:
  On Wed, Oct 14, 2009 at 2:52 PM, Baiju M mba...@zeomega.com wrote:
  Now I don't understand the Perl code I wrote there :)
 
   Someone should quote your post everytime they discuss language
   readability and Perl...

 Generalizations are always harmful.

 including this one

Yes, I was surprised no one caught that. :)

The point still stands though.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Perl or Python ?

2009-10-14 Thread Roshan Mathews
On Wed, Oct 14, 2009 at 4:01 PM, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Wednesday 14 Oct 2009 3:52:05 pm Roshan Mathews wrote:
 The point still stands though.

 it doesn't - and you haven't even spelt it properly

It might be a good idea to back away from the keyboard when you find
that you have started twitching.  What did I spell incorrectly?

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Why do indians copy?

2009-10-15 Thread Roshan Mathews
On Thu, Oct 15, 2009 at 4:43 PM, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Thursday 15 Oct 2009 3:52:39 pm Srijayanth Sridhar wrote:
 I brought up the same topic a few months ago I think. Basically if you go
 to the Ruby forums

 no real programmer goes to forums - they use mailing lists and IRC

Forums like say, http://stackoverflow.com/ ?
Real programmers like say, Alex Martelli ?

http://stackoverflow.com/users/95810/alex-martelli


Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Suggest me a book

2009-10-15 Thread Roshan Mathews
On Thu, Oct 15, 2009 at 4:50 PM, Srinivas Reddy Thatiparthy
srinivas_thatipar...@akebonosoft.com wrote:
 Just completed reading the book, The Coders At Work,It's just an excellent
 book and
 It's great to see behind the eye balls of programmers.
 Can any one suggest me some other books of such kind?

http://www.diveintopython.org/
http://www.diveintopython3.org/

HTH :)


Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Suggest me a book

2009-10-15 Thread Roshan Mathews
On Thu, Oct 15, 2009 at 5:47 PM, Noufal Ibrahim nou...@gmail.com wrote:
 On Thu, Oct 15, 2009 at 5:38 PM, Vinayak Hegde vinay...@gmail.com wrote:
 Yeah those two are good too. Other than that I would suggest
 Adventures of a Pythonista in Schemeland
 (http://www.phyast.pitt.edu/~micheles/scheme/TheAdventuresofaPythonistainSchemeland.pdf)
 , Little Schemer and seasoned schemer for those who want to learn
 functional languages.

 Is the adventures of a Pythonista... the same as was published a while
 ago as a series of blog entries?

Looks like it.

Thanks for the link Vinayak, the blog entries had got bookmarked and
lost in del.icio.us long ago.

Have you read both LS and SS?  Where did you get them?  I borrowed LS
from my brother some time back, but have been stuck at the place they
introduce the Y combinator.  How is SS?

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Why do indians copy?

2009-10-15 Thread Roshan Mathews
On Thu, Oct 15, 2009 at 7:10 PM, shameek ghosh shamee...@gmail.com wrote:
 ... [:)]

 ... [:P]...
 ... [:)]
 ... [:)]

Orkut overdose? :)

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Why do indians copy?

2009-10-15 Thread Roshan Mathews
On Fri, Oct 16, 2009 at 8:22 AM, srid sridhar.ra...@gmail.com wrote:
 But Ghose raises an important point about it also being a cultural
 issue. Heh, wish there was a well-researched Wikipedia article on this
 topic!

There is a hypothesis presented in Malcolm Gladwell's book Outliers,
on cultural factors causing airline accidents.  But then others[1]
disagree, as with most social arguments it's hard to come to any
conclusion.

Makes interesting reading all the same. :)

Roshan Mathews

[1] http://www.salon.com/tech/col/smith/2008/12/05/askthepilot301/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Why do indians copy?

2009-10-15 Thread Roshan Mathews
On Fri, Oct 16, 2009 at 8:33 AM, Kenneth Gonsalves law...@au-kbc.org wrote:
 failing - and if you do lose respect you hang yourself. In fact I once made a
 remark about RMS, and was told 'at least respect him as an elder'. Why should
 I? He is younger than me ;-)


Hahaha. :-D

*must avoid antediluvian joke ... must*

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-20 Thread Roshan Mathews
On Wed, Oct 21, 2009 at 8:06 AM, srid sridhar.ra...@gmail.com wrote:
 http://stackoverflow.com/questions/1597764/is-there-a-better-pythonic-way-to-do-this

Nice.  Martelli says:
(avoid setdefault, that was never a good design and doesn't have
 good performance either, as well as being pretty murky)

Any idea why?

 I am now researching on a way to gather top posts (w/ python tag) on
 Stackoverflow to create something similar to weeklyreddit.appspot.com

Weekly Reddit is such a cool idea, except I end up checking proggit
frequently anyways.  Then I guilt out when I get the rss posts on
Sunday.  :-S

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Roshan Mathews
On Wed, Oct 21, 2009 at 12:05 PM, Sidharth Kuruvila
sidharth.kuruv...@gmail.com wrote:
  d = {a:Hello}
  print d.setdefault(a, blah)

  Even though the string blah is not being used an object has to be
 created to represent it. Even worse, you could put some complex
 expression in there expecting it to evaluate only if the key is
 missing.

Oh, alright.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Roshan Mathews
On Wed, Oct 21, 2009 at 12:31 PM, Anand Chitipothu anandol...@gmail.com wrote:
    ``Intern'' the given string.  This enters the string in the (global)
    table of interned strings whose purpose is to speed up dictionary lookups.
    Return the string itself or the previously interned string object with the
    same value.


Thanks, I didn't know of that.  It could be useful sometime.  Anyways,
for the current discussion intern-ing is irrelevant.

 id('superman')
30792544
 id('superman')
30792544
 id('superman')
30792544
 id('superman')
30792544
 id('superman')
30792544
 id('super man')
31955768
 id('super man')
31955488
 id('super man')
31956768
 id('super man')
31955768
 id('super man')
31955488

Also, http://mail.python.org/pipermail/tutor/2009-July/070157.html

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] 2-cent Tip: Load modules at Startup

2009-10-22 Thread Roshan Mathews
On Thu, Oct 22, 2009 at 6:43 PM, Amit Saha lists.amits...@gmail.com wrote:
 - Create a file: .pythonrc in my $HOME and place this line:

Thanks for the tip.  I don't use this myself, but I had read this in
Peter Norvig's Python IAQ, which makes interesting reading.  It's
available online at http://norvig.com/python-iaq.html

Do let on if you find anything else particularly useful. :)

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] How to search a word list very fast

2009-10-30 Thread Roshan Mathews
On Fri, Oct 30, 2009 at 11:37 AM, Amit Sethi amit.pureene...@gmail.com wrote:
 I am trying to develop a sort of keyword generator for blog posts much like
 the Yahoo Keyword service . As an initial idea I am using the list of most
 used 3000 words in project Gutenberg as being redundant . My question is
 what is the best way to organize my data and what algorithms would allow me
 to search this list the fastest.
 I am sorry for asking a very algorithmic question on the list but I don't
 know where I can ask my more algorithmic problems suggestions on that would
 be great


Use a dict() if you want to store counts, or a set()

Worry about performance when you have to.

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Google Go

2009-11-11 Thread Roshan Mathews
On Wed, Nov 11, 2009 at 2:23 PM,  varunthac...@aol.in wrote:
 I just heard about Google Go.My first reaction was of excitement.But when i
 read about it i'm clueless as to what is it aiming for?
 What do every feel about it?

Did you see the video [1] linked from that link?  They say it's for
systems programming.

There are already two mails about Go on this list.

[1] http://www.youtube.com/watch?v=wwoWei-GAPo


-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Google Go

2009-11-11 Thread Roshan Mathews
On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
  Upon 2nd reading, I also thought they did, but not a very good
  disambiguation there I daresay. But security benefits associated to
  a compiled language -  I fall flat there since I don't see any
  correlation with a language being compiled and its security!

  Pretty shoddy marketing this...

The Go people said this?  Where are you quoting from?

-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Google Go

2009-11-11 Thread Roshan Mathews
On Wed, Nov 11, 2009 at 6:07 PM, Darkseid lorddae...@gmail.com wrote:
 I do hope you snidely pointed out to him that half of Google runs on Python?
 :D

Which half?  :)

http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e


-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Google Go

2009-11-11 Thread Roshan Mathews
On Wed, Nov 11, 2009 at 5:48 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
  The point is that so called compiled languages provide more security
  loop-holes than interpreted ones. C++/C for example provide liberal
  scope for buffer overflow exploits due to use of pointers and manual
  memory management.

  Accessing any buffer outside the scope of your data structures is always
  a potential window for the malicious hacker for buffer overflow exploits.
  And C/C++ are notorious for making this easy providing you with
  different ways of shooting yourself in the foot...

That would be because C/C++ are weakly typed, not because they are
compiled.  Java is compiled right, does it have buffer overruns?

I would assume that people are arguing for strong typing for
efficiency.  A language with run time dynamic dispatch, like say
Python, will always be slower than something which is statically
typed.

The looks like Python, runs like C++ is more than just marketing
speak.  I don't know anything about Go, beyond that what I saw in the
Youtube video.  But that's the exact same ideal characteristic that
other language designers are aiming for, from the few that I know.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Google Go

2009-11-11 Thread Roshan Mathews
On Wed, Nov 11, 2009 at 6:30 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
 On Wed, Nov 11, 2009 at 6:14 PM, Roshan Mathews rmath...@gmail.com wrote:
 The looks like Python, runs like C++ is more than just marketing
 speak.

  If you haven't noticed, Looks like Python, runs like C++ has a lot of
  marketing potential, since Python has a reputation to be the cleanest
  of languages w.r.t syntax and readability and C++, that of power and speed.
  So if you say this is not marketing speak, I am not buying it...

  If you are designing a language which you claim is ultimate in this
  decade, that is exactly the punch line you want...

Aye, that's why I say it's more than just marketing.  It's positive,
yes, subjective too, so maybe it's marketing-esque, but to just brush
it off as marketing speak means you miss out on what it is aiming for.
 I don't know if it is there yet.  Maybe it never will be, but there
are people designing languages to that ideal, not to that punchline.
Although, yes, I would grant that it does make a rather fine
punchline. :)
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Google Go

2009-11-11 Thread Roshan Mathews
Harish,

I [shall carefully reply to] you because I had
[searched my mail and found] that you were a serious
man, to be treated with respect. But I must say no to
you and let me give you my reasons. It's true I have a
lot of friends in [software], but they wouldn't be so
friendly if they knew my business was [pontificating]
instead of [flaming] which they consider a harmless
vice. But [pontification], that's a dirty business.

On Wed, Nov 11, 2009 at 7:49 PM, Harish Mallipeddi
harish.mallipe...@gmail.com wrote:
 Going by the popular definition of weak/strong typing, what has weak typing
 in C/C++ anything to do with buffer overflow errors? Javascript is weakly
 typed but you don't have buffer overflow problems there.


Hmm... this is going to get tricky, since everyone
seems to have different opinions on what these terms
mean.  I'm very confused about JavaScript.  Why do you
say it's weakly typed?

I did a quick web search on this, and most people seem
to agree with you, based on the fact that in
JavaScript:

 hello + 10
hello10
 10 + hello
10hello

So everything can be, uh, promoted to a String.  But
can I, say, take an Object and treat it as a number?
Or an Array as a String?  Or is JavaScript weak in
certain directions and strong in others?

Maybe you should let on what you mean by strong/weak
typing.

What I meant by saying that weak typing in C/C++ causes
buffer overruns is that everything is just a memory
location, since you can arbitrarily switch between
pointers and types, which means that you can't have
sanity checks for array accesses (which are your buffer
overruns) without changing the language itself.

 I would assume that people are arguing for strong typing for
 efficiency.  A language with run time dynamic dispatch, like say
 Python, will always be slower than something which is statically
 typed.


 Again why would strong typing get you efficiency?


Am I comparing apples and potatoes, if I am please do
let me know.  I say that run time dynamic dispatch is
slow because you always need to look things up,
specially in python since you can arbitrarily change
anything at runtime, on the other hand, if you have a
strongly typed language (thanks for catching that) then
you know at compile time what you want your code to do,
hence you don't have to find that out at runtime, time
saved doing that makes your language faster all other
things being equal.

I could be horribly wrong, I don't know enough about
programming languages to be sure.  So please do let me
know if you think so.

How about this, lets make it less controversial and
bring the talk back to safer ground: the best Python
code will always be slower than high quality C++ code
no matter how good the Python optimizers get.  Speed
might not be always important and yada-yada-yada,
that's irrelevant to the last statement. I write more
Python than C++, so yeah, I've heard of most of those
reasons.

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] But IDEs rock! (was Google Go)

2009-11-11 Thread Roshan Mathews
On Wed, Nov 11, 2009 at 8:06 PM, Darkseid lorddae...@gmail.com wrote:
 you can only get so far with a
 text editor*, no matter how many macros you have set up. Honestly.

Macros??  Really???  Don't you mean no matter how many scripts you
have set up  :)
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Google Go

2009-11-12 Thread Roshan Mathews
Did the Godfather quote scare you off? :)

On Wed, Nov 11, 2009 at 9:06 PM, Roshan Mathews rmath...@gmail.com wrote:
 I [shall carefully reply to] you because I had
 [searched my mail and found] that you were a serious
 man, to be treated with respect. But I must say no to
 you and let me give you my reasons. It's true I have a
 lot of friends in [software], but they wouldn't be so
 friendly if they knew my business was [pontificating]
 instead of [flaming] which they consider a harmless
 vice. But [pontification], that's a dirty business.

 On Wed, Nov 11, 2009 at 7:49 PM, Harish Mallipeddi
 harish.mallipe...@gmail.com wrote:



-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Reg : Python Scripting

2009-12-09 Thread Roshan Mathews
On Wed, Dec 9, 2009 at 4:34 PM, murugadoss murugadoss2...@gmail.com wrote:
 But since the thread is waiting for input ( in a while loop ), the control
 is not coming to next line of the script. (ie: to input arguments line).

 Sample Script:
 os.system(my program)
 child.sendline(input arguments)

subprocess: http://docs.python.org/library/subprocess.html
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Unsubcribe

2009-12-14 Thread Roshan Mathews
On Tue, Dec 15, 2009 at 7:39 AM, srinivas_ 1220 srinivas_1...@yahoo.com wrote:
 How does one unsubscribe from this mail list? As i dont wish to receive any 
 updates from this group.

The mail headers point you to:

List-Id: Bangalore Python Users Group - India bangpypers.python.org
List-Unsubscribe: http://mail.python.org/mailman/options/bangpypers,
mailto:bangpypers-requ...@python.org?subject=unsubscribe
List-Archive: http://mail.python.org/pipermail/bangpypers
List-Post: mailto:bangpypers@python.org
List-Help: mailto:bangpypers-requ...@python.org?subject=help
List-Subscribe: http://mail.python.org/mailman/listinfo/bangpypers,
mailto:bangpypers-requ...@python.org?subject=subscribe


So send an email to bangpypers-requ...@python.org and in the subject
box type the word unsubscribe.

Hope that helps,
Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Roshan Mathews
On Tue, Dec 22, 2009 at 7:10 PM, Vishal vsapr...@gmail.com wrote:
 I was presuming that since tuples are immutable, like strings, and string
 immutability increases performance (
 http://effbot.org/pyfaq/why-are-python-strings-immutable.htm)
 so also, using tuple would improve performance over Lists.

http://stackoverflow.com/questions/68630/are-tuples-more-efficient-than-lists-in-python

http://jtauber.com/blog/2006/04/15/python_tuples_are_not_just_constant_lists/
Tuples are not constant lists -- this is a common
misconception. Lists are intended to be homogeneous
sequences, while tuples are hetereogeneous data
structures.

Tauber's point about tuples being structures named by index, seemed
correct in light of namedtuple in collections (since Python 2.6)

Also, as Noufal mentioned, tuples are hashable, so you can use them as
keys in a dict.

-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-22 Thread Roshan Mathews
On Tue, Dec 22, 2009 at 9:59 PM, Noufal Ibrahim nou...@gmail.com wrote:
  This is an 'intention' rather than an enforced rule isn't it? It does seem
 natural though. I don't think i've ever seen a tuple with elements of
 different types.

I use namedtuple for those, (or just plain classes before I knew of that.)

 My thumb rule is if you need an immutable structure (often for a dictionary
 key), use a tuple. Otherwise, use a list.

Yeah, that pretty much sums up what I do too.

I googled the links just before I posted, because while I thought that
tuples were faster (I think I used them once for that reason), I
couldn't remember why.

-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Roshan Mathews
On Thu, Dec 24, 2009 at 1:03 PM, Vishal vsapr...@gmail.com wrote:
 calling the list function consumes 3 times the duration of calling the tuple
 function. And I understand the absolute times are negligible in this
 case...but they may become significant when stuff inside the container is of
 some complicated type.

 Would love to know views on this one.

Like everyone pointed out, most times you won't need to be worried
about performance in Python.  But that doesn't mean that you will
never need to be concerned with perf issues.

When you do need to get things faster, (assuming you already have
optimized your algo), just use psyco [1] -- that should speed things
up significantly.  If that's still not good enough, then think of
tricks (like the tuple vs. list) one, and use a profiler to see what
works for you.

[1] http://psyco.sf.net/
  just say
  import psyco
  psyco.full()
  and go whee.


-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-24 Thread Roshan Mathews
On Thu, Dec 24, 2009 at 1:29 PM, Noufal Ibrahim nou...@gmail.com wrote:
 psyco is 32 bit only and development has pretty much ceased since all the
 chaps working on it went to PyPy.
 Also, for some perverse bits of code, it plainly skips compilation.

Oh. :(

Didn't know that.


-- 
Roshan Mathews
http://teamtalk.im
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] How should I do it?

2010-01-15 Thread Roshan Mathews
On Fri, Jan 15, 2010 at 2:40 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
    # Now, count and trans are not strings in
    # data, so Python will complain, hence we
    # define these as strings with same name!
    count, trans = 'count','trans'

Clever, that.  I got to there, threw up my hands and went downstairs
to eat lunch.

  -- rm
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Future of Python Programmers

2010-02-01 Thread Roshan Mathews
On Mon, Feb 1, 2010 at 16:08, Srinivas Reddy Thatiparthy
srinivas_thatipar...@akebonosoft.com wrote:
 As Noufal said, don't become a language  specialist, as that amounts
 to limiting yourself too much  upfront. .
 I didn't get this point. I would like to know.please clarify on this
 point

.In my experience, companies prefer  well-skilled generalists than
 deeply skilled specialists, unless  one is an ultimate genius in what he
 does and irreplacable.
 This point also, because i want to be  a python,c#  specialist.Your
 answer help me a great deal.Please clarify.


I came across this recently: http://nathanmarz.com/blog/john-mccarthy/

Might be relevant to the don't be a language lawyer advice.  :)

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] date range

2010-02-09 Thread Roshan Mathews
On Tue, Feb 9, 2010 at 17:53, Srinivas Reddy Thatiparthy
srinivas_thatipar...@akebonosoft.com wrote:

a  b  c   is equivalent to   a  b and b  c   *except that* b is
 evaluated only once.


 correction
 Did u  mean to say that evaluating b only once applies to  abc
 expression only,NOT for expressions like   ab  and bc.?
 /correction

Assuming you're talking to me, then yeah, that's what I was saying.
But that was then.  Now I think that the statement in the reference
meant that while in a  b  c it is guaranteed that b is evaluated
only once, in a  b and b  c b may or maynot be evaluated once.
But then, that was what I was thinking when I started writing that
sentence.  Now I wonder if it is as ambiguous as that.  What happens
if b is something with side effects?

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Enclosing lexical context

2010-04-15 Thread Roshan Mathews
On Thu, Apr 15, 2010 at 23:33, Anand Chitipothu anandol...@gmail.com wrote:
 However, python3.0 added a new nonlocal construct to enable that.
 With python 3, you should be able to say:

So there are globals, locals, and nonlocals.

:)
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Coaching institute in Bangalore.

2010-04-16 Thread Roshan Mathews
On Fri, Apr 16, 2010 at 16:43, Adityendra Rawat
adityendra.rawa...@gmail.com wrote:
 Can some one tell me about some good coaching centers for Python around
 Kormangala or Indiranagar area.


Download Python here: http://www.python.org/download/
Go through this over the weekend: http://docs.python.org/tutorial/
If you run into trouble, ask here.
If you don't, work through: http://diveintopython.org/

Coaching centers are hit and miss affairs, you might find a good one,
but most likely you won't.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] python supports frameworks ?

2010-04-25 Thread Roshan Mathews
On Mon, Apr 26, 2010 at 07:53, jaya kumar jayakumargen...@gmail.com wrote:
 these and all i need to web development purpose can any one please answer ?

Check out http://docs.djangoproject.com/en/dev/intro/tutorial01/

Do mail the list f you have trouble starting off with that.

 and also please can any one tell is there any openings for freshers in
 python in bangalore ?

 if any openings in bangalore , python for freshers i would like to relocate
 to bangalore

Job openings are posted to this list from time to time.  You should go
through the list archives at
http://mail.python.org/pipermail/bangpypers/ and see if there's
anything that interests you.

 please reply ?

A little time searching the web will probably be more useful than
mailing the list.  But please do send a mail if you have already done
that.

Roshan
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Extracting zipfile

2010-05-30 Thread Roshan Mathews
On Mon, May 31, 2010 at 05:56, murugadoss murugadoss2...@gmail.com wrote:
 zipfile.extractall(home/murugadoss/testfile.zip)
 Traceback (most recent call last):
  File stdin, line 1, in module
 AttributeError: 'module' object has no attribute 'extractall'

http://docs.python.org/library/zipfile.html#zipfile.ZipFile.extractall

`extractall' is a method on ZipFile objects.

You might need to do something like:
z = zipfile.ZipFile(path_to_file)
z.extractall(...)
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] UI Designing

2010-05-31 Thread Roshan Mathews
On Mon, May 31, 2010 at 15:27, steve st...@lonetwin.net wrote:
 http://www.geekchix.org/blog/2010/01/03/a-collection-of-printable-sketch-templates-and-sketch-books-for-wireframing/


That's a very nice find, Steve.  Although I guess it's something that
only the artistically inclined could use well.  I usually prefer text
(there's this input, which will respond so to valid input, and so to
invalid input) and boxes and arrows on paper/whiteboard.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] sending binary files over socket

2010-06-01 Thread Roshan Mathews
On Tue, Jun 1, 2010 at 10:31, murugadoss murugadoss2...@gmail.com wrote:
 I need to pack and send a binary file over socket. The binary file is
 already existing.

Define a protocol, using http://code.google.com/p/protobuf/
That's one way.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] python with c bindings

2010-06-15 Thread Roshan Mathews
On Tue, Jun 15, 2010 at 21:42, Rahul R rahul8...@gmail.com wrote:
 I apologise for not being articulate since , i did know the right jargon to
 express it.

Can you please say what you meant by handling shell scripts inside c files?

-- 
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] designing programs

2010-06-24 Thread Roshan Mathews
On Fri, Jun 25, 2010 at 08:22, Kenneth Gonsalves law...@au-kbc.org wrote:
 what tools do people use when designing software? I tried dia once or twice
 but found it rather cumbersome

UI?  http://www.balsamiq.com/products/mockups is popular.  I prefer
paper/whiteboard.  Nothing beats having a designer do it for you.

--
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] designing programs

2010-06-24 Thread Roshan Mathews
On Fri, Jun 25, 2010 at 09:03, Kenneth Gonsalves law...@au-kbc.org wrote:
 UI?  http://www.balsamiq.com/products/mockups is popular.  I prefer
 paper/whiteboard.  Nothing beats having a designer do it for you.
 what do you mean by 'having a designer do it for you'?

There are people who do UI design.  Pay/hire them ... maybe I should
have started that sentence with a But

-- 
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] designing programs

2010-06-24 Thread Roshan Mathews
On Fri, Jun 25, 2010 at 11:17, Kenneth Gonsalves law...@au-kbc.org wrote:
 for one particular very complicated program, I modelled the whole workflow in
 dia - and found that the code worked perfectly on the first try. But I found
 dia a bit cumbersome, so I am looking for an alternative. I tried freemind,
 but that is good for talks, articles etc, does not really fit for programming.

Can you show what that (the dia workflow design) looked like?  I just
go with plain text brain dumps ... so I guess a mind-mapping tool
might be the equivalent thing if you're a visual person.  Why do you
feel freemind isn't a good fit for this purpose?

-- 
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] designing programs

2010-06-25 Thread Roshan Mathews
n Fri, Jun 25, 2010 at 14:59, Noufal Ibrahim nou...@gmail.com wrote:
 On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Friday 25 June 2010 12:37:25 Saju Pillai wrote:
 I am allergic to any design tool more complex than pen  paper


 well, we seemed have almost reached a consensus - now all we need to decide 
 is
 the pros and cons of pen versus pencil.

 This borders on Emacs vs. vi.

 I prefer a nice fountain pen but the reasons are more sentimental
 rather than practical so there!

So Emacs is a nice fountain pen, and vi is a broken lead getting into
sensitive equipment?

-- 
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] Tip: Creating new classes on the fly

2010-07-19 Thread Roshan Mathews
I came across this in a blog post just now.
See http://docs.python.org/library/functions.html#type

 class Foo(object): pass
...
 Bar = type('Bar', (object,), dict())
 f = Foo(); b = Bar()
 type(f), type(b)
(class '__main__.Foo', class '__main__.Bar')

Also see 
http://docs.python.org/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields

 from collections import namedtuple
 Baz = namedtuple('Baz', '')

Anyone switched to Python 2.7 yet?

-- 
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Need Help : Setting Floating Precision Point as 2 in Python

2010-08-24 Thread Roshan Mathews
On Tue, Aug 24, 2010 at 17:52, Arulalan T arulal...@gmail.com wrote:
 This gives the what I need.
 But I can not use this Decimal data type.

 In CDAT vcs module supports only the 'float data' type to represent the
 latitude  logitude in map.

 so I need float value in 2 precision without changing the value. Not in
 string. Not in Decimal.

Well, if you can't use Decimal, you won't be able to
use Python, because a float won't work for you:

 80.23
80.234

Any reason why you can't use Decimal, or a string,
or an integer?


--
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Fwd: [Baypiggies] Powerful Python Patterns

2010-09-29 Thread Roshan Mathews
On Sat, Sep 25, 2010 at 11:04, Venkatraman S venka...@gmail.com wrote:
 Slides from Alex's talk at Baypiggies.

 http://www.aleax.it/bayp010_ppp.pdf    -- Yesterday's talk
 http://www.aleax.it/oscon010_pydp.pdf

Missed this on BayPiggies.  Thanks for re-posting it here.

-- 
http://roshan.mathews.in/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [Announcement] Training on Extending Python using C

2010-11-23 Thread Roshan Mathews
On Tue, Nov 23, 2010 at 18:08, Noufal Ibrahim nou...@gmail.com wrote:
        As part of this, I'm organising my first training in
 Bangalore. It's on extending Python using C. I have a blog post
 detailing the course and with links to register at
 http://nibrahim.net.in/2010/11/22/python_extension_training.html

Noufal,

This sounds fantastic.  I wish was in Bangalore (or able to travel to
Bangalore) to attend.  Do post slides, or any other material you
present later on.

All the best for your talks.

Roshan

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [Announcement] Training on Extending Python using C

2010-11-23 Thread Roshan Mathews
On Wed, Nov 24, 2010 at 08:08, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Tue, 2010-11-23 at 19:18 +0530, Roshan Mathews wrote:
 This sounds fantastic.  I wish was in Bangalore (or able to travel to
 Bangalore) to attend.  Do post slides, or any other material you
 present later on.

 did you check out the link?

Yes.  Didn't notice that it was a paid lecture till I saw the
registration page though.  But that's that.  Why is it relevant?


-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [Announcement] Training on Extending Python using C

2010-11-23 Thread Roshan Mathews
On Wed, Nov 24, 2010 at 09:54, Noufal Ibrahim nou...@gmail.com wrote:
 I considered making it a free thing but dropped the idea. Preparing
 something complete with notes and stuff takes up a considerable amount
 of time (as I've found out) and I simply cannot just do it in my free
 time.

 I've put my projects on hold to do this properly. I've even half built
 an Emacs mode that will help in presenting the code. Designing and
 testing all aspects of this course is pretty much my day job right now.

Fwiw, I still think this is fantastic.  I don't think you should share
the notes for a paid talk (except maybe a teaser) unless you want to,
and I wouldn't have asked if I had realized it wasn't free.

Roshan


-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] regular expression for Indian landline numbers

2010-11-25 Thread Roshan Mathews
On Thu, Nov 25, 2010 at 15:11, Kenneth Gonsalves law...@au-kbc.org wrote:
 r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0
 \d{4}[-\s]{1}[1-6]{1}\d{5})'

 any clues on how to make it shorter?

The {1}s are redundant.

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] regular expression for Indian landline numbers

2010-11-25 Thread Roshan Mathews
On Fri, Nov 26, 2010 at 07:56, steve st...@lonetwin.net wrote:
 I had a bit of time this morning and didn't feel like starting work just
 yet, so to amuse myself I completed this. Here is the proper regex ...with
 tests !

 http://pastebin.com/yjP5H0i2

Neat.

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] refactoring

2010-12-02 Thread Roshan Mathews
On Fri, Dec 3, 2010 at 11:35, Anand Balachandran Pillai
abpil...@gmail.com wrote:
  However refactoring as discussed
  here is a more of a standardized process using tools and approaches
  designed for it, with some little buzz added to the mix.

Refactoring might have devolved into that now, but I don't think
that's what Fowler was pushing.

  Refactoring assumes that the implementation of the code is not
  closely tied with its interfaces. In other words, it assumes some amount
  of separation of concerns which will allow to modify the inner guts
  without changing the external behavior of the code.

To be pedantic, refactoring doesn't assume that, that's how it is
defined.  If you're changing the external behaviour then it isn't
refactoring that you're doing.  It's nice that Fowler named the
process, and showed some of the different refactorings possible, but
it'd be nice to be careful of what we use that word to describe.

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] refactoring

2010-12-04 Thread Roshan Mathews
On Fri, Dec 3, 2010 at 16:19, Kenneth Gonsalves law...@au-kbc.org wrote:
 After all the hue and cry dies down, it
 makes good sense to go back to the code and slowly remove all the
 repetitive parts, make the hacks look good and redo the monkey patching
 - if you have time.

Since this is a thread discussing Fowler's work, it's appropriate to
point to what he has to say on this topic:
http://martinfowler.com/bliki/TechnicalDebt.html

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] refactoring

2010-12-04 Thread Roshan Mathews
On Sat, Dec 4, 2010 at 17:36, Santosh Rajan santra...@gmail.com wrote:
 I have not seen refactoring as described by the book
 used by any of the open source software products. I would like to know
 if any one can show me refactoring used in software product
 development.

http://www.google.com/search?q=linux+kernal+refactoring
http://www.google.com/search?q=mozilla+refactoring

seem to throw up quite a lot of links.  I'd find it hard to believe
that there exist any live codebases of high quality that aren't
refactored on an ongoing basis.

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Roshan Mathews
On Fri, Jan 7, 2011 at 22:04, Narendra Sisodiya
naren...@narendrasisodiya.com wrote:
 Can somebody give an easy way to convert a image into black and white using
 a given threshold..

 Currently I am doing like this

    image=ImageOps.grayscale(image)
    for i in range(0,width):
        for j in range(0,height):
            if image.getpixel((i,j)) = 200:
                image.putpixel((i,j),0)

What's the problem with your code?  What you're doing is called image
binarization, afaik.  Thresholding is the basic way to do it, are you
unhappy with the results, or the speed of execution?  If it is speed,
the docs at http://www.pythonware.com/library/pil/handbook/image.htm
say you should consider using `getdata' ...

 What is the general mailing list to ask question on python ?

This is one.
There is also: http://mail.python.org/mailman/listinfo/baypiggies
And http://mail.python.org/mailman/listinfo/python-list


-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [JOB] Python developer required in Pune with web development experience

2011-01-12 Thread Roshan Mathews
On Thu, Jan 13, 2011 at 06:30, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Wed, 2011-01-12 at 21:35 +0530, s|s wrote:
 This interesting job comes with industry competitive compensation.
 how much? I wonder why in India people never mention salary range.


I vaguely remembered this line, but looking it up online tells me it's
from a book (The Big Short, Michael Lewis):

quote
Senior managment's job is to pay people, he'd say, If they fuck a
hundred guys out of a hundred grand each, that's ten million more for
them. They have four categories: happy, satisfied, dissatisfied,
disgusted. If they hit happy, they've screwed up. They never want you
happy. On the other hand, they don't want you so disgusted you quit.
The sweet spot is somewhere between dissatisfied and disgusted.
/quote

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [Ann] [Commercial] Weekend training program on Core Python

2011-02-02 Thread Roshan Mathews
On Thu, Feb 3, 2011 at 08:04, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Thu, 2011-02-03 at 01:16 +0530, Sudheer Satyanarayana wrote:
 I am with you. Naufal missed it. The message is indeed blank.

 s/Noufal/Naufal/ - I am able to see the message


http://mail.python.org/pipermail/bangpypers/2011-February/005826.html

What message do you see?

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [Ann] [Commercial] Weekend training program on Core Python

2011-02-02 Thread Roshan Mathews
On Thu, Feb 3, 2011 at 10:44, Kenneth Gonsalves law...@au-kbc.org wrote:
 On Thu, 2011-02-03 at 09:23 +0530, Roshan Mathews wrote:
 http://mail.python.org/pipermail/bangpypers/2011-February/005826.html

 What message do you see?

 that someone somewhere is conducting a weekend training program on Core
 Python, and that Noufal forwarded it to the list, and that his mail
 client sent it as an attachment which was stripped off by mailman.

Interesting, both Gmail and Mailman stripped that attachment.

Mailman doesn't always strip attachments: see
http://mail.python.org/pipermail/bangpypers/2009-October/002667.html

If it isn't a bother, could you paste the raw mail in a pastebin
online?  Might be instructive to figure out what kind of emails are
'cleaned'.


-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] FOSS String library in C/C++ that matches Python string functions...

2011-02-21 Thread Roshan Mathews
On Mon, Feb 21, 2011 at 15:16, Vishal vsapr...@gmail.com wrote:
 But the bottleneck is the stellar string python
 functionality that Python provides, and is not available in the string.h
 from C library.

What sort of functionality?

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Fwd: Help with Python IDE's

2011-03-27 Thread Roshan Mathews
On Mon, Mar 28, 2011 at 09:37, Navin Kabra navin.ka...@gmail.com wrote:
 On Mon, Mar 28, 2011 at 9:18 AM, Gora Mohanty g...@mimirtech.com wrote:
 Most any IDE that one is using, and that handles Python
 should work. Personally, I use emacs with various modes
 for Django development.

 Can you share exactly which modes you're using for django developement.

Yes, please give us more details.

 I use python-mode.el and while it works reasonably well for python, I
 haven't managed to make it work for django (it does not autocomplete for
 django). Also, any other tips/tricks you can share would help. Thanks.

I use the default python-mode from python.el ... what is
python-mode?  And you mean smart auto-complete?  I usually  just go
with dabbrev-expand (M-/).

Maybe I've gotten too comfortable with my setup, never looked around
for enhancements to Emacs' default python handling.  Details of your
setup would be appreciated.

Roshan


-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Nice feature

2011-04-01 Thread Roshan Mathews
On Fri, Apr 1, 2011 at 18:25, Navin Kabra navin.ka...@gmail.com wrote:
 With Python 2.6.5 (on ubuntu) I get even more bizarre behavior:
 foo=(1,[2,3,4])
 foo[1]+=6
 Traceback (most recent call last):
  File stdin, line 1, in module
 TypeError: 'int' object is not iterable
 foo
 (1, [8, 9, 10])

Couldn't reproduce this.  Noufal's example worked though.

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit
(Intel)] on win32
and
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) on Ubuntu 10.04

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Nice feature

2011-04-01 Thread Roshan Mathews
On Fri, Apr 1, 2011 at 18:44, Hussain Bohra hussainbohra...@yahoo.com wrote:
 Atleast on changing list, you gets an exception.

 On updating dictionary living inside tuple wont throw an exception as well.

I thought the surprising part was that it threw an exception, not that
it updated the list.  Even more surprising was that it threw the
exception and updated the list too.

 a, b = 1, [2, 3, 4]
 foo = (a, b)
 b += [5]
 foo
(1, [2, 3, 4, 5])




-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] [JOB] - Yahoo!

2011-09-13 Thread Roshan Mathews
On Tue, Sep 13, 2011 at 18:37, Sriram Narayanan sriram...@gmail.com wrote:
 Sriram Narayanan sriram...@gmail.com writes:
 I feel that poking fun at any company's business is in extremely
 disgusting taste. This was done once about Thoughtworks (the company I
 work with) on this very mailing list.

[...]
 As long as we encourage or worse, remain silent about corporates being
 made fun of, we're going to remain a community of hypocrites.


FWIW, I didn't have an opinion on the OT job posting because I didn't
read it.  But I must add that, it would be hypocritical to *not* poke
fun at companies, especially bumbling, incompetent, soon to be extinct
lumbering dinosaurs, (that don't do much beyond pooping all over the
techworld) such as Yahoo! and ThoughtWorks! (see what I did there?)

Now if Anand's or your self-image was so tied to your place of
employment that it would send you into a deep depression that someone
made fun of it, then I'd probably be disheartened (since that wasn't
my intention) but that wouldn't stop me from doing it.

We really should have fewer holy cows that are too sacred to be made
fun of.  Especially fat, methane producing ones like Y! and T!

Olé!
Roshan Mathews

PS - django/python/computer-software programmers who are looking for a
job, or are interested in being wooed may mail ros...@claylabs.com ...
and I'll ask the big boss man to call you himself.

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] [JOB] Clay Labs - Chennai

2011-10-18 Thread Roshan Mathews
Hey,

Clay Labs  http://claylabs.com/  is a startup in Chennai that is looking
for Python programmers, we have a blog post about this at

 http://blog.claylabs.com/post/11565942884/clay-labs-is-hiring

If you are a Python or Django programmer, or would be interested in being
one, please do drop us a line at j...@claylabs.com

If you know someone who would be interested in this, please pass this mail
on to them.

Regards,
Roshan Mathews
ros...@claylabs.com

-- 
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] django signals

2011-11-15 Thread Roshan Mathews
On Tue, Nov 15, 2011 at 14:12, Asif Jamadar asif.jama...@rezayat.net wrote:
 Can anybody explain me how these django signals works with example?

Yes, Alon Swartz can, over here -
http://www.turnkeylinux.org/blog/django-signals
Found via this wonderful site -
https://www.google.com/search?q=django+signals+example which gave much
better results than http://duckduckgo.com/?q=django+signals+example

--
http://about.me/rosh
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


  1   2   >