Philip Smith a écrit :
Hi
I am fairly new to Python threading and my needs are simple(!)
I want to establish a number of threads each of which work on the same
computationally intensive problem in different ways.
I am using the thread module rather than the threading module.
My problem is I
pyGSL is a wrapper for the GNU Scientific Library. Get it from
http://sourceforge.net/projects/pygsl.
Up to now it provides the following modules:
Blas, Chebyshev, Combination, Const
Diff, Deriv, Eigen, Fit, FFT, Ieee, Integrate
Interpolation, Linalg, Math
Minimize, Multifit,
Nick Craig-Wood [EMAIL PROTECTED] wrote:
Here is a different solution...
class Result:
def set(self, value):
self.value = value
return value
m = Result()
if m.set(re.search(r'add (\d+) (\d+)', line)):
do_add(m.value.group(1), m.value.group(2))
elif
Doug Holton [EMAIL PROTECTED] wrote:
...
oh, you mean that python compiler didn't mean the python compiler.
I wouldn't assume a novice uses terms the same way you would. It was
quite clear from his message that py2exe and the like were what he was
referring to, if you had read his first
Hi all,
I have reinstalled my Win32 computer last week and I did an update of
the project PyWin32 to complete my Python installation.
(I have to use sources from CVS for my project !)
So, when I run 'python setup.py' in my PyWin32 directory, I have two
problem : the version indacated in
On Monday 24 January 2005 00:29, Martin v. Löwis wrote:
Michael Goettsche wrote:
I convinced my CS teacher to use Python in school. We currently have 2.2
installed on a Windows 2000 Terminal server. I asked the system
administrator to upgrade to Python 2.4, but he didn't succeed in doing
Mark Fanty wrote:
No nesting, but the while is misleading since I'm not looping and this
is a bit awkward. I don't mind a few more key strokes, but I'd like
clarity. I wish I could do
if m = re.search(r'add (\d+) (\d+)', $line):
do_add(m.group(1), m.group(2))
elif m =
Alex Martelli wrote:
class ReWithMemory(object):
def search(self, are, aline):
self.mo = re.search(are, aline)
return self.mo
def group(self, n):
return self.mo.group(n)
m = ReWithMemory()
if m.search(r'add (\d+) (\d+)', line):
do_add(m.group(1), m.group(2))
I want use crsr.nextset() , But I got errors like following:
connStr = Provider=MSDAORA.1;Password=jmpower;User
ID=jmpower;Data Source=jmgis_agps3;Persist Security Info=True
import adodbapi
conn= adodbapi.connect( connStr )
crsr = conn.cursor()
sql = select * from wjtmp
crsr.execute(sql)
Steven Bethard [EMAIL PROTECTED] wrote:
I get a bit uneasy from the repeated calls to m.group... If I was going
to build a class around the re, I think I might lean towards something like:
class ReWithMemory(object):
def search(self, are, aline):
self.mo = re.search(are,
Hello Stian
Your Python installation is probably compiled without readline support.
It is the readline library that enables arrow keys and Ctrl-R and stuff
to work.
Try import readline - you will probably get an error.
You are indeed right. import readline generated an error.
I downloaded,
Hello Chap,
I work on various projects. Several of them would *greatly* benefit
from input from another programmer. You can see them at :
http://www.voidspace.org.uk/python/index.shtml
Specifically, I have three projects that I'm looking for someone to
work on, but they are all on the 'small'
Just for the record, an implementation without using generators,
somewhat like in Sect. 3.5 of the Wizard book, and without recursion
limit problems.
.
. def stream_hd(s): # the head of the stream
. return s[0]
.
. def stream_tl(s): # the tail of the stream
. return s[1]()
.
. ##
. # The
On 20.01.2005, at 12:24, Mark English wrote:
I'd like to write a Tkinter app which, given a class, pops up a
window(s) with fields for each attribute of that class. The user
could
enter values for the attributes and on closing the window would be
returned an instance of the class. The actual
Xah Lee wrote:
adding to my previosu comment...
snip
*plonk*
--
Women should come with documentation. - Dave
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Maybe something like this...
from Tkinter import *
import itertools
class Application(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)
self.grid()
self.createWidgets()
def createWidgets(self):
self.stop =
I also feel the lack of a standard cryptography module in the core...
even a *basic* one. At least rotor provided that, before it was
deprecated. I (along with many other python users) write CGIs where the
only extension modules that I can use are either pure python, or ones
my web hoster is
hi
I ask german speaking python programmers to contest the election to
establish the german python newsgroup de.comp.lang.python. You can find
the ballot in de.admin.news.annouce
[EMAIL PROTECTED]
or via Google http://tinyurl.com/5g5gf.
Thank You!
Christian
--
[Christian Helmbold]
| I ask german speaking python programmers to contest the election to
| establish the german python newsgroup de.comp.lang.python.
It strikes me that this would have been one of the few
occasions when it *would* have made sense to write in
a language other than English on
Nick Coghlan wrote:
Will Stuyvesant wrote:
The program below creates a stream with the numbers 1..995
and then filters the stream, keeping only the even numbers,
and then prints the second number in the stream (implemented
as the first number of the tail, just like in the 3.5
Section in the Wizard
Daniel Bickett wrote:
oh, you mean that python compiler didn't mean the python compiler.
[snip]
I simply inferred that he was using the wrong terminology, being that
he said binary twice ;-)
yeah, but PYC files (which is what the standard compiler produces) are binary
files too, in all the
Nick Coghlan wrote:
How's this:
Py from itertools import islice
Py print islice((x for x in xrange(1, 996) if x % 2 == 0), 1, 2).next()
4
Wouldn't it be nice if this could be spelt:
print (x for x in xrange(1, 996) if x % 2 == 0)[2]
as I've always said, the sooner we can all use the
Steven Bethard wrote:
That is, you can just keep track of all the names of a Robot in the
Robot object. In the simple case, where there's only one name, you can
display it as such. In the more complicated case, where there's some
aliasing, you can display the multiple aliases. This means you
I'm writing some utilty functions for use with gtk. But
in order to use them correctly I have to know whether
they are called in the gtk-thread or an other.
So my idea was to wrap the gtk.main function so that
it would registrate the thread_id that called it.
So I was thinking about doing
André Roberge wrote:
bobdc wrote:
I will be teaching an Introduction to Programming class to some
middle school aged children and will be using Python, obviously. Does
anyone have suggestions for simple little programs to create and
analyze with them after I get past turtle graphics?
I use threading.Thread as outlined in this recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65448
--
http://mail.python.org/mailman/listinfo/python-list
Nick Coghlan wrote:
Incidentally, this discussion made me realise the real reason why using a
lambda to create a named
function is evil:
Py def f(): pass
...
Py f.func_name
'f'
Py f = lambda: None
Py f.func_name
'lambda'
I think I've heard that explanation before, but it never
Adrian Casey wrote:
André Roberge wrote:
bobdc wrote:
I will be teaching an Introduction to Programming class to some
middle school aged children and will be using Python, obviously. Does
anyone have suggestions for simple little programs to create and
analyze with them after I get past turtle
Title: Py2.4 .exe installer
I'm trying to get everybody at the office to become a Python programmer.
The bigger problem I'm facing is that the official operating system installed in the PCs is Win NT 4.0, tweaked and restricted, and it's impossible to install the Microsoft package that
Facundo Batista:
The bigger problem I'm facing is that the official operating system
installed in the PCs is Win NT 4.0, tweaked and restricted, and it's
impossible to install the Microsoft package that enables the .msi as a
installer.
Result: they can not install Py24.msi.
There's
Nick Coghlan wrote:
Py print islice((x for x in xrange(1, 996) if x % 2 == 0), 1, 2).next()
4
Wouldn't it be nice if this could be spelt:
print (x for x in xrange(1, 996) if x % 2 == 0)[2]
Well, I just put a patch on SF to enable exactly that:
http://www.python.org/sf/1108272
I like
bobdc wrote:
I will be teaching an Introduction to Programming class to some
middle school aged children and will be using Python, obviously. Does
anyone have suggestions for simple little programs to create and
analyze with them after I get past turtle graphics?
Turtle graphics will be
My problem is that only one of the buttons is visible and that one is
not expanded. (System: Windows, Python 2.3.4, wxPython 2.5.3)
Works as expected on Mac OS X 10.3.7, python 2.3.4, wxPython 2.5.2.8.
Thanks. Probably the problem is with my bitmap (I used a bitmap instead
of a button).
[Tim]
I'll note that one fairly obvious pattern works very well for weakrefs
and __del__ methods (mutatis mutandis): don't put the __del__ method
in self, put it in a dead-simple object hanging *off* of self. Like
the simple:
class BTreeCloser:
def __init__(self, btree):
Ok, I think that the bottom line is this :
For all the algorithms that run after their tail in an FP way, like the
Hamming problem, or the Fibonacci sequence, (but unlike Sieve of Eratosthene
-- there's a subtle difference), i.e. all those algorithms that typically
rely upon recursion to get
Op 2005-01-24, Nick Coghlan schreef [EMAIL PROTECTED]:
Steven Bethard wrote:
That is, you can just keep track of all the names of a Robot in the
Robot object. In the simple case, where there's only one name, you can
display it as such. In the more complicated case, where there's some
I was just about to suggest Livewires. I'm a programming newb (35 yrs
old ) haha- and I'm finding the lIvewires course pretty helpful, even
though it's geared for teens. I suppose my brain works on that
functional level. :) And a book that's great for beginner's (know you
probably don't want to
In article [EMAIL PROTECTED],
Tim Peters [EMAIL PROTECTED] wrote:
[Paul Rubin]
And you can break out of a containing loop from a nested loop
with try/raise.
Heh heh. Yes, you can. I've never seen a real Python program that
did, but there's nothing to stop you. What did you think the
Ryan Paul wrote:
On Mon, 24 Jan 2005 13:19:45 +, Ryan Paul wrote:
A working solution:
class A:
pass
a = A()
b = A()
c = A()
[x for x,y in locals().items() if
hasattr(y,__class__) and y.__class__ == A]
Just wanted to clarify, because I know that the
sam wrote:
Peter Hansen wrote:
After all, source code is stored in binary too...
Sorry for the vagues terms. I meant compile a python script into a
binary program.
As I said, binary is a very ambiguous term, so your
clarification by itself wouldn't have helped. (That is,
while the defined
rbt wrote:
Would a Python process consume more memory on a PC with lots of memory?
For example, say I have the same Python script running on two WinXP
computers that both have Python 2.4.0. One computer has 256 MB of Ram
while the other has 2 GB of Ram. On the machine with less Ram, the
process
On my 2.8GHz P4, Windows 2000 SP4 with Python 2.3.4 I am getting
totally different results compared to Ray. Does Python 2.3.4 already
use the Pentium RTDSC instruction for clock()?
Claudio
# \ Claudio Grondi, 2.8GHz P4 Python 2.3.4 (2005-01-24 14:32)
# time of taking time:
#
Title: RE: Help on project, anyone?
[Georg Brandl]
#- Does anyone run, or participate in, a project looking for fellow
#- programmers? I don't have a special area of interest, well,
#- perhaps web
#- programming...
You can join us in SiGeFi: http://sf.net/projects/sigefi
---
i am try to create a server
what am i suppose to send to SocketServer.TCPServer
what is the client_address (127.0.0.1:80 ?)
and BaseRequestHandler = ?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
I love this old rant about XML:
http://groups-beta.google.com/group/comp.lang.lisp/msg/9a30c508201627ee
This is my favorite:
http://weblog.burningbird.net/archives/2002/10/08/the-parable-of-the-languages
Im considered the savior, the ultimate solution, the final word.
Odes are
On Fri, 21 Jan 2005 16:13:19 -0800, André wrote:
Short version of what I am looking for:
Given a class public_class which is instantiated a few times e.g.
a = public_class()
b = public_class()
c = public_class()
I would like to find out the name of the instances so that I could
I built Movable Python for use on a windows box where I didn't have
admin rights.
See :
http://sourceforge.net/projects/movpy
Regards,
Fuzzy
http://www.voidspace.org.uk/python/index.shtml
--
http://mail.python.org/mailman/listinfo/python-list
Would a Python process consume more memory on a PC with lots of memory?
For example, say I have the same Python script running on two WinXP
computers that both have Python 2.4.0. One computer has 256 MB of Ram
while the other has 2 GB of Ram. On the machine with less Ram, the
process takes
Is there some tool that can help me design a simple curses wizards,
preferably one that uses Python, but if there's some other sollution I'd be
happy to hear. The important requirement is that its curses based (or
similar text based UI).
--
damjan
--
rm wrote:
http://www.theinquirer.net/?article=20868 :-)
There's a lot of nonsense out there propagated by people who do not
understand XML. You can't possibly blame that on XML...
For me XSLT transformations are the main reason for using XML.
If I have an XML document I can turn it into other
© # -*- coding: utf-8 -*-
© # Python
©
© # in Python, one can define a boxed set
© # of data and functions, which are
© # traditionally known as class.
©
© # in the following, we define a set of data
© # and functions as a class, and name it xxx
© class xxx:
© a class extempore! (^_^)
©
A quick example for you:
###
import SocketServer
class EchoRequestHandler(SocketServer.BaseRequestHandler):
def setup(self):
print self.client_address, 'connected!'
self.request.send('hi ' + str(self.client_address) + '\n')
def handle(self):
while 1:
Is it possible to create own statements, such that it would be
possible to do:
printDebug test
?
This question is well addressed in a neighbour group comp.lang.lisp .
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin http://[EMAIL PROTECTED] wrote:
YAML looks to me to be completely insane, even compared to Python
lists. I think it would be great if the Python library exposed an
interface for parsing constant list and dict expressions, e.g.:
[1, 2, 'Joe Smith', 8237972883334L, # comment
[EMAIL PROTECTED]
´N¦b¹|´I°Ó³õ³ÄÃä
ªþªñ¥æ³qª½³q¦U«n¦a°Ï
»´ÅK¦èÅK¥þ³¡´N¸}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
©Ð¶¡¦³§N®ð¾÷
[EMAIL PROTECTED]
¥þ«Î±¿n¬ù¤C¦Ê¤Ø,©Ð¶¡¬ù80¤Ø
¹q±èª½¨ì¤G¤Q¤C¼Ó
¥u³æ¨¤H¥K,¥¿·í¤H®a,
¤£©â·Ï,¤£¶¼°s,µL¤£¨}ܦnªÌ
¥»¤H³æ¨,[EMAIL PROTECTED]
¦³·N½Ð¹q¶l±zªºÓ¤H¸ê®Æ¥]¬A
Peter Hansen wrote:
rbt wrote:
Would a Python process consume more memory on a PC with lots of memory?
For example, say I have the same Python script running on two WinXP
computers that both have Python 2.4.0. One computer has 256 MB of Ram
while the other has 2 GB of Ram. On the machine with
rm wrote:
Doug Holton wrote:
rm wrote:
this implementation of their idea. But I'd love to see a generic,
pythonic data format.
That's a good idea. But really Python is already close to that. A
lot of times it is easier to just write out a python dictionary than
using a DB or XML or whatever.
Richie Hindle wrote:
[Tim]
I'll note that one fairly obvious pattern works very well for weakrefs
and __del__ methods (mutatis mutandis): don't put the __del__ method
in self, put it in a dead-simple object hanging *off* of self. Like
the simple:
class BTreeCloser:
def __init__(self,
Michael Hoffman [EMAIL PROTECTED] wrote:
Frans Englich wrote:
Nah, I don't think it's a function, but rather a builtin statement. But
it's
possible to invoke it as an function; print( test ) works fine.
That is not invoking it as a function. The parentheses are only for
ordering the
urllib2 (under windows) will auto-detect your proxy settings and use
those.
Normally that's a good thing (I guess), except when it's not !
How do I switch off this behaviour ? I'm behind a censoring proxy and
wanting to test things *locally*. IE is set to not use the proxy when
fetching local
The following implementation is even more speaking as it makes self-evident
and almost mechanical how to translate algorithms that run after their tail
from recursion to tee usage :
*** BEGIN SNAP
from itertools import tee, imap
import sys
def imerge(xs, ys):
x = xs.next()
y = ys.next()
Hello Flávio,
My problem is to how to recover my reading from these bytes, since
pyserial gives me a character (string) from each byte... I dont know
how to throw away the unneeded bits and concatenate the remaining
bits to form a number...
See the array module.
Also
From: Alex Martelli ([EMAIL PROTECTED])
No idea about any 10.2, sorry, but on 10.3 that's not the problem: Tk
support is there alright, it's Tcl/Tk which _isn't_. Get MacPython, its
PackageManager will explain where to get Tcl/Tk Aqua from, as a prereq
for Tkinter and IDLE!
Ok, I've
Fuzzyman wrote:
urllib2 (under windows) will auto-detect your proxy settings and use
those.
Normally that's a good thing (I guess), except when it's not !
How do I switch off this behaviour ? I'm behind a censoring proxy and
wanting to test things *locally*. IE is set to not use the proxy when
[me]
why the `self.btree = None` in the last line?
[Mike]
It's to allow the Closer object to act as a substitute for a .close()
method on the object [...] If the user explicitly calls storage.close()
we don't want the __del__ trying to re-close the storage later. In
other words, its an
rbt wrote:
Fuzzyman wrote:
urllib2 (under windows) will auto-detect your proxy settings and
use
those.
Normally that's a good thing (I guess), except when it's not !
How do I switch off this behaviour ? I'm behind a censoring proxy
and
wanting to test things *locally*. IE is set to
Tim Peters wrote:
[Mike C. Fletcher]
I'm looking at rewriting parts of Twisted and TwistedSNMP to eliminate
__del__ methods (and the memory leaks they create).
A worthy goal!
Well, as of now it seems to have eliminated the last leaks in
TwistedSNMP, and that's likely going to eliminate
Hello,
for the first time since getting Python I can't get a third party module
to work.
I got fixedpoint.0.1.2.tar.gz from SourceForge for use with KinterbasDB.
After unpacking I had a directory called fixedpoint which I put under
my site-packages directory. There are no installation
In one of my python programs has a data file I need to load. My solution
was to say:
if os.path.exists(os.path.join(os.getcwd(), config.xml)):
self.cfgfile = os.path.join(os.getcwd(), config.xml)
Which works fine... as long as you're *in* the script's home directory
when you
The following should work:
os.path.split( os.path.realpath( sys.argv[0] ) )[0]
Cheers,
pieter
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Gabriel Cooper
Sent: 24 January 2005 16:40
To: python-list@python.org
Subject: Finding a script's home
rbt wrote:
For example, say I have the same Python script running on two WinXP computers
that both have
Python 2.4.0. One computer has 256 MB of Ram while the other has 2 GB of Ram.
On the machine with
less Ram, the process takes about 1 MB of Ram. On the machine with more Ram,
it uses
Gabriel Cooper wrote:
In one of my python programs has a data file I need to load. My
solution was to say:
if os.path.exists(os.path.join(os.getcwd(), config.xml)):
self.cfgfile = os.path.join(os.getcwd(), config.xml)
Which works fine... as long as you're *in* the script's home
rbt wrote:
Peter Hansen wrote:
I would expect to see such behaviour, given how difficult it is
to measure *actual* memory usage. How are you measuring it?
Just by looking at the Mem Usage column in the Task Manager?
That's right. I look at that column. Should I measue mem usage in some
other
Sibylle Koczian wrote:
Hello,
for the first time since getting Python I can't get a third party module
to work.
I got fixedpoint.0.1.2.tar.gz from SourceForge for use with KinterbasDB.
After unpacking I had a directory called fixedpoint which I put under
my site-packages directory. There are
Do you have a page file?
The Mem column should be RAM usage and not total working set. Some of it
could be swapped to the page file. A free tool like process explorer can
give you better informaton than the task manager.
rbt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Would a
Sion Arrowsmith wrote:
Paul Rubin http://[EMAIL PROTECTED] wrote:
YAML looks to me to be completely insane, even compared to Python
lists. I think it would be great if the Python library exposed an
interface for parsing constant list and dict expressions, e.g.:
[1, 2, 'Joe Smith',
Sibylle Koczian wrote:
for the first time since getting Python I can't get a third party module to
work.
I got fixedpoint.0.1.2.tar.gz from SourceForge for use with KinterbasDB.
After unpacking I had a
directory called fixedpoint which I put under my site-packages directory.
There are
Hello,
I've got a nasty bug and no idea to deal with :
here is the method :
method
def denormer(self, var) :
denorme un vecteur d'entree
try:
#a = map(self.decerner, self.param, var)
#a = [self.decerner(x, y) for x, y in map(None,
self.param, var)]
Leo 4.3 alpha 1 is now available at http://sourceforge.net/projects/leo/
Leo 4.3 is the culmination of more than four months of work. In spite
of its alpha status, I recommend Leo 4.3a1 over any 4.2 release.
The defining features of Leo 4.3:
-
1. Leo now stores
Hi All!
Sorry if this is not the correct forum for this kind of question (I did
not find any pylibpcap related lists).
I am trying to use pylibpcap to capture network traffic from several
ethernet devices at the same time, each nic having a separate thread
assigned to it.
My problem is that
On Sun, 23 Jan 2005 18:01:50 +, Frans Englich wrote:
Nah, I don't think it's a function, but rather a builtin statement. But
it's possible to invoke it as an function; print( test ) works fine.
So I wonder, what _is_ exactly the print statement? The untraditional
way of invoking
I suppose fixedpoint is no package as described in the tutorial and so
site-packages might not
be the right place for it.
site-packages sure works on my windows xp / python 2.4 configuration.
ah, forget what I said. you need to put the fixedpoint.py *file* under
site-packages,
not the
[[EMAIL PROTECTED]]
Would a Python process consume more memory on a PC with lots of
memory?
For example, say I have the same Python script running on two WinXP
computers that both have Python 2.4.0. One computer has 256 MB of Ram
while the other has 2 GB of Ram. On the machine with less Ram,
when we change the code that way the programme gets awful slow when I want to calculate say 100 digits or more .Can't we just get the numbers out of there without changing the code radically thus not making the programme sloww?
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'--
please advice
regards
brane
--
http://mail.python.org/mailman/listinfo/python-list
I found some e-book about Python 2.1, I want to print it but just to check
first if sintax of Python 2.1 is same as 2.4 ? Also does anybody know where
can I download any newer Python related e-book, because there isn't any
published yet in my country.
--
BOOGIEMAN [EMAIL PROTECTED] wrote:
I found some e-book about Python 2.1, I want to print it but just to check
first if sintax of Python 2.1 is same as 2.4 ?
almost everything that works under 2.1 works under 2.4. the opposite
isn't always true, though. for more information on new stuff, see:
On Mon, 24 Jan 2005 17:13:44 +0100, BOOGIEMAN [EMAIL PROTECTED] wrote:
I found some e-book about Python 2.1, I want to print it but just to check
first if sintax of Python 2.1 is same as 2.4 ?
Pretty musch the same, but naturally, some things have changed. See
these documents for the major
Xah Lee wrote:
Perl does not support classes or
objects in the so-called Object
Oriented programing.
Boy, the ignorance never stops, does it?
However, a
complete set of emulations of OO
style of programing have been done,
resulting in modules and books and
many documentations and
I'm trying to load module code from a database, which stores for each
module its full name, code, load date and a Boolean indicating whether
it's a package or not.
The following simple program:
import dbimp, sys
if __name__ == __main__:
dbimp.install()
#import bsddb.db
import
Chris Mattern wrote:
It doesn't have OO, but it emulates in software!
Better go with python, which has hardware OO. :-)
Chris don't feed the troll
--
http://mail.python.org/mailman/listinfo/python-list
Why don't you redirect stdout or stderr
#***
class Debug_Stderr:
__m_text = ''
__m_log_text = None
__m_dbg = None
__m_refresh_count = 0
Why does slicing a tuple returns a new tuple instead of a view of the existing
one, given that
tuples are immutable ? I ended up writing a custom ImmutableSequence class that
does this, but I
wonder why it is not implemented for tuples.
George
--
Title: RE: Tuple slices
[George Sakkis]
#- Why does slicing a tuple returns a new tuple instead of a
#- view of the existing one, given that
#- tuples are immutable ? I ended up writing a custom
#- ImmutableSequence class that does this, but I
#- wonder why it is not implemented for
In message [EMAIL PROTECTED], rbt [EMAIL PROTECTED]
writes
That's right. I look at that column. Should I measue mem usage in some
other way?
Try VM Validator, a free memory visualization tool from Software
Verification.
http://www.softwareverify.com
Steve,
I believe you have to put ntpath, macpath and posixpath in the module
database for os.path to work.
I tried it with zipimporter builtin and I got the same traceback till I
added ntpath.py to my zip file. (Of course, I renamed the original
ntpath to _ntpath so that the original did not get
George Sakkis wrote:
Why does slicing a tuple returns a new tuple instead of a view of the
existing one, given that
tuples are immutable ?
really?
a = 1, 2, 3
b = a[:]
a is b
True
/F
--
http://mail.python.org/mailman/listinfo/python-list
Philippe C. Martin wrote:
class Debug_Stderr:
__m_text = ''
__m_log_text = None
__m_dbg = None
__m_refresh_count = 0
rant
I don't see the benefit in 99.9% of cases for making class variables
like this private. If you don't want people to use them, simply use
the standard
Fredrik Lundh wrote:
George Sakkis wrote:
Why does slicing a tuple returns a new tuple instead of a view of the existing
one, given that
tuples are immutable ?
really?
a = 1, 2, 3
b = a[:]
a is b
True
My impression was that full tuple copies didn't actually copy, but that
slicing a subset of a
On Mon, 24 Jan 2005 18:45:46 +0100
Fredrik Lundh [EMAIL PROTECTED] wrote:
George Sakkis wrote:
Why does slicing a tuple returns a new tuple instead of a view of
the existing one, given that tuples are immutable ?
really?
Well... seems like this case is optimized to return the original
1 - 100 of 197 matches
Mail list logo