Hello everyone,
The list seems to be inactive these days. However, I'm sure some
of the old timers are still here so I'll post away!
I've been running The Lycaeum program for a while now and I've
managed to train a decent number of people who found good jobs mostly in
the startup
On Sat, Aug 29 2020, Aakanksha Jain wrote:
> Hi Noufal,
>
> Is this program career fair open to freshers who haven't been part of the
> training programs mentioned by you?
[...]
Oh yes. Definitely. My original email was originally looking for
companies who might be interested in this so that I
Hello everyone,
We're a startup headquartered in Kozhikode, Kerala and have been
operating for a while. Our mission is to bridge the skill gap in
engineering in India and we've been working towards that with a
combination of online and offline training programs. We used to run a
low volume
On Thu, Aug 09 2018, Rohit Chormale wrote:
> Thanks everyone for kind replies.
[...]
Much of ML is applied statistics. I recently refreshed some of my high
school statistics using http://greenteapress.com/thinkstats/ and
https://greenteapress.com/wp/think-bayes/ and found it fun. These might
On 2018-08-09 08:48, Rohit Chormale wrote:
[..]
Currently I am trying to teach myself machine learning. But I am facing
difficulty to connect it in real life. I would really love to know the
real
life scenarios for machine-learning applications affecting individuals.
How
did you guy start
On Thu, Nov 02 2017, Ajinkya Bobade wrote:
[...]
> However, I want to write this code for "*.bag" extension files that is
> sys.stdout = open("/Volumes/aj/hello world.bag", 'w') . This file is
> defined as Binary(application/octect-stream). The above code doesn't
> work in this scenario. How
On Thu, Nov 02 2017, Ajinkya Bobade wrote:
> Hello,
>
> Hope someone can help me on this. In the following code, I want to capture
> print('Recording GPS Position...') on sd card, for now, this is printing
> on terminal directly I want to capture this runtime process (p_1) from
> terminal and
On Tue, May 16 2017, kracekumar ramaraju wrote:
[...]
> To engage the large crowd, how about conducting a monthly webinar for one
> hour? Along with the physical meetup, experiment with webinar and have one
> talk per session.
This sounds like an excellent idea. +1
As an aside, here's an
On Wed, Mar 22 2017, Bhavin Patel via BangPypers wrote:
> What about genuine queries about python with attachments ? Let's not
> have a knee jerk reaction to a one off issue.
Like what? I've been on mailing lists for quite a while and the general
way is to upload it somewhere and send a link
On 2017-03-21 03:35, Sivasubramaniam Arunachalam wrote:
[..]
IMHO, being fair to the participants by asking money(to prove their
seriousness in participation) doesn't look good for a 12 years old,
matured
and self-sustained community like Bangpyers. It is simply an
additional headache to the
Excellent work everyone. Bangpypers is becoming really enviable. I'm
almost regretting leaving Bangalore. :)
On 2017-03-20 17:21, kracekumar ramaraju wrote:
Hi
BangPypers is hosting learn algorithm with Python on 25th, March from
2:30
to 5:30 in Thought Factory, Domlur.
The workshop will
On 2017-01-25 04:03, Blake Merriam wrote:
Hello.
I'm trying to figure out how to use this python app: http://wfuzz.org/
There is the following domain: games.skillz.com/games/ that has many
numbered sub directories.
Example:
http://games.skillz.com/game/2314
http://games.skillz.com/game/942
I
On Fri, Nov 18 2016, Shanki Singh Gandhi wrote:
> Really astonished after visiting CFP site of pune pycon, wondering why
> Junction is not being used for it. If we are not using the product
> developed by use, then why other will use it.
[...]
Let's not go there.
Junction is one option for
On Tue, Nov 08 2016, Rajesh Deo wrote:
> Dear All,
>
> I was exploring the threading module and came up with following, after
> going through @raymondh's talk (https://www.youtube.com/watch?v=Bv25Dwe84g0)
>
> http://pastebin.com/usKE6nME
Can you put it on another pastebin service? My ISP is
On , Siva Ranganath wrote:
Hi All,
please let me know few cases when we will go with Lists and tuples in
pyhton.
Lists are like vectors (since you're from a C++ background). They can
expand/contract depending on data and are also heterogeneous meaning
that all the elements needn't be of the
Hello Annapoornima,
Good work with the videos.
I used to make tutorial videos of Emacs but stopped due to lack of
time. I have a few suggestions that might help you get more mileage out
of low cost equipment.
1. If you make the whole thing into a screencast rather than a video
(via a
On Tue, Aug 30 2016, chandan kumar wrote:
> Hello,
>
> We are delighted to announce our third keynote speaker for PyCon India
> 2016: Van Lindberg
[...]
Wonderful!
--
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers mailing list
I think Python 3 has arrived. There are a few libraries that are not
ported and there's legacy code which you might have to work on but apart
from that, 3 is the way to go.
Learn Python the Hard way is a good book to start with and the HTML
version is available online.
--
Cordially,
Noufal
On Wed, Jun 01 2016, anu sree wrote:
> Hi,
>
> I am looking for a framework which helps to write functional test
> cases. Right now i am using unittest framework to do that, but that
> is ugly.
I consider py.test as one of Python's "killer applications". I've used
it since 2010 or so for almost
On Mon, May 09 2016, Santosh Chiniwar wrote:
> Please find correct Python code for above mail. Thank you
>
[...]
This doesn't help either. You need to be a little more specific and
detailed about the problem that you're facing. I've found
http://www.catb.org/esr/faqs/smart-questions.html to be
On Thu, May 05 2016, Manjushree Hegde wrote:
> Hello,
>
>
> I am looking for Python trainers for corporate training. Please let me
> know if anyone is interested in this.
[...]
We do corporate trainings on Python and other technologies via
pipal.in. If you're interested, please email us at
On Thu, May 05 2016, Suman Debnath via BangPypers wrote:
> I would highly recommend Mr. Chandrashekhar Babu
> (https://www.linkedin.com/in/chandrashekarbabu?authType=name=WHf
> d=wonton-desktop).
> He is the best training I have ever come across.
[...]
+1. I know him personally and he's really
On Tue, Jan 12 2016, ashish makani wrote:
> thanks & true Noufal, but 2 points :
>
> 1. i imagine this is a fairly common usecase
> you are given some source python codebase , X which is moderately complex
>
> i just want to give X & some typical args which X takes, to a
> tool/library, so i get
On Tue, Jan 12 2016, ashish makani wrote:
[...]
> Is there a python library/tool/module , to which i give input the start
> point of X, x.py
> and the input arguments, arg1, arg2, ..., argn
I once needed something like this but went about it statically using
this
On Mon, Jan 11 2016, yogesh gupta wrote:
> Does the event happens in mumbai anytime of the year ?
[...]
If you know sufficient Pythonistas in Mumbai, you should try to conduct
a small scale conference by yourself. Lots of regional events is a good
thing. :)
--
Cordially,
Noufal
On Sat, Dec 05 2015, Gora Mohanty wrote:
[...]
> Maybe because that was the historical way that C did it? I agree that
> the Python 3 exception makes more sense.
[...]
We can only guess but you'll have to explicitly code this in and I can't
think of any situation where it would make sense.
On Sat, Dec 05 2015, Anand Chitipothu wrote:
[...]
> Thats why you should use Python 3. Here is what you get with Python 3.
[...]
Yet another reason to move. I'm still curious why they did it the other
way in 2.x though.
--
Cordially,
Noufal
http://nibrahim.net.in
So I came across this today..
>>> class Number(object):
...def __init__(self, n):
... self.n = n
...
>>> m = Number(10)
>>> n = Number(5)
>>>
>>> m < n
True
This is documented like so
> If no __cmp__(), __eq__() or __ne__() operation is defined, class
> instances are compared by
On Wed, Nov 25 2015, ashish makani wrote:
> Weird.
> I don't see such an error.
>
> Maybe some side effect of your mail program ?
[...]
Yup. Looks like it's just me.
--
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers mailing list
Is "in...@surendran.zendesk.com" subscribed to the list? I get an
automated reply for each and every email that comes on this list from
that address. If others see something similar, please remove the address
from the list roster.
--
Cordially,
Noufal
http://nibrahim.net.in
On Sat, Nov 21 2015, Harsh Gupta wrote:
[...]
> So, what do you think about it?
[...]
I'm sceptical of organisations and much prefer that companies directly
hire people to work on free software rather than first make x, then
donate a small fraction of x to some organisation who then donate a
On Thu, Oct 29 2015, Gora Mohanty wrote:
[...]
> With all due respect to Mr. Noller, the article is not germane to this
> list. Please refrain from off-topic posts.
[...]
Perhaps not completely relevant to PyCon but it is, I think, useful to
many people who are putting in time and energy to
On Fri, Oct 30 2015, Gora Mohanty wrote:
[...]
> OK, we will have to agree to disagree, Incidentally, this was posted
> to the bangpypers list which is explicitly devoted to Python, and not
> to the Pycon list.
Yeah. I meant to say python but mistyped it.
[...]
--
Cordially,
Noufal
On Sat, Aug 15 2015, kracekumar ramaraju wrote:
[...]
Biggest problem with IRC is to on board new comers. The learning curve is
steep for normal tech users.
It only makes life for already acquainted users easier not for new comers.
It hardly takes 5-15 minutes get new person to get used to
On Sun, Aug 16 2015, sankarshan wrote:
[...]
An anecdote_of_one: a reason Slack or, Scrollback like services are
often preferred over IRC/email is because of the asynchronous nature
of request-response. For example, you seek some answer and unless you
are logged in, the responses will not be
On Sun, Aug 16 2015, kracekumar ramaraju wrote:
[...]
AFAIK having apps in all platforms helps users to stick to the
conversation and get notification. How awesome will it be if someone
asks a question and gets an answer after 5 hours and notified for it.
[...]
Kind of like a mailing list.
On Sun, Aug 16 2015, kracekumar ramaraju wrote:
[...]
Surely people who want to participate and contribute ... Let's not
limit these conversations to only those who want to code.
+1. This will make huge difference.
Significant amount of users are on windows and lot prefer web client. Web
On Fri, Aug 14 2015, Python Consultant wrote:
Hi Guys,
I am writing a script to open hyper terminal and send password file for
serial port reprocessing.
using subprocess.Popen i am able to open hyper terminal
subprocess.Popen([Hyperterminal path, saved session path])
On Mon, Jul 20 2015, vijay kumar wrote:
[...]
Am one among them hence i want to see it continue to be what it is
today.
[...]
That's great and I'm sure it'll get better. My comments were just my own
thoughts.
--
Cordially,
Noufal
http://nibrahim.net.in
On Mon, Jul 20 2015, vijay kumar wrote:
[...]
We expect companies to be alteast be active in community in share knowledge
rather than just coming for job posting announcement.
Companies are not interested in sharing knowledge. They're interested
in hiring and making money as it should be.
I still think it's a worthwhile experiment and should be tried. If
things go awry, it can be cancelled.
--
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers
On Sun, Jul 19 2015, kracekumar ramaraju wrote:
[...]
There was a suggestion of having 10 minutes slot at the end of the meetup
where companies can speak about them and openings for 2 minutes.
+1 atleast as an experiment. Companies are part of the community.
[...]
--
Cordially,
Noufal
On Sun, Jul 19 2015, Deep Sukhwani wrote:
One major concern of all is that people showing up on meetups ONLY
with an agenda of getting a chance to speak with employers.
True but I think this distinction between community and companies is
not as clear cut as it's made out to be. Companies do
On 2015-06-21 19:48, anu sree wrote:
Thanks noufal,
I got it.
After gevent.spawn, we have to do join or gevent.joinall or
gevent.sleep or
patched library call to start the greenlets, right ?
join (and joinall) will pause the current greenlet till the ones you've
joined terminate (similar
On Sun, Jun 21 2015, anu sree wrote:
[...]
This code has two pause (gevent.sleep(0)), in Consumer.start and
Worker.run. Here control goes to Worker.run when Consumer.start
pauses and Consumer.start gets control back when Worker.run
pauses. There may be benefit from this switching, but I am
On Sat, Jun 20 2015, anu sree wrote:
Hi,
I have seen an example of gevent context switch
http://sdiehl.github.io/gevent-tutorial/#synchronous-asynchronous-execution
Could you please give some real use case with example.
It would be fine If you can share link of github project which uses
On Wed, May 27 2015, Ramdas S wrote:
Need to have an offline call, if they have time and if available, to
take a quick decision to take a call on to shelve or use this tool or
build somethig from scratch...
[...]
I wrote an email interface to a ticketing system using lamson once. It's
very
On Wed, May 27 2015, Ramdas S wrote:
Noufal,
I want to use this for setting up an interim SMTP server which based
on certain rules should decide whether the mails need to go through
the normal corporate server, or should go through an alternate SMTP
server. This is primarily to reduce
On Mon, Apr 20 2015, Abishek wrote:
Myself Abishek ,2015 B.E passout (computer science and engineering )
fresher, looking for python based jobs in bangalore.If anyone know job
opportunities pls let me know. I am so much interested in python
programming,networks and security...
[...]
Try
On Sun, Apr 12 2015, kracekumar ramaraju wrote:
[...]
No, it is third saturday day of the month, following same tradition.
Unfortunately, this time we had hiccup with venue host.
[...]
Cool.
--
Cordially,
Noufal
http://nibrahim.net.in
___
On Sun, Apr 12 2015, kracekumar ramaraju wrote:
Hi
We're hosting April meetup on 25 in IBM Accelerator, Domlur. RSVP is open
http://www.meetup.com/BangPypers/events/178049472/.
[...]
Krace,
Is it always on the last Saturday of the month?
Thanks.
--
Cordially,
Noufal
On Sat, Mar 07 2015, HHB wrote:
Hi Guys,
Here’s more info: based on what people asked:
1. It’s an established product company, so competitive pay. (I am no
HR though)
[...]
Surely it's simpler just mention the name of the company? Why all this
cloak and dagger secrecy? :)
--
On Tue, Jan 20 2015, Suyash Bhatt wrote:
Hi Friends,
I am looking for any Basic training material for Python which can be shared
across (with due credit).
Please let me know if anyone can help me with that.
I wrote this for an early training I conducted. It's out of date though
and needs
20, 2015 at 11:47 AM, Noufal Ibrahim KV
nou...@nibrahim.net.in wrote:
I wrote this for an early training I conducted. It's out of date though
and needs fixing but you might be able to get something out of it.
http://nibrahim.net.in/self-defence/
Is it ok if we use this for some
On Tue, Dec 30 2014, Okan bhan wrote:
[...]
My major reason to continue will be no exposure to PostgreSQL. And
after struggling so much with MySQL, if I use Postgre I will be in a
domain of unknown again. Can anyone please point to articles comparing
latest version of both or share their
On Tue, Dec 30 2014, Gora Mohanty wrote:
On 30 December 2014 at 19:32, Noufal Ibrahim KV nou...@nibrahim.net.in
wrote:
[...]
I can't offer anything normative but in my experience (and it's a little
dated since I don't use mySQL for anything these days), mySQL is a
disaster waiting to hit
On Mon, Dec 29 2014, piyush singhai wrote:
Hello,
You can download from here.
python essential reference 3rd edition
https://microembedded.googlecode.com/files/Python_Essential_Reference_3rd_Edition.pdf
[...]
This looks like it's being hosted in violation of copyright. Please
don't
On Wed, Dec 24 2014, Saager Mhatre wrote:
[...]
We... I wouldn't put quite as much stock in the CCNA given the
people we interviewed at TW for a sysad position.
CCNA's are the lowest rung as far as I know. They're fairly easy to get
too. CCIEs are very hard to get and the ones I
On Mon, Dec 22 2014, Bibhas Ch Debnath wrote:
Is there anyone or any company here that actually values a certificate
for Python? In my experience, certification courses mean nothing, at
least for Python developers. None of the people I know or have worked
with, cares about a certificate.
I'd
On Thu, Dec 11 2014, Rajiv Subramanian M wrote:
[...]
Question:
1. How in the first case i.e [iter(x)] * 3 creates a list of 3 but the
same objects?
The * operator when applied to a list (or any sequence type) is a
repetition. You can see the code for list_repeat here [1]. The line I've
On Tue, Nov 18 2014, Vanitha Shanmugam wrote:
[...]
We have the mailing list (
http://lists.pssi.org.in/mailman/listinfo/diversity) created. This
mailing list only for female pythonistas and the archives are not
public so the discussions are kept private.
[...]
There is a Python diversity
On Mon, Nov 17 2014, narayan naik wrote:
hi,
when I am running face detection code ,I am getting this error.
[...]
This is a very basic question. You should go probably go through a
python tutorial before attempting this. I'm presuming that you actually
want to do something with opencv.
On Sun, Nov 09 2014, Abhishek L wrote:
[...]
Here x was a mutable variable, doing a similiar ML construct, ie
val x = ref 2
fun f y = !x + 2
f 10 ; evals to 12
x := 10
f 10 ; evals to 20
So this becomes a problem of closures over mutable variables? ie every
Okay, I've been struggling through the proglang course on coursera and
this thing came up
val x = 2;
fun f y = x + y;
The second line creates a function that adds `x` to it's argument. Since
ML is statically scoped, this is really a function that adds 2 to its
argument. Even if I later
On Mon, Oct 27 2014, Okan bhan wrote:
Hi Noufal,
Thanks for responding and helping me explaining these. I see lots of my
doubts are clear, except last (c). My explanations are inline.
A simple implementation of this is:
class SimpleMapping:
def __init__(self, items):
Please ignore my earlier reply to your email. I hit send by accident.
Please edit the subject line when you're replying to a digest.
On Mon, Oct 27 2014, Okan bhan wrote:
[...]
2. A mapping object is similar to a dictionary. It should
return the actual object if you try to access it.
On Sun, Oct 26 2014, Okan bhan wrote:
[...]
A simple implementation of this is:
class SimpleMapping:
def __init__(self, items):
self._items = items
def __getitems__(self, subitem):
print('*' * 20)
for item in self._items:
if subitem in item:
return True
On Thu, Sep 25 2014, Saager Mhatre wrote:
[...]
Alternatively, would it be possible to model Stats/StatsList as a composite
hierarchy (potentially with Courtesy Implementations
http://martinfowler.com/bliki/CourtesyImplementation.html)?
[...]
I didn't know about Courtesy implementations
On Thu, Sep 25 2014, Saager Mhatre wrote:
[...]
Alternatively, would it be possible to model Stats/StatsList as a composite
hierarchy (potentially with Courtesy Implementations
http://martinfowler.com/bliki/CourtesyImplementation.html)?
[...]
I didn't know about Courtesy implementations
I've recently come across something that I'd like some comments on. It's
a stylistic issue so not something that there's an objective answer
for. Nevertheless.
I have a function that gets some statistics from some source and returns
it to the user as a Stats object. Let's call it get_stats. This
On Sat, Sep 20 2014, Senthil Kumaran wrote:
[...]
One option to me looks like, don't have consolidate as parameter for
this function, but do the operation outside. Like providing a
function called get_consolidated_stats, which will call get_stats and
provide the consolidated result.
The
On Sat, Sep 20 2014, Anand Chitipothu wrote:
[...]
Oh, that feels like PHP. That style seems to be popular in that side of the
world.
It might be a good idea to add consolidate method on the return value.
Something like:
class StatsList(list):
def consolidate(self):
..
On Sat, Sep 20 2014, Vivek Ramakrishna wrote:
Hi Noufal
Why not create two methods, get_stats() and get_stats_list(). Both can
share logic in a common function which takes the consolidate flag - meaning
your logic is localised to one point only. It makes for more readable code
when called
On Sat, Sep 20 2014, Sriram Karra wrote:
[...]
I think the comparison is not strictly apples to apples. In case of sort
ascending / descending flag parameterises the same sort algorithm. In your
case, you do some additional things (loop through and add up stuff,
perhaps) based on the value
On Sat, Sep 20 2014, Sriram Karra wrote:
[...]
Having a method do two different things based on a flag is not
a clean answer to anything.
[...]
That's a useful rule of thumb. Thank you.
--
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers
On Sat, Sep 20 2014, Sriram Karra wrote:
[...]
But your problem can be addressed by naming the functions after what they
do - after all your consolidate function does something tangible other than
just return a different type of data.
[...]
Let me give you a specific example.
The psutils
On Sat, Sep 20 2014, Sriram Karra wrote:
[...]
Anand's solution is good. But with the added context you have given - why
are you not creating classes for CPU and Machine, with get_stats() and
set_stats() methods for them? Something like:
This is a higher level abstraction and something I
On Sun, Sep 14 2014, sayantan bhattacharya wrote:
Hello all,
I work at TCS and they didn't know about Python either. Now that I
have written a script that does the log monitoring easy for the
Application support guys, they have accepted the language. But there
seems to be a resistance among
On 2014-08-19 12:31, Saager Mhatre wrote:
That's just a question of testing strategy. If you're writing
'elaborate'
tests at every layer, you're probably validating too much or exercising
too
much of the system at each layer of testing. The cartesian product of
tests
required to validate
On 2014-08-19 14:05, Saager Mhatre wrote:
[..]
I realized this myself a long time ago, around the time I joined TW and
started putting Ruby in production. However, all the dynlang love in
the
air at the time seemed to be blinding people to it. Since then I've
sensed
this sentiment among those
On 2014-08-18 21:45, chandrakant kumar wrote:
Python 3 has been a disappointment.
I haven't used it enough to judge (and this has, in my experience, been
the case with most critics).
However, as the projects I deal with grow larger, I'm becoming
increasingly frustrated with Python (and
On 2014-08-19 11:11, Sriram Narayanan wrote:
Hi Noufal, could you elaborate on this? I have enjoyed the freedom of
non-static typing that Python and Ruby offer, but also sometimes miss
the
static type checking that C# and Java offer.
Yes. I like the freedom and they're great for
On 2014-08-08 11:40, Saager Mhatre wrote:
[..]
Didn't we already have this discussion on this list? Besides, doesn't
mailman let us set a limit on the attachment size? One configuration to
rule them all!
Not that I recall. Even so, it's not just the size of the attachment but
that multiplied
On Mon, Aug 04 2014, Jeffrey Jose wrote:
[...]
I'm curious how do you read your mails? Noufal, if my memory serves me
right you're an emacs person. So emacs perhaps?
I'm in the vim camp, so I use my browser for email.
I download my email when I'm online and read them using either mutt or
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 and if the renderer your client is using
doesn't have some feature that the sender uses,
On Mon, Aug 04 2014, Nitin Kumar wrote:
thats a typo error.
in simple term my question would be: How to override sys.stdin.
[...]
The StringIO module gives you file like objects into which you can put
data. They might work as substitues for sys.std*
--
Cordially,
Noufal
Hello everyone,
One of the reasons I moved out of Calicut was to try to start a
hacker school like setup in North Kerala. There's plenty of colleges and
talented students there but many of them lack direction and
motivation.
I've found myself a little place and am offerring a 3 month
On Mon, Jun 02 2014, JERIN JACOB wrote:
Dear friends
thanks for all your supports
[...]
Please reply to individual threads rather than to a digest. It's hard to
follow the conversations.
--
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers
On Mon, Jun 02 2014, Rahul Gopan wrote:
Hello,
When I run a python script it hangs at random places. Is there any way to
identify when the script hangs and to resume it automatically. When I see
that it is not responding i do ^Z (Ctrl -Z) to stop and then use fg command
to start it again. I
On Sun, Jun 01 2014, JERIN JACOB wrote:
Dear friends
I am new to the user group and also python,my main aim to study the
phyton will the help of these group
[...]
You're very welcome.
This is what I recommend to most people who want to learn python from
scratch
On Tue, May 27 2014, Rahul Gopan wrote:
-- Forwarded message --
From: Rahul Gopan rahulpce...@gmail.com
Date: Tue, May 27, 2014 at 12:06 PM
Subject: Re: [BangPypers] Python script hangs after using logging module
To: Noufal Ibrahim KV nou...@nibrahim.net.in
1. Used
On Tue, May 27 2014, Venkatraman S wrote:
https://github.com/django/django/pull/2692
[...]
There should be a button to not allow comments on a github pull
request. That whole thread is a waste of time.
--
Cordially,
Noufal
http://nibrahim.net.in
On Tue, May 27 2014, Rahul Gopan wrote:
#!/usr/local/bin/python2.7
import commands
import subprocess
items = commands.getoutput('COMMAND branch Begin_no End_no | wc -l')
print items
-- Works --
#!/usr/local/bin/python2.7
import commands
import subprocess
import logging
On Fri, May 23 2014, Rohit Chormale wrote:
How is it if you use DataContainer class set attributes of that class.
Something like,
class Data(object):
def __init__(self, **kwargs):
object.__setattr__(self, 'attribs', kwargs)
def __getattr__(self, item):
if item in
On Fri, May 23 2014, Mandar Vaze / मंदार वझे wrote:
Currently I came across the code that returned 9 values (return statement
spanned 5 lines due to pep8 limitation of 79 characters per line)
The function returns various values that are used by the template to render
HTML
To give you an
On Fri, May 23 2014, kracekumar ramaraju wrote:
You can use namedtuple.
from collections import namedtuple
Person = namedtuple('Person', ['foo', 'bar', 'baz'])
p = Person(foo='foo', bar='bar', baz='baz')
[...]
Much better although with namedtuple, the attributes are fixed aren't
they? I
On Fri, May 23 2014, kracekumar ramaraju wrote:
Rohit
Probably ease of writing may be right here.
It's also more future proof. An attribute can be replaced by a property
which implements access controls and other things without breaking API
contracts. It's harder to do that while
Just for context, here's the email where Danny says that he was not
offended by the first email and didn't interpret it in the way that
Pratham did
https://mail.python.org/pipermail/bangpypers/2014-May/010161.html
and my follow up reply saying that I didn't mean it that way either.
Let's just let this pass? I, for one, don't have the time or interest to
handle these kinds of things. If any of the people want to discuss this
on the list, please do but I don't really want to spend any of my time
on it.
--
Cordially,
Noufal
http://nibrahim.net.in
On Mon, May 19 2014, Pratham Gadre wrote:
The message was not targetted at one person :-)
[...]
The occasional arrogance and lack of good faith will be there. It's part
of getting things done.
--
Cordially,
Noufal
http://nibrahim.net.in
___
1 - 100 of 897 matches
Mail list logo