>>> s = 'PBUSH 201005 K 500 1. 1. 1.
1. 1.'#Your original string here
>>> l#Create your desired list
['500.2', '5.2', '5.3', '5.4', '5.5', '5.6', '5.7']
>>> lsep = s.count(' 1.')#Count the occurrence of seperators
>>> for i in range(lsep):#Repla
All,
Say I have a string "l" ...
l = 'PBUSH 201005 K 1. 1. 1. 1. 1. 1.'
And I want to replace the first " 1." with a "500.2" and the second " 1."
with " 5.2" ...
What pythonic means would you all recommend?
Note the whitespace is equal between the ex
I am using pexpect to automate some procedures.
My procedures are time cosuming, some messages coming out from that,
in failure cases it will not output anything.
So I would like to give small timeout value but when some message is
received, it should restart the timeout, similar like
"restart_ti
порно халява посмотреть онлайн http://axn.joo.ru
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Giorgos Tzampanakis wrote:
I'm implementing a CPU that will run on an FPGA. I want to have a
(dead) simple assembler that will generate the machine code for
me. I want to use Python for that. Are there any libraries that
can help me with the parsing of the assembly code?
I wrote
News123 wrote:
>
>I created a grayscale image with PIL.
>
>Now I would like to write a C function, which reads a;most all pixels
>and will modify a few of them.
>
>My current approach is:
>- transform the image to a string()
>- create a byte array huge enough to contain the resulting image
>- call
Hi,
I need to access data that is handled and stored in the BlueZ file system,
but is, unfortunately, not available via the current BlueZ D-Bus API.
That is, the data I need is parsed by BlueZ, but not provided in the current
D-Bus signal.
I need a method or interface that does not rely on the
Alf P. Steinbach wrote:
* Tracubik:
>
iterations=0;
count=0;
REPEAT;
iterations = iterations+1;
...
IF (genericCondition) THEN count=count+1;
...
CASE count OF:
1: m = 1
2: m = 10
3: m = 100
Uhm, is this syntactically valid Pascal? As I recall, every Pascal
cons
MRAB wrote:
I suppose it depends on the complexity of the data structure. A dict's
methods are threadsafe, for example, but if you have a data structure
where access leads to multiple method calls then collectively they need
a lock.
It also depends on the nature of the objects being used
as di
On Wed, 03 Mar 2010 18:40:00 +1300, Gregory Ewing wrote:
> Ben Finney wrote:
>
>> Just as customers should demand both that a building be built to do its
>> job well, *and* that its architectural plans meet measurable, testable
>> industry standards of quality for independent re-use at some
>> in
Patrick Maupin wrote:
On Mar 2, 9:20 pm, Erik Max Francis wrote:
Patrick Maupin wrote:
On Mar 2, 5:36 pm, Steven D'Aprano wrote:
You seem to be taking the position that if you start with a config file
config.json, it is "too hard to edit", but then by renaming it to
config.rson it magically
Ben Finney wrote:
Just as customers should demand both that a building be built to do its
job well, *and* that its architectural plans meet measurable, testable
industry standards of quality for independent re-use at some
indeterminate later date.
A problem is that it's very hard to come up wi
Grant Edwards wrote:
Just a mediocre copy of the CP/M filesystem, which was in turn
copied from DEC's RSTS or RSX.
It was actually an improvement over CP/M's file
system. CP/M didn't have hierarchical directories
or timestamps and recorded file sizes in 128-byte
blocks rather than bytes.
--
G
Lie Ryan writes:
> On 03/03/2010 09:47 AM, TomF wrote:
> > There is also a program called cpan, distributed with Perl. It is
> > used for searching, downloading, installing and testing modules from
> > the CPAN repository. It's far more extensive than setuptools. AFAIK
> > the python community ha
MRAB wrote:
BTW, the first programming I did was in hexadecimal (C4xx was "LDI xx").
Hey, a SC/MP! That was my first programming language,
too. What sort of machine was it in?
--
Greg
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 02 Mar 2010 19:35:20 -0800, Patrick Maupin wrote:
> Yes, it is very confusing. Steven used that purported argument against
> me, and then since I disagreed with it, it apparently meant that I was
> arguing that changing the file extension type (which I've never even
> proposed or discusse
Lie Ryan writes:
> On 03/03/2010 09:47 AM, TomF wrote:
[..]
>> There
>> is also a program called cpan, distributed with Perl. It is used for
>> searching, downloading, installing and testing modules from the CPAN
>> repository. It's far more extensive than setuptools. AFAIK the python
>> co
On 03/03/2010 09:47 AM, TomF wrote:
> On 2010-03-02 13:14:50 -0800, R Fritz said:
>
>> On 2010-02-28 06:31:56 -0800, sstein...@gmail.com said:
>>>
>>> On Feb 28, 2010, at 9:28 AM, Someone Something wrote:
>>>
Is there something like cpan for python? I like python's syntax, but
Iuse perl
On 02/25/2010 06:16 AM, mk wrote:
> On 2010-02-24 20:01, Robert Kern wrote:
>> I will repeat my advice to just use random.SystemRandom.choice() instead
>> of trying to interpret the bytes from /dev/urandom directly.
>
> Out of curiosity:
>
> def gen_rand_string(length):
> prng = random.System
On Mar 2, 9:20 pm, Erik Max Francis wrote:
> Patrick Maupin wrote:
> > On Mar 2, 5:36 pm, Steven D'Aprano > cybersource.com.au> wrote:
> >> You seem to be taking the position that if you start with a config file
> >> config.json, it is "too hard to edit", but then by renaming it to
> >> config.rs
Code of SmallestService.py is at:
http://book.opensourceproject.org.cn/lamp/python/pythonwin/
Regards
--
http://mail.python.org/mailman/listinfo/python-list
Patrick Maupin wrote:
On Mar 2, 5:36 pm, Steven D'Aprano wrote:
You seem to be taking the position that if you start with a config file
config.json, it is "too hard to edit", but then by renaming it to
config.rson it magically becomes easier to edit. That *is* ludicrous.
No, but that seems to
Hello everyone,
The source tarballs and Windows installer for Python 2.6.5 release candidate 1
are now available:
http://www.python.org/download/releases/2.6.5/
Please download them, install them, and try to use them with your favorite
projects and environments. If no regressions are found, we
* Patrick Maupin:
On Mar 2, 5:36 pm, Steven D'Aprano wrote:
You seem to be taking the position that if you start with a config file
config.json, it is "too hard to edit", but then by renaming it to
config.rson it magically becomes easier to edit. That *is* ludicrous.
No, but that seems to be
Le dimanche 28 février 2010 17:43:07, Victor Stinner a écrit :
> Yes, Google AppEngine has its Python sandbox and the source code is
> available online. I don't know the license. I found 7 vulnerabilities in 1
> hour :-) I contacted Google security team. (...) There are other
> differences, but
Le dimanche 28 février 2010 23:40:59, Daniel Fetchinson a écrit :
> >>I guess they also have some kind of a sandbox if they let people run
> >>python on their machines, I'm not sure if it's open source though.
> >
> > Thing is, I'm sure that Google uses a critical backstop to any
> > Python-based s
Metalone wrote:
Well, I just realized that I could use a separate pipe to send the
result back. This might work ok.
Or you could call .poll on the pipe and sleep if there's no input yet.
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 2, 5:36 pm, Steven D'Aprano wrote:
> You seem to be taking the position that if you start with a config file
> config.json, it is "too hard to edit", but then by renaming it to
> config.rson it magically becomes easier to edit. That *is* ludicrous.
No, but that seems to be the position you
Well, I just realized that I could use a separate pipe to send the
result back. This might work ok.
--
http://mail.python.org/mailman/listinfo/python-list
I wanted to use Multiprocessing.Pipe and Multiprocessing.Process to
peform Actor style communication.
However, I just can't get what I need done, and I think it is due to
inherit problems with the design of Pipe.
If I have a process like this
def process1(conn):
while True:
msg = conn.
If the main process doesn't get the results from the queue until the
worker processes terminate, and the worker processes don't terminate
until they've put their results in the queue, and the pipe consequently
fills up, then deadlock can result.
The queue never fills up... on platforms with qsiz
John Krukoff wrote:
On Tue, 2010-03-02 at 22:54 +0100, mk wrote:
No need to use synchro primitives like locks?
I know that it may work, but that strikes me as somehow wrong... I'm
used to using things like Lock().acquire() and Lock().release() when
accessing shared data structures, whatever
Matt Chaput wrote:
Hi,
I'm having a problem with the multiprocessing package.
I'm trying to use a simple pattern where a supervisor object starts a
bunch of worker processes, instantiating them with two queues (a job
queue for tasks to complete and an results queue for the results). The
supe
Steven D'Aprano writes:
> (3) which implies that all JSON files are valid RSON files.
>
> If you reject the logical conclusion that RSON must therefore also be too
> hard to edit, then perhaps JSON isn't too hard to edit either.
I would say that JSON is hard to edit because, among other things,
Hi,
I created a grayscale image with PIL.
Now I would like to write a C function, which reads a;most all pixels
and will modify a few of them.
My current approach is:
- transform the image to a string()
- create a byte array huge enough to contain the resulting image
- call my c_function, which
Hi,
I am using the PIL function from_buffer in python 2.6.4
I am having the line
im2 = Image.frombuffer('L',(wx,wy),buf)
I receive the warning:
> ./pytest.py:63: RuntimeWarning: the frombuffer defaults may change in
a future release; for portability, change the call to read:
> frombuffer(mode
This appears to be Issue 5380[1] which is still open. I've cc'ed myself
to that issue.
[1] http://bugs.python.org/issue5380
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 2010-03-02 at 17:32 +, MRAB wrote:
> The documentation also mentions the 'pty' module. Have you tried that
> instead?
I tried to use pty.fork() but it also produces the same error.
I also tried passing 'r', and 'rb' to fdopen() but it didn't make any
difference.
-a
--
http://mail
Andreas Waldenburger writes:
> It works. They are supposed to make it work. And that's what they do.
> Whether or not they put their docstrings in the place they should does
> not change that their code works.
No-one has been denying that.
What the quality of their source code *does* affect, th
On Tue, 02 Mar 2010 11:30:32 -0800, Patrick Maupin wrote:
> On Mar 2, 11:59 am, Terry Reedy wrote:
>
>> To me, comparing object notation with programming language is not
>> helpful to the OP's purpose.
>
> Yes, I agree, it was a distraction. I fell into the trap of responding
> to the ludicrou
On Tue, 02 Mar 2010 23:19:09 +0100, Andreas Waldenburger wrote:
> We demand testable quality standards, but not of their code. We demand
> it of their software. We say *what* we want, they decide *how* they'll
> do it. Noncompliance will be fined, by a contractually agreed amount.
> Everything bey
On Tue, 02 Mar 2010 22:51:56 +0100, Andreas Waldenburger wrote:
> On Tue, 02 Mar 2010 19:05:25 +0100 Jean-Michel Pichavant
> wrote:
>
>> Andreas Waldenburger wrote:
>> >
>> > I had hoped that everyone just read it, went like "Oh geez.", smiled
>> > it off with a hint of lesson learned and got b
On 3/2/2010 3:59 PM, Matt Chaput wrote:
> I'm trying to use a simple pattern where a supervisor object starts a
> bunch of worker processes, instantiating them with two queues (a job
> queue for tasks to complete and an results queue for the results). The
> supervisor puts all the jobs in the "job
Victor Subervi wrote:
> On Tue, Mar 2, 2010 at 11:48 AM, Victor Subervi This sends only the first of the two emails. Why doesn't it work to
> send the second? What do?
> TIA,
> beno
>
>
> Should I put a timer between instances of Email?
>
>
Np.
http://en.wikipedia.org/wiki/Ca
On 2010-03-02, Albert van der Horst wrote:
> No nothing clever, nothing conscious, just reinventing the wheel
> badly.
>
> Next time you tell me that the MSDOS "file" system was well thought
> out :-)
Just a mediocre copy of the CP/M filesystem, which was in turn
copied from DEC's RSTS or RSX.
In article <20100302225156.67171...@geekmail.invalid>,
Andreas Waldenburger wrote:
>
>Sorry, you guys drained all the funny out of me.
Don't let a few nitpickers do that! I thought it was funny; after that,
just remember that every Usenet thread drifts away from *your* point.
--
Aahz (a...@pyt
In article ,
Robert Kern wrote:
>On 2010-02-28 01:28 AM, Aahz wrote:
>> In article,
>> Robert Kern wrote:
>>>
>>> If you are storing the password instead of making your user remember
>>> it, most platforms have some kind of keychain secure password
>>> storage. I recommend reading up on the APIs
In article ,
Grant Edwards wrote:
>
>I've noticed recently that a lot of the "refernces" and
>"in-reply-to" headers in c.l.p are broken, resulting in the
>inability to move from a child to a parent in a tree.
One issue with the mail/news gateway is that (unless it's been fixed)
In-Reply-To: does
In article , Mel wrote:
>Jean-Michel Pichavant wrote:
>> Andreas Waldenburger wrote:
>>> On Fri, 26 Feb 2010 09:09:36 -0600 Tim Daneliuk
>>> wrote:
Reminiscent of:
mov AX,BX ; Move the contents of BX into AX
>
>>> Well, there might be some confusion there as to what gets
On 2010-03-02 13:14:50 -0800, R Fritz said:
On 2010-02-28 06:31:56 -0800, sstein...@gmail.com said:
On Feb 28, 2010, at 9:28 AM, Someone Something wrote:
Is there something like cpan for python? I like python's syntax, but
Iuse perl because of cpan and the tremendous modules that it has. -
Title: NYCLUBINFO INC
Unsubscribe | Complain | Edit Profile | Confirm
31 Kimberly Drive East Northport NY 11731
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 03 Mar 2010 08:22:40 +1100 Ben Finney
wrote:
> Andreas Waldenburger writes:
>
> > Don't get me wrong; our whole system is more fragile than I find
> > comfortable. But I guess getting 10ish different parties around the
> > globe to work in complete unison is quite a feat, and I'm surpri
On Tue, 2010-03-02 at 22:54 +0100, mk wrote:
> No need to use synchro primitives like locks?
>
> I know that it may work, but that strikes me as somehow wrong... I'm
> used to using things like Lock().acquire() and Lock().release() when
> accessing shared data structures, whatever they are.
T
John Posner wrote:
> I've updated the text at this location:
>
> > http://cl1p.net/bruno_0301.rst/
I think this is a very useful writeup!
It would be perfect with a little bit of introduction that says:
1. - What it is: "The rough details of method look-up";
2. - which contains some of the q
On Tue, 02 Mar 2010 19:05:25 +0100 Jean-Michel Pichavant
wrote:
> Andreas Waldenburger wrote:
> >
> > I had hoped that everyone just read it, went like "Oh geez.",
> > smiled it off with a hint of lesson learned and got back to
> > whatever it was they were doing. Alas, I was wrong ... and I'm
>
Daniel Stutzbach wrote:
On Tue, Mar 2, 2010 at 1:58 PM, Martin P. Hellwig
mailto:martin.hell...@dcuktec.org>> wrote:
What actually happens if multiple threads at the same time, write to
a shared dictionary (Not using the same key)?
All of Python's built-in types are thread safe. Bot
Can someone tell me how to upload the contents of a (relatively small)
file using an HTML form and CGI in Python 3.1? As far as I can tell
from a half-day of experimenting, browsing, and searching the Python
issue tracker, this is broken. Very simple example:
http://localhost
Hi,
I'm having a problem with the multiprocessing package.
I'm trying to use a simple pattern where a supervisor object starts a
bunch of worker processes, instantiating them with two queues (a job
queue for tasks to complete and an results queue for the results). The
supervisor puts all the
Giorgos Tzampanakis wrote:
> I'm implementing a CPU that will run on an FPGA. I want to have a
> (dead) simple assembler that will generate the machine code for
> me. I want to use Python for that. Are there any libraries that
> can help me with the parsing of the assembly code?
Why coding as
Grant Edwards writes:
> Or is it just individual news/mail clients that are broken?
This, I believe. Many clients mess up the References and In-Reply-To
fields, in the face of many years of complaint to the vendors.
Most free-software clients get it right, AFAICT.
--
\ “Contentment is a
Andreas Waldenburger writes:
> Don't get me wrong; our whole system is more fragile than I find
> comfortable. But I guess getting 10ish different parties around the
> globe to work in complete unison is quite a feat, and I'm surprised it
> even works as it is. But it does, and I'm glad we don't
Terry Reedy wrote:
On 3/2/2010 11:18 AM, John Posner wrote:
On 3/2/2010 10:19 AM, Roy Smith wrote:
Somewhat sadly, in my case, I can't even machine process the header
file. I don't, strictly speaking, have a header file. What I have is
a PDF which documents what's in the header file, and I'm m
On 2010-02-28 06:31:56 -0800, sstein...@gmail.com said:
On Feb 28, 2010, at 9:28 AM, Someone Something wrote:
Is there something like cpan for python? I like python's syntax, but
Iuse perl because of cpan and the tremendous modules that it has. --
Please search the mailing list archives.
On 3/2/2010 12:59 PM, Tim Arnold wrote:
>
> I'll write some test programs using multiprocessing and see how they
> go before committing to rewrite my current code. I've also been
> looking at 'parallel python' although it may have the same issues.
> http://www.parallelpython.com/
>
parallelpytho
Jerry Hill wrote:
Just import subprocess at the top of your module. If subprocess
hasn't been imported yet, it will be imported when your module is
loaded. If it's already been imported, your module will use the
cached version that's already been imported.
In other words, it sounds like Python
On Tue, Mar 2, 2010 at 1:58 PM, Martin P. Hellwig <
martin.hell...@dcuktec.org> wrote:
> What actually happens if multiple threads at the same time, write to a
> shared dictionary (Not using the same key)?
>
All of Python's built-in types are thread safe. Both updates will happen.
--
Daniel Stut
On Tue, 2010-03-02 at 17:32 +, MRAB wrote:
> The documentation also mentions the 'pty' module. Have you tried that
> instead?
I haven't but I'll give it a try. Thanks.
-a
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 2010-03-02 at 13:25 -0500, Terry Reedy wrote:
> To get help, or report a bug, for something like this, be as specific as
> possible. 'Linux' may be too generic.
This is on Python on Gentoo Linux x64 with kernel 2.6.33.
>
> > However, with CPython 3.1 I get:
> >
> > input =
On 03/02/10 19:44, MRAB wrote:
information, such as when it was completed, the status (OK or failed),
etc. You might want to wrap it in a class with locks (mutexes) to ensure
it's threadsafe.
What actually happens if multiple threads at the same time, write to a
shared dictionary (Not using the
Veloz wrote:
On Mar 2, 1:18 pm, Raymond Hettinger wrote:
On Mar 2, 8:29 am, Veloz wrote:
Hi all
I'm looking for a queue that I can use with multiprocessing, which has
a peek method.
I've seen some discussion about queue.peek but don't see anything in
the docs about it.
Does python have a que
On Mar 2, 11:59 am, Terry Reedy wrote:
> To me, comparing object notation with programming language is not
> helpful to the OP's purpose.
Yes, I agree, it was a distraction. I fell into the trap of
responding to the ludicrous claim that "if X is a superset of Y, then
X cannot possibly look bett
On Mar 2, 2010, at 1:31 PM, Tim Arnold wrote:
On Mar 2, 12:59 pm, Tim Arnold wrote:
On Mar 2, 11:52 am, Philip Semanchuk wrote:
On Mar 2, 2010, at 11:31 AM, Tim Arnold wrote:
Hi,
I'm intending to use multiprocessing on a freebsd machine (6.3
release, quad core, 8cpus, amd64). I see in th
On Mar 2, 1:18 pm, Raymond Hettinger wrote:
> On Mar 2, 8:29 am, Veloz wrote:
>
> > Hi all
> > I'm looking for a queue that I can use with multiprocessing, which has
> > a peek method.
>
> > I've seen some discussion about queue.peek but don't see anything in
> > the docs about it.
>
> > Does pyt
On 2010-03-02 11:59 AM, Terry Reedy wrote:
On 3/2/2010 11:34 AM, Robert Kern wrote:
On 2010-03-01 22:55 PM, Terry Reedy wrote:
On 3/1/2010 7:56 PM, Patrick Maupin wrote:
On Mar 1, 5:57 pm, Erik Max Francis wrote:
Patrick Maupin wrote:
This not only seriously stretching the meaning of the term
On Tue, Mar 2, 2010 at 12:56 PM, Victor Subervi wrote:
> On Tue, Mar 2, 2010 at 11:53 AM, Victor Subervi
> wrote:
>
>> On Tue, Mar 2, 2010 at 11:48 AM, Victor Subervi
>> wrote:
>>
>>> Hi;
>>> I have the following code:
>>>
>>> def my_mail():
>>> user, passwd, db, host = login()
>>> database
On Mar 2, 12:59 pm, Tim Arnold wrote:
> On Mar 2, 11:52 am, Philip Semanchuk wrote:
> > On Mar 2, 2010, at 11:31 AM, Tim Arnold wrote:
>
> > > Hi,
> > > I'm intending to use multiprocessing on a freebsd machine (6.3
> > > release, quad core, 8cpus, amd64). I see in the doc that on this
> > > plat
In article ,
Giorgos Tzampanakis wrote:
>I'm implementing a CPU that will run on an FPGA. I want to have a
>(dead) simple assembler that will generate the machine code for
>me. I want to use Python for that. Are there any libraries that
>can help me with the parsing of the assembly code?
I have
Where do you take class Email from? There's no info in your mail on this.
Regards,
mk
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 2, 2010 at 12:46 PM, mk wrote:
> Hello everyone,
>
> I have a class that is dependent on subprocess functionality. I would like
> to make it self-contained in the sense that it would import subprocess if
> it's not imported yet.
>
> What is the best way to proceed with this?
Just impo
Tracubik wrote:
hi, i've to convert from Pascal this code:
iterations=0;
count=0;
REPEAT;
iterations = iterations+1;
...
IF (genericCondition) THEN count=count+1;
...
CASE count OF:
1: m = 1
2: m = 10
3: m = 100
UNTIL count = 4 OR iterations = 20
i do something
On 3/2/2010 9:24 AM, Albert Hopkins wrote:
I have a snippet of code that looks like this:
pid, fd = os.forkpty()
if pid == 0:
subprocess.call(args)
else:
input = os.fdopen(fd).read()
...
This seems to work find for CPython 2.5 and 2
mk wrote:
Hello everyone,
I have a class that is dependent on subprocess functionality. I would
like to make it self-contained in the sense that it would import
subprocess if it's not imported yet.
What is the best way to proceed with this?
I see a few possibilities:
1. do a class level im
On Mar 2, 8:29 am, Veloz wrote:
> Hi all
> I'm looking for a queue that I can use with multiprocessing, which has
> a peek method.
>
> I've seen some discussion about queue.peek but don't see anything in
> the docs about it.
>
> Does python have a queue class with peek semantics?
Am curious about
Andreas Waldenburger wrote:
On Tue, 02 Mar 2010 09:48:47 +1100 Ben Finney
wrote:
It's not our concern.
Then I don't see what that problem is.
There is none. I was griping about how stupid they are. That is a
personal problem I have with their *code* (not software), and I tho
* Alf P. Steinbach:
* Alf P. Steinbach:
* Tracubik:
hi, i've to convert from Pascal this code:
iterations=0;
count=0;
REPEAT;
iterations = iterations+1;
...
IF (genericCondition) THEN count=count+1;
...
CASE count OF:
1: m = 1
2: m = 10
3: m = 100
Uhm, is this s
* Alf P. Steinbach:
* Tracubik:
hi, i've to convert from Pascal this code:
iterations=0;
count=0;
REPEAT;
iterations = iterations+1;
...
IF (genericCondition) THEN count=count+1;
...
CASE count OF:
1: m = 1
2: m = 10
3: m = 100
Uhm, is this syntactically valid Pa
* Tracubik:
hi, i've to convert from Pascal this code:
iterations=0;
count=0;
REPEAT;
iterations = iterations+1;
...
IF (genericCondition) THEN count=count+1;
...
CASE count OF:
1: m = 1
2: m = 10
3: m = 100
Uhm, is this syntactically valid Pascal? As I recall
On Mar 2, 11:52 am, Philip Semanchuk wrote:
> On Mar 2, 2010, at 11:31 AM, Tim Arnold wrote:
>
>
>
>
>
> > Hi,
> > I'm intending to use multiprocessing on a freebsd machine (6.3
> > release, quad core, 8cpus, amd64). I see in the doc that on this
> > platform I can't use synchronize:
>
> > ImportE
On 3/2/2010 11:34 AM, Robert Kern wrote:
On 2010-03-01 22:55 PM, Terry Reedy wrote:
On 3/1/2010 7:56 PM, Patrick Maupin wrote:
On Mar 1, 5:57 pm, Erik Max Francis wrote:
Patrick Maupin wrote:
This not only seriously stretching the meaning of the term "superset"
(as Python is most definitely no
On Tue, Mar 2, 2010 at 3:34 AM, enda man wrote:
> Hi,
>
> I want to call the Windows signtool to sign a binary from a python
> script.
>
> Here is my script:
> //
> os.chdir('./Install/activex/cab')
> subprocess.call(["signtool", "sign", "/v", "/f", "webph.pfx", "/t",
> "http://timestamp.verisign.
additional information:
when count=4 i haven't to change the m value, so i have to do nothing or
something like m = m
Nico
--
http://mail.python.org/mailman/listinfo/python-list
I've noticed recently that a lot of the "refernces" and
"in-reply-to" headers in c.l.p are broken, resulting in the
inability to move from a child to a parent in a tree.
For example in a recent reply (subejct: os.fdopen() issue in
Python 3.1?), the references and in-reply-to headers both
contained
hi, i've to convert from Pascal this code:
iterations=0;
count=0;
REPEAT;
iterations = iterations+1;
...
IF (genericCondition) THEN count=count+1;
...
CASE count OF:
1: m = 1
2: m = 10
3: m = 100
UNTIL count = 4 OR iterations = 20
i do something like this:
itera
Hello everyone,
I have a class that is dependent on subprocess functionality. I would
like to make it self-contained in the sense that it would import
subprocess if it's not imported yet.
What is the best way to proceed with this?
I see a few possibilities:
1. do a class level import, like:
On Tue, 02 Mar 2010 09:48:47 +1100 Ben Finney
wrote:
> > It's not our concern.
>
> Then I don't see what that problem is.
There is none. I was griping about how stupid they are. That is a
personal problem I have with their *code* (not software), and I thought
I'd just share my superiority com
On Mon, 01 Mar 2010 21:09:39 + Mark Lawrence
wrote:
> Andreas Waldenburger wrote:
> > [snip]
> > We did not buy code. If it were written in C or such, we would never
> > get to see it.
> >
> > It's not our concern.
> >
> > /W
> >
>
> From your original post.
>
>
> a company that works
On 3/2/2010 11:18 AM, John Posner wrote:
On 3/2/2010 10:19 AM, Roy Smith wrote:
Somewhat sadly, in my case, I can't even machine process the header
file. I don't, strictly speaking, have a header file. What I have is
a PDF which documents what's in the header file, and I'm manually re-
typing t
On Mar 2, 2:46 pm, "Matt Mitchell" wrote:
> I think you need to use the /p switch to pass signtool.exe a password
> when using the /f switch.
> Check outhttp://msdn.microsoft.com/en-us/library/8s9b9yaz%28VS.80%29.aspxfor
> more info.
>
> ---
> The information contai
Albert Hopkins wrote:
I have a snippet of code that looks like this:
pid, fd = os.forkpty()
if pid == 0:
subprocess.call(args)
else:
input = os.fdopen(fd).read()
...
This seems to work find for CPython 2.5 and 2.6 on my Linux system.
Howe
John Posner wrote:
On 3/2/2010 10:19 AM, Roy Smith wrote:
Somewhat sadly, in my case, I can't even machine process the header
file. I don't, strictly speaking, have a header file. What I have is
a PDF which documents what's in the header file, and I'm manually re-
typing the data out of that.
1 - 100 of 130 matches
Mail list logo