issue please let me know.
Thanks,
Scott
--
http://mail.python.org/mailman/listinfo/python-list
alues())
for i in range(N):
score = random.random() * total
for choice, weight in cp.iteritems():
if weight < score:
score -= weight
else:
result.append(choice)
total -= cp.pop(choice)
bre
a < 100:
if c == "c":
radius = 500
else:
radius = 250
else:
for limit, radius in bounds:
if a < limit:
break
on the theory that it makes it easier to see what you
are driving the number towards. I'd even add an upper bound
check myself, so I could see other garbage coming in.
-Scott
--
http://mail.python.org/mailman/listinfo/python-list
hanging it to ...
> data = "dummy"
> while data:
> ...
Even better:
from functools import partial
def handle(self):
for data in iter(partial(self.request.recv, 1024), ''):
self.request.send(data)
if data.strip() == '
x27;'.join([chr(randrange(128)) for i in range(1024)])
-Scott
--
http://mail.python.org/mailman/listinfo/python-list
ng (outer to inner), so a single scan of the result can
reveal nesting violations.
-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
free.fr/PQR2.3.html
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
;>> print datetime.datetime.now() # local
2006-04-18 15:25:03.14
>>> print datetime.datetime.utcnow() # zulu / utc / gmt
2006-04-18 22:25:13.625000
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
tise available to support people
to do things like that (nor does it need to). They don't need (or
want) to become wed to one architecture, but to do the best optimization
you must at some point get married.
The gcc team does a great job at what they do; blind defense of them
discredits
hon is to get 3-D solved for you so
you can work on the position and momentum updates. It even will do
anaglyph (colored glasses) and cross-eyed 3-D rendering, though the
default is to simply give you a 2-D window into the 3-D world.
If you do this, you might play with designing a virtual skate park.
there a online ref and how to access it?
Yes.
Your install may have one, what OS?
Start here:
http://www.python.org/about/gettingstarted/
or
http://www.python.org/doc/faq/
or
http://wiki.python.org/moin/
or
http://www.python.org/doc/
--Scott David Daniels
[EMAIL PROTECTED]
--
ey of '_name', or '_name_', because
'name' is a fairly likely name to encounter.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
array, that is the element type),
and __init__ does any further initialization (initialization
should be re-runnable). In the case of array, filling the array
with data seems a great use of __init__.
--
-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ost recent call last):
> File "", line 1, in ?
> TypeError: startfile() takes exactly 1 argument (2 given)
Works fine for me with Python 2.5a2 on Win2K
I ran: os.startfile('c:/','explore')
And an explorer window popped up.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
k some files "deleted" in the directory,
add new files (possibly the replacements for the deleted files), and,
in one pass, copy all non-deleted files to a new zip (which you can then
swap for the original zip). Shortcutting this process puts all data in
your zip file at risk.
--Scott D
Edward Elliott wrote:
> Scott David Daniels wrote:
>>...
> ... You windows kids and your crazy data formats.
There were a few oth OS's than Linux and Windows. Maybe you
should call me "you crazy Tenex kid." Knuth says, "the fastest
way to search is to know wher
Edward Elliott wrote:
> Scott David Daniels wrote:
>
>> Edward Elliott wrote:
>>> Scott David Daniels wrote:
>>>> ...
>> > ... You windows kids and your crazy data formats.
>> There were a few oth OS's than Linux and Windows. Maybe you
&g
Line
A little better:
f = open("test.dat")
for line in f:
printLine = line.rstrip("\n")
if printLine:
print printLine
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
t VPython -- there you can build 3-D models and
display them in real time while viewing with your glasses.
See:
http://www.vpython.org/FAQ.html
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
x27;dudes')
print stringish.tostring()
--
-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
to
anything in dbg.lib.debug. The "from dbg.lib.debug import *" statement
can be seen as a module import followed by a fancy multiple assignment,
where module dbg.lib.debug is first imported, then its globals are
assigned to globals of the same names in module dbg.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
3, 4, 5, 9]
If you are using an old version of Python (2.3.X or before),
the you just need to break your statement up:
Instead of:
6 print os.listdir(sys.argv[1]).sort()
use:
6 files = os.listdir(sys.argv[1])
7 files.sort()
8 print files
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Python can also put out POV-Ray source
( http://www.povray.org ).
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
New-style classes control object attribute lookups,
and messages go to the class first (ignoring the instance
dictionary). That is also how "properties" work, which
(if you think about it right) could not otherwise survive
the first assignment of the property.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ntally collide with
names in subclasses, for example).
IMO, distutils, for example, over-uses the double leading underscore
names; it makes it awkward for me to get to information that I'd like
to obtain. The double leading underscore should be there if there is
no reasonable use to getting
available somewhere online, I
> can't see it to obviously in the library reference?
You can help by mentioning where you'd most expect to find it in a
Python documentation bug (or enhancement) report. Then you to can be a
Python contributor.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
contents, and is a completely separate issue.
If you define a module with a variable name '__all__' which is a list
(or tuple) of strings, only module elements with those names will be
imported with a "from module import *". If you fail to define the
'__all__' eleme
If you are only using "print >>x"-style statements, simply
set fp to None (which means "write on stdout"). That makes it
easier to only close the file you opened later., say by ending
the routine above with:
if fp is not None:
fp.close()
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
>print debugFlag
The global line is not needed: global declarations are only required
if you need to _write_ on globals w/in the function.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno wrote:
> Scott David Daniels wrote:
>> John Salerno wrote:
>>> ... But isn't there something about a single leading underscore
>>> that doesn't import when you use from X import *? Or am I thinking of
>>> something else? Is that also th
m
> basically talking about meetings where you could form your team, join a
> team, etc...
Every startup I've been involved in began by recruiting trusted people;
Forming a team involves several people risking each other's livelihoods,
and is almost always begun with an "old boy
thousands of lines of unmaintainable code. Essentially, a
rule that says, "if it is not a simple expression, pick a
name for it" is just not a bad idea.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
w.w3.org/TR/html4/strict.dtd";>\n\n'''
>
> ..., but I don't want the extra newline or tabs to be
> a part of the string when it's printed.
The easiest way:
self.DTD = ('http://www.w3.org/TR/html4/strict.dtd";>\n\n')
Adjacent strings are
You might prefer .iteritems rather than .items if the lists get huge.
* I use the dict(name=val [, name=val)*) form if the keys are symbols.
* Don't get any more indirect than you need to.
* A list of single-entry dictionaries is almost never a good idea;
if you mean a list of pairs, use t
Brian Blais wrote:
> Are there any recommendations for which Windows python version to use?
Only if you have criteria.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
pos = -1
try:
while True:
pos = source.index(target, pos + 1)
yield pos
except ValueError:
pass
print list(positions('1234', 'abcd efgd 1234 fsdf gfds abcde 1234'))
prints:
[10, 31]
--Scott David
Kirill Simonov wrote:
>
> Announcing PyYAML-3.02
>
>
> A new bug-fix release of PyYAML is now available:
>
> http://pyyaml.org/wiki/PyYAML
Another fix provided for Python 2.5 and friends.
--
-Scott David Daniels
[EMAI
y you _can_ do that. I wouldn't, however. If (to you) the four
functions above "mean" something different, I'd implement convert_quote
with:
convert_quote = make_code
--
-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
tertools
for char in itertools.chain(onesource, anothersource, yetanother):
...
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
tor.update(data)
else:
break
finally:
source.close()
print 'md5 checksum =', accumulator.hexdigest()
Compare that result to the published checksum for the archive
to make sure you don't have a garbled archive.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Scott ,
> I tried downloading for different archives, (different versions of
> Python) I can't believe they are all garbled. But they all don't work
> with WinZip.
And what checksum did you get?
--Scott David Daniels
[EMAIL PROTECTED]
--
[EMAIL PROTECTED] wrote:
> Scott ,
> I tried downloading for different archives, (different versions of
> Python) I can't believe they are all garbled. But they all don't work
> with WinZip.
>
OK, against my better judgment (you haven't shown your work so far):
t to string from unicode in:
... map(str, Topamax) ) )
float works on all string types (including unicode), and will accept
some non-ASCII digit values.
--
-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
else:
trans_table = string.maketrans(original_letters,
trans_letters)
> break
> return original.translate(trans_table)
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
tive firewall settings, because no socket
is allocated for communication.
It is also useful for experimenting with Tkinter, because a Tkinter
display loop is already running, so you can see the effects of your
Tkinter commands as they are entered.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ight - 60][weight - 80] = size;
return result;
}
int
getsize(int height, int weight, int size)
{
assert(60 <= height && height<= 88 && 80 <= weight && weight<= 400);
return hwdict[height - 60][weight - 80];
}
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
quot;head"):
> *!*title("title):
> *=*text = "Page Title"
> *!*body("body"):
> *=*bgcolor = "#ff"
> *=*text = "Hello, World!"
Hunt up PyYAML. It might be what you want.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ou
need a special-case work-around:
class Bb(A):
def __init__(self, *args, **kwargs):
super(Bb, self).__init__(*args, **kwargs)
self._recursed_func = 0
def f1(self):
self._recursed_func += 1
try:
return super(Bb, self).f1()
finall
e to explore.
Since the GIL is released from time to time (on any system call that may
wait, for example), it is a single core at any one instant, but is not
necessarily the same core over time.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
lse simply annoys those of
us who may need to get access to those instances and methods.
--
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
else:
main([r"\\Iceman\propod\flash\xml\webService\XmlData\Authors\Heidi"])
To investigate the idle environment, simply add:
if __name__ == "__main__":
print "to main"
main([r"\\Iceman\propod\flash\xml\webService\XmlData\Authors\Heidi"])
else:
print 'Sorry, __name was %r, not "__main__".' % __name__
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Thanks for your help! Shouldn't Idle have shown an error when trying to
> read the string constant if it's not interpretable as a normal string,
> then?
I suspect it should. The error probably got lost in the start-script
handling somewhere.
--
self, attr):
self._attr = attr
def getattr(self):
return self._attr
def attr(self):
return self.getattr()
attr = property(fget=attr)
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
first):
print k, [i for i in g]
"groupby" depends on the source stream having the clustering you need.
Otherwise it could not work "on the fly" for arbitrarily large sources.
Often you can arrange for your data source to be clustered; when you
cannot, the groupby arg is a great sort key.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
a frequently made mistake.
try also:
>>> bumble = [[0]*2 for 0 in xrange(2)]
Think hard about why that might be.
Then try:
>>> [id(x) for x in foo]
>>> [id(x) for x in baz]
>>> [id(x) for x in bumble]
Now check your upper scalp for lightbulbs.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
haracter edit of the file.
>
> Why seeking to EOF after writing the byte?
Because some operating systems may create an EOF (thus truncating the
file) after a write, close sequence.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
that work).
Sounds like a great opportunity for you to contribute. The easiest
contribution would be to find as small a case as you can that
demonstrates the problem, fixing it and add a test case would be,
obviously, a greater contribution.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Dr. Pastor wrote:
> I need a row of 127 bytes that I will use as a
> circular buffer. Into the bytes (at unspecified times)
> a mark (0 After some time the "buffer" will contain the last 127 marks.
Sounds a lot like homework.
--
--Scott David Daniels
[EMAIL PROTECTED]
--
htt
t; Classes Instances
This probably wants to be
Class Instances
"file" objects are generally supposed to be built with the
open function, not instantiated as shown.
Also note iterating on a file gets the lines.
Do you know about seq[i:] and seq[::-1]?
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Riccardo T. wrote:
> Scott David Daniels ha scritto:
>> [in the .png]
>>> ...
>>> Callable types
>>>...
>>>User-definet methods
>> I personally prefer "User-defined methods"
>
> That's a typo, thank you.
Hope I didn&
Riccardo T. wrote:
> Scott David Daniels ha scritto:
>> Riccardo T. wrote:
>>> Scott David Daniels ha scritto:
>>>> [in the .png]
>>>>> ...
>>>>> Callable types
>>>>>...
>>>>>User-definet methods
>
sts the chaining happens." The recursion-
like call to the super method is placed explicitly
in Python so you can see how it works. If super is
too tough to explain, I expect single inheritance is
all you are using. simply remind people to call
A.foo(self, ) within the definition of foo in
B.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Greetings,
>
> I was wondering if there was a python Module/Library out there that
> handles some trajectory/physics stuff like moving an object along a
> straight path in an X,Y 2D (or 3D) plane or calculating parabolic
> arcs. I'd really settle for just the moving of a
Steven D'Aprano wrote:
> On Mon, 31 Dec 2007 08:03:22 -0800, Scott David Daniels wrote:
>> Steven D'Aprano wrote: ...
>>> def chain(meth): # A decorator for calling super.
>>> def f(self, *args, **kwargs):
>>> result = meth(self, *args,
Steven D'Aprano wrote:
> On Mon, 31 Dec 2007 16:19:11 -0800, Scott David Daniels wrote:
>
>> Steven D'Aprano wrote:
>>> On Mon, 31 Dec 2007 08:03:22 -0800, Scott David Daniels wrote:
>>>> Steven D'Aprano wrote: ...
>>>>> def chai
ide a method, and the disposition of
its results makes experimentation with different ways to use the
result tempting. There is a temptation to play with the arguments
as well, that runs afoul of the vagaries of multiple inheritance,
that is the reason that I said "if they don't want t
mice,
and so, inevitably, the answer to your question (and, indeed
whether such a thing is even possible) depends on the OS and
display packages you are using.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
in most of these cases you will have imported the code
for b twice, once as a main program, and once as a module in the
hierarchy, which is probably your actual problem (and why I use
"print __name__, __file__").
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
bol table (the packages __dict__) when the module has been
completely imported.
-Scott
--
http://mail.python.org/mailman/listinfo/python-list
methode(self):
try:
mymethod()
except MyError,myerr:
stuff_only_for_exceptional_cases()
raise # Note that this keeps the original traceback.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
(filename) as f:
for n, line in enumerate(f):
if n == position:
break
else:
line = None # indicate a short file
yield filename, line
...
for name, line in pairing(glob.glo
h, tiles ):
self.width, self.height = bw, bh
self.tilemap = [array.array('b', [0]) * bw for row in range(bh)]
self.clipboard = [array.array('b', [0]) * bw for row in range(bh)]
Gives a list of arrays. I punted on the type arg here; you should make
a definite d
[0]*1000) for n in range(100)]"
"v = a[1][2] + a[2][1] + a[3][3]"
You can also use:
C:\> \python25\python -m -s "import m; m.setup()" "m.my_fun(123)"
Try it, you'll be addicted in no time. Check the documentation on
package "timeit."
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
-v whatever.py
You can see all the imports that are done and in what order.
Also realize that import a file executes it, so you can sprinkle
prints at points where you are confused.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
s.
Also, a few screen-scraping programs that suck _current_
information from some sources should also delight; the students
have a shot at getting ahead of the teacher.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
a x=x : x+10
>
> print y(2)
> ##
>
> It prints 12, so it doesn't bind the variable in the outer scope.
Primary use:
funcs = [lambda x=x: x+2 for x in range(10)]
print funcs[3]()
_or_
funcs = []
for x in range(10):
funcs.append(lambda x=x: x
te(text)
def __init__(self, *files):
self._files = files
def close(self):
for dest in self._files:
dest.close()
f1 = MultiWrite(open('1.txt', 'w'), sys.stdout)
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
in whatever:
...
then you can do:
source = iter(whatever)
for intro in source:
if intro.startswith('Schedule '):
for line in source:
if line.startswith('Total'):
break
process(intro, line)
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
in front" of
each pipe. The per-pipe thread reads a chunk, waiting if it has to,
and then writes to the queue. To read from a pipe w/o waiting from
one of these assemblies, you can use the get_nowait method on the
associated queue.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.
h by context mangers in 2.5 or later -- see with_statement.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Hexamorph wrote:
> ...
> What's about l.index(max(l)) ?
What about
max((x,i) for i,x in enumerate(lst))[1]
--
http://mail.python.org/mailman/listinfo/python-list
'Zapped') # The secret -- run out.
-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
er
if checking:
my_var = 'string'
else:
my_var = 'other string'
remember, vertical space only kills trees if printed.
--Scott David Daniels (who still prints this too frequently).
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
nfused. You need to
show us enough so that we can discover what might, or might not, be
going wrong. At the least, what was your code, what happened, and
what did you expect to happen.
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
for i in range(count):
yield None
raise exception
You can do your loop as:
check_infinite = Fuse(200, ValueError('Infinite Loop')).next
while True:
...
check_infinite()
but I agree with Tim that a for ... else loop for the limit is clearer.
--
p numpy arrays to test the
set of ranges in listA in a pair of operations.
I hope I haven't helped you with your homework.
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
imageguy wrote:
1) >>> n = None
2) >>> c,d = n if n is not None else 0,0
...
This is more easily expressed as:
c, d = n or (0, 0)
--
http://mail.python.org/mailman/listinfo/python-list
an encoded form (bytes) from
the abstract "Unicode is characters". What you want in Python is:
u'abc'.encode('UTF-16')
So look for something returning a string by invoking the decode method.
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
vailable as locals that encompasses the locals
of both f and f_nested, so you'll have to be explicit about what
you mean.
So, the code wants you to say something like:
def f():
def f_nested():
exec "a=2" in globals(), locals()
print a
return f
lusively in the headers.
Readers sometimes select by subject, but only read content.
However the answer the OP is looking for with his ill-formed
question could be revealed if his final print were:
print('%s on reply %r' % (complaint, password))
He'd realize he wanted:
password = input(prompt).rstrip()
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
the code you write
naturally. The way to get to such performance on Python is through
efforts like PyPy.
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
= defaultdict(lambda: defaultdict(int))
or
my_dict = defaultdict(functools.partial(defaultdict, int))
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
ehaviour?
It is the defined behavior.
For what you want:
import itertools as it
def count_from(base):
for n in it.count():
yield n + base
itlist = [count_from(n) for n in range(2)]
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinf
a favor and go to a bookstore and read a chapter or
two of the cookbook. While you can see the recipes on activestate,
there is a _lot_ of value added in (1) the selection, (2) the
editing for a more consistent style, and (3) the chapter intros
by people chosen for their knowledge on the chapter'
waltbrad wrote:
I want to upgrade from 2.5 to 2.6. Do I need to uninstall 2.5 before
I do that? If so, what's the best way to uninstall it? Thanks.
The answer to your question may depend on your operating system and
setup.
--
http://mail.python.org/mailman/listinfo/python-list
vedrandeko...@yahoo.com said:
> ... when I run these two threads,
> I think they don't start at the same time
In response,
Diez B. Roggisch wrote:
... Even if you managed to get two threads started simultaneously
(which the OS doesn't even offer IINM), the would soon run out of sync
And th
ng it, he has accidentally changed the version of the
code. This you could forestall by invoking your function at packaging
time, and writing a file with the version string in it.
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
seems like
there should be very little additional bus contention vs a normal add
instruction.
The opcode cannot simply talk to its cache, it must either go directly
to off-chip memory or communicate to other processors that it (and it
alone) owns the increment target.
--Scott David Daniel
ine as the $.
one
The space separates the 'one' from the '$ ' that it output to stdout
above.
one
one
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
ure allows simple
implementation of debugging software, rather than the black arcana
that is the normal fare of trying to weld debuggers into the compilers.
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list
1301 - 1400 of 2114 matches
Mail list logo