Re: Looking for a text file based wiki system written in Python

2006-08-14 Thread Marcel
n > in PHP. Is there a similar system that's written in Python? > I found pwyky but it's functionality is a bit too simple. A TiddlyWiki with a python backend. http://www.cs.utexas.edu/~joeraii/pytw/ -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: Scripting Visio using Python

2007-02-13 Thread Marcel
org, or must I use IronPython? Don't know how to do that, but I suggest you post your question on the IronPython list: http://groups.google.com/group/ironpy?lnk=li Python is not a .NET language, IronPython is. HTH, -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: Fatal Python error

2013-05-29 Thread Marcel Rodrigues
I just tried your code with similar results: it does nothing on PyPy 2.0.0-beta2 and Python 2.7.4. But on Python 3.3.1 it caused core dump. It's a little weird but so is the code. You have defined a function that calls itself unconditionally. This will cause a stack overflow, which is a RuntimeErro

Re: Fatal Python error

2013-05-29 Thread Marcel Rodrigues
er the Py3 behavior here a bug, that code is unreliable by design. It's an infinite loop at the best. 2013/5/29 Joshua Landau > On 29 May 2013 13:30, Marcel Rodrigues wrote: > > > > I just tried your code with similar results: it does nothing on PyPy > 2.0.0-beta2 and Pyt

Re: weird behavior. bug perhaps?

2013-06-18 Thread Marcel Rodrigues
Note that print [shape(m)[1],1] just prints a list with two elements where the first element is shape(m)[1] and the second is the number 1 (regardless of the value of m). I'm pretty sure that's not what you want. 2013/6/18 zoom > Hi, I have a strange problem here. Perhaps someone would care t

Python 3.3, gettext and Unicode problems

2012-12-30 Thread Marcel Rodrigues
Error: 'ascii' codec can't encode character '\xe1' in position 2: ordinal not in range(128) My interpretation of this output is that even though gettext correctly detects the MO file charset as UTF-8, it tries to encode the translated message with the system's "preferred encoding", which happens to be ASCII. Anyone know why this happens? Is this a bug on my code? Maybe I have misunderstood gettext... Thanks, Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.3, gettext and Unicode problems

2012-12-30 Thread Marcel Rodrigues
Thank you Terry! I was trying to follow the documentation but somehow didn't payed attention to the lgettext/gettext distinction until I read your first response. Changing lgettext to gettext solved the problem. It prints correctly to my console because I have to environmental variable PYTHONIOEN

Re: TkTable and Python 3.1

2011-03-02 Thread Marcel Jakobs
ackages". The file is has only one row: /usr/lib/Tktable2.10 This is the directory where my Tktable-module is stored. ".pth"-files are working as "pointer" to modules. I don't know how your directories are built, but I think the structure is equal. Marcel > On

Re: Re: TkTable and Python 3.1

2011-03-02 Thread Marcel Jakobs
... I built a file named 'tkTable.pth' in the directory "/usr/lib/python3.1/dist-packages" ... Submitted via EggHeadCafe Pass Values Between Windows Forms http://www.eggheadcafe.com/tutorials/aspnet/a3e1e170-21d9-4a59-a659-3ead05bb36f2/pass-values-between-windows-forms.aspx -- http://mail.py

Re: Re: Re: TkTable and Python 3.1

2011-03-02 Thread Marcel Jakobs
I don't know why, but every time when I have "sent" the directories name, it's not to see in the site. => '/usr/lib/python3.1/dist-packages' => Got to the home-directory of python and then save the file in the subdirectory "dist-packages". Mar

DCOracle2/python/zope

2005-12-01 Thread Marcel Hartmann
Hi, I have problems to get ZOracleDA run in Zope - I cannot found a solution wheter in Zope Groups nor searching google and I think it's a python problem. The connection in python - without zope - functions without problems and the missing library (see errors later) is obviously found. Is it

Re: What is the recommended python module for SQL database access?

2014-02-09 Thread Marcel Rodrigues
As Chris said, if your needs are simple, use SQLite back-end. It's probably already installed on your computer and Python has a nice interface to it in its standard library. [1] If you decide to use MySQL back-end instead, consider using PyMySQL [2]. It's compatible with both Python 2 and Python 3

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-09 Thread Marcel Rodrigues
Another option is PyMySQL [1]. It's developed in the open at GitHub [2]. It's pure Python, compatible with both Python 2 and Python 3. It's DB-API 2 compliant. It also implements some non-standard bits that are present in MySQLdb, in order to be compatible with legacy code, notably Django (personal

Re: What is the recommended python module for SQL database access?

2014-02-09 Thread Marcel Rodrigues
at 9:20 PM, Marcel Rodrigues > wrote: > > As Chris said, if your needs are simple, use SQLite back-end. It's > probably > > already installed on your computer and Python has a nice interface to it > in > > its standard library. > > Already installed? I th

Re: How to clear all content in a Tk()

2014-03-25 Thread Marcel Rodrigues
What about this: Put a Frame() inside the root: `frame = Frame(root)`. This frame will be the only immediate child of root. Everything else will be put inside the frame. When you need to clear the root, call `frame.destroy()`. This will destroy `frame` and all its children. You will need to recrea

Re: "Nested" virtual environments

2013-08-15 Thread Marcel Rodrigues
I don't know how to completely solve this problem, but here is something that can alleviate it considerably. If you have a recent version of pip, you can use wheels [1] to save built packages locally. First create a new virtualenv and install the common packages. Then put these packages in a wheel

Checking dependencies with distutils

2006-10-03 Thread Etienne Marcel
Hello, I would like to know if there is something in distutils (or in Python stdlib) which allow me to check for dependencies (shared libraries, headers or any other progs) before building/installing ? I am aware of this nice utility : http://trentm.com/projects/which/ which is useful (and cross

LDAPUserFolder mapping roles

2006-01-30 Thread Marcel Hartmann
I'm using LDAPUserFolder for Zope 2.7.6 and it works fine. Is it possible to do the mapping to zope roles by the _value_ of the group and not the group name? We defined in LDAP many groups to define access to different applications - one is named "zope". I want to map the values of this group "

Slicing an IXMLDOMNodeList

2005-06-12 Thread marcel . vandendungen
). Is there a way to make the IXMLDOMNodeList support slicing? I've tried to give the rgelem object a __len__ member, but got an exception from __setattr__: File "C:\Python24\Lib\site-packages\win32com\client\__init__.py", line 462, in __setattr__ raise AttributeError, "

Re: Slicing an IXMLDOMNodeList

2005-06-13 Thread marcel . vandendungen
For future reference: The solution to this problem is a simple one. rgelem = list(xmldoc.selectNodes('/root/elem')) returns a real list of IXMLDOMElements that can be sliced. -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Python AppStore / Marketplace

2009-02-22 Thread Marcel Luethi
to the world - because there is only one place you have to go... What do you think??? Is this crazy??? Or simply stupid? Or is this the way to world domination...? ;-) Unfortunately I'm not expert enough to build such a system - but if there is enough interest in the community I gladly wo

Python AppStore / Marketplace

2009-02-22 Thread Marcel Luethi
ible to the world - because there is only one place you have to go... What do you think??? Is this crazy??? Or simply stupid? Or is this the way to world domination...? ;-) Unfortunately I'm not expert enough to build such a system - but if there is enough interest in the community I

Re: Python AppStore / Marketplace

2009-02-22 Thread Marcel Luethi
pported platform) is a front-end application for the (PSF-) hosted "super-cheeseshop", which end-users are not expected to access directly. Is my nirvana really that far away? ;-) Best regards, Marcel PS A "Souq" is an Arab market (similar to a bazaar): http://en.wiki

binary decision diagrams

2017-12-20 Thread Wild, Marcel, Dr
? Regards, Marcel Wild The integrity and confidentiality of this email is governed by these terms / Die integriteit en vertroulikheid van hierdie e-pos word deur die volgende bepalings gere?l. http://www.sun.ac.za/emaildisclaimer -- https://mail.python.org/mailman/listinfo/python-list

binary decision diagrams (BDD)

2017-12-20 Thread Wild, Marcel, Dr
Hello every body, I'm new here and this is my first question. I really don't know anything about Python (I use Mathematica) but with the help of others learned that g=expr2bdd(f) makes the BDD g of a Boolean function f. But what is the easiest (fool-proof) way to print out the diagram of g (i.

RE: Are the critiques in "All the things I hate about Python" valid?

2018-02-20 Thread Wild, Marcel, Prof
this money is very well spent! Question: Apart from a few commands not available in Mathematica, such as expr2bdd, is there really any domain of computation where Mathematica is inferior to Python? Marcel -Original Message- From: Python-list [mailto:python-list-bounces+mwild=sun.ac...@python

Re: How to check...

2006-02-11 Thread Daniel Marcel Eichler
Lad wrote: >How can I check that a string does NOT contain NON English characters? try: foobar.encode('ascii') except: bla or use string.ascii_letters and enhance it. mfg Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: getting the line just before or after a pattern searched

2006-02-17 Thread Daniel Marcel Eichler
[EMAIL PROTECTED] wrote: >i have a file something like this > >abcdefgh >ijklmnopq >12345678 >rstuvwxyz >. >. >. >12345678 >. > >whenever i search the file and reach 12345678, how do i get the line >just above and below ( or more than 1 line above/below) the pattern >12345678 and s

Re: Am I missing something with Python not having interfaces?

2008-05-07 Thread Daniel Marcel Eichler
Am Dienstag 06 Mai 2008 16:07:01 schrieb Mike Driscoll: > If so, then it looks like an Interface is a generic class with method > stubs. You can do that with Python just as easily by creating empty > methods with just the "pass" keyword. Well, no. It's a litte different. Interfaces force to impl

Re: Am I missing something with Python not having interfaces?

2008-05-08 Thread Daniel Marcel Eichler
Am Mittwoch 07 Mai 2008 22:39:30 schrieb Luis Zarrabeitia: > There you have it, interfaces are not enough to ensure that the > implementors actually implement the methods. They are useful for > warning at compile time if there is a missing method, but nothing > more. It's not the fault of the en

Re: Am I missing something with Python not having interfaces?

2008-05-08 Thread Daniel Marcel Eichler
Am Donnerstag 08 Mai 2008 00:12:26 schrieb [EMAIL PROTECTED]: > very often sees do-nothing catch-all try/catch blocks in Java - which > is way worse than just letting the exception propagate. I find all > this totally pointless, because there's just no way for a compiler to > check if your code i

Re: Am I missing something with Python not having interfaces?

2008-05-09 Thread Daniel Marcel Eichler
Am Freitag 09 Mai 2008 10:19:45 schrieb Bruno Desthuilliers: > >> very often sees do-nothing catch-all try/catch blocks in Java - > >> which is way worse than just letting the exception propagate. I > >> find all this totally pointless, because there's just no way for a > >> compiler to check if y

Re: Index server

2005-01-14 Thread Marcel van den Dungen
a look at the following URLs: http://www.methods.co.nz/docindexer/ http://www.divmod.org/Home/Projects/Lupy/index.html http://www.divmod.org/Home/Projects/Pyndex/index.html HTH, -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic file operation questions

2005-02-02 Thread Marcel van den Dungen
ok at this: http://www.devshed.com/c/a/Python/File-Management-in-Python/ HTH, -- Marcel -- http://mail.python.org/mailman/listinfo/python-list