strange error whilst porting to 2.6

2009-01-23 Thread Robin Becker
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

Re: strange error whilst porting to 2.6

2009-01-23 Thread Robin Becker
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

Re: strange error whilst porting to 2.6

2009-01-24 Thread Robin Becker
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

Re: strange error whilst porting to 2.6

2009-01-26 Thread Robin Becker
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

Re: strange error whilst porting to 2.6

2009-01-26 Thread Robin Becker
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):

fastest way to detect a user type

2009-01-31 Thread Robin Becker
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

Re: fastest way to detect a user type

2009-02-01 Thread Robin Becker
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

x64 speed

2009-02-03 Thread Robin Becker
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

Re: x64 speed

2009-02-03 Thread 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

Re: x64 speed

2009-02-03 Thread Robin Becker
Tim Daneliuk wrote: .. Which vmware product? vmware server -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: x64 speed

2009-02-03 Thread Robin Becker
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

Re: x64 speed

2009-02-03 Thread Robin Becker
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

Re: x64 speed

2009-02-04 Thread Robin Becker
--- 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

Re: x64 speed

2009-02-05 Thread Robin Becker
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

Re: x64 speed

2009-02-05 Thread Robin Becker
alId=1420 http://communities.vmware.com/message/782173 -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to serve wsgi with multiple processes

2009-02-11 Thread Robin Becker
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

Re: best way to serve wsgi with multiple processes

2009-02-11 Thread Robin Becker
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

Re: best way to serve wsgi with multiple processes

2009-02-11 Thread Robin Becker
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

Re: best way to serve wsgi with multiple processes

2009-02-12 Thread Robin Becker
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

schizophrenic view of what is white space

2008-12-04 Thread Robin Becker
#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

Re: schizophrenic view of what is white space

2008-12-04 Thread Robin Becker
>>> 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

excluding non-data files from distutils package_data

2008-12-22 Thread Robin Becker
etc. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows SSH (remote execution of commands) - Python Automation

2008-12-29 Thread Robin Becker
ython behaviour. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: template strings for matching?

2008-10-09 Thread Robin Becker
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

Re: Best way to spawn process on back end computer

2008-10-16 Thread Robin Becker
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

OS 10.5 build 64 bits

2008-10-23 Thread Robin Becker
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

Re: OS 10.5 build 64 bits

2008-10-23 Thread Robin Becker
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

Re: OS 10.5 build 64 bits

2008-10-24 Thread Robin Becker
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

Re: Python 3.0 - is this true?

2008-11-10 Thread Robin Becker
lt; x for all x!=None. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 - is this true?

2008-11-10 Thread Robin Becker
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

Re: Python 3.0 - is this true?

2008-11-10 Thread Robin Becker
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

Re: Python 3.0 - is this true?

2008-11-11 Thread Robin Becker
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

Re: Python 3.0 - is this true?

2008-11-11 Thread Robin Becker
till doesn't explain why None should not be comparable to itself. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Null object pattern

2008-11-12 Thread Robin Becker
that everybody will implement different Null objects and lead to unwanted fragmentation. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

best gcc version for Python

2008-11-16 Thread Robin Becker
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

Re: pep 8 constants

2009-02-25 Thread Robin Becker
(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

Re: pep 8 constants

2009-02-25 Thread Robin Becker
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

Re: looking for template package

2009-03-04 Thread Robin Becker
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

Re: Tkinter - Multiple Tk() instances/mainloops in one process?

2009-03-25 Thread Robin Becker
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

compiler package vs parser

2009-04-16 Thread Robin Becker
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

Re: compiler package vs parser

2009-04-16 Thread Robin Becker
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

Re: compiler package vs parser

2009-04-16 Thread Robin Becker
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.

Re: compiler package vs parser

2009-04-16 Thread Robin Becker
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

Re: compiler package vs parser

2009-04-17 Thread Robin Becker
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

Re: compiler package vs parser

2009-04-20 Thread Robin Becker
tively indentation free which makes the tree harder to synthesize for the parser tree. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

use smtpd as a gmail proxy server

2009-04-22 Thread Robin Becker
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

Re: Using Python for programming algorithms

2008-05-19 Thread Robin Becker
27; of python's interpreter. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Report Lab Image Flowable Issue ..

2008-05-20 Thread Robin Becker
oblem perhaps you should start with some simple examples. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-18 Thread Robin Becker
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

Re: Good python equivalent to C goto

2008-08-18 Thread Robin Becker
; } 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

ReportLab 2.2 has been released

2008-09-11 Thread Robin Becker
code. And many bugfixes... -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: New-style Python icons

2006-03-26 Thread Robin Becker
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

Re: New-style Python icons

2006-03-27 Thread Robin Becker
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

Re: OT: job offering in Milan

2006-04-07 Thread Robin Becker
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://

Re: Graph library for Python

2009-12-08 Thread Robin Becker
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

eiger replacement?

2009-12-11 Thread Robin Becker
?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

Re: eiger replacement?

2009-12-14 Thread Robin Becker
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

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Robin Becker
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

decimal threading cost?

2010-01-22 Thread Robin Becker
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

Re: decimal threading cost?

2010-01-22 Thread Robin Becker
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

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-25 Thread Robin Becker
tch?v=FxDOlhysFcM -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

fastcgi Access Checking

2009-10-22 Thread Robin Becker
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

annotate a traceback

2009-10-29 Thread Robin Becker
info=%r' % info,) raise is this a reasonable approach? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

restricted mode???

2009-11-04 Thread Robin Becker
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

Re: Psyco on 64-bit machines

2009-11-16 Thread Robin Becker
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

Re: Language mavens: Is there a programming with "if then else ENDIF" syntax?

2009-11-16 Thread Robin Becker
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

Re: Language mavens: Is there a programming with "if then else ENDIF" syntax?

2009-11-16 Thread Robin Becker
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

Re: python simply not scaleable enough for google?

2009-11-20 Thread Robin Becker
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

Re: python simply not scaleable enough for google?

2009-11-23 Thread Robin Becker
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

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-11 Thread Robin Becker
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

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
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

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
.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

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
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

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-15 Thread Robin Becker
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

bug in bdist_wininst cross compile?

2010-03-17 Thread Robin Becker
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

Re: bug in bdist_wininst cross compile?

2010-03-18 Thread Robin Becker
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

Re: [OT] Python like lanugages

2011-01-17 Thread Robin Becker
tr2008003_experimenting.pdf it was mentioned in some recent clp thread. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

LDFLAGS problem

2011-02-21 Thread Robin Becker
/_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

Re: LDFLAGS problem

2011-02-22 Thread Robin Becker
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

Re: LDFLAGS problem

2011-02-22 Thread Robin Becker
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

Re: Download Visual Studio Express 2008 now

2010-04-16 Thread Robin Becker
ll content in it. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

python 2.6 py2exe wx app fails

2010-04-22 Thread Robin Becker
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

Re: python 2.6 py2exe wx app fails

2010-04-23 Thread Robin Becker
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

Re: Python + vim + spaces vs tab

2010-06-08 Thread Robin Becker
#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

Re: Python + vim + spaces vs tab

2010-06-09 Thread Robin Becker
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

round issue

2010-07-12 Thread Robin Becker
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

Re: round issue

2010-07-13 Thread Robin Becker
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

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-26 Thread Robin Becker
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

Re: Checking that 2 pdf are identical (md5 a solution?)

2010-07-27 Thread Robin Becker
.. 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

Re: Measuring Fractal Dimension ?

2009-06-25 Thread Robin Becker
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

Re: Measuring Fractal Dimension ?

2009-06-25 Thread Robin Becker
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

Re: Finding all cycles within an undirected graph

2009-07-22 Thread Robin Becker
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

Re: Is it possible to produce spider plots?

2009-08-05 Thread Robin Becker
, .. reportlab has a spider chart in reportlab/graphics/charts/spider.py -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

ubuntu dist-packages

2009-08-26 Thread Robin Becker
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

Re: ubuntu dist-packages

2009-08-26 Thread Robin Becker
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

Re: ubuntu dist-packages

2009-08-27 Thread Robin Becker
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

Re: list as an instance attribute

2009-09-14 Thread Robin Becker
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

Re: An assessment of the Unicode standard

2009-09-14 Thread Robin Becker
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

Re: An assessment of the Unicode standard

2009-09-14 Thread Robin Becker
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

Re: Looking for a pure Python chart drawing module

2009-09-16 Thread Robin Becker
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

<    2   3   4   5   6   7   8   >