Re: Language design

2013-09-12 Thread Markus Rother
On 11.09.2013 23:15, Ethan Furman wrote: > On 09/11/2013 01:41 PM, Markus Rother wrote: >> >>> () == [] >> False >> >> But: >> >> >>> bool(().__eq__([])) >> True > > This is not a trap, this is simply

Re: Language design

2013-09-12 Thread Markus Rother
On 12.09.2013 01:27, Chris Angelico wrote: > On Thu, Sep 12, 2013 at 6:41 AM, Markus Rother wrote: >> 3. The default return value of methods is None instead of self. >> If it was self, it would be possible to chain method calls (which >> is called a

Elektra 0.8.13 with python plugins

2015-09-18 Thread Markus Raab
ny questions and comments, please contact the [Mailing List](https://lists.sourceforge.net/lists/listinfo/registry-list) the issue tracker [on github](http://git.libelektra.org/issues) or by mail [email protected]. [Permalink to this NEWS entry](http://doc.libelektra.org/news/3c00a5f1-c017-4555-

Elektra 0.8.6

2014-06-06 Thread Markus Raab
u can download the release at: http://www.markus-raab.org/ftp/elektra/releases/elektra-0.8.6.tar.gz md5sum: 4a59824e70a29295e9ef9ae7605d9299 Make sure to enable BUILD_SWIG and BUILD_SWIG_PYTHON. Docu (C/C++) can be found here: http://doc.libelektra.org/api/0.8.6/html/ best regards, Markus --

Elektra 0.8.7 improved Python support

2014-07-30 Thread Markus Raab
d5sum: 4996df62942791373b192c793d912b4c Make sure to enable BUILD_SWIG and BUILD_SWIG_PYTHON2 or BUILD_SWIG_PYTHON3. Docu (C/C++) can be found here: http://doc.libelektra.org/api/0.8.7/html/ Best regards, Markus -- https://mail.python.org/mailman/listinfo/python-list

Threading: Method trigger after thred finished

2011-10-19 Thread markus . mj
ect() print "The End" #- for i in range(5): t = ThreadUrl(queue) t.setDaemon(True) t.start() #Fill the queue for single_query in multi_query: queue.put(single_query) #Wait until query is empty a

Re: Any good Python forums?

2005-12-15 Thread Markus Weihs
Python section) http://www.daniweb.com/techtalkforums/ http://www.python-forum.de (a german one) Regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Py_Initialize(); undefined reference...

2005-12-21 Thread Markus Heller
ze() is an undefined reference. My question to you: How can I change it so that the compiler sees that the function call is defined? Thanks in advance, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Py_Initialize(); undefined reference...

2005-12-21 Thread Markus Heller
n > Py_Initialize() is an undefined reference. > > My question to you: How can I change it so that the compiler sees that the > function call is defined? Hi guys, no need to reply, I solved it. This issue is simply due to a linker statement... I need to link the according python2.3 lib

Sort dictionary

2006-01-02 Thread Markus Franz
wo items) Thanks in advance. Best regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Limitting the Contents of an Entry Widget in Tkinter

2006-01-14 Thread Markus Weihs
ng this? Hi! Fredrik Lundh's ValidateEntry might be what you want. http://tkinter.unpythonic.net/wiki/ValidateEntry Regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-18 Thread Markus Wankus
). Zope is flexible but a beast to learn. And, well...there are just so many others. ;o) I'm still looking, myself... Markus. Tim Parkin wrote: > Leeuw van der, Tim wrote: > >> I think that in general, I don't like the fact that links to >> high-profile users a

Re: New Python.org website ?

2006-01-19 Thread Markus Wankus
Fredrik Lundh wrote: > Tim Parkin wrote: > >> How about designing a website and showing us what you think would be a >> good idea? Or suggesting some way of managing all of the content and >> building the system. > > I think I just did that: > > the easiest way to get there would be to use

Re: New Python.org website ?

2006-01-19 Thread Markus Wankus
If you build it, they will come. -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-19 Thread Markus Wankus
Fredrik Lundh wrote: > Markus Wankus wrote: > >> Well I happen to agree whole-heartedly with Tim on that one. I can't >> stand trying to navigate some of these Wiki-trying-to-be-website pages. >> It is impossible to find anything on most of them (notice I didn'

Re: Python segmentation fault?

2006-10-26 Thread Markus Rosenstihl
e, well, it has nothing to do with my script... :-P > > Any ideas? > > Thanks, > Mike I had segmentation faults on Mac, they were coming from a unpatched readline 5.1 Once compiled with readline 5.2 it was working flawlessly Regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse IDE question

2006-06-25 Thread Markus Wankus
quot; item (in this way, you can go only with the keyboard). Another way to run a module is right clicking the module in the navigator and choosing python->run (when a .py file is selected). Markus. -- http://mail.python.org/mailman/listinfo/python-list

Re: I thought I'd 'got' globals but...

2006-07-07 Thread Markus Wankus
On Fri, 07 Jul 2006 19:41:36 -0400, Luis M. González <[EMAIL PROTECTED]> wrote: . . > OK, so I should include the global only if I plan to modify it. > Otherwise, I don't need to include it. Am I right? > Correct. Globals are always available to read from. You need to declare them if you wan

Re: failure building python 2.5 on mac os x 10.3.9

2006-11-30 Thread Markus Rosenstihl
On 2006-11-19 15:50:14 +0100, Thomas Ploch <[EMAIL PROTECTED]> said: > Hello, > > I followed the instructions in the Mac/README file. > > I ran ./configure --enable-framework > > But when I try to build from source with gcc 4.0.2, following happens: > > > [snip] > libtool: can't locate file f

Re: Need Help Parsing From File

2006-12-09 Thread Markus Rosenstihl
43 44 45 46 47 48 49 50 > 51 52 53 54 55 56 57 58 59 60 > > How would I read this data from the file into a two dimensional array > in Python? In case you have imported pylab: myarray = pylab.load('textfile.txt') Regards Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-12 Thread Markus Triska
f)) (fib 200)", V))). ==> 20,509 inferences, 0.02 CPU in 0.01 seconds (239% CPU, 1025450 Lips) V = [fib, 280571172992510140037611932413038677189525] ; Showing "eval" and "map": ?- run("(defun map (f xs) (if (equal xs '()) '() (cons (eval (list f (car xs))) (map f (cdr xs) (defun plus1 (x) (+ 1 x)) (map 'plus1 '(1 2 3))", Vs). ==> Vs = [map, plus1, [2, 3, 4]] ; Prolog's analogon to Lisp's macros is term_expansion/2 by the way. All the best! Markus Triska -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you pronounce 'tuple'?

2006-02-12 Thread Markus Wankus
John Salerno wrote: > Yes, silly question, but it keeps me up at night. :) > > I know it comes from the suffix -tuple, which makes me think it's > pronounced as 'toople', but I've seen (at m-w.com) that the first > pronunciation option is 'tuhple', so I wasn't sure. Maybe it's both, but > whic

Re: \r functionality

2005-05-17 Thread Markus Weihs
ack this. Is > this correct? No. Well, I think you can't do it with print, but you can do this: import sys import time signs = "|/-\\" while 1: for i in signs: sys.stdout.write(i+"\r") sys.stdout.flush() time.sleep(0.2) Regards, Markus --

Re: Python forum

2005-05-17 Thread Markus Weihs
ns without any problem and it goes very well If you speak German, there is a forum at www.python-forum.de . There is also an english one at http://python-forum.org/py/index.php, but as you can see, there's not much traffic :-/ Regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: cpu usage limit

2005-05-27 Thread Markus Franz
.cpu, 0.30) ??? Thank. Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: bind in Tkinter

2005-06-10 Thread Markus Weihs
Hi! If you press a key, a key-event is passed to the function, here to self.quit. This is the misterious second argument, which can be useful if you e.g. want to check which key was pressed. Here is a snippet to show how you can do it: from Tkinter import * def quit_program(event): print

cStringIO change in 2.4 vs 2.5. Regression?

2007-06-01 Thread Markus Schöpflin
StringIO(a) Traceback (most recent call last): File "", line 1, in TypeError: expected a character buffer object --->%--- Has this change been done on purpose or is it a regression? If it's not a regression, is there another way to feed an array to cStringIO without expensive conversion? TIA, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: cStringIO change in 2.4 vs 2.5. Regression?

2007-06-13 Thread Markus Schöpflin
Terry Reedy wrote: > "Markus Schöpflin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | Hello, > | > | I just stumbled accross a difference between cStringIO in Python 2.4 > | and 2.5. You can no longer feed arrays to cStringIO. > [snip] >

Re: cStringIO change in 2.4 vs 2.5. Regression?

2007-06-13 Thread Markus Schöpflin
Markus Schöpflin wrote: [...] > I think I'll file a bug at SF... maybe someone else will spot something. Should have checked the bugtracker first... it was reported the day after my original post: http://sourceforge.net/tracker/index.php?func=detail&aid=1730114&group_id=5470&

Re: ANN: 555-BOOM! version 0.6

2007-09-25 Thread Markus Gritsch
numbers located like this http://www.fliesen-niemann.de/img/upload/800px-Telephone-modele-W48.jpg, so dialing e.g. 7 resulted in 7 impulses. It would be nice, if the telephone type could be configured in the menu of the game. Kind regards, Markus -- http://mail.python.org/mailman/listinfo/python

Re: Overloading the tilde operator?

2007-02-08 Thread Markus Triska
[EMAIL PROTECTED] writes: > Also some flavours of Prolog, as descrived in the classic book by op/3 is part of the Prolog ISO standard: http://pauillac.inria.fr/~deransar/prolog/bips.html#operators so every compliant implementation has it. -- http://mail.python.org/mailman/listinfo/python-list

Static linking of python and pyqt

2007-12-17 Thread Markus Dahlbokum
Hello, I'm trying to link python statically with qt and pyqt. I've tried this in several ways but never succeeded. At the moment the final make runs without errors but I get import errors when accessing pyqt. How can I solve this problem? Markus # installing zipimport hook import

Re: Static linking of python and pyqt

2007-12-19 Thread Markus Dahlbokum
able is too small and the qt symbols are not known by it. How can I just link qt statically? Thank you. Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Static linking of python and pyqt

2007-12-19 Thread Markus Dahlbokum
least python and qt. How can this be done? Of course a complete package with python, qt and pyqt would be the best solution but there seem to be even more complications that way. If you can help me with this I would be very grateful. Thank you in advance. Markus -- http://mail.python.org/mailman/listinfo/python-list

Python DLL in Windows Folder

2007-12-23 Thread Markus Gritsch
Hi, why does the Python installer on Windows put the Python DLL into the Windows system32 folder? Wouldn't it be more clean to place it into the Python installation folder beside the python.exe file? Kind regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Python DLL in Windows Folder

2007-12-23 Thread Markus Gritsch
On 23/12/2007, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * Markus Gritsch (Sun, 23 Dec 2007 15:52:50 +0100) > > why does the Python installer on Windows put the Python DLL into the > > Windows system32 folder? > > Are you sure it does?! Yes. Markus -- http://mail.

Re: Python DLL in Windows Folder

2007-12-23 Thread Markus Gritsch
On 23/12/2007, Christian Heimes <[EMAIL PROTECTED]> wrote: > Markus Gritsch wrote: > > why does the Python installer on Windows put the Python DLL into the > > Windows system32 folder? Wouldn't it be more clean to place it into > > the Python installation f

Re: Python DLL in Windows Folder

2007-12-24 Thread Markus Gritsch
On 24/12/2007, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * Markus Gritsch (Sun, 23 Dec 2007 18:28:41 +0100) > > On 23/12/2007, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > > > * Markus Gritsch (Sun, 23 Dec 2007 15:52:50 +0100) > > > > why does the Pyth

Re: Python DLL in Windows Folder

2007-12-24 Thread Markus Gritsch
On 24/12/2007, Chris Mellon <[EMAIL PROTECTED]> wrote: > On Dec 23, 2007 12:27 PM, Markus Gritsch <[EMAIL PROTECTED]> wrote: > > On 23/12/2007, Christian Heimes <[EMAIL PROTECTED]> wrote: > > > Markus Gritsch wrote: > > > > why does the Python

Re: Python DLL in Windows Folder

2007-12-25 Thread Markus Gritsch
ch easier when python24.dll is > located there. That has to weigh in the equation. Same doubts as above: For .py files to be executed it is not necessary that the Python DLL is located in the Windows system32 folder. Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Python DLL in Windows Folder

2007-12-25 Thread Markus Gritsch
/ms682586(VS.85).aspx), the original Python DLL (compiled with MSVC 7.1) is used instead of your own one. Kind regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Python DLL in Windows Folder

2007-12-25 Thread Markus Gritsch
On 24/12/2007, Markus Gritsch <[EMAIL PROTECTED]> wrote: > On 24/12/2007, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > > * Markus Gritsch (Sun, 23 Dec 2007 18:28:41 +0100) > > > On 23/12/2007, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > > > > *

Re: Python DLL in Windows Folder

2007-12-25 Thread Markus Gritsch
On 25/12/2007, Neil Hodgson <[EMAIL PROTECTED]> wrote: > Markus Gritsch: > > > I assume that your Python applications are .py files. To be able to > > run them it would be perfectly ok if the Python DLL would be located > > beside the python.exe in the Python ins

Re: Python DLL in Windows Folder

2007-12-26 Thread Markus Gritsch
On 26/12/2007, Lie Ryan <[EMAIL PROTECTED]> wrote: > > > On Dec 25, 2007 4:43 PM, Markus Gritsch <[EMAIL PROTECTED]> wrote: > > On 24/12/2007, Lie <[EMAIL PROTECTED]> wrote: > > > > > > (good programs are not DLL implementation specific > >

Re: Python DLL in Windows Folder

2007-12-27 Thread Markus Gritsch
king on the shortcut in the start menu, which sets the CWD to the Python installation folder, it works also when Python is installed "just for me". Kind regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: standalone python web server

2007-12-27 Thread Markus Gritsch
from within the browser. Watch the screencast at the Gluon homepage for a quick overview. Have fun, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheat sheet

2007-12-27 Thread Markus Gritsch
On Dec 27, 11:38 am, "Riccardo T." <[EMAIL PROTECTED]> wrote: > I wrote a little cheat sheet for this wonderful language, but because of > my still little experience with it, I would like to have a feedback > Could you have a look at it and tell me what do you think about, please? > > http://greyfo

Re: sqlobject question...

2007-12-30 Thread Markus Gritsch
Hi, you should ask SQLObject related questions better at "SQLObject discussion" <[EMAIL PROTECTED]> Oleg Broytman and others are very helpful there. Markus -- http://mail.python.org/mailman/listinfo/python-list

Import functions in current namespace

2009-01-15 Thread Markus Schreyer
() wrapper.foo0() # calls wrapper.foo0() calls ppms.foo0() Hopefully the idea is not to stupid.. ;) Tnx for your help. Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: Import functions in current namespace

2009-01-15 Thread Markus Schreyer
Wow.. :) I think this is one kind of a stupid question.. ;) Anyway.. thanks a lot.. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: web2py 1.56 is OUT

2009-02-05 Thread Markus Gritsch
aphs sound quite negative. *I* like web2py very much and am a happy user. I just fear that such examples will not draw new users towards this great project. Maybe use a simple example without Auth the next time, which is *really* complete and fully functional. Kind regards, Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Python 2.6 Quick Reference available

2009-02-11 Thread Markus Schreyer
Great stuff! Waiting for the 3.0 version.. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better algorithm?

2009-01-02 Thread Markus Brueckner
(using a generator) L = [(1, 2), (3, 4, 5), (6, 7)] g = ( ((e[0],None,e[1]) if len(e)==2 else (e[0],e[1],e[2])) for e in L) for elem in g: print elem So long, Markus P.S: No, I don't consider that more readable than your example ;-) -- "Hacking is like having sex: you get in, y

Re: mac osx how to use a specific python environment

2009-01-09 Thread Markus Falb
#x27;m also not exactly sure what you want to do. i dont think its possible to switch the interpreter in case you import your plugin as a module best regards, markus -- http://mail.python.org/mailman/listinfo/python-list

Project layout / Import files from different subdirectories

2008-11-10 Thread Markus Mayer
Best regards, Markus -- PGP/GPG key 0x2EB39BF9 -- -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Markus Mayer
Diez B. Roggisch schrieb: > > By placing a __init__.py into project, and then > > import project.main > import project.gui.mainwindow > > > Diez Ouch. Thanks. Markus -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Markus Mayer
; scheme by now, didn't know "as" was available as well. Perfect, that makes it a bit easier. Thanks! Markus -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
where I should send this (and/or more) information to? Best regards, Markus -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
[EMAIL PROTECTED] schrieb: > Markus Mayer: >> Any idea where I should send this (and/or more) information to? > > You can send your note and and image to effbot. > You can also put an image online somewhere and give here the link (a > small image, to avoid saturating your s

Re: Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
age body to automatically subscribe to the list, or help to get > additional information. > """ Hum, I was hoping I could avoid that. :/ (The list, of course) Markus -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
Markus Mayer schrieb: > Okay, for the* tip, here we go: *2nd tip that is. I need some sleep. -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Re: Connecting to gnuplot with Popen?

2006-03-30 Thread Markus Weihs
> I want to control gnuplot with a python program. Hi Anton, here is a little snippet using os.popen: import os gp = os.popen('gnuplot -persist', 'w') print >> gp, "set yrange [-300:300]" for n in range(300): print >> gp, "plot %i*cos(x)+%i*log(x+10)" % (n,150-n) Rega

C++ - Python API

2010-09-01 Thread Markus Kraus
Hi guys i worked on this for severl days (or even weeks?!) now, but im nearly finished with it: A complete C++ to Python API which allows you to use python as a scripting language for your C++ projects. Simple example: --- python code --- def greet( player ): print( "Hello player " + player.get

Re: C++ - Python API

2010-09-01 Thread Markus Kraus
Thanks for the answer On 1 Sep., 22:29, Thomas Jollans wrote: > On Wednesday 01 September 2010, it occurred to Markus Kraus to exclaim: > > > So the feature overview: > > First, the obligatory things you don't want to hear: Have you had a look at > similar efforts

Re: Why stay with lisp when there are python and perl?

2007-05-03 Thread Markus E Leypold
Xah Lee <[EMAIL PROTECTED]> writes: > (if there is some demand, i will add a concrept, little programing No. There ain't. - M -- http://mail.python.org/mailman/listinfo/python-list

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-24 Thread Markus E Leypold
about them? And even more to the point -- why does he post now again the same drivel he already posted on the 9th of May 2007? And will we now treated to repeats of his garbage every 2 weeks? The answer to your question is very simple: Xah Lee is a troll. Regards -- Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: On Java's Interface (the meaning of interface in computer programing)

2007-03-22 Thread Markus E Leypold
>> f("some string") > > This is not really "typical" syntax for a functional language. LISP, > for example, has the "function name" as an element of a list. (Some > might argue that LISP isn't exactly a functional language.) And nobo

Re: is laziness a programer's virtue?

2007-04-16 Thread Markus E Leypold
"Xah Lee" <[EMAIL PROTECTED]> writes: > • Please remind yourself what is on-topic and off-topic. Unless you You, Sir, ARE off-topic. I suggest you make the experiment to post your drivel on your web site and let your fans come to you. Should be an eye opener, this experiment.

Re: is laziness a programer's virtue?

2007-04-17 Thread Markus E Leypold
ant to look like a dolt in public?" "Umpf. No. God that was embarrasing" . But that won't happen to Xah. Regards -- Markus -- http://mail.python.org/mailman/listinfo/python-list

DjangoCon Europe - 24. - 26.5.2010 in Berlin

2010-04-13 Thread Markus Zapke-Gründemann
DjangoCon Europe[1] is a Django[2] conference that aims to bring together the community and provide a wide range of sessions, panels, lightning talks and showcases of Django usage within various businesses. We aim to educate and bring people together to turn new ideas into working code! The c

<    1   2