Dear Group,
I am using Python on Windows 7 SP-1 (64 bit).
I have two versions of Python installed 2.7 and 3.2.
I want to install networkx in both.
How may I do that?
If any one may kindly let me know.
Regards,
Subhabrata.
--
http://mail.python.org/mailman/listinfo/python-list
Gelonida N gmail.com> writes:
> I wondered whether some of you have a little more insight into what's
> going on with PIL.
AFAIK the latest PIL stuff lives here:
hg.effbot.org
--
http://mail.python.org/mailman/listinfo/python-list
I've noticed a strange thing with python lately:
Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def f(): print x
...
>>> f()
terminate called after throwing an instance o
http://www.pip-installer.org/en/latest/index.html
--
Ritchie Flick
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Fetchinson wrote:
> I've noticed a strange thing with python lately:
>
>
>
> Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
> [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
def f(): print x
> ...
f()
>
On 10/02/2012 04:43 AM, subhabangal...@gmail.com wrote:
> Dear Group,
>
> I am using Python on Windows 7 SP-1 (64 bit).
>
> I have two versions of Python installed 2.7 and 3.2.
>
> I want to install networkx in both.
>
> How may I do that?
>
> If any one may kindly let me know.
>
Doing a search fo
>> I've noticed a strange thing with python lately:
>>
>>
>>
>> Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
>> [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
> def f(): print x
>> ...
> f()
>> terminate called
On 2012-10-02 09:26:56 +, WhisperingWally said:
Gelonida N gmail.com> writes:
I wondered whether some of you have a little more insight into what's
going on with PIL.
AFAIK the latest PIL stuff lives here:
hg.effbot.org
Certainly true, though somewhat meaningless in the current cont
In order to provide more reliable benchmark, I get rid of application server
and network boundary. As a result I simulated a valid WSGI request and isolated
calls just to the web framework alone. Also I found interesting to take a look
at total number of calls and unique functions used by corre
Greetings!
I'm trying to unittest a class hierachy using Python 2.7. I have a
common baseclass Base and derived classes D1 and D2 that I want to test.
The baseclass in not instantiatable on its own. Now, the first approach
is to have test cases TestD1 and TestD2, both derived from class TestCa
[1] in C++ I would call that a "mixin"
Mixins are perfectly valid Python constructs as well and are perfectly
valid (imho) for this use case.
On a side note, I usually append a "Mixin" suffix to my mixin classes in
order to make it obvious to the reader.
--
Demian Brecht
@demianbrecht
ht
On Tue, Oct 02, 2012 at 02:27:11PM +0200, Ulrich Eckhardt wrote:
> As you see, the code for test_base() is redundant, so the idea is to
> move it to a baseclass:
>
> class TestBase(unittest.TestCase):
> def test_base(self):
> ...
>
> class TestD1(TestBase):
> def test_r(self):
>
I don't use them anymore, but I'm curious about others opinions on this
list...
The more time I spend in Python, discovering what "Pythonic" code is and
such, it seems that I throw away much in terms of academic learnings as
far as "OOP correctness" goes. In doing so, I find that, in general,
Ulrich Eckhardt wrote:
> As you see, the code for test_base() is redundant, so the idea is to
> move it to a baseclass:
>
> class TestBase(unittest.TestCase):
> def test_base(self):
> ...
>
> class TestD1(TestBase):
> def test_r(self):
> ...
> def test_s(self):
>
Peter Otten wrote:
> Ulrich Eckhardt wrote:
>> The problem here is that TestBase is not a complete test case (just
as
>> class Base is not complete), but the unittest framework will still
try
>> to run it on its own.
How exactly are you invoking the test runner? unittest? nose? You can
tell the
On Monday 2012 October 01 08:35, Hans Mulder wrote:
> AFAIK, there is no Python module that can read shell syntax.
The stdlib's shlex might be that module.
--
Yonder nor sorghum stenches shut ladle gulls stopper torque wet
strainers.
--
http://mail.python.org/mailman/listinfo/python-list
On Monday, 1 October 2012 13:47:50 UTC+5:30, Mark Lawrence wrote:
> On 01/10/2012 01:58, 8 Dihedral wrote:
>
> >
>
> > Your question seems vague to me. If you know you are storing
>
> > only immutable tuples in a list, then the way to iterate is simple.
>
> >
>
>
>
> Does Python have a
On Tuesday, 2 October 2012 21:34:04 UTC+5:30, xDog Walker wrote:
> On Monday 2012 October 01 08:35, Hans Mulder wrote:
>
> > AFAIK, there is no Python module that can read shell syntax.
>
>
>
> The stdlib's shlex might be that module.
>
>
>
> --
>
> Yonder nor sorghum stenches shut ladle
Am 02.10.2012 16:06, schrieb Thomas Bach:
On Tue, Oct 02, 2012 at 02:27:11PM +0200, Ulrich Eckhardt wrote:
As you see, the code for test_base() is redundant, so the idea is to
move it to a baseclass:
class TestBase(unittest.TestCase):
def test_base(self):
...
class TestD1(TestBas
On Monday, 1 October 2012 19:49:27 UTC+5:30, BobAalsma wrote:
> Op vrijdag 21 september 2012 16:15:30 UTC+2 schreef Joel Goldstick het
> volgende:
>
> > On Fri, Sep 21, 2012 at 9:58 AM, BobAalsma wrote:
>
> >
>
> > > Op vrijdag 21 september 2012 15:36:11 UTC+2 schreef Jerry Hill het
> > > vo
On 02/10/2012 17:12, Ramchandra Apte wrote:
On Monday, 1 October 2012 13:47:50 UTC+5:30, Mark Lawrence wrote:
On 01/10/2012 01:58, 8 Dihedral wrote:
Your question seems vague to me. If you know you are storing
only immutable tuples in a list, then the way to iterate is simple.
Am 02.10.2012 16:06, schrieb Thomas Bach:
On Tue, Oct 02, 2012 at 02:27:11PM +0200, Ulrich Eckhardt wrote:
As you see, the code for test_base() is redundant, so the idea is to
move it to a baseclass:
class TestBase(unittest.TestCase):
def test_base(self):
...
class TestD1(TestBas
Ulrich Eckhardt wrote:
> Am 02.10.2012 16:06, schrieb Thomas Bach:
>> On Tue, Oct 02, 2012 at 02:27:11PM +0200, Ulrich Eckhardt wrote:
>>> As you see, the code for test_base() is redundant, so the idea is to
>>> move it to a baseclass:
>>>
>>> class TestBase(unittest.TestCase):
>>> def test_b
Fayaz Yusuf Khan wrote:
> Peter Otten wrote:
>
>> Ulrich Eckhardt wrote:
>>> The problem here is that TestBase is not a complete test case (just
> as
>>> class Base is not complete), but the unittest framework will still
> try
>>> to run it on its own.
> How exactly are you invoking the test runn
On Tue, Oct 2, 2012 at 9:23 AM, Demian Brecht wrote:
> I don't use them anymore, but I'm curious about others opinions on this
> list...
>
Interesting question. I think they haven't been useful for representing
the real world as everyone hoped, but are pretty good for organizing
structures withi
Am I missing something? Is there something that wasn't answered by my reply
about using mixins?
from unittest import TestCase
class SharedTestMixin(object):
def test_shared(self):
self.assertNotEquals('foo', 'bar')
class TestA(TestCase, SharedTestMixin):
def test_a(self):
On Wed, Oct 3, 2012 at 2:44 AM, Mark Lawrence wrote:
> What happened to freedom of speech? If I want to talk to a bot, I'll talk
> to a bot. Besides I'm not convinced it/he/she is a bot. Plus if you read
> my post carefully, add in several years experience of Python the language
> and Python th
Am I missing something? Is there something that wasn't answered by my reply
about using mixins?
from unittest import TestCase
class SharedTestMixin(object):
def test_shared(self):
self.assertNotEquals('foo', 'bar')
class TestA(TestCase, SharedTestMixin):
def test_a(self):
On 02/10/2012 18:58, Chris Angelico wrote:
Dihedral might be a bot and might not. I've come to the conclusion
that it's not worth trying to find out, given that a good bot can
outdo a lot of humans in useful conversation.
ChrisA
Try telling that to the newbies on the Python tutor mailing lis
On 02/10/2012 19:06, Demian Brecht wrote:
Am I missing something? Is there something that wasn't answered by my reply
about using mixins?
from unittest import TestCase
class SharedTestMixin(object):
def test_shared(self):
self.assertNotEquals('foo', 'bar')
class TestA(TestCase, S
On 10/2/2012 10:23 AM, Demian Brecht wrote:
I don't use them anymore, but I'm curious about others opinions on this
list...
The more time I spend in Python, discovering what "Pythonic" code is and
such, it seems that I throw away much in terms of academic learnings as
far as "OOP correctness" go
On 10/2/2012 1:58 PM, Chris Angelico wrote:
On Wed, Oct 3, 2012 at 2:44 AM, Mark Lawrence wrote:
What happened to freedom of speech? If I want to talk to a bot, I'll talk
to a bot. Besides I'm not convinced it/he/she is a bot. Plus if you read
my post carefully, add in several years experien
My efforts at trying to unsubscribe are not working. Could you help me with
this, or take this email as a request to unsubscribe.
Thanks,
Timothy Holmes
--
http://mail.python.org/mailman/listinfo/python-list
Hello all:
I'm looking at a skill/perk system, where the player builds up his char
by using perk points to add abilities.
Each perk is under a category, and generally costs go up as you increase
the perk.
So I'm trying to figure something out; first, I'd really like the cost
calculation and all
On Tue, Oct 2, 2012 at 3:01 PM, timothy holmes wrote:
> My efforts at trying to unsubscribe are not working. Could you help me with
> this, or take this email as a request to unsubscribe.
> Thanks,
> Timothy Holmes
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Go here http://mail
On Tue, Oct 2, 2012 at 2:00 PM, Littlefield, Tyler wrote:
> Hello all:
> I'm looking at a skill/perk system, where the player builds up his char by
> using perk points to add abilities.
> Each perk is under a category, and generally costs go up as you increase the
> perk.
> So I'm trying to figure
On Monday, October 1, 2012 4:17:50 PM UTC+8, Mark Lawrence wrote:
> On 01/10/2012 01:58, 8 Dihedral wrote:
>
> >
>
> > Your question seems vague to me. If you know you are storing
>
> > only immutable tuples in a list, then the way to iterate is simple.
>
> >
>
>
>
> Does Python have a m
Job Title: Python developers
Duration: 6 months;
Location: Austin TX
Responsibilities / Skills:
1) distributed complex application experience
2) prefer experience with enterprise class identity management systems,
particularly around auth/credentials
3) experience with openstack
4) experience w
Ulrich Eckhardt writes:
> I want test_base() to be run as part of both TestD1 and TestD2,
> because it tests basic functions provided by both classes D1 and D2.
It sounds, from your description so far, that you have identified a
design flaw in D1 and D2.
The common functionality should be moved
On Wednesday, August 29, 2012 6:21:50 AM UTC-4, Rakesh Rocker RuLZzz wrote:
> I tried installing pyopencv in mac but i gives me an error
>
> I have installed all the dependent softwares like opencv,boost, etcstill
> unable to fix it.
>
> also i have updated xcode and using python 2.7
>
> I
In article ,
Peter Otten <__pete...@web.de> wrote:
> >> Another is to remove it from the global namespace with
> >>
> >> del TestBase
When I had this problem, that's the solution I used.
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano於 2012年10月3日星期三UTC+8上午8時57分20秒寫道:
> On Wed, 03 Oct 2012 03:58:02 +1000, Chris Angelico wrote:
>
>
>
> > Dihedral might be a bot and might not. I've come to the conclusion that
>
> > it's not worth trying to find out, given that a good bot can outdo a lot
>
> > of humans in usefu
On Tue, 02 Oct 2012 18:11:20 -0700, 8 Dihedral wrote:
> Steven D'Aprano於 2012年10月3日星期三UTC+8上午8時57分20秒寫道:
>> Oh, I'm convinced that it's a bot.
>> The fact that Dihedral never responds to conversations about him/it is
>> a give away: nearly all people are far to egotistical to let
>> accusatio
On Wed, 03 Oct 2012 08:30:19 +1000, Ben Finney wrote:
> Ulrich Eckhardt writes:
>
>> I want test_base() to be run as part of both TestD1 and TestD2, because
>> it tests basic functions provided by both classes D1 and D2.
>
> It sounds, from your description so far, that you have identified a
>
Steven D'Aprano於 2012年10月3日星期三UTC+8上午9時24分13秒寫道:
> On Tue, 02 Oct 2012 18:11:20 -0700, 8 Dihedral wrote:
>
>
>
> > Steven D'Aprano於 2012年10月3日星期三UTC+8上午8時57分20秒寫道:
>
>
>
> >> Oh, I'm convinced that it's a bot.
>
> >> The fact that Dihedral never responds to conversations about him/it is
code1
>>> def foo():
... a = 1
... def bar():
... b=2
... print a + b
... bar()
...
...
>>> foo()
3
code2
>>> def foo():
... a = 1
... def bar():
... b=2
... a = a + b
... print a
... bar()
...
>>> foo()
Traceback (most recent call la
On 10/02/2012 10:03 PM, contro opinion wrote:
> code1
def foo():
> ... a = 1
> ... def bar():
> ... b=2
> ... print a + b
> ... bar()
> ...
> ...
foo()
> 3
>
> code2
def foo():
> ... a = 1
> ... def bar():
> ... b=2
> ... a = a + b
On Tuesday, 2 October 2012 22:13:20 UTC+5:30, Mark Lawrence wrote:
> On 02/10/2012 17:12, Ramchandra Apte wrote:
>
> > On Monday, 1 October 2012 13:47:50 UTC+5:30, Mark Lawrence wrote:
>
> >> On 01/10/2012 01:58, 8 Dihedral wrote:
>
> >>
>
> >>>
>
> >>
>
> >>> Your question seems vague
> Ah, fair enough. Well, since you're using the full range of bash
> functionality, the only viable way to parse it is with bash itself.
> I'd recommend going with the version you have above:
>
>> * * * * * . /path/to/export_file && /path/to/script.py
>
> Under what circumstances is this not an opt
On Wed, Oct 3, 2012 at 1:49 PM, Jason Friedman wrote:
> Based on your responses and everyone's responses I'm guessing that
> what I am doing is sufficiently novel that there is no canned
> solution. I looked at shlex but did not see how that would be
> helpful.
The only canned solution for parsi
Jonathan Hayward wrote:
>
>I've made an experimental Python-based Unix/Linux shell at:
>
>http://JonathansCorner.com/cjsh/
>
>An experimental Unix/Linux command line shell, implemented in Python 3,
>that takes advantage of some more recent concepts in terms of usability
>and searching above pinpoi
On 12-10-02 07:26 PM, Dave Angel wrote:
if you're stuck with Python2.x, you can use a mutable object for a, and
mutate it, rather than replace it. For example,
def foo():
a = [3]
def bar():
b=2
a.append(b) #this mutates a, but doesn't assign it
prin
On 10/03/2012 01:54 AM, Demian Brecht wrote:
> On 12-10-02 07:26 PM, Dave Angel wrote:
>>
>> if you're stuck with Python2.x, you can use a mutable object for a, and
>> mutate it, rather than replace it. For example,
>>
>>
>> def foo():
>> a = [3]
>> def bar():
>> b=2
>>
53 matches
Mail list logo