Re: [BangPypers] (no subject)

2013-09-25 Thread steve
, at others. cheers, - steve [...snip...] ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] https://github.com/pythonhacker/ladies.py

2013-09-07 Thread steve
)[1] ! I am seeing a pattern here. Interesting. I get a feeling that Anand wasn't even trying to be funny. sarcastic is possibly a better word I guess -- but I don't know enough to be sure. cheers, - steve [1] guess I'm better at reading code than understanding subtle humor. Good one Anand

Re: [BangPypers] https://github.com/pythonhacker/ladies.py

2013-09-07 Thread steve
AmbiguousMissionError, Mission unclear FWIW, I'm more intrigued by the isnt_that_odd() function. Maybe the intent is not merely being cheeky, there's something deeper that Anand felt strongly enough to create this repo ? Should we perhaps discuss that publicly too ? cheers, - steve

Re: [BangPypers] Question on FTP

2013-08-20 Thread steve
On Tuesday 20 August 2013 05:14 PM, davidsnt wrote: Can some one please help me to find the best way to do a file upload and file download to a FTP server in python. http://bit.ly/KKiEQX cheers, - steve ___ BangPypers mailing list BangPypers

Re: [BangPypers] problem with python classes

2013-05-09 Thread steve
, 31, 43] ...it really doesn't make much sense to do something this way, given the limited information you have provided. cheers, - steve ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Question on Pattern Matching and Regular Expression

2013-01-07 Thread steve
On Monday 07 January 2013 03:06 PM, davidsnt wrote: Bangpypers, Having a little trouble in parsing a file of 702 line appox, the file is in the format [...snip...] Could you show us what you already have done ? cheers, - steve ___ BangPypers

Re: [BangPypers] wierd class behavior

2012-12-04 Thread steve
be explicit print(x, Foo.x) what happened here ? cheers, - steve ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Charging state of windows machine (laptop/notebook)

2012-10-31 Thread steve
but you can get an idea of what could be involved for example from: http://www.thinkwiki.org/wiki/Python_script_for_Windows_to_control_ThinkPad_features I'd recommend searching for acpi+python+windows or some combination thereof cheers, - steve On Wed, Oct 31, 2012 at 2:41 PM, Prashant Gaur

Re: [BangPypers] hook file download

2012-09-07 Thread steve
/mechanize/ ). If, otoh, you are trying to automate something using a browser (as opposed to doing it from the command line, for instance using twill - http://twill.idyll.org/ ) then I'd suggest using javascript or creating/hacking an existing download manager extension. hth, cheers, - steve

Re: [BangPypers] Need help understanding -9 1

2012-07-02 Thread steve
/questions/3831833/printing-negative-values-as-hex-in-python cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman

Re: [BangPypers] log and figure out what bits are slow and optimize them.

2012-02-14 Thread steve
Hi, If it's a production website you might want to look at NewRelic. We started using it a while back and it has been mighty helpful: http://newrelic.com http://newrelic.com/docs/python/new-relic-for-python cheers, - steve On 02/12/2012 08:09 PM, Anand Chitipothu wrote: 2012/2/12 Saju M sajup

Re: [BangPypers] golf problem

2011-12-25 Thread steve
, or if you # need it in the format you showed: l = [] for i in range(1, 19): ... l.append((i, random.choice([3,4,5]))) ... l [(1, 5), (2, 3), (3, 4), (4, 5), (5, 3), (6, 3), (7, 5), (8, 4), (9, 3), (10, 5), (11, 5), (12, 5), (13, 4), (14, 5), (15, 3), (16, 5), (17, 3), (18, 5)] cheers, - steve

Re: [BangPypers] scanf replacement in python

2011-11-07 Thread steve
-or-sscanf-equivalent.htm http://docs.python.org/library/re.html#simulating-scanf http://stackoverflow.com/questions/2175080/sscanf-in-python cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com

Re: [BangPypers] File read

2011-11-07 Thread steve
stuff_that_interests_me == 'false': config['MyFirstKey'] = 'OFF' ... HTH, cheers, - steve On 11/07/2011 05:17 PM, Shashidhar Paragonda wrote: Dear Python hackers, I have text file. I read each line and store it in List. my requirement is I need to check only 6 special lines from i.e 1

Re: [BangPypers] How to create HTTPS Proxy server

2011-10-09 Thread steve
(for example, conditional proxying), explaining that tho' would take more time so please send details first. cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list

Re: [BangPypers] The myth of free software

2011-05-18 Thread steve
!) cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] The myth of free software

2011-05-17 Thread steve
obvious given the first post and the subsequent responses. cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman

[BangPypers] ZODB in the browser ! ..and yes it's a April fool's day joke ..ehe, wait a sec !

2011-04-04 Thread steve
. cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Regarding Python Doc

2011-02-18 Thread steve
it shows no documentation for 'myfilename,py' can anyone suggest me how to proceed. When the argument is without a path component, then pydoc searches for the file in the current PYTHONPATH. So if your $CWD is not in PYTHONPATH you'd have to say: pydoc ./myfilename.py cheers, - steve -- random

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

2011-01-14 Thread steve
is just euphemism and an urban myth, no such thing exists :) Like most standards. Thanks, I'll be here all week ! cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing

Re: [BangPypers] MetaClass in python

2011-01-12 Thread steve
a class like this: NewClass = type('NewClass', (object,), {}) where 'NewClass' is the name of your class, (object,) is any tuple of superclasses and *{} will be the __dict__ of the new class*. As steve mentioned earlier, you can So {} can contain function also for the new class

Re: [BangPypers] MetaClass in python

2011-01-11 Thread steve
Not replaced ... a = UpdateMe() a.replace_me() Not replaced def replacement(the_object): ... print Replaced ... UpdateMe.replace_me = replacement a.replace_me() Replaced (hehehe, voice in my head just said Python is dyna-effing-mic, bi***es !!) cheers, - steve -- random spiel: http

Re: [BangPypers] Suggestion for GUI

2011-01-10 Thread steve
but just because of the programmer trait of being complete as well as concise. hth, cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http

Re: [BangPypers] Suggestion for GUI

2011-01-10 Thread steve
hope my reply didn't give you strong irritation. If what I wrote made sense to you go back to the thread and re-read it, you'll see a natural flow there about the discussion based on the assumption that you know how libraries work. cheers, - steve -- random spiel: http://lonetwin.net/ what i'm

[BangPypers] [X-Post] [JOB] Fwd: WebApp requirement @ GSLabs, Pune

2011-01-07 Thread steve
, - steve Original Message Subject:WebApp requirement @ GSLabs, Pune Date: Fri, 7 Jan 2011 14:39:23 +0530 *Must have:* Strong knowledge of web application development in C/C++/Python/Django. *Good to have:* Networking, VOIP, Billing, NMS, Flash/Flex etc. *Exp: 5

Re: [BangPypers] refactoring

2010-12-05 Thread steve
manner -- the net effect from the /code's/ perspective though is that is being refactored. I'd go as far as saying that patches which refactor existing code in mature FOSS products are as at least the same in number as those that introduce new features. cheers, - steve -- random spiel: http

Re: [BangPypers] refactoring

2010-12-03 Thread steve
experience speaking ! cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

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

2010-12-03 Thread steve
of the names under 'Commercial uses' there ;-) and http://wiki.python.org/moin/OrganizationsUsingPython cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers

Re: [BangPypers] regular expression for Indian landline numbers

2010-11-25 Thread steve
(?(fourdigit)\d{5}) # 5 more phone digits for 5 digit stdcode ) )$, re.VERBOSE) hth, cheers, - steve ___ 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 steve
On 11/25/2010 06:45 PM, steve wrote: On 11/25/2010 04:10 PM, Kenneth Gonsalves wrote: On Thu, 2010-11-25 at 15:56 +0530, Anand Balachandran Pillai 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})' It is doable, but you

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

2010-11-24 Thread steve
/patches from others. just my opinion. cheers, - steve ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

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

2010-11-24 Thread steve
On 11/24/2010 10:36 PM, Noufal Ibrahim wrote: On Wed, Nov 24 2010, steve wrote: [...] Firstly, wish you the best with this !! Like KG mentioned, we could do with some more python programmers. On the topic of slides/notes, IMHO, free (as in freedom) documents are good. My recommendation

Re: [BangPypers] When *not* to use Python

2010-10-20 Thread steve
clojure) think about that ? cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] When *not* to use Python

2010-10-20 Thread steve
aspect is small to medium sized automation/shell scripts where although sometimes one is tempted to use the 'power' of python, doing a `ls` instead of os.listdir('.') and `/some/random/command` instead of using the shutil/commands/subprocess ...etc modules is more pragmatic. cheers, - steve [1

Re: [BangPypers] something in python similar to java applets

2010-09-07 Thread steve
in java. Judging by what you require, you'd be better off creating a standalone downloadable executable. hth, - steve (*) HTML is not code and most (all?) browsers have a javascript engine to execute javascript code. -- random spiel: http://lonetwin.net/ what i'm stumbling into: http

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread steve
, use super if possible self.A = None [2] class y(x): def __init__(self): ... def A(self): raise AttributeError(y instance has no attribute A) hth, cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com

Re: [BangPypers] list problem

2010-07-22 Thread steve
{'dog': [5, 1, 3], 'cat': [10, 20, 30]} xstartdict = {} xenddict = {} for k, v in d.items(): ... xstartdict[k] = min(v) ... xenddict[k] = max(v) ... xstartdict, xenddict ({'dog': 1, 'cat': 10}, {'dog': 5, 'cat': 30}) cheers, - steve -- random spiel: http://lonetwin.net/ what i'm

Re: [BangPypers] catching exceptions from SimpleHTTPServer

2010-07-20 Thread steve
did, the docs are arranged in a such a manner that making this mistake is easy :). cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http

Re: [BangPypers] How to run *.py scripts which interfaces with modules

2010-07-14 Thread steve
information about this issue at: http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH http://docs.python.org/library/site.html http://bob.pythonmac.org/archives/2005/02/06/using-pth-files-for-python-development/ cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http

Re: [BangPypers] designing programs

2010-06-25 Thread steve
://www.developerdotstar.com/mag/articles/reeves_design_main.html hth, cheers, - steve [1] http://en.wikipedia.org/wiki/Mind_map -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers

Re: [BangPypers] UI Designing

2010-05-31 Thread steve
. Repeat 1 and 2 over and over Once I'm ok with a design, I proceed to the next phase, probably writing some code. I stumbled upon this recently which might help with 1 and 2: http://konigi.com/tools/graph-paper cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http

Re: [BangPypers] UI Designing

2010-05-31 Thread steve
Hi, addendum ... On 05/31/2010 03:23 PM, steve wrote: Hi, [...snip...] I stumbled upon this recently which might help with 1 and 2: http://konigi.com/tools/graph-paper I am not a designer, but a quick google threw up this: http://www.geekchix.org/blog/2010/01/03/a-collection-of-printable

Re: [BangPypers] Python code documentation doubt

2010-04-22 Thread steve
): ... return I am a %s with the value %d % (self.__class__, self.x) ... a = A() a = A(10) a I am a __main__.A with the value 10 print a 10 -- If you need additional explanation or clarification, please ask. hth, cheers, - steve -- random new spiel

Re: [BangPypers] Python-Django developers required

2010-03-22 Thread steve
://fossjobs.in http://www.python.org/community/jobs/index.html cheers, - steve -- random new spiel: http://lonetwin.net/ random old spiel: http://lonetwin.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers

Re: [BangPypers] Simple python database library

2010-03-05 Thread steve
currently need but certainly something useful. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list

Re: [BangPypers] Calling Python script from C++.

2010-02-26 Thread steve
() functions ? cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http

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

2010-02-08 Thread steve
, something similar was discussed at comp.lang.python: http://groups.google.com/group/comp.lang.python/browse_thread/thread/7897bf3fd2298332/26247987f84cc484 cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling

Re: [BangPypers] using IPython from pdb

2010-02-07 Thread steve
=90 ] NERD_tree.vim [ http://www.vim.org/scripts/script.php?script_id=1658 ] cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com

Re: [BangPypers] Internationals getting Python/Programming Jobs

2010-02-06 Thread steve
companies (yes, that might be a flame bait, but what the heck, that's my personal experience). cheers, - steve (*) Whatever you can rightly say about India, the opposite is also true. - Joan Robinson -- random non tech spiel: http://lonetwin.blogspot.com/ tech

Re: [BangPypers] using IPython from pdb

2010-02-03 Thread steve
://bpython-interpreter.org/ http://bpython-interpreter.org/screenshots/ cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com

Re: [BangPypers] Hi.......

2010-01-13 Thread steve
on the shell/command prompt) works before trying out shutil.copy. If that works but shutil.copy() doesn't, could you place the entire traceback here ? cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling

Re: [BangPypers] Python and USB

2010-01-13 Thread steve
is a serial bus... heh, yeah, USB is a serial bus just like ethernet is serial communication. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com

Re: [BangPypers] meta programming

2009-11-30 Thread steve
/tech_index_cp.html (note: the icons are links to html versions of the plain text article links) cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com

Re: [BangPypers] Google Go

2009-11-11 Thread steve
...but doesn't really /stand out/ for anything in particular (like python's simplicity and beauty did, when I first made its acquaintance). Then again I am not a polyglot as far as programming is concerned ...so I might not be able to appreciate it's value ...yet ... cheers, - steve -- random non tech

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

2009-10-23 Thread steve
to the 'atexit' module which the above tip uses. It is included in the stdlib and can prove to be quite useful at times. That one is good to know about. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http

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

2009-10-23 Thread steve
to me and I just don't like reading docs before trying out something -- which I think is required for using ipython. However, i still do recommend it to people who want colors, completion and all sorts of customization abilities from their prompt. cheers, - steve -- random non tech spiel: http

Re: [BangPypers] I am new to python language. Suggest way to improve my skills in python

2009-10-20 Thread steve
, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread steve
, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman

Re: [BangPypers] suppressing the exception stack trace

2009-09-16 Thread steve
On 09/16/2009 11:39 AM, Vishal wrote: On Tue, Sep 15, 2009 at 9:07 PM, steve st...@lonetwin.net mailto:st...@lonetwin.net wrote: On 09/15/2009 08:56 PM, Vishal wrote: Hello, I would like to raise an exception of type Exception(), however the regular exception

Re: [BangPypers] [OT] Guido's Tweet on Top Posting

2009-09-11 Thread steve
something unexpected when taken out of context is not reason enough to post it to a python mailing list, IMHO. Doing that is plain stupid but unfortunately it happens all the time with twitter. This is exactly what I hate about twitter -- there is no context. cheers, - steve -- random non tech spiel

Re: [BangPypers] link

2009-09-03 Thread steve
anaconda (the Red Hat/fedora installer) barfs) and even then, I didn't really find it all that useful from a 'debugging' perspective. It works well only to examine state. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what