Re: [Tutor] Python Package Diagram

2013-06-05 Thread Bjorn Madsen
every > other language, for sure. > > However, my guess is that for Python it would be much thinner. At least > for the common usage. Probably the Qt, Gtk or Django architectures would > be that thick. > > What do the Python gurus think ? > > All the best, > hilto

[Tutor] Python Package Diagram

2013-06-05 Thread Bjorn Madsen
Hello Tutor, On http://docs.oracle.com/javase/7/docs/ a pretty chart gives a more or less misdirecting view of the Java library (I guess the gaps between the boxes are the security holes). *Does something similar exist for Python?* Google images turned out with a stack of, well, not so pretty cha

Re: [Tutor] Why do sets use 6 times as much memory as lists?

2013-05-07 Thread Bjorn Madsen
3 18:53, Oscar Benjamin wrote: > On 7 May 2013 18:10, Bjorn Madsen wrote: > >>>> import sys > >>>> L=[x for x in range(1)] > >>>> sys.getsizeof(L) > > 43816 > >>>> L={x for x in range(1)} > >>>> sys.get

[Tutor] Why do sets use 6 times as much memory as lists?

2013-05-07 Thread Bjorn Madsen
>>> import sys >>> L=[x for x in range(1)] >>> sys.getsizeof(L) 43816 >>> L={x for x in range(1)} >>> sys.getsizeof(L) 262260 ? kind regards, Bjorn ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.

[Tutor] IronPython any tutors with experience out there?

2013-01-03 Thread Bjorn Madsen
Hello PythonTutor - I'm a scientist and very happy with python 2.7. I have been asked to assist a development program where everything is written in dotNET/ C# (visual studio 2012) and luckily Microsoft Visual Studio supports IronPython which is a clean Python implementation in C#, so I can use the

Re: [Tutor] data analysis with python

2012-11-14 Thread Bjorn Madsen
Hi David, I have found happiness with http://ipython.org/ which can do stuff like this: [image: _images/ipy_0.13.png] SQLite is embedded in python's database API, and gives an easy data import and handling. The syntax is extremely well described here: http://www.sqlite.org/lang.html and I've bee

Re: [Tutor] pip errors for numpy, scipy matplotlib

2012-05-14 Thread Bjorn Madsen
ready satisfied". Thank you again - I will keep it in mind that "apt-get install python-some_packages" may be the right way about it on ubuntu. Bjorn On 11 May 2012 19:52, Jerry Hill wrote: > On Fri, May 11, 2012 at 2:42 PM, Bjorn Madsen > wrote: > > Hi, > >

[Tutor] pip errors for numpy, scipy matplotlib

2012-05-11 Thread Bjorn Madsen
Hi, when attempting to use pip to install numpy, scipy matplotlib I get a mile of errors. There is simply too much information printed - so it must be a systematic error (http://paste.ubuntu.com/982180/). What am I missing/doing wrong? Kind Regards, Bjorn __

Re: [Tutor] is it possible to create and amend classes during run-time?

2012-05-04 Thread Bjorn Madsen
.org > To unsubscribe or change subscription options: > http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor> > -- Bjorn Madsen *Researcher Complex Systems Research* Ph.: (+44) 0 7792 030 720 Ph.2: (+44) 0 1767 220 828 bjorn.mad...@operationsresearc

[Tutor] is it possible to create and amend classes during run-time?

2012-05-02 Thread Bjorn Madsen
Hi, I have been studying http://docs.python.org/tutorial/classes.html for a while, but still have two questions which I could not answer. Perhaps you could help? Does anyone know if it is possible during run-time to: a) add attributes to classes, which will unknown at program start, but "emerge" l