Re: [BangPypers] about python code

2014-11-20 Thread Jeffrey Jose
The default one works for almost all purposes. If you are feeling adventurous, try ipython -jeff On Nov 20, 2014 9:49 AM, narayan naik narayannaik...@gmail.com wrote: Ya, am talking the same On 19 Nov 2014 18:49, Martin Anto info.martina...@gmail.com wrote: Simulator?? You mean

Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
I agree with almost all of it, except for these 2. 1. No HTML emails 2. No attachments. These are surely relics from the past. I dont see any reason why these need to be valid anymore. If your answer to this is my favorite ncurses client cant read it it doesnt count. -jeff On Mon, Aug 4, 2014

Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
On Mon, Aug 4, 2014 at 8:13 PM, Anand Chitipothu anandol...@gmail.com wrote: On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV nou...@nibrahim.net.in wrote: On Mon, Aug 04 2014, Jeffrey Jose wrote: I agree with almost all of it, except for these 2. 1. No HTML emails I don't like

Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV nou...@nibrahim.net.in wrote: On Mon, Aug 04 2014, Jeffrey Jose wrote: I agree with almost all of it, except for these 2. 1. No HTML emails I don't like HTML emails because usual textual matter doesn't need it. It simply bloats things

Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
On Mon, Aug 4, 2014 at 8:13 PM, Anand Chitipothu anandol...@gmail.com wrote: On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV nou...@nibrahim.net.in wrote: On Mon, Aug 04 2014, Jeffrey Jose wrote: I agree with almost all of it, except for these 2. 1. No HTML emails I don't like

Re: [BangPypers] Raising issue WRT Bangpypers mailing list

2014-05-22 Thread Jeffrey Jose
​At the risk of giving a non-issue more visibility, we’re being extremely silly here. I went through the emails here and I dont find anything offensive or sarcastic or twisted in any of the replies. I do however find 2 things odd though. - Senthil’s original reply of *I looked and found it*

Re: [BangPypers] Raising issue WRT Bangpypers mailing list

2014-05-22 Thread Jeffrey Jose
Ha, I stand corrected. Senthil's reponse did contain everything the original poster wanted. Now I'm not sure what everyone's upset about. On Thu, May 22, 2014 at 3:45 PM, Jeffrey Jose jeffjosej...@gmail.comwrote: ​At the risk of giving a non-issue more visibility, we’re being extremely silly

Re: [BangPypers] Tornado or twisted?

2014-05-05 Thread Jeffrey Jose
I've played around with Twisted enough to not recommend it to someone unless they know what they are doing. The learning curve is pretty steep, and it's hard to wrap your head around the callback paradigm. It's super powerful once you get past growing pains, which as I mentioned is super

Re: [BangPypers] Mail formatting for this list

2013-09-14 Thread Jeffrey Jose
On Sat, Sep 14, 2013 at 4:55 PM, Noufal Ibrahim nou...@nibrahim.net.inwrote: Balachandran Sivakumar benignb...@gmail.com writes: [...] It is not a strong preference. It is something that a lot of us are used to, and so I assume people are fine with it and hence status quo

Re: [BangPypers] Mail formatting for this list

2013-09-13 Thread Jeffrey Jose
Except that when it breaks sentences at places completely random like this with a hanging word Do people have strong preference with 80chars? What would it take to try out full-width for sometime? On Fri, Sep 13, 2013 at 4:59 PM, Balachandran Sivakumar benignb...@gmail.com wrote: Hi, On

Re: [BangPypers] Python Wats

2013-09-11 Thread Jeffrey Jose
On Wed, Sep 11, 2013 at 9:02 PM, Vardhan Varma vardhanva...@gmail.comwrote: On Wed, Sep 11, 2013 at 8:42 PM, Pranjal Mittal pranjal.mittal.ec...@iitbhu.ac.in wrote: Here you go- import socket socket.gethostbyaddr(socket.gethostname())[2] On Wed, Sep 11, 2013 at 8:16 PM, ashish

Re: [BangPypers] Python Wats

2013-09-10 Thread Jeffrey Jose
On Tue, Sep 10, 2013 at 11:10 AM, Bibhas m...@bibhas.in wrote: Only the scripts that have been imported somewhere. Right? Not necessarily - import py_compile py_compile.compile Byte-compile one Python source file to Python bytecode. Arguments: file:source filename

Re: [BangPypers] Female developer fired after tweeting about men's comments at PyCon 2013 and San Jose.

2013-03-23 Thread Jeffrey Jose
I disagree. I haven't read the article but it looks like it talks about very specific behavior in the python community which we are all part of. -jeff On Mar 23, 2013 3:01 PM, Gora Mohanty g...@mimirtech.com wrote: On 23 March 2013 14:49, Nitin Kumar nitin.n...@gmail.com wrote: Thought to

Re: [BangPypers] Female developer fired after tweeting about men's comments at PyCon 2013 and San Jose.

2013-03-23 Thread Jeffrey Jose
just refrain rather that topic than making issue. Nitin K On Mar 23, 2013 3:14 PM, Gora Mohanty g...@mimirtech.com wrote: On 23 March 2013 15:08, Jeffrey Jose jeffjosej...@gmail.com wrote: I disagree. I haven't read the article but it looks like it talks about very specific

Re: [BangPypers] List compression imrpovement

2013-01-09 Thread Jeffrey Jose
On Wed, Jan 9, 2013 at 1:43 PM, Anand Chitipothu anandol...@gmail.comwrote: [[x for x in a if x%i == 0] for i in [2, 3]] oh thats smart. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] 'dict' object has no attribute 'company_name'

2011-08-15 Thread Jeffrey Jose
On Aug 15, 2011 3:02 PM, Asif Jamadar asif.jama...@rezayat.net wrote: charges = [(c.company_name) for c in ReportModel.objects.values('company_name').distinct()] but it throws this error: 'dict' object has no attribute 'company_name' any suggestions? dict attribute

Re: [BangPypers] BangPypers meeting February 2011

2011-02-12 Thread Jeffrey Jose
Its kinda true that noSQL started as 'death to everything that's SQL'. As things got matured people realized noSQL is not a replacement but another tool in developers toolbox to solve problems. And that's the reason some people dont ever use the term 'noSQL' because it sounds like 'No SQL' and if

Re: [BangPypers] What kind of applications can we develop with Python

2010-12-01 Thread Jeffrey Jose
IIRC, most of the backend of youtube is written in python (unladen swallow ?) /jeff On Wed, Dec 1, 2010 at 7:36 PM, Noufal Ibrahim nou...@gmail.com wrote: On Wed, Dec 01 2010, Baishampayan Ghose wrote: one that I know of is flickr. About the power of the language there are others on this

Re: [BangPypers] Beginner help

2010-10-03 Thread Jeffrey Jose
On Sun, Oct 3, 2010 at 9:28 AM, Gopalakrishnan Subramani gopalakrishnan.subram...@gmail.com wrote: If you want to be too smart, Emacs is the best one for all your typing need. It works well on Windows/Macs/Linux/Unix operating system. pymacs enable you to detect the basic python related

Re: [BangPypers] Dictionary : An elementary question

2010-08-19 Thread Jeffrey Jose
On Thu, Aug 19, 2010 at 10:31 AM, Sahasranaman MS sah...@naman.ms wrote: On Thursday 19 August 2010 07:08 AM, Kenneth Gonsalves wrote: On Wed, 2010-08-18 at 10:28 -0700, Anand Shankar wrote: I have no clues. Any inputs?? sort order of dictionary keys is not guaranteed. Only a list will

Re: [BangPypers] Dictionary : An elementary question

2010-08-19 Thread Jeffrey Jose
On Thu, Aug 19, 2010 at 10:26 AM, Dipo Elegbede delegb...@dudupay.comwrote: Hi All, There really shouldn't be so much debate on the question asked. Someone actually gave a direct and clear answer. I'm new at python and his explanations were quite understandable. I'm sorry that you sensed a

Re: [BangPypers] Dictionary : An elementary question

2010-08-18 Thread Jeffrey Jose
Excellent responses so far. Dictionaries are optimized for retrieving key/value pairs. And to achieve that, it compromises on the order in which stuff is stored. This and more is very nicely presented in the Pycon 2010 talk - The Mighty Dictionary. Highly recommended.

Re: [BangPypers] source

2010-08-16 Thread Jeffrey Jose
I don't think it'd help. It's a shell builtin without a man page of it's own. You'd either have to do man bash or help source wont `man builtin` take you to `man bash` (man tcsh, in my case) automatically? -- ___ BangPypers mailing list

[BangPypers] EuroPython videos out now!

2010-08-15 Thread Jeffrey Jose
via: http://www.europython.eu/blog/announcements/talk-videos-from-ep2010-published/ and videos are here. http://europythonvideos.blip.tv/ enjoy! /jeff ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] how to delete base class attribute

2010-07-31 Thread Jeffrey Jose
On Thu, Jul 29, 2010 at 6:34 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: On Thu, Jul 29, 2010 at 5:33 PM, Mahadevan R mdevan.foo...@gmail.com wrote: On Thu, Jul 29, 2010 at 4:24 PM, Nitin Kumar nitin.n...@gmail.com wrote: fine, but isn't there any way to hide few function of

Re: [BangPypers] how to delete base class attribute

2010-07-31 Thread Jeffrey Jose
On Thu, Jul 29, 2010 at 3:13 PM, Mehndi, Sibtey sibtey.meh...@genpact.comwrote: Nitin, del can only remove the elements present in the instance dictionary. If you check self.__dict__ then it shows that A is not in the dictionary only 'a' and 'b' exist in the dict that's why it is

Re: [BangPypers] how to delete base class attribute

2010-07-31 Thread Jeffrey Jose
. The purpose is 2 fold, 1. You'll get more eyeballs - more quality responses. 2. We can document it more formally so that someone later on can browse mail archives. /jeff On Sat, Jul 31, 2010 at 11:57 PM, Jeffrey Jose jeffjosej...@gmail.com wrote: On Thu, Jul 29, 2010 at 3:13 PM, Mehndi, Sibtey

Re: [BangPypers] pycon hacksessions?

2010-07-31 Thread Jeffrey Jose
As a person whos new to the whole scene, when you say Hacksessions what is it exactly ? And what happens in a Hacksession? /jeff On Thu, Jul 22, 2010 at 8:17 PM, Zubin Mithra zubin.mit...@gmail.comwrote: Hey everyone, I could'nt find any info on whether or not hack sessions are going to

Re: [BangPypers] nested list help

2010-07-28 Thread Jeffrey Jose
On Wed, Jul 28, 2010 at 1:01 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: On Tue, Jul 27, 2010 at 7:03 PM, Vikram K kpguy1...@gmail.com wrote: Suppose i have this nested list: x [['NM100', 3, 4, 5, 6, 7], ['NM100', 10, 11, 12, 13], ['NM200', 15, 16, 17]] for i in x:

Re: [BangPypers] nested list question

2010-07-14 Thread Jeffrey Jose
List comprehensions are preferred to map and filter functions.In fact, filter is a syntactic sugar to list comprehension. You're right in saying list comprehensions are preferred to map and filter - not just from a readability standpoint but also from a performance standpoint. (we all hate

Re: [BangPypers] FW: [Python-Dev] [RELEASE] Python 2.7 released

2010-07-06 Thread Jeffrey Jose
Follow up reading. Python 2.7 released (and what that means) - http://sayspy.blogspot.com/2010/07/python-27-released-and-what-that-means.html /jeff On Tue, Jul 6, 2010 at 9:44 AM, Senthil Kumaran orsent...@gmail.com wrote: On Sun, Jul 04, 2010 at 10:34:57AM -0500, Benjamin Peterson wrote:

Re: [BangPypers] designing programs

2010-06-28 Thread Jeffrey Jose
[OFFTOPIC] %s/corporate/enterprise/g FTFY. /jeff On Sun, Jun 27, 2010 at 10:56 AM, Kenneth Gonsalves law...@au-kbc.orgwrote: On Saturday 26 June 2010 21:02:52 shameek ghosh wrote: Well...Although I have not done this much, but I believe a modelling tool like UML helps when you show

Re: [BangPypers] list to dictionary problem

2010-06-22 Thread Jeffrey Jose
2 methods spring to my mind, first one is what Nitin Kumar has already mentioned. Looping over a list of tuples. Make sure you have a sorted list first. a.sort() for key, value in a: if key == cat: break # now value is 2 The second method is a little fancy, mentioning it here for the sake

Re: [BangPypers] biopython

2010-06-14 Thread Jeffrey Jose
*I'm still waiting* to get that page open. On Tue, Jun 15, 2010 at 10:28 AM, Senthil Kumaran orsent...@gmail.comwrote: On Tue, Jun 15, 2010 at 09:46:14AM +0530, Srinivas Reddy Thatiparthy wrote: point your browser to www://docs.python.org. Just a fun nit-pick. Seems to be a fun protocol

Re: [BangPypers] Extracting zipfile

2010-05-31 Thread Jeffrey Jose
Correct me if I'm wrong but tab-completion doesn't work out of the box for standard python interpreter. On Mon, May 31, 2010 at 11:05 AM, Noufal Ibrahim nou...@gmail.com wrote: On Mon, May 31, 2010 at 8:32 AM, Jeffrey Jose jeffjosej...@gmail.com wrote: Dear Murugadoss, If you're starting

Re: [BangPypers] UI Designing

2010-05-31 Thread Jeffrey Jose
For UI design, I 1. Start off with pen and paper, quickly mock up several designs and interaction patterns 2. Proceed onto Photoshop/Illustrator to get a feel of how things would look at the end. Repeat 1 and 2 over and over Once I'm ok with a design, I proceed to the next phase, probably

Re: [BangPypers] Harvestman error

2010-05-30 Thread Jeffrey Jose
Let me state at the outset that I have no idea what Harvestman is or what you're trying to acheieve. Looking at the stacktrace, I'll give you some pointers as to what I'd do if I had got this error. 1. File

Re: [BangPypers] Harvestman error

2010-05-30 Thread Jeffrey Jose
that's great. I'm sure he'll have better input. On Sun, May 30, 2010 at 10:27 PM, Ramdas S ram...@gmail.com wrote: On Sun, May 30, 2010 at 10:23 PM, Jeffrey Jose jeffjosej...@gmail.com wrote: Let me state at the outset that I have no idea what Harvestman is or what FYI Author

Re: [BangPypers] Extracting zipfile

2010-05-30 Thread Jeffrey Jose
Dear Murugadoss, If you're starting out Python, I highly recommend IPython ( http://ipython.scipy.org/moin/ ). With its excellent tab completion, you would never run into an AttributeError /jeff On Mon, May 31, 2010 at 7:30 AM, Roshan Mathews rmath...@gmail.com wrote: On Mon, May 31, 2010

Re: [BangPypers] if we compare Rails and django

2010-05-01 Thread Jeffrey Jose
Forgive if I sound rude, but whenever I see replies like lots of this and lots of that I get a feeling that you dont really know what you're going to do. I admire the fact that you want to use the _best_ in the business but you should be mature enough to understand that however good something

Re: [BangPypers] if we compare Rails and django

2010-05-01 Thread Jeffrey Jose
ah, DreamWeaver. Good old days. On Sat, May 1, 2010 at 11:57 PM, Kenneth Gonsalves law...@au-kbc.orgwrote: On Saturday 01 May 2010 11:34:40 pm kausikram krishnasayee wrote: python cgi is better - and zope rocks zope3 rocks. correction. but the best framework that is miles ahead of

Re: [BangPypers] if we compare Rails and django

2010-05-01 Thread Jeffrey Jose
I second suggestion of jQuery. I've had fantastic results with jQuery so I can totally recommend that. Also I remember reading about django and jQuery integration a while back - althou' I never really tried that myself. If you happen to choose django (and jQuery without any second thoughts for

Re: [BangPypers] recursion not working

2010-03-15 Thread Jeffrey Jose
Good catch. On Mon, Mar 15, 2010 at 2:14 PM, Roshan Mathews rmath...@gmail.com wrote: On Mon, Mar 15, 2010 at 13:54, Kenneth Gonsalves law...@au-kbc.org wrote: for child in children: getaccbal(child.id,bal) This line returns a balance which is discarded. Maybe it

[BangPypers] DreamPie - A new Interactive Python Shell

2010-02-22 Thread Jeffrey Jose
I remember a while ago we were talking about python shells. I came across this. http://dreampie.sourceforge.net/ Note: I havent given it a try. Just sharing it incase someone finds it useful. Share with us your thoughts if you do. From the website DreamPie is a Python shell which is designed to

Re: [BangPypers] which one is the best pythonic way .

2010-02-08 Thread Jeffrey Jose
filter, map (reduce, any, all) come from the world of Functional Programming. For that matter list comprehension was borrowed from FP (haskell). I wont attempt to compare them as they cater to different needs. Yes, they overlap in certain areas but I'd like to think of them as seperate assets

Re: [BangPypers] using IPython from pdb

2010-02-06 Thread Jeffrey Jose
[ caution, huge email follows ] Hey Senthil, I was under the impression that everyone here used and loved IPython. Boy, was I wrong. I wont attempt to convince you folks why you should use IPython, but here a few features that I love in IPython which are not there (or not very obvious) in

Re: [BangPypers] using IPython from pdb

2010-02-06 Thread Jeffrey Jose
Not quite long ago, I wrote, You loose all capabilities of pdb when you're in IPython (there's a solution, i'll get to that later) Its called ipdb. IPythonised pdb. I havent used it to recommend it. I'm happy with the solution that I have right now for debugging and writing code. Read more about

Re: [BangPypers] using IPython from pdb

2010-02-06 Thread Jeffrey Jose
but I prefer it over Ipython. On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose jeffjosej...@gmail.com wrote: [ caution, huge email follows ] Hey Senthil, I was under the impression that everyone here used and loved IPython. Boy, was I wrong. I wont attempt to convince you folks why you

Re: [BangPypers] using IPython from pdb

2010-02-06 Thread Jeffrey Jose
, Noufal Ibrahim nou...@gmail.com wrote: I'd recommend that you use standard email quotations. It makes for better reading rather than the * notation that you've used to reply to Senthil's mail. On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose jeffjosej...@gmail.com wrote: [ caution, huge email

Re: [BangPypers] Python Maintainence code: Debugging, Tracing and Profiling help

2010-01-24 Thread Jeffrey Jose
Hi Anand, I can talk a lil bit about your 2 queries. Debugging and seeing the flow of the program. *A. Debugging* Surprisingly both of them come under the same banner. One of the reasons you debug is to see how the code progresses. For debugging I highly recommend Python Debugger. It would look

Re: [BangPypers] January user group meeting

2010-01-22 Thread Jeffrey Jose
Do you folks upload the presentation/audio/video somewhere? I am much interested in the buildbot talks. -srid On Tue, Jan 19, 2010 at 10:37 PM, Jeffrey Jose jeffjosej...@gmail.com wrote: Unfortunately I wont be able to attend, @Baiju, will you be making your talk available online? I am

Re: [BangPypers] Help plzz..

2010-01-20 Thread Jeffrey Jose
+1 for both Byte of Python and Dive into Python Also, Python CookBook Once you've familiarised with the language (I didnt say mastered it) hit video.google.com for some excellent Google Tech Talks in the field of python including Python Giants like Alex Martelli I've also found