, at others.
cheers,
- steve
[...snip...]
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers
)[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
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
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
, 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
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
be explicit
print(x, Foo.x)
what happened here ?
cheers,
- steve
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
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
/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
/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
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
, 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
-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
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
(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
!)
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
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
.
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
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
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
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
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
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
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
,
- 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
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
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
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
(?(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
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
/patches from
others.
just my opinion.
cheers,
- steve
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
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
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
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
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
, 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
{'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
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
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
://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
.
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
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
):
... 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
://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
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
() 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
,
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
=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
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
://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
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
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
/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
...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
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
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
,
- 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
,
- 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
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
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
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
61 matches
Mail list logo