New submission from Nick Craig-Wood:
Here is a patch to remove some unused code in `symtable.c`
In Python3 `from x import *` was banned from use in functions completely.
This is detected by `symtable_visit_alias`
if (st-st_cur-ste_type != ModuleBlock) {
int lineno = st
Nick Craig-Wood n...@craig-wood.com added the comment:
Terry J. Reedy (terry.reedy) wrote:
IMHO pprint should be able to make a decent job of all the built in types
Agreed, already true as far as I know, and irrelevant. This issue is not
about built-in types in the builtins module
Nick Craig-Wood n...@craig-wood.com added the comment:
Raymond Hettinger (rhettinger) wrote:
Ben, I don't think there is any value is opening more issues like
pprint-doesn't-handle-object-x (named tuples, defautdicts, deques,
generators, etc).
As it is currently designed, pprint doesn't
Nick Craig-Wood n...@craig-wood.com added the comment:
I think the fact that sqlite may not be using the warnings properly is
independent of this problem. Warnings should be filterable, but if sqlite
isn't notifying them properly - that would be a different bug.
BTW I came across
Nick Craig-Wood n...@craig-wood.com added the comment:
Reading PEP 0249 I can see Gerhard is correct, this patch would violate the PEP.
I think that the PEP is slightly flawed in that users are encouraged to raise
exceptions called Warning. IMHO a Warning is never an exceptional condition
New submission from Nick Craig-Wood n...@craig-wood.com:
sqlite3.Warning isnt a subclass of exceptions.Warning
This causes this problem when trying to filter warnings
import sqlite3 as DB
from warnings import filterwarnings
filterwarnings(always, category=DB.Warning)
Traceback (most recent
Nick Craig-Wood n...@craig-wood.com added the comment:
I've attached a patch to fix the issue along with a revised test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9510
Nick Craig-Wood n...@craig-wood.com added the comment:
I re-worked the patch for python 3.x (py3k branch) - the other was for 2.x
(trunk)
Basically the same patch and fixes the issue according to my testing
--
Added file: http://bugs.python.org/file18386/sqlite3-warning-fix-py3k.patch
New submission from Nick Craig-Wood n...@craig-wood.com:
I just spend a while tracking down a bug in my code which turned out to be an
unexpected behaviour of hasattr.
Running this
class Test(object):
def __init__(self):
self.__private = Hello
def test(self):
print
- it is an excellent bit of software!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
reportlab... It can plot charts I
think, though last time I used it I plotted stuff by hand as I wanted
exact control over the layout.
I'm not sure of the dependencies though so may not be suitable for
your purposes.
http://www.reportlab.org/rl_toolkit.html
--
Nick Craig-Wood n...@craig-wood.com
of
settings with that name. This has the advantage that you can check
everything in.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
VT100 emulator, but I couldn't find it in a brief
search just now.
You'll find various others (like this one) if you search some more
http://svn.python.org/projects/python/branches/string_methods/Demo/cwilib/vt100.py
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
%r:%r % (len(line), line)
if __name__ == __main__:
import sys
main(sys.argv[1])
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
config import config
if config.debug:
# blah
This has the advantage that you can define some methods on your config
object (eg save).
I don't know whether this is best practice but it works for me!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http
/ functions in hotte.py
then use them like
import hotte
hotte.MyClass()
hotte.my_function()
See here for the relevant bit of the tutorial
http://docs.python.org/tutorial/modules.html
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org
(most recent call last):
File stdin, line 20, in module
File stdin, line 16, in lock_process
Exception: Too many instances of me running
You could do the same thing with lock files also very easily...
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http
can write FUSE (file systems in userspace) drivers in python I believe.
Not the same as running in ring0 but in most senses a kernel driver...
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
?
Invalid how? Self signed certificate? Domain mismatch? Expired certificate?
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
a correctly set up
self-signed certificate is fine for dev stuff. I'm certainly too
cheap to by real certificates for dev or internal stuff!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
possible boards using a combination
of back tracking and a genetic algorithm.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
but instead of producing an
object file, it produces a machine readable xml file describing the
source.
It is used by h2xml.py / xml2py.py to make ctypes header file
automatically.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo
, so if that is the problem you could use
NAME like '%cis20r%' -- not quite the same, but close!
and NAME_ like 'fatigue'
instead which might be quicker. Or not ;-)
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
, in particular
http://twistedmatrix.com/trac/wiki/DeferredGenerator
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
if it takes me an hour
each cycle ;-)
The program is about 700 lines of python (excluding comments).
Thanks
Nick
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
return p.d_name
def close(self):
Close the directory
if self.handle is not NULL:
closedir(self.handle)
self.handle = NULL
def __dealloc__(self):
self.close()
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
():
for repeat in range(10):
print time.time()
time.sleep(0.66)
if __name__ == __main__:
try:
time_out(3, test)
except TimeOut:
print timed out
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python
[2]
print e.dot(f)
Which prints
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
2
330.0
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
cleanup()
raise
except Exception:
continue
That is the backwards compatible way
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
is not an acceptable answer.)
You could compile it with Cython though. lxml took this route...
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
, pass
['su', '-', 'username', '-c', 'mycommand my_arg1 my_arg2']
There is some opportunity for quoting problems there, but it is easy!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
error messages when tracking down problems. A lot of people (like me)
will enjoy the puzzle of looking through your code and finding out
where it went wrong.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
to use dir() for that
purpose. It's not likely to change.
Good advice...
And as a double check
import sys
set(sys.__dict__.keys()) == set(dir(sys))
True
import os
set(os.__dict__.keys()) == set(dir(os))
True
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http
what it means I don't know!
2) time ff
time used = 2.19
real0m3.170s
user0m2.088s
sys 0m0.168s
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
works on Windows too IIRC.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
idea after
all.
Indeed!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
/ routers can bear if you send lots
of small messages. Switches / routers will start dumping packets if
you do that since. Some switches just crash in my experience too ;-)
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
f.bar
Which prints
sizeof(foo) = 6
0
123456789012345
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
whether the above works on windows!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Nick Craig-Wood n...@craig-wood.com wrote:
Jean-Paul Calderone exar...@divmod.com wrote:
On Mon, 15 Jun 2009 09:29:33 -0500, Nick Craig-Wood n...@craig-wood.com
wrote:
Hrvoje Niksic hnik...@xemacs.org wrote:
Nick Craig-Wood n...@craig-wood.com writes:
Here is a ctypes
if name not in (., ..):
yield name
closedir(dir_p)
if __name__ == __main__:
for name in listdir(.):
print name
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Hrvoje Niksic hnik...@xemacs.org wrote:
Nick Craig-Wood n...@craig-wood.com writes:
Here is a ctypes generator listdir for unix-like OSes.
ctypes code scares me with its duplication of the contents of system
headers. I understand its use as a proof of concept, or for hacks one
needs
Jean-Paul Calderone exar...@divmod.com wrote:
On Mon, 15 Jun 2009 09:29:33 -0500, Nick Craig-Wood n...@craig-wood.com
wrote:
Hrvoje Niksic hnik...@xemacs.org wrote:
Nick Craig-Wood n...@craig-wood.com writes:
Here is a ctypes generator listdir for unix-like OSes.
ctypes code
examples.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
having individual purposes are usually a sign that you should
be using a different data structure.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Stefan Behnel stefan...@behnel.de wrote:
Nick Craig-Wood wrote:
Luis M González wrote:
I am very excited by this project (as well as by pypy) and I read all
their plan, which looks quite practical and impressive.
But I must confess that I can't understand why LLVM is so great
1000 5551 3420 0.1 sausage
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
to do with the v8 strategy, because unladen
swallow will be a virtual machine, while v8 compiles everything to
machine code on the first run. But I still wonder what this mean and
how this is different.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http
numpy
doesn't notice.
Double checking like this
a,b,c,d,e,f,g,h,i=range(1,10)
a*e*i - a*f*h - b*d*i + b*f*g + c*d*h - c*e*g
0
So I guess it is a bug that numpy didn't throw
numpy.linalg.linalg.LinAlgError(Singular matrix)
Like it does normally
--
Nick Craig-Wood n...@craig-wood.com -- http
Gaudha sanal.vik...@gmail.com wrote:
Can anybody tell me what is meant by 'openhook' ?
http://docs.python.org/library/fileinput.html?highlight=openhook
Maybe ;-)
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
understand what it does, unlike the
regexp solution which requires a little bit of thought.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney ben+pyt...@benfinney.id.au wrote:
Emile van Sebille em...@fenx.com writes:
On 6/4/2009 3:19 PM Lawrence D'Oliveiro said...
In message slrnh2g9ei.2ea.n...@irishsea.home.craig-wood.com, Nick Craig-
Wood wrote:
You quit emacs with Ctrl-X Ctrl-C.
That's save-buffers
concerned is that it is more of a port of CPython to a new
architecture than a complete re-invention of python (like PyPy /
IronPython / jython) so stands a chance of being merged back into
CPython.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman
:
pygame.draw.circle(screen, foreground_colour, dot, radius, 1)
dots = [ (dot[0]+randrange(-1,2), dot[1]+randrange(-1,2)) for dot in
dots ]
pygame.display.flip()
if __name__ == __main__:
main()
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http
According to the man page smartctl also runs under windows/mac/solaris
etc
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
messed up, clicking on the error will put
the cursor in the right place in the code).
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
into the territory you
describe.
That said I've used C++ with ctypes loads of times, but I always wrap
the exported stuff in extern C { } blocks.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
that function types don't have enough
references to them when passed in as arguments to C functions? It
might slow it down microscopically but it would fix this problem.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
David Bolen db3l@gmail.com wrote:
Nick Craig-Wood n...@craig-wood.com writes:
ctypes could potentially note that function types don't have enough
references to them when passed in as arguments to C functions? It
might slow it down microscopically but it would fix this problem
!
$ jython2.5rc2/jython pmap.py
map
6.242000103
pmap
5.8881144
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
assume =
is the process handle integer ?)
Errr, not as far as I know.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Is more pythonic... You aren't relying on what came with particular
python versions which may not be true in jython/ironpython/etc.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
work, but you'll get something really cool at the
end of it!
here is how to use matplotlib on a pygame surface
http://www.pygame.org/wiki/MatplotlibPygame
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
yield out
g = Grouper(5, xrange(20))
print list(g)
g = Grouper(4, xrange(19))
print list(g)
Which produces
[(0, 1, 2, 3, 4), (5, 6, 7, 8, 9), (10, 11, 12, 13, 14), (15, 16, 17, 18, 19)]
[(0, 1, 2, 3), (4, 5, 6, 7), (8, 9, 10, 11), (12, 13, 14, 15), (16, 17, 18)]
--
Nick Craig-Wood n
something immediately after it is started,
use reactor.callLater() before calling reactor.run().
You can't mix and match programming styles with twisted - it is all
asynchronous callbacks or nothing in my experience! That takes a bit
of getting your head round at first.
--
Nick Craig-Wood n...@craig
++ implements the shims for the callbacks from
python - C++ (which are exported by ctypes).
P.S. I want to develop on Linux not Windows.
Should be just the same on both. Once you've made your setup.py (for
extending python) the build process will work on all supported
architectures.
--
Nick Craig-Wood n
sys.exit(1)
sys.stdout.write(%s%s % (args[0], weekday))
if not options.nonl:
print
if __name__ == __main__:
Main()
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
got that well formed directory structure it is very easy
to make it into a package (eg deb or rpm) so that idea is useful in
general for package managers, not just stow.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
of the
RETURN key. Emacs is my editor of choice, and I've never once come
across anything like this.
You probably haven't used MAC OS X then! I vnc to a mac and use emacs
and I just can't type a #. Ctrl-Q 43 Return is my best effort!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig
= RealDevice(/dev/ttyS1)
real
RealDevice('/dev/ttyS1')
real.getMeasurement()
0
real.setPressure(14)
real.getMeasurement()
14
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
.
If I couldn't fix it then I'd report it as a bug.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
no attribute '__unicode__'
unicode(str(L),utf-8)
u'[\xa9au]'
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
useful also!
You could do this by replacing your current __init__.py (which just
contains from _psutil import *) with _psutil.py
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
181 2007-10-18 14:01 -
drwxr-xr-x 2 ncw ncw 4096 2007-08-29 22:56 10_files
-rw-r--r-- 1 ncw ncw 124713 2007-08-29 22:56 10.html
[snip]
p.wait() # returns the error code
0
There was talk of removing the other methods from public use for 3.x.
Not sure of the conclusion.
--
Nick Craig
the
locals in those stack frames.
That will give some kind of answer.
I have no idea whether this will work - the keyboard of my phone is
too small to produce a proof ;-)
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano ste...@remove.this.cybersource.com.au wrote:
On Tue, 28 Apr 2009 14:30:02 -0500, Nick Craig-Wood wrote:
t123 tom.lu...@gmail.com wrote:
It's running on solaris 9. Here is some of the code. It's actually
at the beginning of the job. The files are ftp'd over
it anyway!
You create the submenu as a seperate menu then attach it to the
menuBar with the label.
Note there is a wxpython list also which you may get more help in!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
thorough
import errno
try:
os.rename(paths.xferin_dir+'/COMM.DAT',paths.xferin_dir+'/COMM.DAT'+'.0')
except OSError, e:
if e.errno != errno.ENOENT:
raise
The traceback should show the exact problem though.
--
Nick Craig-Wood n...@craig-wood.com -- http
to the correct line of code.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
time either.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
(several hundred thousand
instances!).
When doing these optimisations I ran a repeatable script and measured
the total memory usage using the OS tools (top in my case).
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Ole Streicher ole-usenet-s...@gmx.net wrote:
Hi Nick,
Nick Craig-Wood n...@craig-wood.com writes:
mmaps come out of your applications memory space, so out of that 3 GB
limit. You don't need that much RAM of course but it does use up
address space.
Hmm. So I have no chance to use
) the code you can be 100% sure that you didn't
break anything which is a wonderful feeling.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
://packages.debian.org/sid/python-htmlgen
But I think its original website is gone.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
):
Return all the matched () items.
return self.value.groups()
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
seconds
on my laptop, using about 19 MB total memory
You could easily enough put that into an sqlite table instead of a set().
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
of abstraction in your program will rise.
I've noticed some programmers think in big classes and some think in
small classes. Train yourself to do the other thing and your
programming will improve greatly!
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http
/#why-are-floating-point-calculations-so-inaccurate
If you want more precision use the built in decimal module or the
third party gmpy module.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Nick Craig-Wood n...@craig-wood.com added the comment:
Oops, my bad, I assumed the patch would by for py3k!
I applied it to trunk and tested it. It works very well - thank you for
fixing that :-)
--
___
Python tracker rep...@bugs.python.org
http
class actually takes less memory 38 Mbytes vs 53 Mbytes for
the list.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
Nick Craig-Wood n...@craig-wood.com added the comment:
I couldn't actually get this patch to apply to the py3k branch :-(
$ patch -p0 --dry-run issue_5131.patch
patching file Misc/NEWS
Hunk #1 FAILED at 2598.
1 out of 1 hunk FAILED -- saving rejects to file Misc/NEWS.rej
patching file Misc
doesn't change very quickly and emphasises backwards
compatibility, even for the jump to 3.x.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
by
anything, but I'd be interested to be proved wrong!
I tend to use
__author__ = Nick Craig-Wood n...@craig-wood.com
__version__ = $Revision: 5034 $
__date__ = $Date: 2009-02-03 16:50:01 + (Tue, 03 Feb 2009) $
__copyright__ = Copyright (c) 2008 Nick Craig-Wood
With __version__ and __date__ being
rc(x)
3
py x = ()
py rc(x)
954 # the empty tuple is shared
That reminds me, you can use the gc module to show all your objects
that are in use, which can help with memory leaks.
eg something like
http://code.activestate.com/recipes/457665/
--
Nick Craig-Wood n...@craig-wood.com
in the cross compiling
environment and see what happens!
However if you are running Nucleus with Linux and want to run python
in the Linux bit of it then I'd suggest to use the packages available
for the Linux side of it. (Eg if it is running debian then apt-get
install python).
--
Nick Craig
, then write it in cython instead!
Should you be putting a function body in a header file?
No
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
.
They plan to fold their work back into CPython when done too.
Sounds like a project to keep an eye on!
Now the question is will this make Vista run faster?
Nothing could do that ;-)
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo
works suprisingly often.
--
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 644 matches
Mail list logo