Thanks,
PyThread_release_lock() is implemented in all thread_xxx.h files.
So I thought right but specified my question like a stupid ;)
//T
--
http://mail.python.org/mailman/listinfo/python-list
David Schwartz wrote:
> "Roedy Green" <[EMAIL PROTECTED]> wrote in
> message news:[EMAIL PROTECTED]
>>On Tue, 18 Oct 2005 20:30:42 -0700, "David Schwartz"
>><[EMAIL PROTECTED]> wrote or quoted :
>
>>> No, taken stupidly. Hint: would or would not MS executives disobeying
>>>the law constitute a
Mike Meyer <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Alex Martelli) writes:
> > Mike Meyer <[EMAIL PROTECTED]> wrote:
> >> What surprises me is that marketing types will accept turning away -
> >> what's the current internet user base? 200 million? - 10 million
> >> potential customers witho
"Xah Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Rethink what you are saying. You'll see that what you propose as
> reasons for one, is actually for the other.
Nonsense. It is plain error to change what someone said and claim they
said it, even if you think that what
"Roedy Green" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> On Tue, 18 Oct 2005 20:34:55 -0700, "David Schwartz"
> <[EMAIL PROTECTED]> wrote or quoted :
>> As for obligations to community, no, there is no such obligation. An
>>executive who devoted his company to his community a
"Roedy Green" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> On Tue, 18 Oct 2005 20:30:42 -0700, "David Schwartz"
> <[EMAIL PROTECTED]> wrote or quoted :
>>No, taken stupidly. Hint: would or would not MS executives disobeying
>>the law constitute a betrayal of their obligatio
Hi,
Thanks - this cookbook entry is very cool!
I am somewhat worried about function call overhead from the infix hack
though... on second consideration, the infix issue is not as important
as eventually boosting the speed of the inner loop to which
matrixmultiply() belongs. For those who are i
it will be added in 2.5 I beleve. At the moment, you can:
predicate and or
like :
>>> os.paths.exists(something) and "print it is there" or "file not found"
I am practicing FP in python and it is in general doable with the help
of itertools and add the needed functions as needed, like scanl/sc
Thanks. Here's how the inner loop should be:
imgPaths2=map(lambda x: (x, re.sub( r"^(.+?)-s(\.[^.]+)$",r"\1\2", x)),
imgPaths)
though, now i just need something like
map( lambda x: os.path.exists(s)? x[1]:x[0],impPaths2)
but Pyhton doesn't support the
test ? trueResult : falseResult
construct.
Hello there,
I have been programming python for a little while, now. But as I am
beginning to do more complex stuff, I am running into small organization
problems.
It is possible that what I want to obtain is not possible, but I would
like the advice of more experienced python programmers.
I a
Xah Lee wrote:
> Xah Lee wrote:
> >
> this is of interest to me,
That's why you are replying to yourself
> I have written a full
> page of criticism but the human animal fuckers handily censored it too.
Who would have predicted that? Maybe you should boycott them.
To those who came to this
> Xah Lee, on Aug 22, 2:43 pm wrote:
> Unix, RFC, and Line Truncation
> http://xahlee.org/UnixResource_dir/writ/truncate_line.html
Steve wrote:
> I've seen this argument before. There's at least one VERY good reason
> to hard-code linebreaks in text: to preserve a covert channel. It's
> really
hola la vdd lei su documento pero no le entoendo bien mas que nada
puedo crear algo con este programa si la respuesta es si mas o menos
que si la respuesta en no entoncs pa que sirve a ademas no me pueden
pasar oyta guia mas facil mmm soy medio lento de aprendizaje gracias
--
http://mail.python.or
James Buchanan wrote:
> Hi group,
>
> I'm preparing Python 2.4.2 for the upcoming Minix 3.x release, and I
> have problems with make. configure runs fine and creates the makefile,
> but right at the end ends with an error about a circular dependency in
> Modules/signalmodule.o.
I've never heard o
On Tue, 18 Oct 2005 20:34:55 -0700, "David Schwartz"
<[EMAIL PROTECTED]> wrote or quoted :
> As for obligations to community, no, there is no such obligation. An
>executive who devoted his company to his community against his shareholders'
>wishes should be fired. The company exists as a vehicl
On Tue, 18 Oct 2005 20:30:42 -0700, "David Schwartz"
<[EMAIL PROTECTED]> wrote or quoted :
>
>No, taken stupidly. Hint: would or would not MS executives disobeying
>the law constitute a betrayal of their obligation to their shareholders?
You stated it literally as if making maximum profit fo
Mark E. Hamilton wrote:
> Sorry, I probably should have re-stated the problem:
>
> We're using Python 2.3.5 on AIX 5.2, and get the follow error messages
> from some of our code. I haven't yet tracked down exactly where it's
> coming from:
>
> sem_trywait: Permission denied
> sem_wait: Permission d
what do you mean by one line ? Using map/filter, I believe it is
possible.
Somthing like:
map(lambda (s,f): os.path.exists(f) and f or s,
map(lambda x: (x, re.replace(x, "-s","")), imgPaths)
My regex is a bit rusty but I hope you got the idea of what I am trying
to do. If there is a way to m
"Ron Provost" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [snip]
> t.insert( Tk.END, sampleText )
>
> t.tag_config( 'AB', font=tkFont.Font( family='ariel', size=24,
> weight=tkFont.BOLD ) )
> t.tag_config( 'TBU', font=tkFont.Font( family='times', size=10,
> weight=tkFont.BOLD, un
Peter Hansen wrote:
> Xah Lee wrote:
> > If you think i have a point, ...
>
> You have neither that, nor a clue.
Dear Peter Hansen,
My messages speak themselfs. You and your cohorts's stamping of it does
not change its nature. And if this is done with repetitiousness, it
gives away your nature.
"Roedy Green" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> On 18 Oct 2005 13:21:19 -0500, [EMAIL PROTECTED] wrote or quoted :
>>Yes, he deserves credit for what he did. He nevertheless created a
>>false impression in what he said. If he hadn't created that false
>>impression, t
"Roedy Green" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> On Tue, 18 Oct 2005 11:53:29 -0700, "David Schwartz"
> <[EMAIL PROTECTED]> wrote or quoted :
Wrong. The only obligation Microsoft has is to their shareholders.
>>> If you genuinely believe that, you are a psychopa
"Roedy Green" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> On Tue, 18 Oct 2005 11:53:29 -0700, "David Schwartz"
> <[EMAIL PROTECTED]> wrote or quoted :
>>The only obligation Microsoft has is to their shareholders.
>>>
>>> If you genuinely believe that, you are a psychopath.
>>
On 18 Oct 2005 13:21:19 -0500, [EMAIL PROTECTED] wrote or quoted :
>existed then.
>
>Yes, he deserves credit for what he did. He nevertheless created a
>false impression in what he said. If he hadn't created that false
>impression, there would not have been any jokes about him. If all he
>said was
Not sure that is a good idea on a linux system. MS should be fine, but
I actually tried that on linux. Didn't realize how much on a linux
system depends on Python.
Basically ended up doing a full re-install.
I'll never do that again.
--
http://mail.python.org/mailman/listinfo/python-list
On 18 Oct 2005 12:34:18 -0500, [EMAIL PROTECTED] wrote or quoted :
>
> "During my service in the United States Congress, I took the
> initiative in creating the Internet."
He did just that. Think about it. Without Gore, the Internet would
never have been delayed perhaps indefinitely. Without
On Tue, 18 Oct 2005 11:53:29 -0700, "David Schwartz"
<[EMAIL PROTECTED]> wrote or quoted :
>>>
>>> Wrong. The only obligation Microsoft has is to their shareholders.
>>
>> If you genuinely believe that, you are a psychopath.
>
>That's almost as convincing as "that's what you think".
If your o
Here in comp.os.linux.misc,
"Peter T. Breuer" <[EMAIL PROTECTED]> spake unto us, saying:
>In comp.os.linux.misc Richard Steiner <[EMAIL PROTECTED]> wrote:
>
>> Here in comp.os.linux.misc,
>> John Wingate <[EMAIL PROTECTED]> spake unto us, saying:
>
>>>Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>
>
On Tue, 18 Oct 2005 11:53:29 -0700, "David Schwartz"
<[EMAIL PROTECTED]> wrote or quoted :
>The only obligation Microsoft has is to their shareholders.
>>
>> If you genuinely believe that, you are a psychopath.
>
>That's almost as convincing as "that's what you think".
Taken literally, you th
On 18 Oct 2005 18:02:53 GMT, John Bokma <[EMAIL PROTECTED]> wrote
or quoted :
>If you think you can direct the development of human behaviour by not
>buying a Microsoft product, be my guest.
Refusing to take any action against them is also immoral. I think you
are morally obligated to take some
dcrespo wrote:
>>Before, after, or during the .start() call, or somewhere else?
> I'd like to catch *just after* the .start() call.
Excellent. That makes it pretty easy then, since even though you are
spawning a thread to do the work, your main thread isn't expected to
continue processing in pa
Xah Lee wrote:
> If you think i have a point, ...
You have neither that, nor a clue.
(Newsgroups line trimmed to reduce the effects of cross-posting trolls.)
-Peter
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm using python 2.4.2 on Win XP Pro. I'm trying to understand a behavior
I'm seeing in some Tkinter code I have. I've reduced my question to a small
piece of code:
#BEGIN CODE
#
import Tkinter as Tk
import tkFont
sampleText = """Here is a test string. This is mo
Robert Hicks wrote:
> No, I have to format fields and everything sad to say. Another poster
> up the chain of this posting gave me the nudge in the direction I
> needed.
Doesn't Excel also support (in addition to binary .xls and simple text
.csv files) an XML format, which allows full access to f
Yes, that's what I need! Thank you all
bruno modulix wrote:
> James Gan wrote:
>
>>I want the object printed in a readable format. For example,
>>x =[a, b, c, [d e]] will be printed as:
>>x--a
>> |_b
>> |_c
>> |___d
>> |_e
>>
>>I tried pickled, marshel. They do different work.
>>
>>Is there an
Hi, Steven
:) width parameter do the magic :
>>> pprint.pprint([1,2,3,4,[0,1,2,[3,4]],5], width=1,indent=4)
[ 1,
2,
3,
4,
[ 0,
1,
2,
[ 3,
4]],
5]
>>>
Steven D'Aprano wrote:
> On Mon, 17 Oct 2005 11:31:46 +0200, enrico.sirol
[EMAIL PROTECTED] wrote:
> OK, I give up. Why does workaround #2 work?
Well, there was a time when the cmd prompt treated all
spaces as delimiters, so
>cd My Documents
would fail. Nowadays you can do that successfully and even
>cd My Documents\My Pictures
works.
In the old days, if
Hello there,
I have been programming python for a little while, now. But as I am
beginning to do more complex stuff, I am running into small
organization problems.
It is possible that what I want to obtain is not possible, but I would
appreciate the advice of more experienced python programmers.
what you wrote is the most readable to me:
just asign the first 2 element to t, l respectively and forget about
the rest. I assume that is what you want. I think perl may do it this
way.
A solution which I think looks uglier is :
t, l = s.split('|')[:2]
Randy Bush wrote:
> >>> l = []
> >>> s =
Randy Bush wrote:
> so, i imagine what is happening is the lhs, t,l, is really
> (t, (l)), i.e. only two items.
>
> so how should i have done this readably and simply?
Your question isn't at all clear. You're trying to assign a 4-element
tuple to two elements. That generates a ValueError.
Di
Just passin' through
Xah Lee, on Aug 22, 2:43 pm wrote:
Unix, RFC, and Line Truncation
[snippage]
> There is no reason for a paragraph encoding to be splattered with end
> of line characters, nor the human labor expended. There is reason for
> paragraphs to be displayed not too wide, and that
Python doc problem:
http://python.org/doc/2.4.2/lib/os-file-dir.html
makedirs( path[, mode])
Recursive directory creation function. Like mkdir(), but makes all
intermediate-level directories needed to contain the leaf directory.
Throws an error exception if the leaf directory already ex
> "Robert" == Robert Hicks <[EMAIL PROTECTED]> writes:
Robert> I need to pull data out of Oracle and stuff it into an
Robert> Excel spreadsheet. What modules have you used to interface
Robert> with Excel and would you recommend it?
Robert> Robert
For simple enough tasks, I th
On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote:
>>> Wrong. The only obligation Microsoft has is to their shareholders.
>> If you genuinely believe that, you are a psychopath.
If you genuinely believe that, you are delusional.
http://www.mired.org/home/mwm/
Independe
"Steve Holden" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Claudio Grondi wrote:
> > "Steve Holden" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [...]
> [Claudio]
> >>>I don't fully understand your attitude here. The Web Browser interface
> >
> > has
> >
> >>>all I can imagi
"Aragorn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Wrong. The only obligation Microsoft has is to their shareholders.
If you genuinely believe that, you are a psychopath.
> A psychopath is someone who lacks ethics and/or the ability to respect
> his fellow human b
On Wednesday 19 October 2005 01:41, John Bokma stood up and spoke the
following words to the masses in /comp.os.linux.misc...:/
> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>
>> Oh, and if you think I'm saying something shocking by suggesting that
>> somebody is a psychopath, I'm not. Something l
On Wednesday 19 October 2005 01:24, Steven D'Aprano stood up and spoke
the following words to the masses in /comp.os.linux.misc...:/
> On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote:
>
Wrong. The only obligation Microsoft has is to their shareholders.
>>>
>>> If you genuinely belie
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote:
Wrong. The only obligation Microsoft has is to their shareholders.
> With training and/or a good dose of enlightened self-interest, most
> psychopaths
hi
i use odbc to update a table in a database but i always get return
value of -1
even though i tried to return an integer. the table is updated though
...
sql = """
update table
set column = 0
where col = "%s"
select @@rowcount
"""
No, I have to format fields and everything sad to say. Another poster
up the chain of this posting gave me the nudge in the direction I
needed.
Thanks all,
Robert
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> Oh, and if you think I'm saying something shocking by suggesting that
> somebody is a psychopath, I'm not. Something like one in five of the
> general population are psychopaths,
psychopaths according to DSM IV, or just some silly test from a magazine?
On Tue, 18 Oct 2005 13:42:21 -0700, Robert Kern wrote:
> Steven D'Aprano wrote:
>> On Mon, 17 Oct 2005 22:23:43 -0700, David Pokorny wrote:
>>
>>>Hi,
>>>
>>>Just wondering if anyone has considered macros for Python. I have one
>>>good use case. In "R", the statistical programming language, you c
On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote:
>>> Wrong. The only obligation Microsoft has is to their shareholders.
>>
>> If you genuinely believe that, you are a psychopath.
>
> That's almost as convincing as "that's what you think".
>
> DS
When you are repeating a fact w
"Randy Bush" <[EMAIL PROTECTED]> wrote:
> >>> l = []
> >>> s = 'a|b'
> >>> t, l = s.split('|')
> >>> t
> 'a'
> >>> l
> 'b'
> >>> s = 'a|b|c|d'
> >>> t, l = s.split('|')
> Traceback (most recent call last):
> File "", line 1, in ?
> ValueError: too many values to unpack
> >>>
>
> so, i imagine wh
"Carl Banks" <[EMAIL PROTECTED]> wrote:
> Howabout something like this (untested):
>
> class CmpProxy(object):
> def __init__(self,obj):
> self.obj = obj
> def __eq__(self,other):
> return (self.obj.att_a == other.obj.att_b
> and self.obj.att_b == other.obj.
Shane Hathaway wrote:
> I've been writing Python-related articles on my weblog, and I thought
> planet.python.org might be interested in including them. Does anyone
> know how to submit a feed to the aggregator?
>
> http://hathawaymix.org/Weblog/rss20.xml?categories:list=Python
I'm pretty sure
Robert
Sorry I was not more clear in my posting. I am solving similar problem
as you are.
1) I am getting my data from the Firebird SQL database - directly,
using SQL commands (kinterbasdb module), not using ODBC, or ADODB or
what ever - some people here can suggest you how to connect directly to
Xah Lee wrote:
> is there a way to condense the following loop into one line?
>
> # -*- coding: utf-8 -*-
> # python
>
> import re, os.path
>
> imgPaths=[u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2059m-s.jpg',
> u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2062m-s.jpg',
> u'/Users/t
Chris Lambacher wrote:
> > * Usage tips/tooltips: Also something I found in PythonWin. During the
> > writing of the method, a little tip box pops up advising me what the
> > inputs are for a method or an instance construction for a class. Very
> > nice, very productive.
> VIm 7 may support that ou
On 18 Oct 2005 14:56:32 -0700, Xah Lee <[EMAIL PROTECTED]> wrote:
>is there a way to condense the following loop into one line?
There is.
exec('696d706f72742072652c206f732e706174680a0a696d6750617468733d5b75272f55736572732f742f7765622f506572696f6469635f646f736167655f6469722f6c616e63692f74342f6f682
>>> l = []
>>> s = 'a|b'
>>> t, l = s.split('|')
>>> t
'a'
>>> l
'b'
>>> s = 'a|b|c|d'
>>> t, l = s.split('|')
Traceback (most recent call last):
File "", line 1, in ?
ValueError: too many values to unpack
>>>
so, i imagine what is happening is the lhs, t,l, is really
(t, (l)), i.e. only two it
Hi!
Robert Hicks wrote:
> I need to pull data out of Oracle and stuff it into an Excel
> spreadsheet. What modules have you used to interface with Excel and
> would you recommend it?
if it is enough to produce a file that excel can read (in contrast to "a
real .xls file"), you could use the csv
James Stroud wrote:
> Hello All,
>
> I find myself in this situation from time to time: I want to compare two lists
> of arbitrary objects and (1) find those unique to the first list, (2) find
> those unique to the second list, (3) find those that overlap. But here is the
> catch: comparison is no
In <[EMAIL PROTECTED]>, Christoph Söllner wrote:
> ok got it:
> One cannot close the connection before reading the answer.
Yep, because the "answer" is read over the connection.
> Seems that in my original source the new assigned variable
> 'answ' is destroyed or emptied with the connection.clos
"Robert Hicks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I need to pull data out of Oracle and stuff it into an Excel
> spreadsheet. What modules have you used to interface with Excel and
> would you recommend it?
What does one use to bind Microsoft libraries to Python?
I think
* Helge Stenstroem wrote:
> Say I have a function
>
> def f(filename):
> result = openFileAndProcessContents(filename)
> return result
>
> Can that function be unit tested without having a real file as input?
> Something along the lines of
>
> import unittest
> class tests(unittest.Test
I just want to be and maybe I am not reading your response right. I am
talking about reading in bunch of rows out of Oracle and writing them
to an excel file, not using macros.
Robert
--
http://mail.python.org/mailman/listinfo/python-list
is there a way to condense the following loop into one line?
# -*- coding: utf-8 -*-
# python
import re, os.path
imgPaths=[u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2059m-s.jpg',
u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2062m-s.jpg',
u'/Users/t/web/Periodic_dosage_dir/lanci/t4
Robert Hicks wrote:
> I need to pull data out of Oracle and stuff it into an Excel
> spreadsheet. What modules have you used to interface with Excel and
> would you recommend it?
It is possible to control Excel directly from the Python code (you do
not need to write Excel macros within the Excel).
OK, I give up. Why does workaround #2 work?
Also, I didn't realize this before, but when you call os.spawnv, the
argument list you pass starts with the name of the executable you're
calling! When you call a program from cmd.exe, that program name is
the first parameter automatically. But with s
Hello All,
I find myself in this situation from time to time: I want to compare two lists
of arbitrary objects and (1) find those unique to the first list, (2) find
those unique to the second list, (3) find those that overlap. But here is the
catch: comparison is not straight-forward. For examp
[snip]
> Thanks. I didn't know there's also a sort function in Python (2.4),
> besides the method. (i've mentioned your name as acknowledgement at my
> website essay)
[snip]
With his permission, of course...
--
--
Lucas Raab
lvraab"@"earthlink.net
dotpyFE"@"gmail.com
AI
what i have so far is :
# Get values needed to make time calculations
CT = input("input your chronometer time (ex. 07:21:46): ")
CE = input("input your chronometer correction (ex. 00:01:32): ")
CEfastslow = raw_input("is your chronometer correction fast or
slow: ")
#decide eit
I need to pull data out of Oracle and stuff it into an Excel
spreadsheet. What modules have you used to interface with Excel and
would you recommend it?
Robert
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
The Irish Python Meetup will take place this Thursday, in Dublin at the SchoolHouse Hotel + Bar at 7.30pm
Location is marked on the map at http://www.dublin-hotels.net/hotel-images/schoolhouse-hotel-map.jpg
For more details see http://python.meetup.com/13/events/4766301/
Regards,
Darragh Sh
"Mike Schilling" <[EMAIL PROTECTED]> writes:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> One alternative, as I've said, is to write to the standards, and then
>> work around bugs in the popular browsers. If the public whim changes
>> which browser is most popul
Steven D'Aprano wrote:
> On Mon, 17 Oct 2005 22:23:43 -0700, David Pokorny wrote:
>
>>Hi,
>>
>>Just wondering if anyone has considered macros for Python. I have one
>>good use case. In "R", the statistical programming language, you can
>>multiply matrices with A %*% B (A*B corresponds to pointwi
> Hello,
> I am just starting to play threading in python, here is a really
> interesting problem I am very curious about:
> "
> import thread
> def main():
>thread.start_new(test.())
First, delete the dot after "test".
Second, is possibly that the Main() finishes before you can see the
print
http://www.nomachine.com/companion_screenshots.php
While not exacly what your talking about, its about as close as i can
think of. This allows you to run any X applications inside a web
browser.
Eli
--
http://mail.python.org/mailman/listinfo/python-list
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> One alternative, as I've said, is to write to the standards, and then
> work around bugs in the popular browsers. If the public whim changes
> which browser is most popular -
I am not holding my breath.
> it only has min
"John Bokma" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Mike Schilling" <[EMAIL PROTECTED]> wrote:
>
>> Now, once more, why are standards" *more valuable* than
>> "recommendations"?
>
> standards are written by internationally recognized independent
> organisations, v.s. every
Most of this stuff can be done in Vim or Emacs. I only know the details for
Vim, see below. I don't know why people are insistant on claiming that Vim
and Emacs can't do these kinds of things. They are, it just may take a bit
more work to set up. The advantage to this extra work is that you can
"Mike Schilling" <[EMAIL PROTECTED]> writes:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> "Mike Schilling" <[EMAIL PROTECTED]> writes:
>>> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
>>> news:[EMAIL PROTECTED]
"Mike Schilling" <[EMAIL PROTECTED]> write
I'm try run an ssh command in pexpect and I'm having trouble getting
everything escaped to do what i want.
Here's a striped down script showing what i want to do.
--
#!/usr/bin/env python
import pexpect
import sys
if len(sys.argv) < 3:
print "ssh.py host command"
sys.exit(1)
host
[Qun Cao]
>> import thread
>> def main():
>> thread.start_new(test.())
>>
>> def test():
>> print 'hello'
>>
>> main()
>> "
>> this program doesn't print out 'hello' as it is supposed to do.
>> while if I change main()
[Neil Hodgson]
>The program has exited before the thread has manage
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Johnny Lee <[EMAIL PROTECTED]> wrote:
> ...
>> Thanks for your help, maybe I should learn how to turn an attibute into
>> a property first.
>
>Easy -- in your class's body, just code:
>
> def getFoo(self): ...
> def setFo
Hi!
You can use tempfile.mktemp(), then write test contents to this temp
file,
pass it to your function, unlink tempfile.
you can create / unlink temp file in setUp() / tearDown() methods.
Alexander.
--
http://mail.python.org/mailman/listinfo/python-list
import httplib
import base64
import sys
import random
#
# Get the length of the file from os.stat
#
username=''
password=''
file=''
size=os.stat(file)[6]
#
# file contains the entire path, split off the name
# WebSafe.
#
name=os.path.basename(file)
url='https://www.somedomain.com'
auth_string =
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
> Now, once more, why are standards" *more valuable* than
> "recommendations"?
standards are written by internationally recognized independent
organisations, v.s. everyone can write a recommendation. For you, and
others this doesn't matter, for other
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Roedy Green <[EMAIL PROTECTED]> wrote:
>>
>>> On 18 Oct 2005 06:57:47 GMT, John Bokma <[EMAIL PROTECTED]> wrote
>>> or quoted :
>>>
>>That an HTML standard (ISO/IEC 1
Thanks again for your responses, guys. To answer the question,the
features I'd love to see in a Python IDE are:
* First and foremost, Vim editing behavior. Let me keep my fingers on
the homerow. I'm lazy. Point and click and CTRL + SHIFT has its
moments, but text editing is not one of them.
* Gra
Sorry, I probably should have re-stated the problem:
We're using Python 2.3.5 on AIX 5.2, and get the follow error messages
from some of our code. I haven't yet tracked down exactly where it's
coming from:
sem_trywait: Permission denied
sem_wait: Permission denied
sem_post: Permission denied
W
> You elided the paragraph where I pointed out the third alternative:
> provide a better experience for the 95%, and an ok experience for the
> 5%. WWW technologies are designed to degrade gracefully - it's easy to
> take advantage of that.
What I'm suggesting is taking the effort you'd put to the
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>> What surprises me is that marketing types will accept turning away -
>> what's the current internet user base? 200 million? - 10 million
>> potential customers without a complaint. Or maybe they just don't get
>> t
vpr wrote:
> I've had some problems, it seems that they dont render well in Linux. I
> tried it with Ubuntu Breezy.
I suspect that the animation may cause problems because of all the
refreshes. Perhaps you can render the window first then save it as a
bitmap. A simple blit should be better for t
Mark Roseman <[EMAIL PROTECTED]> writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] (Alex Martelli) writes:
>> > Maybe that's the key difference between the mindset of a
>> > mathematician and that of an engineer -- I consider reaching over
>> > 95% of visitors to be _quite good i
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Mike Schilling" <[EMAIL PROTECTED]> writes:
>> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>> "Mike Schilling" <[EMAIL PROTECTED]> writes:
"Mike Meyer" <[EMAIL PROTECTED]> wrote in me
"John Bokma" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Roedy Green <[EMAIL PROTECTED]> wrote:
>
>> On 18 Oct 2005 06:57:47 GMT, John Bokma <[EMAIL PROTECTED]> wrote
>> or quoted :
>>
>That an HTML standard (ISO/IEC 15445:2000) and an HTML
>recommendation by w3c (4.01 f
"John Bokma" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Mike Schilling" <[EMAIL PROTECTED]> wrote:
>
>> "John Bokma" <[EMAIL PROTECTED]> wrote in message
>
> [ w3c "standard" v.s. ISO ]
>
>> You haven't said why you thinbk "standards" are more valuable than
>> "recommendations
1 - 100 of 218 matches
Mail list logo