Heli Nix wrote:
Is there any way that I can optimize this if statement.
Array processing is much faster in numpy. Maybe this is close to what you
want
import numpy as N
# input data
vals = N.array([42, 1, 5, 3.14, 53, 1, 12, 11, 1])
# list of items to exclude
exclude = [1]
# convert to a
Robin Becker wrote:
I believe the classic answer is Ackermann's function
http://demonstrations.wolfram.com/RecursionInTheAckermannFunction/
which is said to be not primitive recursive ie cannot be unwound into
loops; not sure whether that implies it has to be recursively defined or
can
C.D. Reimer wrote:
Is there something in the Cython code that I need to change and/or find
a better C random number generator?
This may not be helpful, but numpy is pretty helpful for this sort of thing:
import numpy
import numpy.random
a=numpy.random.randint(1,6,5000)
Michael Kreim wrote:
What are you using to wrap C++ classes for Python?
I'm using SIP, as it fits nicely with my PyQt user interface.
http://www.riverbankcomputing.com/software/sip/intro
It's a pretty flexible and fast way of wrapping C++ and C.
If you want to pass numpy arrays and such, it
contact.tri...@gmail.com wrote:
if (a, b) != (None, None):
or
if a != None != b:
Preference? Pros? Cons? Alternatives?
I couldn't see anyone else give this, but I like
if None not in (a, b):
pass
Jeremy
--
https://mail.python.org/mailman/listinfo/python-list
Michael Torrie wrote:
I think PyQt is slowly being pushed aside in favor of PySide, which is
more license-friendly for use in closed or open projects. I would
recommend using PySide unless PyQt is a requirement for your project.
That's not the impression I get from the PySide mailing lists.
Robert Voigtländer wrote:
I try to squeeze out some performance of the code pasted on the link
below. http://pastebin.com/gMnqprST
The code will be used to continuously analyze sonar sensor data. I set
this up to calculate all coordinates in a sonar cone without heavy use of
trigonometry
Roy Smith wrote:
Threads are lighter-weight. That means it's faster to start a new
thread (compared to starting a new process), and a thread consumes fewer
system resources than a process. If you have lots of short-lived tasks
to run, this can be significant. If each task will run for a
Chris Angelico wrote:
Because s/he thought it made for better code, or as a joke? Usually I
see this sort of thing as the latter...
http://oldhome.schmorp.de/marc/bournegol.html
http://utcc.utoronto.ca/~cks/space/blog/programming/BourneGol
Jeremy
--
wxjmfa...@gmail.com wrote:
Short example. Writing an editor with something like the
FSR is simply impossible (properly).
http://www.gnu.org/software/emacs/manual/html_node/elisp/Text-Representations.html#Text-Representations
To conserve memory, Emacs does not hold fixed-length 22-bit numbers
Mihai Badoiu wrote:
How do I do interactive plots in python? Say I have to plot f(x) and g(x)
and I want in the plot to be able to click on f and make it disappear.
Any python library that does this?
You could try veusz, which is a python module and plotting program combined.
You can also
spam head wrote:
Does anybody have any recommendations for a good program from
generating these simple graphs?
Have a look at Veusz, written in python: http://home.gna.org/veusz/
(I am the lead author).
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
amfr...@web.de wrote:
i have a script that reads and writes linux paths in a file. I save the
path (as unicode) with 2 other variables. I save them seperated by , and
the packets by newlines. So my file looks like this:
path1, var1A, var1B
path2, var2A, var2B
path3, var3A, var3B
If you're
Brandon Harris wrote:
I'm trying to read in and parse an ascii type file that contains
information that can span several lines.
Example:
What about something like this (you need re.MULTILINE):
In [16]: re.findall('^([^ ].*\n([ ].*\n)+)', a, re.MULTILINE)
Out[16]:
[('createNode animCurveTU
to be much better than anything provided by
CSS and HTML. Personally I'd rather be writing complex C++ templates that
those, though it does give you a feeling of achievement when you get what
you want with CSS.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org
Veusz 1.7
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2010 Jeremy Sanders jer...@jeremysanders.net
Licenced under the GPL (version 2 or greater).
Veusz is a Qt4 based scientific plotting package. It is written
New submission from Jeremy Sanders jer...@jeremysanders.net:
The struct documentation at http://docs.python.org/library/struct.html says:
Standard size and alignment are as follows: no alignment is required for any
type (so you have to use pad bytes); short is 2 bytes; int and long are 4
Jeremy Sanders jer...@jeremysanders.net added the comment:
Sorry - I didn't read the docs clearly enough. This probably isn't a bug then.
Can you mark it invalid?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8069
Veusz 1.6
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2010 Jeremy Sanders jer...@jeremysanders.net
Licenced under the GPL (version 2 or greater).
Veusz is a Qt4 based scientific plotting package. It is written
Veusz 1.6
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2010 Jeremy Sanders jer...@jeremysanders.net
Licenced under the GPL (version 2 or greater).
Veusz is a Qt4 based scientific plotting package. It is written
have to start a new program to do the work (slow
on windows)
- Error handling from the xcopy process will not be easy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Python will
typically run faster in 64 bit mode (this is more pronounced in AMD
processors, in my experience).
It will depend on your application whether 32 bit mode plus Psyco is faster
than 64 bit mode.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman
the dockwidget geometries.
I save the size and position of the main window separately and restore it
with resize() and move().
You need to make sure all your toolbars and dockwidgets have unique object
names for saveState to work.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http
Veusz 1.5
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2009 Jeremy Sanders jer...@jeremysanders.net
Licenced under the GPL (version 2 or greater).
Veusz is a Qt4 based scientific plotting package. It is written
algorithm or a better Python code (I'm a beginner in
the Python world), don't hesitate ...
Don't you want to just test that the number of (s equals the number of
)s or am I missing the point?
a='aAAA(bbb(cc)))'
a.count('(') == a.count(')')
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net
Diez B. Roggisch wrote:
Yep, you are:
((((
is certainly not well parenthized.
Thanks for that!
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
a bit faster without antialiasing,
slower if you want to actually plot markers at each position.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
interesting read if you're interested in
this subject.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
, however, which means that the user has to be
able to relink a modified form of the library, Qt, with your application
should they wish. You should check whether the LGPL is appropriate for the
way you want to ship your program.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http
Veusz 1.4
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2009 Jeremy Sanders jer...@jeremysanders.net
Licenced under the GPL (version 2 or greater).
Veusz is a Qt4 based scientific plotting package. It is written
Veusz 1.3
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2009 Jeremy Sanders jer...@jeremysanders.net
Licenced under the GPL (version 2 or greater).
Veusz is a scientific plotting package. It is written in Python
portable between Windows and Unix (though you don't get to
use socketpair and AF_UNIX in Windows).
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
? That would be clearer, would not mess around with global namespace,
and more pythonic IMHO.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Note: the Python embedding interface is now more robust and works under
windows.
Veusz 1.2.1
---
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2008 Jeremy Sanders [EMAIL PROTECTED]
Licenced under the GPL (version 2
', '--istep=16', '--chmetric=M2',
'--use_texid=true']
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
shell quoting you may use on the unix/dos command line.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
(fd)
---
Does anyone have any ideas how to get this to work under Windows? Is it
correct code under unix?
Thanks
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
used subprocess. This MSDN page
suggests you you need to do something with SetHandleInformation to get them
to be inherited. Doesn't subprocess do that?
http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman
Jeremy Sanders wrote:
Hi - I have some code which works under linux. It starts a remote python
process using subprocess and communicates to it via a pipe created by
os.pipe. As far as I understand, child processes should inherit file
descriptors from the parent if close_fds=False
Veusz 1.1
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2008 Jeremy Sanders [EMAIL PROTECTED]
Licenced under the GPL (version 2 or greater).
Veusz is a scientific plotting package written in Python, using PyQt4
.
oats=[1]
peas=[6]
mylist = [oats, peas]
mylist[1][0] = mylist[1][0]+1
mylist
[[1], [7]]
peas
[7]
This is because integers are immutable, but lists are mutable.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
):
...: self.lst = lst
In [6]: m = foo([2,3,4])
In [7]: p = foo(['a','b','c'])
In [8]: import weakref
In [20]: q = [weakref.proxy(m), weakref.proxy(p)]
In [23]: q[0].lst, q[1].lst
Out[23]: ([2, 3, 4], ['a', 'b', 'c'])
In [24]: del p
In [27]: q[1].lst
gives a reference error
--
Jeremy Sanders
. See help(numpy.random).
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
subprocess
to launch it so that you don't need the escaping:
subprocess.call(['ls', '8000 dir'])
This avoids using the shell.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
as the dict is modified. Have a look at
diveintopython:
http://www.diveintopython.org/getting_to_know_python/dictionaries.html
You'll have to store your keys in a list or tuple to keep them ordered.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo
a continue N or a break N statement :-)
for i in outerLoop:
for j in innerLoop:
if condition:
break 2
Seeing as we can't have a goto :-)
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Horacius ReX wrote:
do you know how to do similar but in two dimensions ?
Investigate the numpy module if you are dealing with numbers.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
a datetime into seconds from a certain date? Is
the most robust way of doing it just to subtract two datetime objects and
turn the timedelta into a floating point number?
Thanks
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
.
Thanks, Jeremy.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
like bar
charts...). It is implemented with PyQt4.
You can use the windows.PlotWindow widget in your PyQt4 app, but
unfortunately I haven't got round to documenting this properly... If you're
interested I can give instructions.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http
I'm pleased to announce Veusz 1.0. Source, windows and linux i386 binaries
are available - Jeremy Sanders
Veusz 1.0
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2007 Jeremy Sanders [EMAIL PROTECTED]
Licenced under
I'm pleased to announce Veusz 1.0. Source, windows and linux i386 binaries
are available. Jeremy Sanders
Veusz 1.0
-
Velvet Ember Under Sky Zenith
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2007 Jeremy Sanders [EMAIL PROTECTED]
Licenced under
as a backend for Veusz (see previous
threads on this subject). Maybe that has changed now, but IMHO Veusz output
still looks better.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Wildemar Wildenburger wrote:
Oh, OK. I though it was a library. I now see that it is an actual
application. Sorry to have bothered you :)
It's a library too :-)
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
= NullWriter()
oldstdout = sys.stdout
sys.stdout = nullwrite # disable output
testfunc()
sys.stdout = oldstdout # enable output
testfunc()
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
(self, func):
self.func = func
def __call__(self, *args, **argsk):
self.func(*args, **argsk)
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
could
create a sorteddict and use update() since that takes the same args as
dict's constructor).
first() and last() would also be nice on a sorted dict.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
in the dictionary.
By the way, I think a LRU cache dictionary would be a great addition to the
standard library.
Is there any speed advantage from implementing the sorteddict as a red-black
tree or something similar in C?
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org
of the items stored (using len on the
strings)?
It could automatically clean out old entries when the memory usage becomes
too much.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
characters per variable access,
which is the same as the C++ m_ naming convention.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
for the document, why the crazy \small,
\LARGE, etc commands?), and fixing the font system to be based around
modern fonts. Finally making bibtex part of the core and making it easy to
use would be great.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python
what they always complain about: fonts, page breaking, and
positioning of figures? Maybe it's an okay first step however.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
the compatibility (I use
centos 3 in a virtual environment).
jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
turtle wouldn't be that hard to reimplement it to use Qt/Gtk
instead.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
(object):
A function object.
def __init__(self, val):
self.val = val
def __call__(self):
Return value squared
return self.val**2
a = []
for i in range(4):
a.append(MyFunc(i))
for f in a:
f()
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http
= f.read() # read rest
or
data = f.read()
data = data[1:] # skip 1st byte
?
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
may not have instantly realised that there were multiple
array types in numpy (I didn't for a while), and could have wasted many
hours and been discouraged.
Explaining clearly is indeed important.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python
special matrix type to get this. You
can use the dot function to get matrix multiplication with its normal
arrays.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2007 Jeremy Sanders [EMAIL PROTECTED]
Licenced under the GPL (version 2 or greater).
Veusz is a scientific plotting package written in Python, using PyQt4
for display and user-interfaces, and numpy for handling the numeric
data
-
http://home.gna.org/veusz/
Veusz is Copyright (C) 2003-2007 Jeremy Sanders [EMAIL PROTECTED]
Licenced under the GPL (version 2 or greater).
Veusz is a scientific plotting package written in Python, using PyQt4
for display and user-interfaces, and numpy for handling the numeric
data
Michael Bentley wrote:
Possibly the easiest thing will be to read from firefox' cache.
Otherwise I think your only real options are to either build a proxy
or sniff the wire...
Maybe another way would be to write a firefox addon/plugin. I believe python
is now supported...
--
Jeremy Sanders
? It
seems to work for me if you use plain text.
Tabs or html/rich text formatting should be a better way to get the layout
(or just use a table).
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
://tvision.sourceforge.net/ ). I haven't used these, but I fondly
remember turbovision from my Turbo Pascal/Turbo C++ days. I think it is
still a good text based GUI.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
', 42],
['jim', 16], ...
]
name_index = {}
for item in data:
name_index[item[0]] = item
name_index['fred']
['fred', 42]
Dictionaries are one of the most useful things in Python. Make sure you know
how to take adavantage of them...
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net
/article/2156
You can create a named pipe from python.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
it to keep up to date,
it's the automatic part I'm having trouble with. This is on Windows.
It occurs to me under Unix you could perhaps get your first program to write
to a named pipe, which you 2nd program could read from. See
http://en.wikipedia.org/wiki/Named_pipe
Jeremy
--
Jeremy Sanders
QtCore and QtGui
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
your application will inherit whatever security
vulnerabilities the external application suffers from. No surprises there.
There are also big risks like this
filename = 'foo; rm importantfile'
cmd = 'ls %s' % filename
os.system(cmd)
oops!
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http
is still used up. So,
when you try to create the 383rd thread, the kernel can't find anyplace
to put its stack. So you can't create it.
Interesting. That's why I can get over 3000 on my x86-64 machine... Much
more address space.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http
Michael Malinowski wrote:
Nevermind, I got it using the sys.argv[0]
That doesn't always work, as on unix the path isn't prepended onto
sys.argv[0] necessarily.
import os.path
...
os.path.dirname(os.path.abspath(__file__))
may be better.
--
Jeremy Sanders
http://www.jeremysanders.net
it python commands from the main thread. Have a look at this code to see
how it works:
http://svn.gna.org/viewcvs/veusz/branches/qt4/embed.py?rev=530view=markup
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
the standard deviation from the median.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
PyQt/Qt on Windows without Cygwin. There are very few bugs
and lots of professional companies base their products on Qt Windows.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
to learn from
actual printed books, so I'll check this one out. O'Reilly should do a
book on Python GUI stuff!
PyQt is well supported under native Windows. Qt-4 is now GPLd for Windows
too. I'd highly recommend it.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org
/veusz/
You can have any number of y-axes, see
http://home.gna.org/veusz/screenshots/screenshot1.png
The PyQt4 version is coming along nicely too...
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
://www-xray.ast.cam.ac.uk/~jss/lecture/computing/notes/out/python_123.pdf
LaTeX source:
http://www-xray.ast.cam.ac.uk/~jss/lecture/computing/notes/out/python_123.tex
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
of cleaning up as it assumes
things such as python being in /usr/local/bin... I may try to improve this
later.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
to work through. It overlaps quite a bit
with the tutorial, but I tried to minimise any detail.
I just publicised it in case anybody wanted something similar.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Chaz Ginger wrote:
What would sets do for me over lists?
It's faster to tell whether something is in a set or dict than in a list
(for some minimum size).
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
Jeremy Sanders wrote:
Chaz Ginger wrote:
What would sets do for me over lists?
It's faster to tell whether something is in a set or dict than in a list
(for some minimum size).
As a footnote, this program
import random
num = 10
a = set( range(num) )
for i in range(10):
x
()
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
and CONTinuing
processes), or sleep statements, or saving state, don't work investigate
these.
e.g. http://www.cs.wisc.edu/~zandy/ckpt/
These programs have limitations on what can be restored (e.g. threads,
shared memory, network connections...). I don't know which ones work with
python.
--
Jeremy
': {'red': (4, 5, 6, 7)}, 'bob': {'orange': (2, 3, 4), 'apple': (1, 2,
3,4)}}
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
out of sync with real time.
Maybe you could install a signal handler to ignore ctrl+c, when required
import signal
signal.signal(signal.SIGINT, signal.SIG_IGN)
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
something about ntp on the twisted mailing list, so you
could ask there.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
the ntpdc console using dmpeers, or lopeers in ntpq. You
could have two peers either side of the link and measure the delay from
NTP.
You may also be able to query remote ntp servers to get their delays to
their peers.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org
?
chicken crosses road
fool
so long...
What do you know?
chicken crosses road
fool
so long...
Elapsed 2.11
Elapsed 1.11
(This is with an Althon 64 4600+ running Linux).
Unfortunately the Python on this computer doesn't have set as it is too old,
so I can't compare it.
--
Jeremy Sanders
http
):
self.vals.append(val)
a = Hist()
a.set(5)
print a()
a.set('hi there')
print a()
print a(-2)
Which prints
5
hi there
5
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
= What do you know?;
for (long int i=0; i1 ; ++i){
a.push_back(foo);
...
}
as many C++ implementations use reference counting for identical strings.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 157 matches
Mail list logo