Hi all,
I am have a function which executes a command in the shell. The stdout
and stderr of the command should be multipled to two strings for stdout
and stderr respectively and stdout and stderr of the current process
respectively.
I have done like this:
from subprocess import Popen, PIPE,
On Tue, Nov 4, 2008 at 12:17 AM, George Sakkis <[EMAIL PROTECTED]> wrote:
>
> Technically there are no private attributes in (pure) Python so the
> answer is still classes.
>
OK, so this is now messing with my lack of knowledge regarding Python.
What's (pure) Python? Is there any impure Python?
>
On Mon, Nov 3, 2008 at 11:47 PM, Joe Strout <[EMAIL PROTECTED]> wrote:
> On Nov 3, 2008, at 4:38 PM, Paulo J. Matos wrote:
>
>> However, I wouldn't dare to say Python needs structures to be a good
>> language, or anything similar. My question was more directed to : if
On Mon, Nov 3, 2008 at 10:19 PM, Aaron Brady <[EMAIL PROTECTED]> wrote:
> On Nov 3, 3:45 pm, Ben Finney <[EMAIL PROTECTED]>
> wrote:
>> "Paulo J. Matos" <[EMAIL PROTECTED]> writes:
>>
>> > On Mon, Nov 3, 2008 at 12:32 PM, Ben Finney
>
On Mon, Nov 3, 2008 at 10:10 PM, Arnaud Delobelle
<[EMAIL PROTECTED]> wrote:
> Ben Finney <[EMAIL PROTECTED]> writes:
>
>> "Paulo J. Matos" <[EMAIL PROTECTED]> writes:
> [...]
>> Okay, you're talking about 'struct' from the C langua
On Mon, Nov 3, 2008 at 12:32 PM, Ben Finney
<[EMAIL PROTECTED]> wrote:
> "Paulo J. Matos" <[EMAIL PROTECTED]> writes:
>
>> I am a Python beginner, reading through 2.6 tutorial. I am wondering
>> where are structures?
>
> I'm wondering a more f
Hi all,
I am a Python beginner, reading through 2.6 tutorial. I am wondering
where are structures?
On the other hand, I think I might have the answer. Since Python focus
on having one way to do it and structures are something like classes
with only public methods, if I want structures that's what
Hi all,
What's the best way to know the amount of memory allocated by a
function and the time it took to run? While the latter is simple to
implement using a wrapper function, the former is striking me as
something that needs to be primitive to python. Any tips?
Cheers,
--
Paulo Jorge Matos - p
On Thu, Oct 30, 2008 at 8:42 PM, Arnaud Delobelle
<[EMAIL PROTECTED]> wrote:
> On Oct 30, 8:07 pm, "Paulo J. Matos" <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I guess this is a recurring issue for someone who doesn't really know
>> the python
Hi all,
I guess this is a recurring issue for someone who doesn't really know
the python lib inside out. There must be a simple way to do this.
I have a list of objects [x1, x2, x3, ..., xn] and I have defined a
print method for them print_obj(). Now I want to print them
intersepersed by an elemen
Hi all,
Going through the tutorial brought up a question. Consider the functions:
def f(a, L=[]):
L.append(a)
return L
print f(3)
print f(9)
print f(7)
def f1(i = 0):
i = i + 1
print i
f1()
f1()
f1()
f1()
Since the f accumulates the values in L, I was expecting to see i
printi
Hi all,
I am wondering if there is any work on contracts for Python. I could
only find PEP316, however, I am wondering if there is any official
support for it already (tools I mean), and if it is or if it will be
officially supported in any of the next releases of Python.
Cheers,
--
Paulo Jorge
Paulo J. Matos wrote:
> Grant Edwards wrote:
>> On 2008-10-21, Paulo J. Matos <[EMAIL PROTECTED]> wrote:
>>> Hi all,
>>>
>>> I was just wondering, if you wish to commercialize an application
>>> developed in Python, what's the way to g
Grant Edwards wrote:
> On 2008-10-21, Paulo J. Matos <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I was just wondering, if you wish to commercialize an application
>> developed in Python, what's the way to go?
>> I guess the only way is to sell the sourc
Bruno Desthuilliers wrote:
> Paulo J. Matos a écrit :
>> Hi all,
>>
>> I was just wondering, if you wish to commercialize an application
>> developed in Python, what's the way to go?
>> I guess the only way is to sell the source, right?
>
> Nope, why
Sebastian Bassi wrote:
> On Tue, Oct 21, 2008 at 2:50 PM, Paulo J. Matos <[EMAIL PROTECTED]> wrote:
>> I was just wondering, if you wish to commercialize an application
>> developed in Python, what's the way to go?
>
> You choose the conditions. Nothing in Python l
Hi all,
I was just wondering, if you wish to commercialize an application
developed in Python, what's the way to go?
I guess the only way is to sell the source, right?
This is because (and tell me if I am wrong):
1) You can't sell an executable because Python doesn't compile to native
code (the u
Hi all,
I am in the process of choosing which Python version for a brand new
application. Van Rossum in an interview recently advised all new
applications to use Python3 but I am afraid, most libraries (PyGtk,
PyQt, Networking Libs, etc) won't follow suit to 3.0 and I will end up
using a version o
18 matches
Mail list logo