Hi all,
I recently joined the group. The idea of a user group meeting (every month I
assume ?) is very exciting. Can someone tell me where it happens normally ?
Thanks!
Jeff
On Tue, Jan 19, 2010 at 1:11 PM, Noufal Ibrahim wrote:
> On Tue, Jan 19, 2010 at 12:47 PM, Baiju M wrote:
>
> > On Tue,
Unfortunately I wont be able to attend, @Baiju, will you be making your talk
available online?
PS: Sorry if these appear really newbie questions, I'm new here and I'm just
looking around.
On Tue, Jan 19, 2010 at 9:48 PM, Diptanu Choudhury
wrote:
> +1
>
> On Tue, Jan 19, 2010 at 7:03 PM, nikunj b
+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 stackoverflow.co
>
> 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
wrote:
> Unfortunately I wont be able to attend, @Baiju, will you be making your
talk
> available onli
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
."
>
>
>
>
>
>
> Today's Topics:
>
>
>
>
>1. Re: January user group meeting (Arvind Jamuna Dixit)
>
>
>2. Re: January user group meeting (Noufal Ibrahim)
>
>
>3. Python Maintainence code: Debugging, Tracing and Profiling
>
[ 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 vanilla
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
prefer it over Ipython.
>
> On Sat, Feb 6, 2010 at 7:45 PM, Jeffrey Jose
> wrote:
>
> > [ caution, huge email follows ]
> >
> > Hey Senthil,
> > I was under the impression that everyone here used and loved IPython.
> Boy,
> > was I wrong.
> > I w
t 10:39 PM, Noufal Ibrahim 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
> wrote:
> > [
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
suit
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
Good catch.
On Mon, Mar 15, 2010 at 2:14 PM, Roshan Mathews wrote:
> On Mon, Mar 15, 2010 at 13:54, Kenneth Gonsalves
> wrote:
> >for child in children:
> >getaccbal(child.id,bal)
>
> This line returns a "balance" which is discarded. Maybe it should be:
> bal += getaccbal(.
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 se
ah, DreamWeaver. Good old days.
On Sat, May 1, 2010 at 11:57 PM, Kenneth Gonsalves wrote:
> 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 all comp
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
cli
python strings have a "split" function
it works like this.
>>> "this is a string".split()
["this", "is", "a", "string"]
>>> "one, two, three, four".split(',')
["one", "two", "three", "four"]
Note: without any arguments, split function split a string on whitespace.
Passing an additional parame
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
"/usr/lib/python2.6/site-packages/HarvestMan-2.0.4betadev_r253-py2.6.egg/harvestma
that's great. I'm sure he'll have better input.
On Sun, May 30, 2010 at 10:27 PM, Ramdas S wrote:
> On Sun, May 30, 2010 at 10:23 PM, Jeffrey Jose >wrote:
>
> > Let me state at the outset that I have no idea what Harvestman is or what
> >
> >
> FYI
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 wrote:
> On Mon, May 31, 2010 at 05:56, muruga
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 wrote:
> On Mon, May 31, 2010 at 8:32 AM, Jeffrey Jose
> wrote:
> > Dear Murugadoss,
> >
> > If yo
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 writ
*I'm still waiting* to get that page open.
On Tue, Jun 15, 2010 at 10:28 AM, Senthil Kumaran wrote:
> 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 to me. :)
>
>
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
>
> > Read about SEDA, I don't know if you have experience developing multi
>
> I am hearing about SEDA for the first time and it says it is a 'Staged
> Event Driven Approach' and gives the details of how staging can help
> in the Event Driven Approach. Now, we have quickly moved to a 'staged'
> ev
[OFFTOPIC]
%s/corporate/enterprise/g
FTFY.
/jeff
On Sun, Jun 27, 2010 at 10:56 AM, Kenneth Gonsalves wrote:
> 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 your design to
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 wrote:
> On Sun, Jul 04, 2010 at 10:34:57AM -0500, Benjamin Peterson wrote:
> >
> > On behalf of t
> 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
On Tue, Jul 20, 2010 at 9:56 AM, Roshan Mathews wrote:
> 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())
>
What you mentioned here is the exact mechanism of a ins
On Tue, Jul 27, 2010 at 4:15 PM, Vikram wrote:
>
> Hi Anand,vijay, and others,
> we have python 2.4.3 at our workplace and defaultdict is not present in the
> collections module in this python version.
>
> >>> dir(collections)
> ['__doc__', '__file__', '__name__', 'deque']
> >>>
>
I dont have py
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 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:
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 >wrote:
>
> > On Thu, Jul 29, 2010 at 4:24 PM, Nitin Kumar
> wrote:
> > > fine, but isn't there any way to hide few function of base class into
> > > derived one
On Thu, Jul 29, 2010 at 3:13 PM, Mehndi, Sibtey
wrote:
> 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 giving the
> attribute err
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 >wrote:
>
> > On Thu, Jul 29, 2010 at 3:13 P
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 wrote:
> Hey everyone,
>
> I could'nt find any info on whether or not hack sessions are going to be
> conducted as p
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
>
>
> 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 ` take you to `man bash` (man tcsh, in my case)
automatically?
> --
> ___
> BangPypers mailing list
>
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.
http://us.pycon.org/2010/co
On Thu, Aug 19, 2010 at 10:31 AM, Sahasranaman 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 retu
On Thu, Aug 19, 2010 at 10:26 AM, Dipo Elegbede wrote:
> 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 debate in what ha
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
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 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 list who
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
On Aug 15, 2011 3:02 PM, "Asif Jamadar" 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 access in p
Let me guess. You want the first tuple with elements that are divisible by
2 and second divisible by 3. Beats me still as to why you decided to call
it "compression"
>From your second email it seems like you're after list *comprehension*.
On Wed, Jan 9, 2013 at 1:20 PM, Gora Mohanty wrote:
>
Your #2 isnt a *one-line solution. *Its multple statements joined as one.
If that works, here's an improvement.
>>> tuple(x for x in a if not x%2), tuple(x for x in a if not x%3)
((4, 12), (9, 12, 15, 21))
-jeff
On Wed, Jan 9, 2013 at 1:11 PM, vijay wrote:
> Hi,
>I want to know if there i
On Wed, Jan 9, 2013 at 1:43 PM, Anand Chitipothu wrote:
> [[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
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" wrote:
> On 23 March 2013 14:49, Nitin Kumar wrote:
> > Thought to share news eveen though it has very
On Sat, Mar 23, 2013 at 3:14 PM, Gora Mohanty wrote:
> IMHO, this is a technically-oriented list, not a socially-oriented one.
>
It shouldnt be. And I have good reasons to believe it isnt.
These are real issues affecting Python. If you think nonoptimized
tail-recursion calls and dozens of http
> Will surely take from next time.
> >
> > One more thing, if I dont like anything I just refrain rather that topic
> > than making issue.
> >
> > Nitin K
> > On Mar 23, 2013 3:14 PM, "Gora Mohanty" wrote:
> >
> > > On 23 March 2013 15:08,
On Tue, Sep 10, 2013 at 11:10 AM, Bibhas 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
cfile:
I've always found attribute access of dictionary a bit weird, and too much
Javascript-y. The latter by itself doesnt make it bad .. but something I
dont prefer generally.
And yes, property access wont work for keys that start with numbers. (Same
in JS)
-jeff
On Tue, Sep 10, 2013 at 3:52 PM, Me@
On Wed, Sep 11, 2013 at 9:02 PM, Vardhan Varma wrote:
> 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 makan
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 Sat, Sep 14, 2013 at 4:55 PM, Noufal Ibrahim wrote:
> Balachandran Sivakumar 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 :).
>
> It's quite a strong prefe
I work at the DreamWorks Dedicated Unit, and I'm happy to field questions
if you have any.
Cheers!
-jeff
Lead Technical Director | http://www.imdb.com/name/nm4162617/
On Wed, Sep 18, 2013 at 2:18 PM, Venkatraman Sneha <
sneha.venkatra...@technicolor.com> wrote:
> Openings at DreamWorks Dedicat
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
significan
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* was
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 wrote:
> At the risk of giving a non-issue more visibility, we’re being extremely
&g
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, 201
On Mon, Aug 4, 2014 at 8:13 PM, Anand Chitipothu
wrote:
>
> On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV
> wrote:
>
>> On Mon, Aug 04 2014, Jeffrey Jose wrote:
>>
>> > I agree with almost all of it, except for these 2.
>> >
>> > 1. No
On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV
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
On Mon, Aug 4, 2014 at 8:13 PM, Anand Chitipothu
wrote:
>
> On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV
> wrote:
>
>> On Mon, Aug 04 2014, Jeffrey Jose wrote:
>>
>> > I agree with almost all of it, except for these 2.
>> >
>> > 1. No
Your error says you don't have opencv python bindings or python can't find
the bindings. The command you showed, however, tells me that you have
opencv installed. Those 2 are different.
On Nov 17, 2014 2:55 PM, "narayan naik" wrote:
> when I entered in terminal
> nv@ubuntu:~$ pkg-config --modvers
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" wrote:
> Ya, am talking the same
> On 19 Nov 2014 18:49, "Martin Anto" wrote:
>
> > Simulator??
> >
> > You mean interpreter?
> > On Nov 19, 2014 2:48 PM, "n
65 matches
Mail list logo