By the way OP Passiday the title of the topic is "Suggested coding
style".
Are you suggesting a coding style or asking for a Python coding style
or are you asking what IS the Python coding style.
If you are asking what is the Python coding style. Google The Zen of
Python. It's pretty much the dic
On Sep 25, 11:41 pm, Chris Angelico wrote:
> On Mon, Sep 26, 2011 at 12:59 PM, Tim Johnson wrote:
> > BTW: If you like ranting as a spectator sport, I have found the
> > Common Lisp newsgroup to be among the most spectacular. But that's
> > just me.
>
> I do, actually, but I don't need to add a
On Sep 27, 6:39 am, Jabba Laci wrote:
> So, how can I install packages for a specific version of Python (here,
> v2.5)? With 2.7 I use "sudo pip install ".
It's amazing what you can find when you look at the documentation:
http://www.pip-installer.org/en/latest/index.html
"You can use pip instal
In python 2.6.4 I have a fairly complex system running (copying and
pasting it would be quite difficult). At its core there are builders
that inherit from threading.Thread. I have some builders that run
external tasks via popen and read output using communicate. I have
the ability to run any num
On Mon, Sep 26, 2011 at 1:56 PM, TOM wrote:
> Tom Gugger
> Independent Recruiter
> tgug...@bex.net
>
> US Citizens or Greencard
> On Site
>
>
> QA Engineering/ Python/ Contract/ Austin, TX
>
> This is an immediate start, such as next week. I need three
> contractors
Such postings belong on the Py
Tom Gugger
Independent Recruiter
tgug...@bex.net
US Citizens or Greencard
On Site
QA Engineering/ Python/ Contract/ Austin, TX
This is an immediate start, such as next week. I need three
contractors
for a 4--6 month contract in Austin, TX for Quality Assurance
Engineers.
The location is Austin,
Hi,
I have Python 2.7 on my system. Today I wanted to try Google App
Engine but it runs on Python 2.5 at Google so I installed this version
on my machine next to v2.7 to avoid compatibility problems. However,
when I start the Python shell v2.5 and try to import something from
the GAE SDK (for inst
On Mon, Sep 26, 2011 at 2:11 PM, Tim Chase
wrote:
> On 09/26/11 13:57, Prasad, Ramit wrote:
>>>
>>> It seems it's time to start reading about argparse
>>
>> FYI, it only appears on Python 2.7+
>
> However I believe it can be uneventfully copied and run under several
> versions earlier (likely back
On 09/26/11 13:57, Prasad, Ramit wrote:
It seems it's time to start reading about argparse
FYI, it only appears on Python 2.7+
However I believe it can be uneventfully copied and run under
several versions earlier (likely back to 2.5, perhaps to 2.4 -- I
no longer have 2.4 at my fingertips t
On Sep 26, 12:23 pm, Tal Einat wrote:
> The library is called RunningCalcs and is useful for running several
> calculations on a single iterable of values.
>
> https://bitbucket.org/taleinat/runningcalcs/http://pypi.python.org/pypi/RunningCalcs/
>
> I'd like some input on how this could be made mo
"Prasad, Ramit" writes:
> This email is confidential...
Probably a bad idea to post it to a world readable mailing list then :)
--
http://mail.python.org/mailman/listinfo/python-list
> It seems it's time to start reading about argparse
FYI, it only appears on Python 2.7+
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
This email is confidential and subject to important disclaimers
On Mon, Sep 26, 2011 at 2:16 PM, Jesramz wrote:
>
> I appreciate all the help, but I am still a little confused. Sorry,
> I'm a lay person.
>
> Should I download zlib1g-dev and install it to get the zlib module?
>
> and Alter the configure script to avoid future issues?
>
> Also about getting zlib
I appreciate all the help, but I am still a little confused. Sorry,
I'm a lay person.
Should I download zlib1g-dev and install it to get the zlib module?
and Alter the configure script to avoid future issues?
Also about getting zlib I found the following:
"I was able to recompile zlib
$./conf
Hi Everyone,
I have started a free weekly newsletter called Python Weekly which
includes curated news, articles, new releases, software & tools,
events, jobs etc about Python and related technologies. It's a great
way to keep abreast of what's happening in Python land. You can
subscribe to it here
On Sep 26, 2011 1:49 AM, wrote:
> Is there an equivalent command in python that would immediately provide
the number of set bits in a large bit vector/string
Besides what others have said, if you expect the number of bits set to be
small, you might just use a set.
bits = set()
# set bit 1000
bit
On Sep 26, 12:56 am, Nizamov Shawkat
wrote:
> > Is there an equivalent command in python that would immediately provide the
> > number of set bits in a large bit vector/string
>
> You might be able to achieve this using numpy boolean array and, e.g,
> the arithmetic sum function or something simil
The library is called RunningCalcs and is useful for running several
calculations on a single iterable of values.
https://bitbucket.org/taleinat/runningcalcs/
http://pypi.python.org/pypi/RunningCalcs/
I'd like some input on how this could be made more useful and how to
spread the word about it.
b = numpy.zeros(10**7, dtype=bool)
for x in 3, 4, 6: b[10**x] = True
> ...
b.sum()
> 3
Without numpy:
>>> counts = [bin(i).count('1') for i in range(256)]
>>> bytes = b"hello python"*10
>>> len(bytes)*8
960
>>> sum(map(counts.__getitem__, bytes))
480
Pretty fast as wel
On 09/26/2011 11:10 AM, Chris Rebert wrote:
> On Mon, Sep 26, 2011 at 1:55 AM, Gelonida N wrote:
>> Hi,
>>
>> So far I used optparse.OptionParser for parsing command line arguments
>> for my python scripts. So far I was happy, with a one level approach,
>> where I get only one help text
>>
>> Now
bmacin...@comcast.net wrote:
> In Perl I can create a large bit vector as follows:
> vec($bitmap,1000,1) = 0;# this will create a bit string of all
> zeros
> To set bits I may using commands like:
> vec($bitmap,1000, 1) = 1 # turn on bit 1000
> vec($bitmap,1, 1) =
On Mon, Sep 26, 2011 at 1:55 AM, Gelonida N wrote:
> Hi,
>
> So far I used optparse.OptionParser for parsing command line arguments
> for my python scripts. So far I was happy, with a one level approach,
> where I get only one help text
>
> Now I'd like to create a slightly different python script
Hi,
So far I used optparse.OptionParser for parsing command line arguments
for my python scripts. So far I was happy, with a one level approach,
where I get only one help text
Now I'd like to create a slightly different python script and wondered
which approach / module might be best for implemen
> Is there an equivalent command in python that would immediately provide the
> number of set bits in a large bit vector/string
>
You might be able to achieve this using numpy boolean array and, e.g,
the arithmetic sum function or something similar.
There is also another library http://pypi.pytho
In Perl I can create a large bit vector as follows:
vec($bitmap,1000,1) = 0;# this will create a bit string of all zeros
To set bits I may using commands like:
vec($bitmap,1000, 1) = 1 # turn on bit 1000
vec($bitmap,1, 1) = 1# turn on bit 1
25 matches
Mail list logo