On Sat, 1 Dec 2007 16:51:35 +0200, "Dotan Cohen"
<[EMAIL PROTECTED]> wrote:
>On 30/11/2007, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
>> You will be eaten by the Snake-Ra god tonight!
>
>Wasn't Ra the Sun god?
>
He meant quetzatcoatl. We could rename the language. Now try qith
Quetzatcoatl and it
"Dotan Cohen" wrote:
> Newton was the bridge between science and superstition. Without him,
> we would not have science. For that he is notable. He is both magician
> and scientist. It was Newton's belief in the occult that led to his
> discovery of gravity: the fact that distant objects could i
Hello everyone,
I am trying to build python from scratch under VC8. The build process
runs and completes succesfully in debug mode resulting in
python_d.exe. But when i try to run this exe it returns an assertion
error and application crashes.
Has anyone successfully build python using VC8. Your
On Dec 4, 12:36 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 04 Dec 2007 00:54:57 -0300, Borse, Ganesh
> <[EMAIL PROTECTED]> escribió:
>
> > When we compile a Python code using functions such as Py_CompileString
> > or any other similar compile function, what will be the resulti
En Tue, 04 Dec 2007 00:54:57 -0300, Borse, Ganesh
<[EMAIL PROTECTED]> escribió:
> When we compile a Python code using functions such as Py_CompileString
> or any other similar compile function, what will be the resulting
> executable code?
> Will it be byte code somewhat like the byte code o
On Dec 3, 8:58 am, Samuel <[EMAIL PROTECTED]> wrote:
> On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote:
> > dir.__doc__
>
> This contains only the docstring one object (module, class,
> function, ...). I was thinking more of the complete API documentation
> that can be found in a file,
On Dec 3, 5:39 pm, "Russ P." <[EMAIL PROTECTED]> wrote:
> On Dec 3, 2:40 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
>
> > Until the OP posted his lastest 'why', I assumed this proposal was an April
> > Fools' post that he just could not wait to post. In fact, given that the
> > effective cost wo
When we compile a Python code using functions such as Py_CompileString or any
other similar compile function, what will be the resulting executable code?
Will it be byte code somewhat like the byte code of Java?
Or it will be the same binary code like the once generated by C/C++ compilers
from th
Is there a way to connect to servers on OS X using Python?
Here's the code I presently use in a Bash Shell script:
/bin/mkdir -p /Volumes/A_Share
/sbin/mount_afp "afp://username:[EMAIL PROTECTED]/A_Share" "/
Volumes/A_Share"
Can something similar be done with Python?
Thanks!
Jay
--
On Dec 3, 10:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 03 Dec 2007 19:53:20 -0300, sccs cscs <[EMAIL PROTECTED]> escribió:
>
> > I am very surprising by the Python interpreter behavior : see code
> > I initialize a 'A' and a 'B', and i give a B instance reference to the
> > in
On 3 Des, 05:02, itcecsa <[EMAIL PROTECTED]> wrote:
> I am implementing a small Python project, what I am going to do is to
> open Matlab and run some M-files, and get some output from Matlab
> command prompt.
>
> I have no idea how to open Matlab from Python!
Do you really want to do that? NumPy
En Tue, 27 Nov 2007 14:46:24 -0300, Diez B. Roggisch <[EMAIL PROTECTED]>
escribió:
> Giampaolo Rodola' schrieb:
>> os.path.islink documentation says:
>>
>> "Return True if path refers to a directory entry that is a symbolic
>> link. Always False if symbolic links are not supported."
>>
>> It's n
En Mon, 03 Dec 2007 19:53:20 -0300, sccs cscs <[EMAIL PROTECTED]> escribió:
> I am very surprising by the Python interpreter behavior : see code
> I initialize a 'A' and a 'B', and i give a B instance reference to the
> instance A in 'm1' method. I can modify (IN/OUT mode) the 'i'
> attribut
On Dec 3, 2:40 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> Until the OP posted his lastest 'why', I assumed this proposal was an April
> Fools' post that he just could not wait to post. In fact, given that the
> effective cost would be in the $millions, I an still not sure he is sanely
> seri
On Dec 3, 11:10 am, Amit Gupta <[EMAIL PROTECTED]> wrote:
>
>
> Thanks Frank. But again, this results into stack-track when the
> exception is caught. On the other hand, I would like the debug-trace
> just before throwing the exception. As a case, I might be debugging
> code, where the programmar f
On Dec 3, 3:09 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> People who claim that everyone would agree with them if they'd only
> open their minds or think out of the box are worth more than a few
Never said anything like it. It's a red herring that you either
imagined or made up.
> points on
On Dec 3, 2007 4:26 PM, Russ P. <[EMAIL PROTECTED]> wrote:
> On Dec 3, 2:12 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
>
> > On Dec 3, 2007 4:02 PM, Russ P. <[EMAIL PROTECTED]> wrote:
> >
> > > On Dec 3, 1:47 pm, Bruno Desthuilliers
> > > <[EMAIL PROTECTED]> wrote:
> >
> > > > Bullshit. Nowadays
Hello,
I am very surprising by the Python interpreter behavior : see code
I initialize a 'A' and a 'B', and i give a B instance reference to the
instance A in 'm1' method. I can modify (IN/OUT mode) the 'i' attribute (
aB.i = 10 ) , BUT I CANNOT DELETE "aB" into the fonction m1 ! the code "
"Victor Subervi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| def a():
| b()
Here is the error: should be
c = b()
| print c
|
| def b():
| c = "Hi"
| return c
|
| if __name__ == "__main__":
| a()
|
| then run a(). Throws error about c not being defined. How do I return
Michael Terry wrote:
>
>Folks admire Newton for some of his breathtaking insights, not because
>of his methods. The scientific method is a tool.
As was Newton, according to many of his contemporaries.
> The results are far more important than the tool.
Yep.
Jim
--
"I loathe people who say, '
Russ P. schrieb:
> On Dec 3, 1:58 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote:
>
>> ...and thus, maybe the joke is on you? Just to play devil's advocate...
>
> Yes, the joke *is* on me -- every time I have to explain to someone
> why I am using this funny-sounding language. That's the point.
Yeah
"Tóth Csaba" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|
| >> Python name is not funny for me. Even the Monty Python, because its
hard
| >> to translate their jokes, and in my country they are not so popular.
| >> Just a few ppl knows them.
|| back from jokes, im _really_ inter
On Dec 3, 12:45 pm, Bevan Jenkins <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have recently discovered the python language and am having a lot of
> fun getting head around the basics of it.
> However, I have run into a stumbling block that I have not been able
> to overcome, so I thought I would ask
On Dec 3, 2:12 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On Dec 3, 2007 4:02 PM, Russ P. <[EMAIL PROTECTED]> wrote:
>
> > On Dec 3, 1:47 pm, Bruno Desthuilliers
> > <[EMAIL PROTECTED]> wrote:
>
> > > Bullshit. Nowadays, anyone serious (since you seem to worry quite a lot
> > > about "being se
JD Smith <[EMAIL PROTECTED]> writes:
> Greetings:
>
> My cookiejar contains the cookie that I need however when I do
> cj.save(file) it does not actually save out to the cookies.lwj Does
> anyone have any clue what would keep this from saving? It CREATED my
> cookies.lwj file so I know it's not
On 2007-12-03, Michael Terry <[EMAIL PROTECTED]> wrote:
> !!!
>
> Folks admire Newton for some of his breathtaking insights, not
> because of his methods. The scientific method is a tool. The
> results are far more important than the tool.
Right. The biggest weakness in the scientific method is th
On 2007-12-03, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] a écrit :
>> Second, python also means snake, snake is not a good thing in
>> western culture. Many people dislike any things relevant to
>> snake. We must have high regard for the custom.
>>
>> Now, python3000 is co
!!!
Folks admire Newton for some of his breathtaking insights, not because
of his methods. The scientific method is a tool. The results are far
more important than the tool.
Also, it's not a game. His wacky ideas don't cancel out his brilliant ones.
If you want to say that he technically wasn't
On Dec 3, 2007 4:02 PM, Russ P. <[EMAIL PROTECTED]> wrote:
> On Dec 3, 1:47 pm, Bruno Desthuilliers
> <[EMAIL PROTECTED]> wrote:
>
> > Bullshit. Nowadays, anyone serious (since you seem to worry quite a lot
> > about "being serious") about IT knows what Python is and who uses it.
> > Heck, even MSV
On Dec 3, 1:58 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote:
> ...and thus, maybe the joke is on you? Just to play devil's advocate...
Yes, the joke *is* on me -- every time I have to explain to someone
why I am using this funny-sounding language. That's the point.
--
http://mail.python.org/mailma
Looks like statically linking the c-based modules is pretty easy, but how
about the python-based modules?
On Dec 3, 2007 10:06 AM, Patrick Stinson <[EMAIL PROTECTED]>
wrote:
> Is it possible to build python as a static library and embed all necessary
> c and py modules rom the standard lib in it?
On Dec 3, 1:47 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Bullshit. Nowadays, anyone serious (since you seem to worry quite a lot
> about "being serious") about IT knows what Python is and who uses it.
> Heck, even MSVS now has support for Python and there's an official CLR
> port of it.
On Dec 3, 2007 4:34 PM, Russ P. <[EMAIL PROTECTED]> wrote:
>
> > I'm amazed that anyone here answered this obvious troll...
>
> I doubt the original post was a troll, but the statement above clearly
> is.
>
> You are entitled to your opinion about the idea of changing the name
> of the language, bu
On Dec 3, 1:04 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Mon, 03 Dec 2007 16:11:19 +, Neil Cerutti wrote:
> > To paraphrase Bertrand Russell, Newton was too successful.
> > Over-veneration of Newton was eventually an impediment to progress--this
> > was not, of cour
Russ P. a écrit :
>>I'm amazed that anyone here answered this obvious troll...
>
>
> I doubt the original post was a troll, but the statement above clearly
> is.
Then your trollometer is broken. Got and get yourself a working one.
> You are entitled to your opinion about the idea of changing th
> I tried these this:
>
> string = string.replace('\s*Field One\s*
> %FieldOneValue%\s*', '')
>
>
> But this doesn't work. The doco for Python's regex suggests that \s
> should match any whitespace including newlines which is what I
> wanted,
from http://docs.python.org/lib/module-re.html
"
> I'm amazed that anyone here answered this obvious troll...
I doubt the original post was a troll, but the statement above clearly
is.
You are entitled to your opinion about the idea of changing the name
of the language, but calling it a troll is just arrogance on display.
Python3000 is expect
[EMAIL PROTECTED] a écrit :
> I am doing a string.replace in a simple table generation app I wrote,
> and I can't figure out how to match whitespace with /s,
Hahem... Where did you get the idea that str.replace would work with
regexps ?
"""
replace(...)
S.replace (old, new[, count]) -> st
On Sun, 02 Dec 2007 13:29:58 -0800, Russ P. wrote:
>> He might have been a great intellectual but he was no scientist. It's
>> only by ignoring the vast bulk of his work -- work which Newton himself
>> considered *far* more important and interesting than his work on
>> physics and mathematics -- t
Martin v. Löwis wrote:
> Just in case it's not clear what Tim is getting at:
>
> if a folder is marked read-only on Windows, it doesn't mean
> that you can only read from it. The read-only bit is a legacy
> thing, anyway, since you are supposed to use ACLs to mark
> a folder as read-only (by only
I am doing a string.replace in a simple table generation app I wrote,
and I can't figure out how to match whitespace with /s, so I thought
I would see if osmeone where would be kind enough to tell me what I am
getting wrong.
This works:
string = string.replace('\n Field One
\n %Field
On Mon, 03 Dec 2007 16:11:19 +, Neil Cerutti wrote:
> To paraphrase Bertrand Russell, Newton was too successful.
> Over-veneration of Newton was eventually an impediment to progress--this
> was not, of course, his fault.
Given that the veneration of Newton was very much a product of Newton's
Hello,
I have recently discovered the python language and am having a lot of
fun getting head around the basics of it.
However, I have run into a stumbling block that I have not been able
to overcome, so I thought I would ask for help.
I am trying to import a text file that has the following form
The Grant Institute: Certificate in Professional Program Development and Grant Communication
will be held in Seattle, Washington, December 10 - 14, 2007. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand means that s
[EMAIL PROTECTED] a écrit :
> Python is a good programming language, but "Python" is not a good
> name.
>
> First, python also means snake, Monty Python. If we search "python" in
> google, emule, many results are not programming resource. If we search
> PHP, all results are programming resource.
On Dec 3, 3:13 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Here is sample function:
>
> > def a():
> > b()
b() is not being assigned to anything. Use c = b() to have c assigned
in the local scope.
> > print c
>
> > def b():
When you enter the function b, you are creating a new local scope. c
Tommy Grav wrote:
> The class method needs a self argument so that
> disp.fill_canvas() can parse the class instance disp
> to the method.
It's an instance method, no class method.
Regards,
Björn
--
BOFH excuse #88:
Boss' kid fucked up the machine
--
http://mail.python.org/mailman/listinf
def a():
d = b()
print d
def b()
c = "Hi"
return c
if __name__ == "__main__":
a()
Cheers
TG
On Dec 3, 2007, at 3:05 PM, Victor Subervi wrote:
> Hi;
> Here is sample function:
>
> def a():
> b()
> print c
>
> def b():
> c = "Hi"
> return c
>
> if __name__ == "__ma
> Here is sample function:
>
> def a():
> b()
> print c
>
> def b():
> c = "Hi"
> return c
>
> if __name__ == "__main__":
> a()
>
> then run a(). Throws error about c not being defined. How do I return c from
> b?
you *do* return c from b, and within the scope of a(), c is not
defin
Hi;
Here is sample function:
def a():
b()
print c
def b():
c = "Hi"
return c
if __name__ == "__main__":
a()
then run a(). Throws error about c not being defined. How do I return c from
b?
TIA,
Victor
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 3, 2007, at 2:04 PM, Tóth Csaba wrote:
> Russ P. írta:
>>> Python name is not funny for me. Even the Monty Python, because
>>> its hard
>>> to translate their jokes, and in my country they are not so popular.
>>> Just a few ppl knows them.
>>
>> I've heard it helps to be stoned out of yo
Arnaud Delobelle wrote:
> Why not simply do:
>
> class YesNo(object):
> def __init__(self, which):
> self.yesno = which and self.yes or self.no
> def yes(self, val):
> print 'Yes', val
> def no(self, val):
> print 'No', val
> def __call__(self, val):
>
"Joseph king" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|I don't know how to pose this question so i will just say what i am trying
| to do.
|
| i am not sure if this is at all possible i am trying to make a story
| generator like the ones that i did in elementry school
Oops. I just forgot self.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 3, 2007, at 2:10 PM, Mike wrote:
> In the following Display inherits from the Tkinter class Canvas:
>
> import sys
> from Tkinter import *
> class Display(Canvas) :
> ...
> def fill_canvas() :
def fill_canvas(self):
> slop=self.slop
> set_sr(int(self.cget('width'))+slop
In the following Display inherits from the Tkinter class Canvas:
import sys
from Tkinter import *
class Display(Canvas) :
...
def fill_canvas() :
slop=self.slop
set_sr(int(self.cget('width'))+slop,
int(self.cget('height'))+slop)
self.refresh()
...
dis
On Dec 1, 11:14 pm, Frank Millman <[EMAIL PROTECTED]> wrote:
> See this post from less than a week ago.
>
> http://tinyurl.com/2zyr7u
>
> I think that the message from Diez B. Roggisch has what you are
> looking for.
>
> Frank Millman
Thanks Frank. But again, this results into stack-track when the
Tóth Csaba wrote:
> back from jokes, im _really_ interested what is core developers, mainly
> Guido's opinion about the name change.
I'm pretty sure it's, "Not a chance."
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our ow
Russ P. írta:
>> Python name is not funny for me. Even the Monty Python, because its hard
>> to translate their jokes, and in my country they are not so popular.
>> Just a few ppl knows them.
>
> I've heard it helps to be stoned out of your mind (i.e., under the
> influence of illegal drugs), but
> Python name is not funny for me. Even the Monty Python, because its hard
> to translate their jokes, and in my country they are not so popular.
> Just a few ppl knows them.
I've heard it helps to be stoned out of your mind (i.e., under the
influence of illegal drugs), but I don't necessarily re
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hello,
>
> > I'm trying to pass array as an argument into PL/SQL procedure.
> > According to cursor manual (http://cx-oracle.sourceforge.net/html/
> > cursorobj.html) arrayvar() should be use to do it. I've created
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hello,
>
> > I'm trying to pass array as an argument into PL/SQL procedure.
> > According to cursor manual (http://cx-oracle.sourceforge.net/html/
> > cursorobj.html) arrayvar() should be use to do it. I've created
is there a way to set the interpreter prefix without setting the program
name? If you use python as a static library you will not have a bin dir and
valid program name. I want to set up my app to be able to init the site
using something like C:\ProgramData\Mine\python_blah_blah on windows and
/Libr
> i am not sure if this is at all possible i am trying to make a story
> generator like the ones that i did in elementry school where they would
> supply a story with blanks and you would have to place the nouns-verbs/you
> best friends name and it would make a funny story.
Sounds like yo
[EMAIL PROTECTED] wrote:
> Hi ,
> I was looking at some example of how to display tabular data with
> tkinter and i found this component(
> http://www.satisoft.com/tcltk/gridplus2/examples.html
> ). I would like to know if it possible to make it work with the tk
> version used by python and how to
Russ P. wrote:
> On Dec 3, 8:22 am, [EMAIL PROTECTED] wrote:
>
>> The only reason to change the name would be because of some serious
>> bad PR that came onto Python, thus causing its branding name to be
>> catagorized as something bad.
>>
>> However this is not the case, presently, and the bran
Russ P. írta:
> Python is a "funny" name -- in both senses of the word. No? Then
> why did a comedy team adopt it?
Python name is not funny for me. Even the Monty Python, because its hard
to translate their jokes, and in my country they are not so popular.
Just a few ppl knows them.
Newton is a w
[EMAIL PROTECTED] wrote:
> Hello,
>
> I'm trying to pass array as an argument into PL/SQL procedure.
> According to cursor manual (http://cx-oracle.sourceforge.net/html/
> cursorobj.html) arrayvar() should be use to do it. I've created my
> array type in PL/SQL:
>
> CREATE OR REPLACE TYPE cx_arra
> http://support.microsoft.com/kb/326549
>
> Goodness knows what we're supposed to do with that.
Just in case it's not clear what Tim is getting at:
if a folder is marked read-only on Windows, it doesn't mean
that you can only read from it. The read-only bit is a legacy
thing, anyway, since you
thanks markacy, very thanks for your helpful reply.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 3, 3:36 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> Allowing instance lookup of __call__ would slow down normal uses of
> the internal __call__ mechanism. Since it used for all function and
> method calls, it needs to remain extremely fast. If you're really
> worried about performance,
On Dec 3, 8:22 am, [EMAIL PROTECTED] wrote:
> The only reason to change the name would be because of some serious
> bad PR that came onto Python, thus causing its branding name to be
> catagorized as something bad.
>
> However this is not the case, presently, and the brand name is well
> establishe
Dalton, Tom wrote:
> Hi,
>
> Is there any way to detect if a float is NaN in Python 2.4?
>
> I can pretty much understand why
>
> float("nan") == float("nan") -> False
>
> but I then expected there to be an isnan() function, perhaps provided by
> the maths module. I understand a lot of the floa
Check out the 'pydoc' script; it ships with Python. I've got my CI system
rigged up to run pydoc on each commit and automatically generate HTML
documentation. The tool actually imports a 'pydoc.py' module, which you may
be able to use directly if you need more control over the process.
On top o
Is it possible to build python as a static library and embed all necessary c
and py modules rom the standard lib in it? This would make distributing and
embedded interpreter in our app MUCH simpler.
thanks!
--
Patrick Kidd Stinson
http://www.patrickkidd.com/
http://pkaudio.sourceforge.net/
http:
Hi,
Is there any way to detect if a float is NaN in Python 2.4?
I can pretty much understand why
float("nan") == float("nan") -> False
but I then expected there to be an isnan() function, perhaps provided by
the maths module. I understand a lot of the floating point behaviour is
implementation-
I don't know how to pose this question so i will just say what i am trying
to do.
i am not sure if this is at all possible i am trying to make a story
generator like the ones that i did in elementry school where they would
supply a story with blanks and you would have to place the nouns-v
Hi ,
I was looking at some example of how to display tabular data with
tkinter and i found this component(
http://www.satisoft.com/tcltk/gridplus2/examples.html
). I would like to know if it possible to make it work with the tk
version used by python and how to do that ?
Thx
E,
--
http://mail.py
The only reason to change the name would be because of some serious
bad PR that came onto Python, thus causing its branding name to be
catagorized as something bad.
However this is not the case, presently, and the brand name is well
established and accepted. There is no reason to change its name a
Hello,
I'm trying to pass array as an argument into PL/SQL procedure.
According to cursor manual (http://cx-oracle.sourceforge.net/html/
cursorobj.html) arrayvar() should be use to do it. I've created my
array type in PL/SQL:
CREATE OR REPLACE TYPE cx_array_string is table of varchar2(200);
and
Which OS Windows or Linux?
br
Mathias
2007/12/3, Navid Parvini <[EMAIL PROTECTED]>:
>
> Dear All,
>
> Would you please help me to find a way to get the list of all processes id
> on the machine along with their parent processes.
>
> Thank you in advance.
>
>
> --
> Nev
Navid Parvini wrote:
> Dear All,
>
> Would you please help me to find a way to get the list of all processes id
> on the machine along with their parent processes.
>
> Thank you in advance.
Deja vu?
http://groups.google.com/group/comp.lang.python/search?q=list+process
TJG
--
http:/
[ Sorry if you see this message twice (or more), mail.python.org
seems rejecting my posts.]
Hello,
I've found strangeness in socket.
Normal socket is wrapped by Python code in socket.py.
>>> socket.socket(socket.AF_INET, socket.SOCK_STREAM)
However, socket created with fromfd() is not wrappe
On 2007-12-03, Russ P. <[EMAIL PROTECTED]> wrote:
> On Dec 3, 5:23 am, Steven D'Aprano
>> I'm not suggesting that Leibniz was any more of a scientist
>> than Newton was, nor am I suggesting that Newton's
>> achievements should be *rejected* (er, except for those pesky
>> Quantum Mechanics and Relat
On Dec 3, 2007 4:40 PM, Russ P. <[EMAIL PROTECTED]> wrote:
> As I said before, a name is
> just a name. It might as well be called "cockroach" as far as I am
> concerned.
Unluckily "the Beatles" was already taken :-)
francesco
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
Would you please help me to find a way to get the list of all processes id on
the machine along with their parent processes.
Thank you in advance.
-
Never miss a thing. Make Yahoo your homepage.--
http://mail.python.org/mailman/
Yann Leboulanger wrote:
> Ok thanks for all those information, I'll remove the call to os.access()
> on folders for windows in my application.
>
FWIW, I think it's worth bearing in mind what was said
earlier in this thread: it's easier to ask forgiveness
than permission. Technically, even if os.
Tim Golden a écrit :
> Well, that's not the case for files: if you set your
> file's readonly attribute to True, then os.access (W_OK)
> will return False and you won't be able to write to the
> file:
> The only issue (at least, the only one we're discussing here) is:
> If os.W_OK on a directory
dirkheld <[EMAIL PROTECTED]> writes:
> I don't have a file called 'a_file.txt'
> I want to create that file and write some data to it.
How exactly are you starting the Python interpreter? "No such file or
directory" on file creation can happen when you try to create a file
in a directory that ha
c james <[EMAIL PROTECTED]> writes:
>> class YesNo(object):
>>def __init__(self, which):
>> self.which = which
>>
>>def __call__(self, val):
>> return (self.no, self.yes)[self.which](val)
>>
>>def yes(self, val):
>> print 'Yes', val
>>
>>def no(self, val):
>>
I need some distutils help. I currently run a python library
(PyQuante) that, until recently, had all of its modules in a single
directory, called "PyQuante". The setup command in my setup.py module
had a single "packages" line:
packages = ['PyQuante'],
I moved some of the routines into Bas
On Dec 3, 5:23 am, Steven D'Aprano
> I'm not suggesting that Leibniz was any more of a scientist than Newton
> was, nor am I suggesting that Newton's achievements should be *rejected*
> (er, except for those pesky Quantum Mechanics and Relativity things...).
> I'm just saying that we should unders
Yann Leboulanger wrote:
> Tim Golden a écrit :
>>
>> I'm happy to contribute a doc patch if I can imagine what
>> exactly to write.
>>
>
> "Don't use it under windows, always consider it's True"?
Well, that's not the case for files: if you set your
file's readonly attribute to True, then os.acces
c james <[EMAIL PROTECTED]> wrote:
> Thanks, I was trying to eliminate another level of indirection with a
> test at each invocation of __call__
>
>
Try using different subclasses for each variant:
class YesNo(object):
def __new__(cls, which, *args, **kw):
if cls is YesNo:
In article <[EMAIL PROTECTED]>,
Gianmaria Iaculo - NVENTA <[EMAIL PROTECTED]> wrote:
>
>i'm using python 1.5.2.
>
>Is it possible to use the Thread module? I need it for the Timer library.
Python 1.5.2 contained several thread fixes, but I recommend upgrading to
2.2 or later if you can, there wer
Tim Golden a écrit :
>
> I'm happy to contribute a doc patch if I can imagine what
> exactly to write.
>
"Don't use it under windows, always consider it's True"?
Maybe it would be a good idea to remove support for windows for this
function, or make it always return True?
Current behaviour is w
One of the difficulties of this kind of a problem is that one is looking for
a solution to a limited number of data points for which it may be possible
to define a function. There can never be a guarantee that the chosen "fit"
can be reliably extrapolated. You need to tie a possible solution to
dirkheld wrote:
> On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> dirkheld wrote:
>> > Hi,
>>
>> > I upgraded my system from tiger to leopard. With leopard came a new
>> > version of python 2.5
>>
>> > Now I trying to run some python code that previously worked on tiger
>> > (whi
On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote:
> dir.__doc__
This contains only the docstring one object (module, class,
function, ...). I was thinking more of the complete API documentation
that can be found in a file, and formatted in a readable way.
-Samuel
--
http://mail.pyt
On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> dirkheld wrote:
> > Hi,
>
> > I upgraded my system from tiger to leopard. With leopard came a new
> > version of python 2.5
>
> > Now I trying to run some python code that previously worked on tiger
> > (which included an older versio
1 - 100 of 132 matches
Mail list logo