[issue34823] libffi detection doesn’t work in my setup

2018-12-25 Thread Daniel Fetchinson
Daniel Fetchinson added the comment: It seems there is a way to fix this: https://mail.python.org/pipermail/python-list/2018-December/738568.html LDFLAGS=`pkg-config --libs-only-L libffi` ./configure Would be nice to document this or make the build system find the libraries and headers

Re: building 3.7.1 from source, _ctypes and libffi troubles

2018-12-25 Thread Fetchinson . via Python-list
>> And as far as I know pkg-config is used by python's configure script >> so everything should be fine. I also set >> LD_LIBRARY_PATH=/home/fetch/opt/lib:/home/fetch/opt/lib64 and also >> C_INCLUDE_PATH=/home/fetch/opt/include > > I looked into this a little. I found that setting C_INCLUDE_PATH

[issue34823] libffi detection doesn’t work in my setup

2018-12-22 Thread Daniel Fetchinson
Daniel Fetchinson added the comment: I have the exact same issue, trying to compile 3.7.1 with a custom libffi location. Note that I must build libffi from source and can't install binaries provided by my distro, I believe this is the origin of the problem. Probably the python build system

[issue34823] libffi detection doesn’t work in my setup

2018-12-22 Thread Daniel Fetchinson
Daniel Fetchinson added the comment: It would be really great if this could be sorted out because at the moment this bug prevents me from using numpy/scipy with python 3.7.1 (they need _ctypes). -- __ Python tracker <ht

Re: building 3.7.1 from source, _ctypes and libffi troubles

2018-12-20 Thread Fetchinson . via Python-list
On 12/20/18, Fetchinson . wrote: > Hi all, I'm trying to build 3.7.1 from source and having trouble with > libffi and _ctypes. I'm on linux and have installed libffi also from > source to a custom location: > > $HOME/opt/lib64/libffi.so.6.0.4 > $HOME/opt/lib64/libffi.a > $HOM

building 3.7.1 from source, _ctypes and libffi troubles

2018-12-20 Thread Fetchinson . via Python-list
Hi all, I'm trying to build 3.7.1 from source and having trouble with libffi and _ctypes. I'm on linux and have installed libffi also from source to a custom location: $HOME/opt/lib64/libffi.so.6.0.4 $HOME/opt/lib64/libffi.a $HOME/opt/lib64/libffi.la $HOME/opt/lib64/libffi.so.6

Re: So apparently I've been banned from this list

2018-10-01 Thread Fetchinson . via Python-list
On 10/1/18, Roel Schroeven wrote: > jkn schreef op 1/10/2018 om 20:25: >> On Monday, October 1, 2018 at 6:57:30 PM UTC+1, Ethan Furman wrote: >>> On 09/30/2018 09:30 AM, Steven D'Aprano wrote: >>> Notwithstanding Ethan's comment about having posted the suspension notice on the

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans wrote: > On 2018-09-24 16:30, Fetchinson . via Python-list wrote: >> [fetch@fetch]$ grep LIBFFI_INCLUDE Makefile >> LIBFFI_INCLUDEDIR= /opt/custom/lib/libffi-3.2.1/include >> >> So I'd say everything should work but it doesn't, I reran .

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans wrote: > On 2018-09-24 14:14, Fetchinson . via Python-list wrote: >>>> I'm trying to compile python 3.7.0 from source with a custom libffi >>>> path and the compiler/linker doesn't seem to pick up the right >>>> version. The sys

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
>> I'm trying to compile python 3.7.0 from source with a custom libffi >> path and the compiler/linker doesn't seem to pick up the right >> version. The system libffi doesn't have the development files so I've >> installed the latest libffi (also from source) to /opt/custom but >> still I get >>

compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
I'm trying to compile python 3.7.0 from source with a custom libffi path and the compiler/linker doesn't seem to pick up the right version. The system libffi doesn't have the development files so I've installed the latest libffi (also from source) to /opt/custom but still I get INFO: Could not

Re: How to make python pick up my new-and-shiny openssl shared object

2018-08-08 Thread Fetchinson . via Python-list
On 8/8/18, Christian Heimes wrote: > On 2018-08-08 00:07, Fetchinson . via Python-list wrote: >> The highest version of openssl available on my system is 1.0.0 which >> is not good enough for pip these days (or github for that matter). So >> I've installed 1.1.0 to a custom

How to make python pick up my new-and-shiny openssl shared object

2018-08-07 Thread Fetchinson . via Python-list
The highest version of openssl available on my system is 1.0.0 which is not good enough for pip these days (or github for that matter). So I've installed 1.1.0 to a custom location /home/fetch/opt. But if I do import ssl ssl.OPENSSL_VERSION it still shows me that it is using the system default

Re: why does memory consumption keep growing?

2017-10-05 Thread Fetchinson . via Python-list
On 10/5/17, Chris Angelico <ros...@gmail.com> wrote: > On Fri, Oct 6, 2017 at 8:06 AM, Fetchinson . via Python-list > <python-list@python.org> wrote: >> Hi folks, >> >> I have a rather simple program which cycles through a bunch of files, >> d

why does memory consumption keep growing?

2017-10-05 Thread Fetchinson . via Python-list
Hi folks, I have a rather simple program which cycles through a bunch of files, does some operation on them, and then quits. There are 500 files involved and each operation takes about 5-10 MB of memory. As you'll see I tried to make every attempt at removing everything at the end of each cycle

Re: web facing static text db

2016-04-30 Thread Fetchinson . via Python-list
On 4/30/16, Gordon Levi <gordon@address.invalid> wrote: > "Fetchinson ." <fetchin...@googlemail.com> wrote: > >>Hi folks, >> >>I have a very specific set of requirements for a task and was >>wondering if anyone had good suggestions for the b

web facing static text db

2016-04-29 Thread Fetchinson . via Python-list
Hi folks, I have a very specific set of requirements for a task and was wondering if anyone had good suggestions for the best set of tools: * store text documents (about 10 pages) * the data set is static (i.e. only lookups are performed, no delete, no edit, no addition) * only one operation

smart scheduling for webapp tester

2015-05-12 Thread Fetchinson .
I'm looking into a robust solution for web application testing. While selenium is great for the actual testing, I'm thinking of a scheduler as the final piece in the pipeline. Let's say I have 4 websites that I need to test periodically, A, B, C, D. I'd like to be able to define things like run

Re: smart scheduling for webapp tester

2015-05-12 Thread Fetchinson .
On 5/12/15, Chris Angelico ros...@gmail.com wrote: On Tue, May 12, 2015 at 6:31 AM, Fetchinson . fetchin...@googlemail.com wrote: I'm looking into a robust solution for web application testing. While selenium is great for the actual testing, I'm thinking of a scheduler as the final piece

Re: Great Math Mystery

2015-04-17 Thread Fetchinson .
In an altercation with the police, complying with their orders greatly increases your chances of survival. Ah, the definition of a police state: where ordinary people, whether breaking the law or not, are forced by fear of death to obey the police at all times, whether the police are acting

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Fetchinson .
On 3/15/15, Mark Lawrence breamore...@yahoo.co.uk wrote: On 15/03/2015 19:05, John Nagle wrote: On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: John Nagle na...@animats.com: I'm approaching the end of converting a large system from Python 2 to Python 3. Here's why you don't want to do this.

python on mobile mailing list

2015-01-28 Thread Fetchinson .
Hi all, the mobile-sig mailing list is alive: https://mail.python.org/pipermail/mobile-sig/2015-January/thread.html If you are interested in python on smart phones that's the place to go! Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown --

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-24 Thread Fetchinson .
On 1/24/15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Fetchinson . wrote: On 1/23/15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: [...] Cobra is especially close to Python-like syntax, and supports unit tests as well: def sqroot(i as int) as float

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-23 Thread Fetchinson .
On 1/23/15, Chris Angelico ros...@gmail.com wrote: On Sat, Jan 24, 2015 at 12:23 AM, Fetchinson . fetchin...@googlemail.com wrote: In any case, I'm pretty sure it was said before, but I can't really find it anywhere, can someone tell me what the rationale is for *function signature* type

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-23 Thread Fetchinson .
On 1/23/15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Terry Reedy wrote: On 1/22/2015 10:59 PM, Chris Angelico wrote: On Fri, Jan 23, 2015 at 2:22 PM, Terry Reedy tjre...@udel.edu wrote: This idea is so brilliant that it is already an option in mypy and is part of the new

Re: Future of python on android

2014-12-26 Thread Fetchinson .
On 12/26/14, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Fetchinson . wrote: Guido is still working at google, right? No. Google is still using Python for lots of things, but Guido is now working for Dropbox. https://www.python.org/~guido/ Thanks, I missed the transition

Re: Future of python on android

2014-12-26 Thread Fetchinson .
On 12/26/14, iMath redstone-c...@163.com wrote: 在 2014年12月25日星期四UTC+8下午11时31分24秒,Fetchinson .写道: Hi all, I was using sl4a for quite some time on android and it basically worked very well although some features are missing. It looks like sl4a is dead, although I could be wrong. Does anyone

Re: If One Line

2014-12-25 Thread Fetchinson .
Is it possible in python: if ((x = a(b,c)) == 'TRUE'): print x Nope. Assignment is not allowed in a conditional. Cheers, Daniel Thanks. -- https://mail.python.org/mailman/listinfo/python-list -- Psss, psss, put it down! - http://www.cafepress.com/putitdown --

Future of python on android

2014-12-25 Thread Fetchinson .
Hi all, I was using sl4a for quite some time on android and it basically worked very well although some features are missing. It looks like sl4a is dead, although I could be wrong. Does anyone knowledgeable have any further info on the future of sl4a? For instance it doesn't work with android 5

Re: Future of python on android

2014-12-25 Thread Fetchinson .
! Hopefully it will be around for a while and won't evaporate like sl4a :) Cheers, Daniel According to wikipedia http://en.wikipedia.org/wiki/Guido_van_Rossum Guido works for dropbox. Billy On Thu, Dec 25, 2014 at 9:31 AM, Fetchinson . fetchin...@googlemail.com wrote: Hi all, I was using sl4a

Re: Do you like the current design of python.org?

2014-12-09 Thread Fetchinson .
Lest it seem like I am agreeing with these complaints, I'd like to say: Either python goes this way or the way of Fortran and Cobol. You mean if Cobol had a shiny but disfunctional website we'd be using that instead of Python? Why would he mean that? If !A implies !B, it does *not* follow

Re: Do you like the current design of python.org?

2014-12-09 Thread Fetchinson .
Many links are broken. When you click on the broken link, it says that it has been reported and will be fixed, but weeks later it remains broken, e.g.: https://www.python.org/doc/essays/metaclasses/Eiffel.py What makes you think that this page is ought to return actual content? The

Re: Do you like the current design of python.org?

2014-12-09 Thread Fetchinson .
On 12/9/14, Ethan Furman et...@stoneleaf.us wrote: On 12/05/2014 03:30 AM, Fetchinson responded to Steven D'Aprano's rant of: Many links are broken. When you click on the broken link, it says that it has been reported and will be fixed, but weeks later it remains broken, e.g.: https

Re: Do you like the current design of python.org?

2014-12-05 Thread Fetchinson .
Did you ever hit the Socialize button? No, but it doesn't bother me. Are you eager to see the latest tweets when you are reading a PEP? No, but it doesn't bother me either. You can easily block twitter related things by a number of ways, firewalls, /etc/hosts, etc. Do you run away

Iterate over text file, discarding some lines via context manager

2014-11-28 Thread fetchinson .
Hi all, I have a feeling that I should solve this by a context manager but since I've never used them I'm not sure what the optimal (in the python sense) solution is. So basically what I do all the time is this: for line in open( 'myfile' ): if not line: # discard empty lines

Re: Iterate over text file, discarding some lines via context manager

2014-11-28 Thread fetchinson .
On 11/28/14, Dave Angel da...@davea.name wrote: On 11/28/2014 10:04 AM, fetchinson . wrote: Hi all, I have a feeling that I should solve this by a context manager but since I've never used them I'm not sure what the optimal (in the python sense) solution is. So basically what I do all

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-27 Thread Daniel Fetchinson
I'm new to python, got 10-20 years perl and C experience, all gained on unix alike machines hacking happily in vi, and later on in vim. Now it's python, and currently mainly on my kubuntu desktop. Welcome to the club! Do I really need a real IDE, as the windows guys around me say I do, or

pygnomevfs get_local_path_from_uri replacement

2012-12-22 Thread Daniel Fetchinson
Hi folks, I realize this is slightly off topic and maybe belongs to a gnome email list but it's nevertheless python: I use an old python program that was written for gnome 2 and gtk 2 and uses the function get_local_path_from_uri. More specifically it uses gnomevfs.get_local_path_from_uri. Now

Re: pygnomevfs get_local_path_from_uri replacement

2012-12-22 Thread Daniel Fetchinson
Hi folks, I realize this is slightly off topic and maybe belongs to a gnome email list but it's nevertheless python: I use an old python program that was written for gnome 2 and gtk 2 and uses the function get_local_path_from_uri. More specifically it uses gnomevfs.get_local_path_from_uri.

unpacking first few items of iterable

2012-12-13 Thread Daniel Fetchinson
Hi folks, I swear I used to know this but can't find it anywhere: What's the standard idiom for unpacking the first few items of an iterable whose total length is unknown? Something like a, b, c, _ = myiterable where _ could eat up a variable number of items, in case I'm only interested in the

Re: unpacking first few items of iterable

2012-12-13 Thread Daniel Fetchinson
Hi folks, I swear I used to know this but can't find it anywhere: What's the standard idiom for unpacking the first few items of an iterable whose total length is unknown? Something like a, b, c, _ = myiterable where _ could eat up a variable number of items, in case I'm only interested in the

Re: unpacking first few items of iterable

2012-12-13 Thread Daniel Fetchinson
Hi folks, I swear I used to know this but can't find it anywhere: What's the standard idiom for unpacking the first few items of an iterable whose total length is unknown? Something like a, b, c, _ = myiterable where _ could eat up a variable number of items, in case I'm only interested

assign only first few items of a tuple/list

2012-12-04 Thread Daniel Fetchinson
Hi folks, I swear I used to know this but can't find it anywhere. Say I have a list x = [ 1,2,3,4,5 ] and only care about the first two items. I'd like to assign the first two items to two variables, something like, a, b, _ = x but the above will not work, of course, but what is the common idiom

Re: can we append a list with another list in Python ?

2012-10-23 Thread Daniel Fetchinson
can we append a list with another list in Python ? using the normal routine syntax but with a for loop ?? x = [1,2,3] y = [10,20,30] x.extend( y ) print x this will give you [1,2,3,10,20,30] which I guess is what you want. Cheers, Daniel -- Psss, psss, put it down! -

Re: Fwd: system tray or notification area in python

2012-10-17 Thread Daniel Fetchinson
Hi folks, So I thought I would write a brand new stand alone system tray or notification area in python. I guess I need to use gtk bindings or some such but don't really know what my options are. Where would I start something like this? Any pointers would be greatly appreciated! Why not

Re: system tray or notification area in python

2012-10-17 Thread Daniel Fetchinson
So I thought I would write a brand new stand alone system tray or notification area in python. I guess I need to use gtk bindings or some such but don't really know what my options are. Where would I start something like this? Any pointers would be greatly appreciated! Why not look at the

system tray or notification area in python

2012-10-16 Thread Daniel Fetchinson
Hi folks, I'm using a stand alone window manager without gnome or kde or any other de. But I still would like to have a system tray or notification area and so far used stalonetray for this. Stalonetray is written in C and is a GTK application, works all right but sometimes it doesn't. For

Fwd: system tray or notification area in python

2012-10-16 Thread Daniel Fetchinson
Hi folks, I'm using a stand alone window manager without gnome or kde or any other de. But I still would like to have a system tray or notification area and so far used stalonetray for this. Stalonetray is written in C and is a GTK application, works all right but sometimes it doesn't. For

terminate called after throwing an instance of 'CABRTException'

2012-10-02 Thread Daniel Fetchinson
I've noticed a strange thing with python lately: Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2 Type help, copyright, credits or license for more information. def f(): print x ... f() terminate called after throwing an instance of

Re: terminate called after throwing an instance of 'CABRTException'

2012-10-02 Thread Daniel Fetchinson
I've noticed a strange thing with python lately: Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2 Type help, copyright, credits or license for more information. def f(): print x ... f() terminate called after throwing an instance of

lambda in list comprehension acting funny

2012-07-11 Thread Daniel Fetchinson
funcs = [ lambda x: x**i for i in range( 5 ) ] print funcs[0]( 2 ) print funcs[1]( 2 ) print funcs[2]( 2 ) This gives me 16 16 16 When I was excepting 1 2 4 Does anyone know why? Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown --

Re: lambda in list comprehension acting funny

2012-07-11 Thread Daniel Fetchinson
funcs = [ lambda x: x**i for i in range( 5 ) ] print funcs[0]( 2 ) print funcs[1]( 2 ) print funcs[2]( 2 ) This gives me 16 16 16 When I was excepting 1 2 4 Does anyone know why? And more importantly, what's the simplest way to achieve the latter? :) -- Psss, psss, put it

Re: lambda in list comprehension acting funny

2012-07-11 Thread Daniel Fetchinson
funcs = [ lambda x: x**i for i in range( 5 ) ] print funcs[0]( 2 ) This gives me 16 When I was excepting 1 Does anyone know why? Just the way Python lambda expressions bind their variable references. Inner 'i' references the outer scope's 'i' variable and not its value 'at the

Re: lambda in list comprehension acting funny

2012-07-11 Thread Daniel Fetchinson
You should not be using lambda in this case .for x in [2, 3]: .funcs = [x**ctr for ctr in range( 5 )] .for p in range(5): .print x, funcs[p] .print If you change the requirements, it's always easy to solve problems. But it is the wrong problem that you have solved.

Re: Namespace hack

2012-06-05 Thread Daniel Fetchinson
Funny, you got to the last line of import this but apparently skipped the second line: Explicit is better than implicit. And you didn't even post your message on April 1 so no, I can't laugh even though I'd like to. Can you be less condescending? Of course! :) Anyway, the point I was

Re: Namespace hack

2012-05-24 Thread Daniel Fetchinson
From the Zen of Python (import this): Namespaces are one honking great idea -- let's do more of those! Inspired by this, I have a decorator that abuses function closures to create a namespace type with the following properties: - all methods are static methods that do not take a self

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Daniel Fetchinson
Blatantly the pyjs ownership change turned out to be an awkward operation (as reactions on that ML show it), but a fork could also have very harmfully split pyjs-interested people, so all in all I don't think there was a perfect solution - dictatorships never fall harmlessly. You say fork

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Daniel Fetchinson
It's also quite ironic that the initial complaining started from how the domain name www.pyjs.org is not available only pyjs.org is. At the same time the Rebel Chief's listed domain name on github, see https://github.com/xtfxme, gives you a server not found: http://the.xtfx.me/ :) On 5/9/12,

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Daniel Fetchinson
the original goal was to purchase a domain and fork -- i made this very clear in my notes -- `uxpy.net`. however, the most respectable member of the commit IMO convinced me otherwise. (I'm a total outsider, never used pyjs.) Anthony, you never explained what the reasoning behind the advice

Re: Fetching data from a HTML file

2012-03-23 Thread Daniel Fetchinson
On 3/23/12, Sangeet mrsang...@gmail.com wrote: Hi, I've got to fetch data from the snippet below and have been trying to match the digits in this to specifically to specific groups. But I can't seem to figure how to go about stripping the tags! :( trtd align=centerbSum/b/tdtd/tdtd

Re: format a measurement result and its error in scientific way

2012-02-17 Thread Daniel Fetchinson
Thanks, it's simpler indeed, but gives me an error for value=1.267, error=0.08: Traceback (most recent call last): File /home/fetchinson/bin/format_error, line 26, in module print format_error( sys.argv[1], sys.argv[2] ) File /home/fetchinson/bin/format_error, line 9, in format_error

Re: format a measurement result and its error in scientific way

2012-02-17 Thread Daniel Fetchinson
Hi folks, often times in science one expresses a value (say 1.03789291) and its error (say 0.00089) in a short way by parentheses like so: 1.0379(9) Before swallowing any Python solution, you should realize, the values (value, error) you are using are a non sense : 1.03789291 +/- 0.00089

Re: format a measurement result and its error in scientific way

2012-02-16 Thread Daniel Fetchinson
Hi folks, often times in science one expresses a value (say 1.03789291) and its error (say 0.00089) in a short way by parentheses like so: 1.0379(9) One can vary things a bit, but let's take the simplest case when we only keep 1 digit of the error (and round it of course) and round the

Re: format a measurement result and its error in scientific way

2012-02-16 Thread Daniel Fetchinson
On 2/16/12, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Feb 16, 2012 at 1:36 AM, Daniel Fetchinson fetchin...@googlemail.com wrote: Hi folks, often times in science one expresses a value (say 1.03789291) and its error (say 0.00089) in a short way by parentheses like so: 1.0379(9) One can

format a measurement result and its error in scientific way

2012-02-15 Thread Daniel Fetchinson
Hi folks, often times in science one expresses a value (say 1.03789291) and its error (say 0.00089) in a short way by parentheses like so: 1.0379(9) One can vary things a bit, but let's take the simplest case when we only keep 1 digit of the error (and round it of course) and round the value

Re: SQLObject 1.2.0

2011-11-21 Thread Daniel Fetchinson
Thanks a million Oleg! Cheers, Daniel On 11/20/11, Oleg Broytman p...@phdru.name wrote: Hello! I'm pleased to announce version 1.2.0, the first stable release of branch 1.2 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database

OT

2011-08-19 Thread Daniel Fetchinson
I'll be 59 in a couple of months. -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list

Re: web hosting, first hand experiences?

2011-07-04 Thread Daniel Fetchinson
Hi folks, I know this comes up regularly but the thing is that the quality of service changes also quite regularly with many of the hosting companies. What's currently the best option for shared hosting of a turbogears application? I'm thinking of dreamhost and webfaction does anyone have any

web hosting, first hand experiences?

2011-07-03 Thread Daniel Fetchinson
Hi folks, I know this comes up regularly but the thing is that the quality of service changes also quite regularly with many of the hosting companies. What's currently the best option for shared hosting of a turbogears application? I'm thinking of dreamhost and webfaction does anyone have any

Re: New member intro and question

2011-06-18 Thread Daniel Fetchinson
gush I'm a new list member from the United States. Long time programmer, fairly new to Python and absolutely loving it so far! I'm 36, live in Oklahoma, and own a small Linux software development and consulting firm. Python has made my life a *lot* easier and, the more I learn, the easier it

Re: Postmortem on Unladen Swallow

2011-04-14 Thread Daniel Fetchinson
There's a postmortem on the failure of Unladen Swallow by one of the developers at: http://qinsb.blogspot.com/2011/03/unladen-swallow-retrospective.html This outcome of things is really a testament to the hard work of the pypy folks. They, a volunteer bunch, beat google! And that's something

Common practice for multiple python versions sharing 3rd party modules

2011-04-09 Thread Daniel Fetchinson
Hi folks, In order to test my own modules with various python versions I've installed python 2.4, 2.5, 2.6, 2.7, 3.1, 3.2. The original installation on my fedora box was 2.6 and all 3rd party modules so far were installed under /usr/lib/python2.6/site-packages. Since now the executable 'python'

Re: Fun python 3.2 one-liner

2011-04-05 Thread Daniel Fetchinson
what is the character limit on a one liner :P. For PEP 8 compliance, 80 characters. :-) Yeah, but we don't live in the 80's or 90's anymore and our screens can support xterms (or let alone IDE widows) much wider than 80 characters. I'm using 140 for python these days. Seriously, who would want

Re: Fun python 3.2 one-liner

2011-04-05 Thread Daniel Fetchinson
what is the character limit on a one liner :P. For PEP 8 compliance, 80 characters. :-) Yeah, but we don't live in the 80's or 90's anymore and our screens can support xterms (or let alone IDE widows) much wider than 80 characters. I'm using 140 for python these days. Seriously, who would

Re: Suggestion Reqd for Designing a Website in Python

2011-02-25 Thread Daniel Fetchinson
I have developed one big Machine Learning software a Machine Translation system in Python. Now, I am thinking to make a User Interface of it and upload it in a web site. Do you mean you want people to download this from a web site as an executable, and then run it locally on their

Re: Use the Source Luke

2011-02-05 Thread Daniel Fetchinson
For the Python world though, there does seem to have been a change. A decade ago in this newsgroup, there were frequent references to standard library source. I don't see that much anymore. Popularity has a price. A decade ago only hackers were exposed to python who are happy to chat about

Re: Interesting bug

2011-01-01 Thread Daniel Fetchinson
Dear Group, Hope all of you are fine and spending nice new year evenings. I get a bug in Python over the last 4 years or so, since I am using it. The language is superb, no doubt about it. It helped me finish many a projects, with extraordinary accuracy. But long since, I was getting an

Re: Interning own classes like strings for speed and size?

2010-12-27 Thread Daniel Fetchinson
I'm trying to solve a computational problem and of course speed and size is important there. Apart from picking the right algorithm, I came across an idea that could help speed up things and keep memory requirements down. What I have is regions described by min and max coordinates. At first, I

Re: Interning own classes like strings for speed and size?

2010-12-27 Thread Daniel Fetchinson
I believe what you are looking for is (some variant of) the singleton pattern: http://en.wikipedia.org/wiki/Singleton_pattern Actually, no. What I want is the flyweight pattern instead: http://en.wikipedia.org/wiki/Flyweight_pattern Oh I see. I did not know about this pattern, but in my

Re: Python Web App

2010-12-23 Thread Daniel Fetchinson
Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with

Re: Added Python, WSGI to XAMPP

2010-12-17 Thread Daniel Fetchinson
How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP http://www.apachefriends.org/f/viewtopic.php?f=17t=42981 Maybe, if there's no Zope. Or we'll run away screaming... That is rather pathetically true... Ah well, each to their own... Chris What I really don't like right off is

Re: inverse of a matrix with Fraction entries

2010-11-25 Thread Daniel Fetchinson
I wouldn't do it that way. Let M be your matrix. Work out the LCM l of the denominators, and multiply the matrix by that to make it an integer matrix N = l M. Then work out the determinant d of that integer matrix. Next, the big step: use Gaussian elimination to find a matrix A (the

inverse of a matrix with Fraction entries

2010-11-24 Thread Daniel Fetchinson
I guess this is a question to folks with some numpy background (but not necessarily). I'm using fractions.Fraction as entries in a matrix because I need to have very high precision and fractions.Fraction provides infinite precision (as I've learned from advice from this list). Now I need to

Re: inverse of a matrix with Fraction entries

2010-11-24 Thread Daniel Fetchinson
I guess this is a question to folks with some numpy background (but not necessarily). I'm using fractions.Fraction as entries in a matrix because I need to have very high precision and fractions.Fraction provides infinite precision (as I've learned from advice from this list). Infinite

Re: inverse of a matrix with Fraction entries

2010-11-24 Thread Daniel Fetchinson
I guess this is a question to folks with some numpy background (but not necessarily). I'm using fractions.Fraction as entries in a matrix because I need to have very high precision and fractions.Fraction provides infinite precision (as I've learned from advice from this list). Infinite

Re: inverse of a matrix with Fraction entries

2010-11-24 Thread Daniel Fetchinson
I'm using fractions.Fraction as entries in a matrix because I need to have very high precision and fractions.Fraction provides infinite precision . . . Probably it doesn't matter but the matrix has all components non-zero and is about a thousand by thousand in size. I wonder how big the

Re: inverse of a matrix with Fraction entries

2010-11-24 Thread Daniel Fetchinson
It's a mathematical problem so no uncertainty is present in the initial values. And even if there was, if there are many orders of magnitude differences between the entries in the matrix floating point does not suffice for various things like eigenvalue calculation and stuff like that.

Re: inverse of a matrix with Fraction entries

2010-11-24 Thread Daniel Fetchinson
So after all I might just code the inversion via Gauss elimination myself in a way that can deal with fractions, shouldn't be that hard. I wouldn't do it that way. Let M be your matrix. Work out the LCM l of the denominators, and multiply the matrix by that to make it an integer matrix N =

what's the precision of fractions.Fraction?

2010-11-18 Thread Daniel Fetchinson
I do a recursive evaluation of an expression involving fractions and unsurprisingly the numerator and denominator grows pretty quickly. After 10-20 iterations the number of digits in the numerator and denominator (as integers) reaches 80-100. And I'm wondering until what point I can trust the

Re: what's the precision of fractions.Fraction?

2010-11-18 Thread Daniel Fetchinson
I do a recursive evaluation of an expression involving fractions and unsurprisingly the numerator and denominator grows pretty quickly. After 10-20 iterations the number of digits in the numerator and denominator (as integers) reaches 80-100. And I'm wondering until what point I can trust the

Re: Am I The Only One Who Keeps Reading “Numpy” as “Numpty”?

2010-11-12 Thread Daniel Fetchinson
As in Numpty Dumpty? Sorry... -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyGUI 2.3

2010-11-11 Thread Daniel Fetchinson
The problem is that some part of the application gets installed to /home/fetchinson/.local/lib/python2.6/site-packages/GUI and some other parts get installed to /home/fetchinson/.local/lib/python/site-packages/GUI Which parts get installed in which places, exactly? This gets installed

Re: cms 4 static pages?

2010-11-04 Thread Daniel Fetchinson
m looking 4 a framework, that allows to build static community software (similar to facebook) without having to start scripts, database connects, admin cookies, e.t.c. means - should be dynamic without really being dynamic, delivering just static pages. (yes, i know e.g. nginx does that by

Re: playful coding problems for 10 year olds

2010-11-02 Thread Daniel Fetchinson
Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her, stuff that she could code herself maybe after some initial help. Do you

playful coding problems for 10 year olds

2010-11-01 Thread Daniel Fetchinson
Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her, stuff that she could code herself maybe after some initial help. Do you guys

Re: ANN: PyGUI 2.3

2010-10-27 Thread Daniel Fetchinson
to a custom location with python setup.py install --home=/home/fetchinson/.local makes GUI un-importable: [fetchin...@fetch ~]$ python Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2 Type help, copyright, credits or license for more information. import GUI

Re: ANN: PyGUI 2.3

2010-10-26 Thread Daniel Fetchinson
PyGUI 2.3 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version works on Snow Leopard with PyObjC 2.3. Any reason your project is not easy_installable? Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown --

[OFF] sed equivalent of something easy in python

2010-10-25 Thread Daniel Fetchinson
This question is really about sed not python, hence it's totally off. But since lots of unix heads are frequenting this list I thought I'd try my luck nevertheless. If I have a file with content 1 2 3 4 5 6 7 8 ... i.e. each line contains simply its line number, then it's quite easy to

Re: [OFF] sed equivalent of something easy in python

2010-10-25 Thread Daniel Fetchinson
using python. The pattern is that the first line is deleted, then 2 lines are kept, 3 lines are deleted, 2 lines are kept, 3 lines are deleted, etc, etc. If you have GNU sed, you can use sed -n '2~5{N;p}' which makes use of the GNU ~ extension. If you need a more portable version:

Does everyone keep getting recruiting emails from google?

2010-10-14 Thread Daniel Fetchinson
I keep getting recruiting emails from charlesngu...@google.com about working for google as an engineer. The messages are pretty much the same and go like this: I am part of the Google Staffing team and was wondering if you would be open to exploring

  1   2   3   4   5   >