locate the problem if no traceback is shown?
Googling seems to indicate that __subclasscheck__ is an abstract base
class method, but clearly in 2.5 I cannot mess with abc stuff.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Benjamin Peterson wrote:
Robin Becker NOSPAMreportlab.com> writes:
python 2.6 indicates this error whilst running a script that works fine
under Python 2.5.
Exception RuntimeError: 'maximum recursion depth exceeded in
__subclasscheck__' in ignored
I suppose this must be re
Steve Holden wrote:
Benjamin Peterson wrote:
Robin Becker NOSPAMreportlab.com> writes:
Well that's not really acceptable as a solution is it? :)
This doesn't happen in Python 3.0,
so you could port to that. :)
my initial attempts in this direction were even le
as?
I have attempted to abstract the problem, but so far I haven't found the vital
bits.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
I found that this error
Exception RuntimeError: 'maximum recursion depth exceeded in
__subclasscheck__' in ignored
occurs when attempting to copy (copy.copy(inst)) an instance of a class
that looks like this
class LazyParagraph(_LazyMixin,TTParagraph):
c3(ob):
if hasattr(ob,'__X__'):
pass
elif type(ob) in (float, int):
pass
else:
pass
##
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
slowed the whole test suite by 0.5%. Luckily func 3
style improved things by about 0.3% so that's what I'm going for.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
at its design sizes or perhaps the compiler or could it be the
vmware system caching all writes etc etc? For the red hat x64 build the only
special configuration was to use ucs2
I know that the VT bit stuff has made virtualization much better, but this seems
a bit weird.
--
Robin Becker
Diez B. Roggisch wrote:
Robin Becker schrieb:
Whilst doing some portability testing with reportlab I noticed a
strange speedup for our unittest suite with python2.5
host win32 xp3 unittest time=42.2 seconds
vmware RHEL x64 unittest time=30.9 seconds
so it looks like the vmware emulated
Tim Daneliuk wrote:
..
Which vmware product?
vmware server
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
x27;t show a lot of
extra stuff going on with the vm compared to just running on the host.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
Robin Becker writes:
so it looks like the vmware emulated system is much faster. Is it the
x64 working faster at its design sizes or perhaps the compiler or
could it be the vmware system caching all writes etc etc? For the red
hat x64 build the only special configuration was
---
Ran 193 tests in 27.841s
OK
real0m28.150s
user0m26.606s
sys 0m0.917s
[rpt...@localhost tests]$
magical how the total python time is less than the real time.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Python long on 32-bit Windows; long operations are much
slower than int operations.
..
I don't think we're doing a lot of bignum arithmetic, some masking operations
etc etc.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
alId=1420
http://communities.vmware.com/message/782173
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ce since there are no guarantees for how long an http
connection will hold up (because of proxies etc etc) we decided to work around
this problem. Basically long running jobs go into a task queue on the server and
the response is used to reconnect to the long running job peridically for status
qu
off to a forked worker. I cannot recall exactly, but
I believe that apache mod_fastcgi does the right thing when it comes to
internally declared fastcgi handlers. For apache at least I think the threading
issues are handled properly.
I think the preforkserver.py code handles all the threading issu
Robin wrote:
On Feb 11, 3:46 pm, Robin Becker wrote:
well the flup server for fast cgi supports forking if the server is declared as
an external process in apache. Then the top level of the flup process handles
each request and passes it off to a forked worker. I cannot recall exactly, but
I
worry about people abandoning the job since the results are cached and may be
of use to others (typical case produce brochure containing details of all
resources in a country or large city). To avoid overload the xmlrpc server is
only allowed to run 3 active threads from its queue.
--
Robin B
#x27;a', u'b']
>>> u'a\xa0b'.split()
[u'a', u'b']
>>> re.compile(r'\s').search(u'a b')
<_sre.SRE_Match object at 0x00DBB2C0>
>>> re.compile(r'\s').search(u'a\xa0b')
>>>
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
>>>
Jean-Paul
...
so the default behaviour differs for unicode and re working on unicode. I
suppose that won't be true in Python 3.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
etc.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ython behaviour.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
27; % x
'1 3'
>>> x._record()
set(['a', 'c'])
>>>
a slight modification would allow your template match function to work even when
some keys were missing in the dict. That would allow you to see which lookups
failed as well.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
onally by providing a suitable protocol eg XMLRPC you can test
the jobserver without going through the web.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
gic I can try to make the OS 10.5 build as 64 bits? I don't see
any options to do that in the configure script.
Also is it reasonable to expect MySQLdb to operate in both camps ie 32 bit on
the python side and 64 bit on the mysql side. We didn't see any obvious errors
with the 2.6 bui
x27;t know how to get the configure script to make 64 bits
only. In the past I have done the configure and then messed with the
resulting Makefiles.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
contains interesting stuff; no doubt I'll
burn my fingers with a few misguided fudges.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
lt; x for all
x!=None.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
t('a==None --> %s'%(a==None))
print('None %s'%(Nonea --> %s'%(None>a))
print('cmp(a,None) --> %s'%(cmp(a,None)))
L=[b,a]
L.sort()
print('L --> %s'%(L))
L=[b,a,None]
L.sort()
print('L --> %s'%(L))
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
Steve Holden wrote:
.intain).
Of course, using SQL against a traditional RDBMS will not return rows
with NULL values for salary in a query such as
SELECT name, address WHERE salary < 1
precisely *because* NULL (absence of value) does not compare with
case for None should be readded to Python 3.0.
I agree here, it seems strange that cmp(None,None) is exceptional. Clearly the
is relation applies to None so does ==. Do we not have a sorting order for sets
with one element? My maths is now shot, but I seem to remember there are
automatic orde
till doesn't explain why None should not be comparable to itself.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
that everybody will implement different Null
objects and lead to unwanted fragmentation.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
201ms -1.2% 199ms 202ms -1.2%
UnicodeSlicing: 156ms 233ms -33.2% 166ms 244ms -32.2%
---
Totals: 9601ms 10240ms -6.2% 9685ms 10363ms -6.5%
--
Robin
(most recent call last):
File "", line 1, in
AttributeError: can't set attribute
>>>
so I guess if you write your own module class and then use a special importer
you can create module like objects with read only attributes.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
Robin Becker a écrit :
well this sort of awful hackery will allow you to put read only
constants on an existing module
(snip example code)
so I guess if you write your own module class and then use a special
importer you can create module like objects with read
f template packages, but most seem aimed at web use.
This is just text processing, not part of any web stuff.
Any suggestions?
you could try preppy
(http://www.reportlab.org/daily/preppy-0.8-daily-unix.tar.gz) which is just text
and fairly simple.
--
Robin Becker
--
http://mail.python.org/mailma
http://wiki.tcl.tk/1527 which essentially says there's only one
event loop although there is tcl threading see
http://www.tcl.tk/doc/howto/thread_model.html, but I don't know if that allows
multiple event loops.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
l i,j), but p.py runs OK.
I assume that my attempt to compile the tree is broken (is missing some special
traverse etc) otherwise the code would end up the same (except for line
numbering which I have ignored).
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Aahz wrote:
In article ,
Robin Becker wrote:
Is the compiler package actually supposed to be equivalent to the
parser module?
Before I poke my nose into this, what versions of Python have you tried?
I'm using 2.6.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
Aahz wrote:
In article ,
Robin Becker wrote:
Is the compiler package actually supposed to be equivalent to the
parser module?
Before I poke my nose into this, what versions of Python have you tried?
I'm using 2.6.
I just checked and it's the same in 2.5.
Kay Schluehr wrote:
On 16 Apr., 11:41, Robin Becker wrote:
Is the compiler package actually supposed to be equivalent to the parser module?
No. The parser module creates a concrete parse tree ( CST ) whereas
the compiler package transforms this CST into an AST for subsequent
computations
Kay Schluehr wrote:
On 16 Apr., 11:41, Robin Becker wrote:
Is the compiler package actually supposed to be equivalent to the parser module?
No. The parser module creates a concrete parse tree ( CST ) whereas
the compiler package transforms this CST into an AST for subsequent
computations
tively indentation
free which makes the tree harder to synthesize for the parser tree.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
l.
Is there an easy way forward with smtpd?
Looking in the PureProxy code it seems that I need to mess with the _deliver
method to use the above approach, but there isn't any convenient hook.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
27; of python's
interpreter.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
oblem perhaps you should start with some simple
examples.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
a worse(more
complex) tool for many simple tasks. Using a complex writing with many glyphs
costs effort no matter how you do it, but I just use ascii :( and it's still an
effort.
I find the differences in C/OS less hard to understand than why I need
bytes(x,'encoding') everywhere
;
}
such a pity that the goto module
http://mail.python.org/pipermail/python-announce-list/2004-April/002982.html
never got into core python :)
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
code.
And many bugfixes...
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
describe the existing Python icons: "can
you see a green snake on your desktop?". How does one describe these new
icons?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Steven Bethard wrote:
> Robin Becker wrote:
>> Steven Bethard wrote:
>> ...
>
> Can you see an icon with a blue and yellow plus on your desktop? ;)
>
> STeVe
no
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ed to do portfolio analytics for Bita Plus and SBC; minimax risk
curves were just my bag etc etc :).
My math skills are now so degraded I have difficulty reading about conic
programming using Nesterov's barrier functions etc etc.
Oh well back to web scraping :(
--
Robin Becker
--
http://
stra's shortest path there doesn't seem
to be complete agreement on how to implement them; for the details of how
nodes/edges/paths should be stored and efficiently manipulated there is huge
variety.
Wait seems like a good policy.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
?products_id=18618&source=froogle.
real memory = 1073168384 (1023 MB)
The machine is Dell PowerEdge 400SC. Memory will cost about £78 for a 2Gb
upgrade kit.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
On 12/12/2009 05:38, Tim Roberts wrote:
Steven D'Aprano wrote:
On Fri, 11 Dec 2009 17:45:24 +0000, Robin Becker wrote:
The current hardware
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2394.01-MHz 686-class CPU)
[...]
What does this have to do with Python?
I'm guessing Robin ha
possibly happen?
Cheers,
John
another thread can remove the key prior to the has_key call; or perhaps edges
isn't a real dictionary?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Does using the decimal module incur a penalty because it imports threading or do
I have to actually start a thread?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
On 22/01/2010 11:50, Mark Dickinson wrote:
On Jan 22, 11:11 am, Robin Becker wrote:
Does using the decimal module incur a penalty because it imports threading or do
I have to actually start a thread?
There is at least one threading-related performance penalty that
doesn't involve the
tch?v=FxDOlhysFcM
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
tion
done, but both involve extra fcgi scripts. One imports django and does the
checking directly, the second uses urllib2 to forward the validation request
using the original django http application.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
info=%r' % info,)
raise
is this a reasonable approach?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
presumably open was not
available there.
Googling the error indicates something to do with restricted
environments/mod_python+threads.
I thought that restricted mode died ages ago.
Any ideas what could be causing this?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
tried a few things with it. It mostly works, but it isn't actually faster
at normal programs. I've been told their target is for long running processes
where JIT and similar can speed up the inner loops etc etc. Certainly makes
sense for google apps in python so perhaps that's t
e this with "fi" as endif eg
~:
$ if true; then
> echo true
> elif false; then
> echo false
> else
> echo hostile logic
> fi
true
~:
$
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
...
modern sh seems to use this with "fi" as endif eg
~:
$ if true; then
> echo true
> elif false; then
> echo false
> else
> echo hostile logic
> fi
true
~:
$
I meant to say that since sh uses this construct it cannot be too bad as
were real threads.
Presumably that means they could potentially run in parallel on the 10 cpu
machines of the future.
I'm not so clear on whether the threadless tasklets will run on separate cpus.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
sturlamolden wrote:
On 20 Nov, 11:12, Robin Becker wrote:
Presumably that means they could potentially run in parallel on the 10 cpu
machines of the future.
I'm not so clear on whether the threadless tasklets will run on separate cpus.
You can make a user-space scheduler and
s the distutils package desperately looking for a
suitable compiler (and not finding it).
Perhaps some expert on the python list knows which versions of VS support 64bit;
I do have VS 2005/2008 etc, but I'll probably need to set up a 64bit machine to
see if they will install on a 64bit
Following the information from MvL I will try and get the 2.6 pyds built for
amd64, I see that there's a cross platform compile technique for distutils, but
am not sure if it applies to bdist_winexe etc etc. I'll have a go at this next week.
--
Robin Becker
--
http://mail.python.o
.pyd : fatal error LNK1120: 69 unresolved
externals
I assume I can get those from a working Python amd64 install and stuff on one of
the compiler paths somehow.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
On 12/03/2010 11:40, Robin Becker wrote:
I assume I can get those from a working Python amd64 install and stuff
on one of the compiler paths somehow.
Not sure if this is a bug; I dug around a bit and find that because of the cross
compilation distutils is supposed to add an extra
s should change to look it up there.
...
Just checked and all the pyd's seem only to export the xxx_init functions
(sometimes there are two in the pyd) so the .libs do seem a bit redundant.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
at_name
! # next the command(s) will be initialized using that name
bdist_base = self.get_finalized_command('bdist').bdist_base
self.bdist_dir = os.path.join(bdist_base, 'wininst')
if not self.target_version:
which forces
On 17/03/2010 21:37, Gabriel Genellina wrote:
En Wed, 17 Mar 2010 11:38:16 -0300, Robin Becker
escribió:
has anyone had any success with cross compilation and bdist_wininst; I
have modified build_ext very slightly to fix a small bug in cross
compilation related to library order.
Please post
tr2008003_experimenting.pdf
it was mentioned in some recent clp thread.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
/_mysql.so
gcc: ${LDFLAGS}: No such file or directory
error: command 'gcc' failed with exit status 1
where should I be looking to fix this problem?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
thing that jumps
out at me is that you say you're building on 8.0 but the build output you gave
us mentions 7.0. That doesn't sound right at all.
Are you using ports?
duh, I was actually ahead of myself and the machine is indeed a 7.0 system
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
well that fixes things, thanks a lot. I did google for this error message, but
the searches were full of OS X related problems of a similar nature.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ll content in it.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
cure exe requirement with manifests or
something which varies depending on the base msvc library. Any help much
appreciated.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
On 22/04/2010 13:56, Robin Becker wrote:
I'm trying to move a wxPython application forward to 2.6, but although
the app runs fine in 2.6 when run directly when I build the app into an
exe using py2exe
I get this popup message
"application failed to initialize properly (0xc142)&qu
#x27;]retab!"
let &l:ma = s:ma_save
endif
unlet b:tabs_expanded
endfun
let loaded_python_tabs = 1
the idea is to switch between using tabs and spaces depending on the original
source. If the input is all spaces we
ormat:\ %{&ff};\ %{Statusline_expandtab()}\ [%c,%l]
function! Statusline_expandtab()
..
I'm not exactly an expert at vim programming either :(
nice idea to show the mode in the status.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
for -9.8 & -9.9 differ in distance from the true 10**-n values eg
>>> -9.9
-9.9004
>>> -9.8
-9.8007
What value should round(-9.85,1) return? Is the result explainable in python (ie
without resort to the internal FP representations etc etc)?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
if so.]
yes thanks I saw that, but no problem about the dup. I suspect we might end up
using some kind of fixed point.
Anyhow does anyone have a good algorithm for ensuring rounded percentages do add
up to 100%? :) How about grouped percentages ie ensure the group sums and the
groups display cor
n Samograd
I use VCdControlTool.exe which is some kind of M$ utility, but perhaps that
doesn't work for everyone.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
..
if you have any more reportlab related queries you can also get free advice on
the reportlab mailing list at
http://two.pairlist.net/mailman/listinfo/reportlab-users
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
see. Because such
systems are tractable doesn't make them natural or essential or applicable in a
generic sense.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
systems with non-linearity and/or discreteness. I seem to
recall that was about the time that chaotic behaviours were starting to appear
in the control literature and they certainly depend on non-linearity.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
eally satisfied ), in
addition to good algorithm for solving this issue.
this one has been updated recently
http://code.google.com/p/python-graph/
also this page has many links http://wiki.python.org/moin/PythonGraphApi
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
,
..
reportlab has a spider chart in reportlab/graphics/charts/spider.py
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
kages.
What is the relation between dist-packages/site-packages if any? Is this just a
name change or is there some other problem being addressed?
For developers is it best just to create one's own private installations from
the original tarballs?
--
Robin Becker
--
http://mail.python.o
so where is the official place for user installed stuff on ubuntu/debian ie will
there be dist-packages and site-packages.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
packager is going wrong will
have yet another detail to remember. In addition, as any one who has done such
trivial changes will already know, they forgot to do it globally eg my 0.4.1.0
version of the "Debian Python Policy" document explicitly mentions site-packages.
--
Robin Beck
anguage, but we have
capitals encouraged for user class names and for some common values eg None,
True, False these are required.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
y can encode or convey. Our
mathematics is heavily biassed towards continuous differential systems and as a
result we end up with many physical theories that have smooth equilibrium
descriptions, we may literally be unable to get at other theories of the
physical world because our languages fall s
ru...@yahoo.com wrote:
On Sep 14, 6:06 am, Christopher Culver
wrote:
Robin Becker writes:
well allegedly, "the medium is the message" so we also need to take
account of language in addition to the meaning of communications. I
don't believe all languages are equivalent in th
crashes opening up various dialogs. Googling eventually traced these to Blt.
Hacking the PMW code to make PMW run without BLT was fairly easy and did cure
the problem.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
601 - 700 of 731 matches
Mail list logo