Re: HELP - uninstall pyton error

2021-10-11 Thread Michel
give more details OS, Python Version, Method of installation.. etc.. On 10/7/21 17:18, Almadar Plus wrote: Could you please help me uninstall python? see attached screenshots files Regards -- https://mail.python.org/mailman/listinfo/python-list

Create a class at run-time

2010-03-25 Thread Michel
ould I define __new__ to bind the method during instantiation? Hope this makes sense, Michel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Create a class at run-time

2010-03-26 Thread Michel
Well, I don't have the reference to the instance. The class is actually instantiated later by a the unittest library. On Mar 25, 6:18 pm, Michiel Overtoom wrote: > On 2010-03-25 23:00, Michel wrote: > > > I'm trying to dynamically create a class. What I need is to define a

Re: Create a class at run-time

2010-03-26 Thread Michel
e the method is defined as a class method. This is ok in my case, but just out of curiosity, what should I do to change this method to an instance method? Thanks for your help, Michel. On Mar 25, 9:53 pm, I V wrote: > On Thu, 25 Mar 2010 15:00:35 -0700, Michel wrote: > > I'm trying

Re: Create a class at run-time

2010-03-26 Thread Michel
MyClass() c1.name = "Raoul" c1.test_toto() the output is: Marcel Oscar Raoul I'm wondering why the type of the self parameter is not 'instance' in the calls t1.test_toto() and t2.test_toto() The rest of the behavior is correct though, so I guess it's

Relocatable python install

2010-04-14 Thread Michel
- config,...) contain hardcoded path to the interpreter. Is there a way around that? Or an configure option to prevent these files to be installed? Regards, Michel. -- http://mail.python.org/mailman/listinfo/python-list

Making `logging.basicConfig` log to *both* `sys.stderr` and `sys.stdout`?

2011-08-30 Thread Michel Albert
Hi, I use python oftentimes to write automation scripts on Linux servers. And there's a big pattern in my scripts: - I *always* use `logging` instead of `print` statements. - I *always* create two stream handlers. One for `sys.stdout` with level `INFO` and one for `sys.stderr` with level `WARN`

Re: Making `logging.basicConfig` log to *both* `sys.stderr` and `sys.stdout`?

2011-08-30 Thread Michel Albert
On Aug 30, 11:45 am, Peter Otten <__pete...@web.de> wrote: > Michel Albert wrote: > > I use python oftentimes to write automation scripts on Linux servers. > > And there's a big pattern in my scripts: > > > - I *always* use `logging` instead of `print` stat

Re: matplotlib graph white space

2021-10-05 Thread Michel Alwan
t; -Original Message- > From: Michel Alwan > Sent: Monday, October 4, 2021 7:56 AM > To: Steve > Cc: python-list@python.org > Subject: Re: matplotlib graph white space > > In the plot window, you can click on the settings (up), and select the > option "tight layout

Re: matplotlib graph white space

2021-10-05 Thread Michel Alwan
.org/stable/gallery/index.html > > The problem I have is that there is too much white space around the graph. > My data would be better displayed if I could widen the graph into the space > to the right and left of the chart. > > Steve > > -- > https://mail.python.org/

Re: [python-win32] on the way to find pi!

2005-01-23 Thread Michel Claveau
Hi ! Very more simplistic, but easy for to code : def pi(nb): cpi=0 for i in xrange(1,nb,4): cpi=cpi+4./i-4./(i+2.) return(cpi) print pi(99) @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: wxgrid multiline cell editor

2005-02-10 Thread jean-michel
"James" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > wxpython 2.5.3 > anyone know how to make a multiline cell editor for wxgrid? Hello, You can do that by a "wxGridCellAutoWrapStringEditor". You can test it by modifying GridSimple.py in the demo by adding (at line 24 i

Re: python equivalent to access reports

2005-02-11 Thread jean-michel
"flupke" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > a lot of applications here a made with access. Tables, forms, reports > and the like. Now i rather use Python to do this but i'm not sure how to > proceed. I can use wxPython for a gui via wxGlade for rapid testing and

Re: goto, cls, wait commands

2005-02-11 Thread jean-michel
"BOOGIEMAN" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > I've just finished reading Python turtorial for non-programmers > and I haven't found there anything about some usefull commands I used in > QBasic. First of all, what's Python command equivalent to QBasic's "goto"

Re: goto, cls, wait commands

2005-02-11 Thread jean-michel
"Jeff Shannon" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > jean-michel wrote: > > > Hi all, > > I saw a lot of comments saying GOTO is not usefull, very bad, and we > > should'nt use it because we don't need it

Fw: Message vtkUser

2004-12-08 Thread Michel Audette
Hello everyone, my student had the following problem with a python program featuring multiple vtkTkRenderWidget calls. See below... Can anyone suggest a workaround? Best regards, Michel Michel Audette, Ph.D., Research Fellow, Surgical Simulation, Surgical Assist Technology Group, AIST, Namiki

How to display ReST properly on pypi?

2013-09-14 Thread Michel Albert
In general, I write my README files using the ReST syntax. But when I do, they don't show up formatted on pypi (see for example https://pypi.python.org/pypi/config_resolver/3.3.0). How do I get it to be formatted properly? Also, is there a way to specify that the "description" field in setup.py

Re: How to display ReST properly on pypi?

2013-09-14 Thread Michel Albert
, 14 September 2013 11:53:12 UTC+2, Chris “Kwpolska” Warrick wrote: > On Sat, Sep 14, 2013 at 11:08 AM, Michel Albert wrote: > > > In general, I write my README files using the ReST syntax. But when I do, > > they don't show up formatted on pypi (see for example > >

DNS query against a specific server.

2013-09-30 Thread Michel Albert
Hi, ``socket.gethostbyname`` sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query to a *different* server? I see that twisted.names allows you to do this, but, having all of twisted as dependency to my project when all I need to do is a sim

Re: DNS query against a specific server.

2013-09-30 Thread Michel Albert
On Monday, 30 September 2013 14:36:34 UTC+2, William Ray Wing wrote: > On Sep 30, 2013, at 7:42 AM, Michel Albert <***> wrote: > > > > > Hi, > > > > > > ``socket.gethostbyname`` sends the DNS resolution query to the DNS server > > specified

Re: DNS query against a specific server.

2013-09-30 Thread Michel Albert
On Monday, 30 September 2013 14:54:41 UTC+2, Ervin Hegedüs wrote: > Hello, > > > > On Mon, Sep 30, 2013 at 04:42:29AM -0700, Michel Albert wrote: > > > Hi, > > > > > > ``socket.gethostbyname`` sends the DNS resolution query to the DNS server >

Problem to calculate the mean in version 3.4

2015-09-24 Thread Michel Guirguis
mean([1, 2, 3, 4, 4]) NameError: name 'mean' is not defined Could you please help. Is it possible to send me the version that calculate statistics. Thanks, Michel 9.7. statistics — Mathematical statistics functions New in version 3.4. Source code: Lib/statistics.py This module provi

Re: Can Python write foreign characters to the console?

2005-12-18 Thread Michel Claveau
Hi! I have a problem, under win-XP, with this code : # -*- coding: cp-1252 -*- import sys print u"Martin v. Löwis" print "€ for Noël" print u"€ for Noël" sys.exit() ==> "Python a provoqué une erreur" Am I the only one to have that? Michel

Calling GPL code from a Python application

2006-01-03 Thread Michel Sanner
ystem('GPLapp')" violates GPL if I ship my Python code that does the os.system call and the GPLapp program ? Thanks for any input. Please reply to [EMAIL PROTECTED] -- --- o /Michel F. Sanner Ph.D.

Re: WMI Help

2006-07-13 Thread Michel Claveau
Hi! Win32_PhysicalMedia WMI class is available only on Windows 2003 or XP Then, swap Admin <=> Normal_user -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: WMI Help

2006-07-13 Thread Michel Claveau
Re! This script run on my XP : import win32com.client WMIS = win32com.client.GetObject(r"winmgmts:root\cimv2") objs = WMIS.ExecQuery("select * from Win32_PhysicalMedia") for obj in objs: print obj.SerialNumber print obj.Tag print -- @-salutations Miche

Re: running windows 'start' cmd using spawnl

2006-08-23 Thread Michel Claveau
Hi! You can use (exemple) : "cmd /cSTART notepad" -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is __builtin__

2006-10-28 Thread Michel Claveau
Hi! >> http://www.effbot.org/pyfaq/where-is-the-math-py-socket-py-regex-py-etc-source-file.htm Yeaaahh!!!Finally a genuine URL;o) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: C# equivalent to range()

2006-06-01 Thread Michel Claveau
Hi! > There are thousands of threads to choose from in this forum. > If they didn't like this question, they could have picked any other one > to discuss. > There's no need to be disagreeable :-) I think the same thing. -- @-salutations Michel Claveau -- http://m

Re: Using PHP in Python

2006-06-12 Thread Michel Claveau
Hi! Only in Windows, I can call PHP (more exactly PHP-script) from Python. I can, also, call, from Python, PHP-defined-functions, like a method of a Python-class. It's a combination of Active-scripting & dynamic method add to a class. -- @-salutations Michel Claveau

Re: Bridge: Ruby to Python communication

2006-06-12 Thread Michel Claveau
's run OK with : Ruby-script, Perl-script, PHPscript, VBscript, Jscript. -- @-salutations Michel Claveau -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Bridge: Ruby to Python communication

2006-06-12 Thread Michel Claveau
Hi! Sorry for my bad english. Look here : http://www.mvps.org/scripting/languages/ Python, with PyWin32, can use ActiveScripting. But... only windows... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Life + Python = Golly

2006-06-25 Thread Michel Claveau
Cool ! Thanks ! -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Threads and time.strptime()

2006-07-03 Thread Maximilian Michel
Hi all, I have an interesting problem: I have written code, that reads a logfile and parses it for date string (Thu Jun 29 14:01:23 2006). Standalone everthing works fine, all is recognized. But if I let the same code run in a thread, with the same file as input I get the following error: ... F

Re: Threads and time.strptime()

2006-07-04 Thread Maximilian Michel
The parsing thread reads also the file from the disk. placid wrote: > Maximilian Michel wrote: > > Hi all, > > > > I have an interesting problem: > > I have written code, that reads a logfile and parses it for date string > > (Thu Jun 29 14:01:23 2006). > &g

Re: Threads and time.strptime()

2006-07-04 Thread Maximilian Michel
; so normally Python doesn't set locales according to my system environment, but in a separate thread it does... strange (or i just didn't set something correctly?). Thank you so much! max John Machin wrote: > On 3/07/2006 6:57 PM, Maximilian Michel wrote: > > Hi all, > >

Re: Hardlinks on NTFS

2006-09-17 Thread Michel Claveau
Hi! NTFS hardlink exists before others filesystem. Please, send question to other FS... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatic import PEP

2006-09-22 Thread Michel Claveau
Hi! >>> I have also found "autoimp" useful in writing normal Python... +1 -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

"wxmsw26uh_vc.dll not found" when using wxAgg backend

2006-09-23 Thread michel legrand
,   Michel -- http://mail.python.org/mailman/listinfo/python-list

Re: converting dict to object

2006-12-01 Thread Michel Claveau
Hi! Yes. But... Try:d = {'a': 1, 'b': 2, 'def': 123} Ok, I go out... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Plugin for Web Browser

2006-12-06 Thread Michel Claveau
fois par mois, et les utilisateurs ont toujours plus choses à valider... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: inquiry about installing Python 2.5

2006-12-16 Thread Michel Claveau
Hi! For Python only, it's possible. But, if you add Pywin32... problem! -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Shared memory

2006-03-02 Thread Michel Claveau
mmap? -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Tail Call Optimization as a Decorator

2006-03-03 Thread Michel Salim
Neat stuff! I commented on the ActiveState post, but for completeness, I modified your code to support mutual recursions, and used jorend's isTailCall() to make it safe to call an optimized function in a non-tail-call context. http://the-dubois-papers.blogspot.com/2006/03/python-tail-call-decorato

Re: Win32api, pyHook, possibly win32com, not sure XD, thats why I'm posting

2006-03-03 Thread Michel Claveau
Hi! Rename Pythonw.exe like jtp.exe And... run: jtp.exe yourscript.pyw -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Embed text document in excel application using python

2007-05-31 Thread Michel Claveau
Hi! > to embed object in excel An example come with PyWin32. This example create a toolbar inside Excel. This toolbar is write with Python. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: which "GUI module" you suggest me to use?

2007-06-05 Thread Michel Claveau
Hi! Only under Win: PLUIE (http://ponx.org/ponx/guie) This GUI is natively HTML. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

who know?

2007-06-05 Thread Michel Claveau
Hi! This image show IronPython. But... what is it? Link : http://msdn2.microsoft.com/en-us/vstudio/bb510103.vss_IronPython_large.jpg -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

PythonS?

2007-06-08 Thread Michel Claveau
classification, I propose: PEP'S -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem redefining __getitem__ for str subclass

2007-04-21 Thread Michel Claveau
Hi! Same result, with Python 2.5.1 on win-XP; I have compassion with you. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

SilverLight, a new way for Python?

2007-05-01 Thread Michel Claveau
new IDE (plug-in for VS-2005 or Expression are availables). But, I don't had try SilverLight... Who had try it? -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft's Dynamic Languages Runtime (DLR)

2007-05-02 Thread Michel Claveau
Hi! DLR is include in SilverLight. See my message of yesterday. For instant, DLR is for IronPython & JScript. Others languages are only promised. You can install SilverLight 1.1, and make your tests. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft's Dynamic Languages Runtime (DLR)

2007-05-02 Thread Michel Claveau
Re! During we post messages, then blog of Jim Hugunin is updated: http://blogs.msdn.com/hugunin/ -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Michel Claveau
, because non-ASCII characters are possible, they are no-obligatory ; consequently guys (snobs?) want stay in pure-ASCII dimension will can. * sorry for my bad english * -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Michel Claveau
And Il1 O0 ? -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Michel Claveau
Hi! ;-))) In whitespace-programming-language, only three characters are used : Space - Tab - RC No parasitic characters in listings ; economy of ink ; ecological behavior ; LOL programming... Must, Python, follow this way? -- @-salutations Michel Claveau -- http://mail.python.org

Re: os.listdir() doesn't work ??

2007-05-14 Thread Michel Claveau
Hi! > You want the glob module Warning: glob has "unix like behavior"; just a little different with windows's DIR -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Michel Claveau
27;+33123' Imagine the same code, is accents are not possible... Don't forget: we must often be connected to databases who already exists -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: minimum age to learn python (a.k.a graphical vs text languages)

2007-03-10 Thread Michel Claveau
Hi! Personally, I was yet in the belly of my mom, whom I already thought in Python… -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Executing a list of functions

2007-03-16 Thread Michel Claveau
Hi! Your code run OK for me. But, if you want "time-lag" (sorry for my english) execution, you can try this: def a(): print "this is a" def b(): print "this is b" lst = [a, b] [f() for f in lst] -- @-salutations Michel Claveau -- http://ma

Re: pluie documentation in english

2007-04-09 Thread Michel Claveau
days. Mais... J'espère pouvoir compléter la documentation dans les jours qui viennent. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Kill thread

2007-04-09 Thread Michel Claveau
Hi! If you have the PID of the process (example: 1234), use this command-line : TASKKILL /F /PID 1234 -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: TASK KILL

2007-04-09 Thread Michel Claveau
process is a service (kif-kif daemon), you can use SC (see SC /?) For thread, the concept is fuzzy. Thread can be manage by OS, by software (e.g. by Python, for Python's threads), or by middlewares. There are no universal way. -- @-salutations Michel Claveau -- http://mail.python.org

Re: How to initialize a table of months.

2007-04-15 Thread Michel Claveau
n2int('May') print mond2int(Jul=0) > 3 > 5 > 7 (The dict is mixed : French/English) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How to initialize a table of months.

2007-04-15 Thread Michel Claveau
Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python + Shoutpy + Twisted Locks

2007-10-07 Thread Michel Albert
On Oct 6, 4:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 05 Oct 2007 04:55:55 -0300, exhuma.twn <[EMAIL PROTECTED]> escribi?: > > > [...] What I found > > is that "libshout" is blocking, which should be fine as the whole > > thing runs in it's separate thread. But the application

Drawing charts in Qt

2007-11-06 Thread Michel Albert
I would like to display some charts in a Qt application. But all the docs I find online are rather dusty and talk about Qt3. My application uses Qt4 however. I ran into PyQwt and matplotlib. But the docs of matplotlib are horrid and the example in their wiki covers Qt3, and things look quite crypti

Re: Drawing charts in Qt

2007-11-07 Thread Michel Albert
On Nov 6, 5:08 pm, David Boddie <[EMAIL PROTECTED]> wrote: > On Tue Nov 6 15:46:07 CET 2007, Michel Albert wrote: > > [PyQwt and matplotlib] > > > PyQwt looks much more interesting, but I have trouble installing it. > > On my machine it complains that sipconfig &quo

Using python as primary language

2007-11-07 Thread Michel Albert
In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: * Database access to Sybase. This seems to be available for python, but the windows-bin

Re: Using python as primary language

2007-11-09 Thread Michel Albert
On Nov 8, 8:55 pm, [EMAIL PROTECTED] wrote: > On Nov 8, 1:52 am, Michel Albert <[EMAIL PROTECTED]> wrote: > > > > > In our company we are looking for one language to be used as default > > language. So far Python looks like a good choice (slacking behind > >

parallel csv-file processing

2007-11-09 Thread Michel Albert
Currently I am faced with a large computation tasks, which works on a huge CSV file. As a test I am working on a very small subset which already contains 2E6 records. The task itself allows the file to be split however as each computation only involves one line. The application performing the compu

Re: Binary search tree

2007-11-12 Thread Michel Albert
On Nov 9, 11:45 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit : > > > Hi, > > > I have to get list of URLs one by one and to find the URLs that I have > > more than one time(can't be more than twice). > > > I thought to put them into binary search tree, this way the

Re: [Edu-sig] "do" as a keyword

2007-12-12 Thread michel paul
o 'while', and there you have a loop! Only problem, it will keep repeating forever, so now we have to consider ways to get it to stop. Speaking from my own learning experiences, 'while True' initially seemed awkward, probably for the same reason 'if True' would - why

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread Michel Claveau
Merci beaucoup ! Thank you very much! -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: python and xulrunner

2006-05-01 Thread Michel Claveau
?) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Help with regular expression patterns

2008-11-28 Thread Michel Perez
attern : wikilink <== ['Image:image_link.jpg|rigth|thumbnail|200px|"PREMIER"'] [] ['markup', 'programming_language|language'] [] [] [] ===> processing pattern : a_nowiki <== [] [] [] [] [] ['sign]'] In the fir

about recursive load

2008-10-30 Thread Michel Perez
Hi, am very newbie in Python, but as part of a project i need to load configuration -a settings.py file in the package dir- of my apps recursively, something like this: settings.load_config("project.test.app") settings.load_config("project.test.*") settings.load_config("project.test") settings.

find an object ancestor

2008-11-05 Thread Michel Perez
HI all: imagine something like this: class father: pass class son( father ): pass I need to know the son ancestor class how can i know this. Thanks --- Red Telematica de Salud - Cuba CNICM - Infomed -- http://mail.python.org/mailman/li

Re: find an object ancestor

2008-11-05 Thread Michel Perez
Thanks it works OK On Thu, 2008-11-06 at 13:14 +1000, James Mills wrote: > On Mon, Nov 3, 2008 at 7:16 AM, Michel Perez <[EMAIL PROTECTED]> > wrote: > > HI all: > > > > imagine something like this: > > > > class father: > >pass > > class

convert to XMLRPC

2008-11-06 Thread Michel Perez
the way i handle the result i only need to convert them to XML or else. -- Michel Perez )\._.,--,'``. Ulrico Software Group/, _.. \ _\ ;`._ ,. Nihil est tam arduo et difficile human `._.-(,_..'--(,_..

problem with JSON-RPC

2008-11-12 Thread Michel Perez
cho(self, msg): return msg service = MyService() service client  #!/usr/bin/env python from jsonrpc import ServiceProxy s = ServiceProxy("http://localhost/services/test.py";) print s.echo("foobar") Regards -- Michel Perez

Using a decorator to *remove* parameters from a call

2009-04-13 Thread Michel Albert
A small foreword: This might look like a cherrypy-oriented post, and should therefore go to the cherrypy group, but if you read to the end, you'll see it's a more basic python problem, with cherrypy only as an example. ;) >From the decorator PEP (318) I get it that you can /add/ parameters to a ca

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread Michel Albert
On Apr 13, 12:52 pm, Jon Clements wrote: > On 13 Apr, 11:11, Michel Albert wrote: > > > > > A small foreword: This might look like a cherrypy-oriented post, and > > should therefore go to the cherrypy group, but if you read to the end, > > you'll see it&

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread Michel Albert
On Apr 13, 12:45 pm, Aaron Brady wrote: > On Apr 13, 5:11 am, Michel Albert wrote: > > > A small foreword: This might look like a cherrypy-oriented post, and > > should therefore go to the cherrypy group, but if you read to the end, > > you'll see it's a more b

qrcode in python?

2008-05-21 Thread Michel Albert
I am planning to write a python-module for python as I haven't found anything on the tubes so far. If anyone has any interesting insight on this topic, replies are welcome! ;) Q: What is QR-Code? A: http://www.denso-wave.com/qrcode/qrstandard-e.html So far (as of May 21st 2008): Google (1 sensi

Stripping scripts from HTML with regular expressions

2008-04-09 Thread Michel Bouwmans
Hey everyone, I'm trying to strip all script-blocks from a HTML-file using regex. I tried the following in Python: testfile = open('testfile') testhtml = testfile.read() regex = re.compile(']*>(.*?)', re.DOTALL) result = regex.sub('', blaat) print result This strips far more away then just the

RE: Stripping scripts from HTML with regular expressions

2008-04-09 Thread Michel Bouwmans
Reedick, Andrew wrote: > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans >> Sent: Wednesday, April 09, 2008 3:38 PM >> To: python-list@python.org >> Subject: Stripping

Re: How is GUI programming in Python?

2008-04-10 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Rubin wrote: > Chris Stewart <[EMAIL PROTECTED]> writes: >> I've always had an interest in Python and would like to dabble in it >> further. I've worked on a few very small command line programs but >> nothing of any complexity. I'd like to bui

RE: Stripping scripts from HTML with regular expressions

2008-04-10 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reedick, Andrew wrote: >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans >> Sent: Wednesday, April 09, 2008 5:44 PM >> To: python-list@python

Re: How is GUI programming in Python?

2008-04-10 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Driscoll wrote: > On Apr 10, 12:05 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> >> Paul Rubin wrote: >> > Chris Stewart <[EM

Re: How is GUI programming in Python?

2008-04-11 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Genellina wrote: > Another annoying thing with the Qt license is that you have to choose it > at the very start of the project. You cannot develop something using the > open source license and later decide to switch to the commercial licence >

Re: How is GUI programming in Python?

2008-04-11 Thread Michel Bouwmans
Steve Holden wrote: > Michel Bouwmans wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mike Driscoll wrote: >> >>> On Apr 10, 12:05 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: >>>> -BEGIN PGP SIGNED MESSA

Re: How is GUI programming in Python?

2008-04-11 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rune Strand wrote: > On Apr 10, 3:54 am, Chris Stewart <[EMAIL PROTECTED]> wrote: > ... >> >> Next, what would you say is the best framework I should look into? >> I'm curious to hear opinions on that. > > GUI-programming in Python is a neanderthal e

Re: How is GUI programming in Python?

2008-04-12 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Genellina wrote: > En Fri, 11 Apr 2008 11:31:42 -0300, Michel Bouwmans > <[EMAIL PROTECTED]> escribió: >> Gabriel Genellina wrote: > >>> Another annoying thing with the Qt license is that you have to choose i

Re: How is GUI programming in Python?

2008-04-13 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Torsten Bronger wrote: > Hallöchen! Und auch ein hallo, aus den Niederlanden! :P > Michel Bouwmans writes: > >> Gabriel Genellina wrote: >> >>> Michel Bouwmans <[EMAIL PROTECTED]> escribió: >>> >

urllib2 Basic authentication, what am I doing wrong?

2008-04-13 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey everybody, I'm having a little problem with urllib2 and Basic HTTP authentication. I have the following code: auth = urllib2.HTTPPasswordMgrWithDefaultRealm() auth.add_password(None, 'https://webmail.osg-erasmus.nl/oneNet/NetStorage/', user, pas

Re: urllib2 Basic authentication, what am I doing wrong?

2008-04-13 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Max Erickson wrote: > On Apr 13, 2:11 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: > >> Using this nice class (adapted to urllib2) as a basehandler I see that no >> Authentication-header is being send >> out:ht

Descriptor leak in python 2.4 subprocess module

2008-08-28 Thread Michel Lespinasse
any replies as I'm not on the list (I will notice the replies after a while either way, but it'll be faster if you can copy me). Cheers, -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies. -- http://mail.python.org/mailman/listinfo/python-list

Re: Descriptor leak in python 2.4 subprocess module

2008-08-28 Thread Michel Lespinasse
On Thu, Aug 28, 2008 at 10:37:48AM +0100, Tim Golden wrote: > Michel Lespinasse wrote: > >I hit an issue with the following python code: > >try: > >get_orient = subprocess.Popen (['jpegexiforient', '-n', pathfull], > >

Re: Python Nautilus script

2008-09-16 Thread Michel Leunen
ex, file_name in enumerate(file_names): ft.write("%s: [%s]\n" % (index, file_name)) if os.path.isfile(file_name): os.rename(file_name, '%03d-%s' % (index+1, file_name)) ft.close() Yes, indeed, it works with your code. Thanks for it. I just have to find out why it doesn&

  1   2   3   4   5   6   7   8   9   10   >