[EMAIL PROTECTED] wrote:
> Now it would appear that if you **malloc an array of PyObjects**
> (call it FOO[]) then you have an ambiguity
>
> The PyObject elements will be freed *for us* eventually by garbage
> collector.
>
> Hence, we can't ever do 'free(FOO); ' because we don't know when
>
Got crystal clear. Thanks a lot to all for the elaborated replies.
Sanjay
--
http://mail.python.org/mailman/listinfo/python-list
> It's quite simple, really: You malloc it, you free it.
John - I hope you don't mind that I really want to make sure I
understand your
good wisdom in this area by asking for clarification
ASSUMPTIONS:
1. As long as we properly handle the reference counting of PyObjects
then
memory ma
Pyparsing is also good for recognizing basic HTML tags and their
attributes, regardless of the order of the attributes.
-- Paul
testText = """sldkjflsa;faj
here it would be 'mystylesheet.css'. I used the following regex to get
this value(I dont know if it
I thought I was doing fine until I go
> So What should I do to get the exact value(here the value after
> 'href=') in any case even if the
>
> tags are like these? >>
>
>
> -OR-
>
> -OR-
>
The following should do it:
expr = r'http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Is there a TFTP client python module? I just need "get file" feature.
> I came across two implementations on WEB, but they are kind of
> unfinished (got the code from some mailing list!).
Second hit in Google ("tftp python"):
http://mail.python.org/pipermail/python-list
David Hirschfield <[EMAIL PROTECTED]> writes:
> So sequentialChunks([1,2,3,5,6,8,12]) returns:
> [[1,2,3],[5,6],[8],[12]]
Ugly and not too efficient: find the break points and use them to make
sub-lists.
def sequentialChunks(l, stride=1):
p = [0] + [i for i in xrange(1,len(l)) if l[i]-l[i-1]
Justin Powell wrote:
> Hi, I'm looking for suggestions on how to accomplish something in python. If
> this is the wrong list for such things, I appologize and please disregard the
> rest.
No, this is totally the right place.
> My application needs to allow users to create scripts which will be
alf wrote:
> Hi,
>
> I have a two fold question:
> -how to attach the debugger to running multi threaded program
> -the objective is to find an infinite loop in one of threads which
> makes the whole thingy going craze (100%CPU)
>
> The program itself is not easy, in fact quite hude an
Is there a TFTP client python module? I just need "get file" feature.
I came across two implementations on WEB, but they are kind of
unfinished (got the code from some mailing list!).
Thanks, Malahal.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Submit your comments because I need them!
[loads of SPAM deleted]
As I infer from the type of your posting, what you *want* is a good placement
in Google, but what you really *need* is a good lawyer.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Gerard> David Hirschfield wrote:
>> I have this function:
>>
>> def sequentialChunks(l, stride=1):
...
>>
>> Which takes a list of numerical values "l" and splits it into chunks
>> where each chunk is sequential...
Gerard> see the groupby example here:
G
Hey, pretty impressive list. I downloaded a few myself.
--
http://mail.python.org/mailman/listinfo/python-list
Satya Kiran wrote:
> Hello,
> I have upgraded to Python2.4 on my Red Hat 9.0 Linux box.
> I want to work with IDLE and ran a search to check it's presence.
> Here is what I get.
>
> [EMAIL PROTECTED] bin]# find / -iname idlelib
> /usr/local/lib/python2.4/idlelib
>
> [EMAIL PROTECTED] bin]# cd /us
Edmond Dantes wrote:
> I would tend to think that Lisp is more suited for Genetic Programming than
> Python is. However, it is possible to do. Heck, I even had the crazy idea
> of doing Genetic Programming in C++ once, however ugly that would've
> been!
>
> Actually, there is an AI project that
Hello,
I have upgraded to Python2.4 on my Red Hat 9.0 Linux box.
I want to work with IDLE and ran a search to check it's presence.
Here is what I get.
[EMAIL PROTECTED] bin]# find / -iname idlelib
/usr/local/lib/python2.4/idlelib
[EMAIL PROTECTED] bin]# cd /usr/local/lib/python2.4/idlelib
[EMAIL
Marshall <[EMAIL PROTECTED]> wrote:
> > What you are asking for is some subset of identity, and I've not yet
> > succeeded in understanding exactly what it is or what its limits are...
> > except that so far, it seems to have everything to do with pointers or
> > aliasing.
>
> Perhaps it is specif
Simon Forman wrote:
> >
> > False not in logflags
> >
>
> Or, if your values aren't already bools
>
> False not in (bool(n) for n in logflags)
>
>
>
> Peace,
> ~Simon
Very intriguing use of "not in"...
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
Edmond Dantes wrote:
> placid wrote:
>
> >
> > alimoe wrote:
> >> > Genetic Programming or Genetic Algorithms?
> >>
> >> whats the difference?
> >
> >
> > Genetic Programming:
> > is an automated methodology inspired by biological evolution to find
> > computer programs that best perform a user-de
Chris Smith wrote:
> Marshall <[EMAIL PROTECTED]> wrote:
> > Chris Smith wrote:
> > > Darren New <[EMAIL PROTECTED]> wrote:
> > > > Chris Smith wrote:
> > > > > Unless I'm missing your point, I disagree with your disagreement.
> > > > > Mutability only makes sense because of object identity (in the
>
> False not in logflags
>
Or, if your values aren't already bools
False not in (bool(n) for n in logflags)
Peace,
~Simon
--
http://mail.python.org/mailman/listinfo/python-list
John Henry wrote:
> Hi list,
>
> Is there a more elagant way of doing this?
>
> # logflags is an array of logicals
> test=True
> for x in logflags:
>test = test and x
> print test
>
> --
> Thanks,
So many ways *drool*
How about:
False not in logflags
(Anybody gonna run all these throu
On 14/07/2006 10:41 AM, Dan Winsor wrote:
> Sybren Stuvel wrote:
>> Dan Winsor enlightened us with:
>>> This one "works" in that it runs, but the server on the other end gets
>>> garbage unrelated to the test file.
>> Are you sure it is garbage? Have you tried changing byte order?
>
> Ah, that I h
Tom Plunket wrote:
> Simon Forman wrote:
>
> > strings have a count() method.
>
> thanks!
>
> For enrichment purposes, is there a way to do this sort of thing with
> a generator? E.g. something like:
>
> def SentenceGenerator():
>words = ['I', 'have', 'been', 'to', 'the', 'fair']
>for w in
Justin Azoff wrote:
> Tom Plunket wrote:
>> boilerplate = \
>> """
> [big string]
>> """
>>
>> return boilerplate % ((module,) * 3)
>>
[deletia...]
> Of course..
>
stuff = {'lang': 'python', 'page': 'typesseq-strings.html'}
print """I should read the %(lang)s documentation at
Chris Smith wrote:
> David Hopwood <[EMAIL PROTECTED]> wrote:
>
>>This is true, but note that postconditions also need to be efficient
>>if we are going to execute them.
>
> If checked by execution, yes. In which case, I am trying to get my head
> around how it's any more true to say that funct
Justin Azoff wrote:
> >>> from BeautifulSoup import BeautifulSoup
> >>> html=''
> >>> page=BeautifulSoup(html)
> >>> page.link.get('href')
> 'mystylesheet.css'
On second thought, you will probably want something like
>>> [link.get('href') for link in page.fetch('link',{'type':'text/css'})]
['myst
placid wrote:
>
> alimoe wrote:
>> > Genetic Programming or Genetic Algorithms?
>>
>> whats the difference?
>
>
> Genetic Programming:
> is an automated methodology inspired by biological evolution to find
> computer programs that best perform a user-defined task.
>
> http://en.wikipedia.org/w
John Blogger wrote:
> That I want a particular tag value of one of my HTML files.
>
> ie: I want only the value after 'href=' in the tag >>
>
> ''
>
> here it would be 'mystylesheet.css'. I used the following regex to get
> this value(I dont know if it is good).
No matter how good it is you should
Sybren Stuvel wrote:
> Dan Winsor enlightened us with:
> > This one "works" in that it runs, but the server on the other end gets
> > garbage unrelated to the test file.
>
> Are you sure it is garbage? Have you tried changing byte order?
Ah, that I hadn't. Any pointers to doing that?
--
http:/
Marshall <[EMAIL PROTECTED]> wrote:
> Chris Smith wrote:
> > Darren New <[EMAIL PROTECTED]> wrote:
> > > Chris Smith wrote:
> > > > Unless I'm missing your point, I disagree with your disagreement.
> > > > Mutability only makes sense because of object identity (in the generic
> > > > sense; no OO g
Tom Plunket wrote:
> boilerplate = \
> """
[big string]
> """
>
> return boilerplate % ((module,) * 3)
>
> My question is, I don't like hardcoding the number of times that the
> module name should be repeated in the two return functions. Is there
> an straight forward (inline-appropria
On 2006-07-13 20:46:16, dylpkls91 wrote:
> Thank you all for your responses.
>
> I have managed to figure out a solution using XML RPC which fits my
> needs perfectly.
BTW, if you want to test networking between two machines on one single
(Windows) computer, try VirtualPC. (Free from MS.)
Gerha
Hi,
I have a two fold question:
-how to attach the debugger to running multi threaded program
-the objective is to find an infinite loop in one of threads which
makes the whole thingy going craze (100%CPU)
The program itself is not easy, in fact quite hude and sometimes it
takes
Tom Plunket wrote:
> For enrichment purposes, is there a way to do this sort of thing with
> a generator? E.g. something like:
>
> def SentenceGenerator():
>words = ['I', 'have', 'been', 'to', 'the', 'fair']
>for w in words:
> yield w
>
> message = "%s %s %s %s"
>
> print messag
Thank you all for your responses.
I have managed to figure out a solution using XML RPC which fits my
needs perfectly.
--
http://mail.python.org/mailman/listinfo/python-list
Chris Smith wrote:
> Darren New <[EMAIL PROTECTED]> wrote:
> > Chris Smith wrote:
> > > Unless I'm missing your point, I disagree with your disagreement.
> > > Mutability only makes sense because of object identity (in the generic
> > > sense; no OO going on here).
> >
> > Depends what you mean by
Simon Forman wrote:
> strings have a count() method.
thanks!
For enrichment purposes, is there a way to do this sort of thing with
a generator? E.g. something like:
def SentenceGenerator():
words = ['I', 'have', 'been', 'to', 'the', 'fair']
for w in words:
yield w
message = "%s %
Joe Marshall wrote:
> Marshall wrote:
> >
> > Consider the following Java fragment:
> >
> > void foo() {
> > int i = 0;
> > int j = 0;
> >
> > // put any code here you want
> >
> > j = 1;
> > i = 2;
> > // check value of j here. It is still 1, no matter what you filled in
> > above.
> >
Marshall <[EMAIL PROTECTED]> wrote:
+---
| Joachim Durchholz wrote:
| > Actually SQL has references - they are called "primary keys", but they
| > are references nevertheless.
|
| I strongly object; this is quite incorrect. I grant you that from the
| 50,000 foot level they appear iden
Ernesto:
> import os
> os.system("file.exe parameters")
>
> but I received an error like "cmd.exe : permission deneided"
>
> Probably I don't have the permission to execute the file. However, the server
> administrator said me that he cannot give me the permission, but I can also
> use
> ed exe
Tom Plunket wrote:
> I have some code to autogenerate some boilerplate code so that I don't
> need to do the tedious setup stuff when I want to create a new module.
>
> So, my script prompts the user for the module name, then opens two
> files and those files each get the contents of one of these f
Sorin Schwimmer wrote in news:mailman.8142.1152816058.27775.python-
[EMAIL PROTECTED] in comp.lang.python:
> The following code:
>
> from Tix import *
>
> r=Tk()
>
> tr=Tree(r)
> tr.subwidget('hlist').add('br1',text='branch 1')
> tr.subwidget('hlist').add('br1.b1',text='branch 1-1')
> tr.subwid
Hey,
I'm new with regex's as well but here is my idea. Since you don't know
which attribute will come first why don't structure your regex like
this
(first off, I'll assume that \s == ' ', actually now that I think of
it, isn't \s any whitespace character? anyways \s == ' ' for now)
''
I think
I have some code to autogenerate some boilerplate code so that I don't
need to do the tedious setup stuff when I want to create a new module.
So, my script prompts the user for the module name, then opens two
files and those files each get the contents of one of these functions:
def GetPyContents
Try this... slightly more complex but get's the job done-> added some
wait state in the user program/thread so it didn't kill the output
stream... Enjoy
import thread, sys, time
def someUserProgram(mutexRef):
while 1:
mutexRef.acquire()
print "I am a user p
(I don't know if it is the right place. So if I am wrong, please point
me the right direction.
If this post is read by you masters, I'm honoured. If I am getting a
mere response, I'm blessed!)
Hi,
I'm a newbie regular expression user. I use regex in my Python
programs. I have a strange
(sometim
David Hopwood <[EMAIL PROTECTED]> wrote:
> This is true, but note that postconditions also need to be efficient
> if we are going to execute them.
If checked by execution, yes. In which case, I am trying to get my head
around how it's any more true to say that functional languages are
compilabl
Darren New <[EMAIL PROTECTED]> wrote:
> Chris Smith wrote:
> > Unless I'm missing your point, I disagree with your disagreement.
> > Mutability only makes sense because of object identity (in the generic
> > sense; no OO going on here).
>
> Depends what you mean by "object".
>
> int x = 6; in
Marshall wrote:
>
> Consider the following Java fragment:
>
> void foo() {
> int i = 0;
> int j = 0;
>
> // put any code here you want
>
> j = 1;
> i = 2;
> // check value of j here. It is still 1, no matter what you filled in
> above.
> // The assignment to i cannot be made to affec
http://cooldogebooks.blogspot.com
Submit your comments because I need them!
Thank You.
Prentice Hall | Microsoft Press | Algorithics | Nolo Press & Law |
Energy Conversion | DNA Biology | Money Management | Stock Trading |
GNU Debugging | Online Unleashed | Origami | Object Recovery | TRS80
R
Ben Sizer wrote:
> Paramiko appears to use SSH, which (as far as I know)
> connects to a computer running an sshd program or equivalent and
> executes commands via that program. If there's no sshd running on the
> target, you can't do anything.
Thanks for the clarification. Can I get 'sshd' or an
"Tim Golden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 3c273 wrote:
> > Hello,
> > When I run the following at an interactive interpreter on Windows XP, I
get
> > the expected results. But if I save it to a file and run it, it
generates
> > the following error. (And it generates
freesteel wrote:
> Yes, I see that now in the documentation, which to me is quite
> confusing.
> So, how do you use python in a multithreaded environment, where for
> example you want to run some embeded python code from a number of
> different C threads?
>
> This article: http://www.linuxjournal.c
Note that any good SAX tutorial will demonstrate how to buffer the
characters() events, if you don't feel like reinventing the solution
yourself.
--
http://mail.python.org/mailman/listinfo/python-list
Simon Brunning a écrit :
> On 13 Jul 2006 05:45:21 -0700, John Henry <[EMAIL PROTECTED]> wrote:
>
>>
>> Simon Brunning wrote:
>> >
>> > min(logflags)
>> >
>>
>> !!!
>
>
> Be aware that not only is this an outrageous misuse of min(),
+1 QOTW
Ho, my, I've already proposed another one today :(
--
David Hirschfield wrote:
> I have this function:
>
> def sequentialChunks(l, stride=1):
> chunks = []
> chunk = []
> for i,v in enumerate(l[:-1]):
> v2 = l[i+1]
> if v2-v == stride:
> if not chunk:
> chunk.append(v)
> chunk.append
Hello All,
I created a grid, where I register events every time the user changes
an existing value inside the grid control. Right now, I am using the
event: EVT_GRID_CELL_CHANGE. However, I realized that I need to
register that same kind of event even if the user doesnt change the
value, but just
It looks like homework. Sometimes the simpler code is better:
def splitter(seq):
if not seq:
return []
result = []
current = [seq[0]]
for pos, el in enumerate(seq[1:]):
if el - current[-1] > 1:
result.append(current[:])
current = []
c
Fredrik Lundh wrote:
>
> not very long ago, "Kepioo" wrote:
[...]
> which looks rather similar to your post, don't you think?
Are you calling "homework assignment", Fredrik? ;-)
Paul
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-07-13 12:04:58, Richard Brodie wrote:
>> s = "é"
>> print s
>> Is there a standard way to do this?
>
> Use Unicode strings, with an explicit encoding. Say no to ISO-8859-1
> centrism.
> See: http://www.amk.ca/python/howto/unicode particularly the
> "Unicode Literals in Python Source
Maksim Kasimov wrote:
> I'm trying to write an server-application, using
> BaseHTTPServer/BaseHTTPRequestHandler.
>
> When application is running, some client-application can post data to the
> server, and BaseHTTPRequestHandler reads all headers and posted raw data from
> "rfile", sends back r
Joe Marshall wrote:
> Marshall wrote:
> >
> > Again, I disagree: it is posible to have mutability without
> > pointers/identity/objects.
>
> I think you are wrong, but before I make a complete ass out of myself,
> I have to ask what you mean by `mutability'. (And
> pointers/identity/objects, for t
Chris Smith wrote:
> Joachim Durchholz <[EMAIL PROTECTED]> wrote:
>
>>OTOH, isn't that the grail that many people have been searching for:
>>programming by simply declaring the results that they want to see?
>
> Possibly.
>
>>No, FPLs are actually just that: compilable postconditions.
>
> This
Wesley Henwood wrote:
> I've checked and double checked my code and I am closing all files
> explicitly after opening them. The only possibliy I can think of is
> Python opening files each time I run a script, or each time imput to
> stderr or stdout is redirected.
>
The problem >I think< is th
Fredrik Lundh wrote:
>> How do I detect whether I have additional CPUs in the system? The
>> google search turns up answer about a Sun workstation but not Windows
>> XP.
>
> count = int(os.environ.get("NUMBER_OF_PROCESSORS", 1))
footnote: a more "correct" way to do this is to use WMI. links:
John Draper wrote:
> I remember a few years ago, I posted something like this to the list,
> and got flamed 6 ways from Sunday for having the audacity to propose
> this.
certain people think that the mere thought of getting paid for
contributing to freely available software is outrageously immor
Joachim Durchholz wrote:
> Marshall schrieb:
> > Mutability by itself does not imply identity.
>
> Well, the implication certainly holds from identity to mutability.
> The only definition of identity that I found to hold up for all kinds of
> references (pointers, shared-memory identifiers, URLs et
3c273 wrote:
> Hello,
> When I run the following at an interactive interpreter on Windows XP, I get
> the expected results. But if I save it to a file and run it, it generates
> the following error. (And it generates the same error either way on Windows
> 2000)
>
> import wmi
> c=wmi.WMI()
> for i
Marshall wrote:
> David Hopwood wrote:
>>Marshall wrote:
>>
>>>Wouldn't it be possible to do them at compile time? (Although
>>>this raises decidability issues.)
>>
>>It is certainly possible to prove statically that some assertions cannot fail.
>>
>>The ESC/Java 2 (http://secure.ucd.ie/products/op
I have this function:
def sequentialChunks(l, stride=1):
chunks = []
chunk = []
for i,v in enumerate(l[:-1]):
v2 = l[i+1]
if v2-v == stride:
if not chunk:
chunk.append(v)
chunk.append(v2)
else:
if not chunk:
Sybren Stuvel wrote:
> [EMAIL PROTECTED] enlightened us with:
> > I want to send thorugh the API. However, no matter how I try it,
> > Java on the other end doesn't like what I'm passing it there.
>
> What have you tried and how did it fail?
See below.
> > How can I mimic a byte array in python?
Diez B. Roggisch wrote:
>>can someone please with the code for this.
>>
>>
>
>Show us your efforts, and we'd be glad to help you correcting/enhancing
>them.
>
>Or use PayPal and pay one of the guys here - my hourly fee is 50€, and
>less than one hour work can't be booked.
>
>Diez
>
>
I rem
Hi,
I tried for the first time a Tix Tree, so, if my
question is naive, I apologize upfront.
The following code:
from Tix import *
r=Tk()
tr=Tree(r)
tr.subwidget('hlist').add('br1',text='branch 1')
tr.subwidget('hlist').add('br1.b1',text='branch 1-1')
tr.subwidget('hlist').add('br1.b1.b1',text
Hi, I'm looking for suggestions on how to accomplish something in python. If
this is the wrong list for such things, I appologize and please disregard the
rest.
My application needs to allow users to create scripts which will be executed
in a statement-by-statement fashion. Here's a little pseud
gmax2006 wrote:
> My RedHat Linux installation already has Python 2.3 on it.
> What is the easiest way to upgrade it to 2.4?
The source tar-ball contains an file Misc/RPM/python-XXX.spec that you can use
to build an RPM ("rpmbuild -bs" or "rpm -bs"). The resulting package will
normally be called "
Dino Viehland wrote:
> The first check is also off - it should if issubclass(type(Test), type):
> otherwise you miss the metaclass case:
>
> class foo(type): pass
>
> class Test(object):
> __metaclass__ = foo
>
> obj = Test
> if type(obj) == type: 'class obj'
> else: 'not a class'
>
> just on
Marshall wrote:
>
> Again, I disagree: it is posible to have mutability without
> pointers/identity/objects.
I think you are wrong, but before I make a complete ass out of myself,
I have to ask what you mean by `mutability'. (And
pointers/identity/objects, for that matter.)
Alan Bawden discusse
Fredrik Lundh wrote:
> DO NOT do a full install; you'll most likely break RedHat stuff if you
> do that.
I was expecting an rpm to do the update. This is a sensitive production
box. I think I should just continue with Python 2.3.
Regards,
--
http://mail.python.org/mailman/listinfo/python-list
Chris Smith wrote:
> Unless I'm missing your point, I disagree with your disagreement.
> Mutability only makes sense because of object identity (in the generic
> sense; no OO going on here).
Depends what you mean by "object".
int x = 6; int y = 5; x = y;
I'd say x was mutable, with no "ident
John Henry wrote:
> How do I detect whether I have additional CPUs in the system? The
> google search turns up answer about a Sun workstation but not Windows
> XP.
count = int(os.environ.get("NUMBER_OF_PROCESSORS", 1))
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'm trying to write through SOAPpy in python to a Java implemented API.
The API for the method I want to use is as follows:
boolean added = SoapService.addAttachmentsToIssue(token,
issue.getKey(),
new String[]{fileName},
new byte[][]{getBytesF
"Michel Claveau" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Re!
>
> This script run on my XP :
>
>
> import win32com.client
> WMIS = win32com.client.GetObject(r"winmgmts:root\cimv2")
> objs = WMIS.ExecQuery("select * from Win32_PhysicalMedia")
> for obj in objs:
> print obj.S
Hi list,
I have a Python ap that starts another non-Pythoon ap for number
crunching. My new notebook comes with a duo-core CPU. I tried
manually running 2 copies of my ap at the same time) and it appears to
run the whole job faster (or at least the CPU loading level as show by
the task manager a
Jeremy Sanders wrote:
>> "import" doesn't create new objects, so that's not very likely. can you
>> post some code so we don't have to guess what you've tried and not ?
>
> It does if you mess around with sys.path between doing two imports of the
> same thing (at least I found out the hard way o
John Salerno wrote:
> Is there a way to 'install' and use Python on a memory stick
...
> and then just write and run scripts normally straight from
> your memory stick?
Do you actually want a full python environment? Or do you just want an
easy way to run your scripts on another machine?
If the
gmax2006 wrote:
> My RedHat Linux installation already has Python 2.3 on it.
> What is the easiest way to upgrade it to 2.4?
grab the source tarball from python.org, built it according to
instructions (./configure; make), and install using:
# make altinstall
DO NOT do a full install; you'
Fredrik Lundh wrote:
> "Sanjay" wrote:
>
>> Trying hard, I am not even being able to figure out how to create an
>> object in one module and refer the same in another one. "import"
>> created a new object, as I tried.
>
> "import" doesn't create new objects, so that's not very likely. can you
>
gmax2006 wrote:
> I am developing scripts that must run on both Linux and windows.
>
> My scripts contain lots of relative paths (such as log\\log.txt or
> ctl\\table.ctl) If I use os.sep, it makes the code ugly. Is there any
> tips or techniques to have Python automatically converts \\ to / when
Hi,
My RedHat Linux installation already has Python 2.3 on it.
What is the easiest way to upgrade it to 2.4?
I use ActiveState python in Windows. Is it the best distribution for
Linux as well?
Thank you,
Max
--
http://mail.python.org/mailman/listinfo/python-list
Marshall <[EMAIL PROTECTED]> wrote:
> Hmmm, well, I cannot agree. You've defined away the pointers
> but then slipped them back in again by assumption ("objects
> of these types have identity".)
>
> First let me say that the terminology is somewhat problematic.
> For the specific issue being discu
Marshall schrieb:
> Mutability by itself does not imply identity.
Well, the implication certainly holds from identity to mutability.
The only definition of identity that I found to hold up for all kinds of
references (pointers, shared-memory identifiers, URLs etc.) is this:
Two pieces of data ar
Mike Kent wrote:
(snip - about Jason Orendorff's path module)
> Of course, using the '/' operator in this manner makes some people's
> heads explode.
+1 QOTW
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
gmax2006 wrote:
> Hi,
>
> I am developing scripts that must run on both Linux and windows.
>
> My scripts contain lots of relative paths (such as log\\log.txt or
> ctl\\table.ctl) If I use os.sep, it makes the code ugly. Is there any
> tips or techniques to have Python automatically converts \\ to
gmax2006 wrote:
> Hi,
>
> I am developing scripts that must run on both Linux and windows.
>
> My scripts contain lots of relative paths (such as log\\log.txt or
> ctl\\table.ctl) If I use os.sep, it makes the code ugly. Is there any
> tips or techniques to have Python automatically converts \\ t
Hi-
I'm trying to exec some arbitrary code in one thread of an application
and read anything it prints to stdout or stderr in another thread. My
question is how?
I've tried changing sys.stdout, but that changes stdout for the whole
application, not just that one thread, which means that any statu
Russell Warren wrote:
> How can you tell what objects support the buffer interface? Is
> anything visible at the python level, or do you need to dig into the C
> source?
At the C level, there is a function for testing:
int PyObject_CheckReadBuffer(PyObject* o)
http://docs.python.org/dev/api/abs
placid wrote:
> Why is there old and new classes? What are the differences?
the "what's new" document for the release where they were introduced
(2.2) contains a nice overview, written from a "before and after"
perspective:
http://www.python.org/doc/2.2.3/whatsnew/sect-rellinks.html
(how
Hi,
I am developing scripts that must run on both Linux and windows.
My scripts contain lots of relative paths (such as log\\log.txt or
ctl\\table.ctl) If I use os.sep, it makes the code ugly. Is there any
tips or techniques to have Python automatically converts \\ to / when
the script runs on Li
Joachim Durchholz <[EMAIL PROTECTED]> wrote:
> OTOH, isn't that the grail that many people have been searching for:
> programming by simply declaring the results that they want to see?
Possibly.
> No, FPLs are actually just that: compilable postconditions.
This seems to me a bit misleading. Pe
1 - 100 of 238 matches
Mail list logo