Abuse reports to
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL
PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Hi python-community,
I would like to ask you if someone know any open source softphone wrote
entirely in Python. The thing is that I want to write a honeyphone but
starting from a softphone. Sorry if you think that I haven't "googled"
enough.
Regards,
Rodrigo.
--
http://mail.python.org/mailman/l
Hi also !
In other fields, I also found uses which did not function with subprocess,
but OK with popen2/4
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
This script (under Win-XP + P-2.4.1) :
import subprocess
p1=subprocess.Popen(r'cmd /cdir *.* /S /W /B', stdout=subprocess.PIPE)
chaineretour=p1.stdout.read()
run OK if called from DOS-console. But, from another Python's script (by COM
+ exec) give me an error.
Here, the traceb
Hi !
Thank you very much.
With your tip, this script :
import os
p = os.popen4(r'cmd /k')
p[0].write('dir *.bat /B\r\n')
p[0].flush()
p[0].write('dir *.cfg \r\n')
p[0].flush()
p[0].write('exit\r\n')
p[0].flush()
print ''.joi
Hi !
No problem for me, with IE-6 + FlashGet (just to choose right-click + record
target)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
On the site of Amber : http://xamber.org/index.html
We can to view the sentence : "Parrot version of Python"
Question : what is "Parrot version of Python" ?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Thank for links.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Perhaps... ";" better than "," :
im=Image.open(r"C:\vodka3.png"); im.show()
Perhaps... more simplist :
im=Image.open(r"C:\vodka3.png").show()
Perhaps... other thing ?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I agree with you; I will adore capacity to call functions named in Unicode.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
The parameter (ResourceID=2) is problematic
Try :
proj.Tasks(3).Assignments.Add(2)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Not the good answer, but, for information :
AutoIt is very better in beta-release (many versions beta exist). AutoIt
beta can use COM call, and can use COM-server writed in Python with win32all
(PyWin).
And, also, AutoIt exist like Active-X (in reality a COM server), who can to
do used
Hi!
Under Windows, I call graphwiz from Python via COM, with win32all (PyWin).
Sorry, I don't know the Mac.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I did not understand anything with your chatterer message.
But, perhaps, the code below will help you.
@-salutations
Michel Claveau
def runcode(srcode):
import sys,traceback
sret=True
try:
ccod=compile(srcode, 'Paul-code', 'exec')
flagcompile=True
except:
print
With good spaces :
def runcode(srcode):
import sys,traceback
sret=True
try:
ccod=compile(srcode, 'Paul-code', 'exec')
flagcompile=True
except:
print "compilo-error"
flagcompile=False
if flagcompile==True:
try:
exec(ccod
Hi !
With W2K or WXP :
tasklist /FI "IMAGENAME eq exename.exe"
And, with Python, how capture this information :
def findPID(exename):
import os
a = os.popen4('tasklist /FI "IMAGENAME eq '+exename+'"')
a[0].flush()
try:
info=a[1].readlines()[3].split()
except
Hi!
Self-destruction of a script:
import os
os.popen('TASKKILL /PID '+str(os.getpid())+' /F')
(only in windows XP or 2K)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
But fnmatch (or glob) is unix-like. With few error in windows (sample ?
trye '*.' )
Test this code rather:
import os
l=os.popen4('dir c:\\python\\*.pyw /S /B')[1].readlines()
print ''.join(l)
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/pytho
Hi!
Let down subprocess, and remember popen4.
Here, an example (with CMD, under w-XP) :
import os
def lcmd(lst=None):
a = os.popen4(lst[0])
for i in lst[1:]:
if i!='':
a[0].write(i+'\r\n')
a[0].flush()
return a[1].readlines()
l=[
'CMD /K',
'DIR *.c
Hi!
See http://mclaveau.com/ress/python/zipmci.htm
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
>From WxPython, or from PythonWin.
Other way : call, & drive, Internet-Explorer, who call the ocx.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
+1
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Scriptomatic 2.0 can, now, to generate scripts in Python.
Download :
http://www.microsoft.com/downloads/thankyou.aspx?FamilyID=09dfc342-648b-4119-b7eb-783b0f7d1178&displaylang=en
Note : scriptomatic is a generator of WMI's scripts, for Windows, (and
compatibles WBEM).
Good night
--
Mi
, complementary at
Python...
But, C is not complementary to Python (in the same state of mind).
And, what do you think of... Erlang ?
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
>>> ...Usenet to transmit it properly
newsgroups (NNTP) : yes, it does it
usenet : perhaps (that depends on the newsgroups)
clp : no
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
The good URL is : http://pyscript.sourceforge.net
:-)
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
If you want only "search and found" element, look dictionnary ; if you want
also to have the order, see the module set.
Good night
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
nntplib.NNTP(newsserver,port,user,passe)
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look the smart/fun use of threads make by
http://candygram.sourceforge.net
It's good for to know...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look for "service" in PyWin
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
+1
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Perso, j'utilise ça (VBA) :
Sub TestPonx()
Dim oa As Object
Set oa = CreateObject("Ponx.Mci")
Cells(2, 4) = oa.PRet("123+45+6")
Set oa = Nothing
End Sub
"Ponx.Mci" est le nom du serveur COM Python
PRet() est équ
rather... super troll
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Use Ctypes
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Try :
def ff(a):
print a*2
ff(111)
exec('''def ff(a):
print a*3
''',globals(),globals())
ff(111)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I use, intensively, Python, via COM & PyWin32, from Paradox (Object-Pal),
VBScript, Excel, Word, Internet-explorer, AutoIt, etc.
It is simple, powerful and extensible dynamically.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re Hi !
I had only test (little) Python for .Net ; OK, it's run. It is possible to
make winform from Python. And I had try to use Python for .Net from my
COM-server, and from VBscript. OK also.
Plus, I had try to call my Python-server-COM, from C# : OK it's run. C#
can use Python.
And, I h
Hi !
>>> Your english is fine.
Ce n'est pas mon anglais. Babelfish m'a beaucoup aidé.
@-salutations
--
Michel Claveau
mél : http://cerbermail.com/?6J1TthIa8B
sites : http://mclaveau.com http://bergoiata.org http://ponx.org
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
See :
http://www.gossamer-threads.com/lists/python/bugs/350314
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I am a Tablet-PC's user. I am a Python programmer. I am happy, with this
combo.
For use Tablet's extensions, I use Internet-Explorer, drived by Python (via
.HTA). Your problem is not Python, but, perhaps, Mozilla ?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinf
Hi !
Try :
OSCAR='the grouch'
print OSCAR
useless to thank me
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I use a COM server, made with Python & Win32all (PyWin32). The speed of
function's call is : 5 seconds, for 100 000 calls.
Only the first call is slow (due to time to load Python...)
Config : W-XP, P.2.4.1, 1.6 GHz, 512MB RAM
@-salutations & sorry for my bad english
Michel Claveau
--
Hi !
Use SC.exe (windows-XP) (with popen ?)
For help :sc /?
You can, also, try :
qprocess /?
tasklist /?
taskkill /?
etc.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
The size of a image is an element ; but resolution is another. It is the
link, between the image and the reality. Size AND resolution can to give the
scale.
Exemple : when you scan a document, the size (in pixels) is not sufficient,
for to reproduce the document. Size + resolution, yes.
Hum...
If it's Outlook, look for COM/Dispatch, with PyWin32
If it's Outlook-Express, search a MAPI module, like said Peter Hansen.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
>>> So anyone know if there are projects underway on this?
Yes, I work on this way. But it's a long work, because I have few time...
But there are certainly other projects.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
You are true.
But, more, don't believe : for use with CD-Rom/DVD, a path cannot to have
more than 64 caracteres.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Here : http://wikipython.flibuste.net/moin.py/AJAX
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Try :
import datetime
date1 = datetime.datetime(2005,01,01,8,20,0)
print date1.strftime('%Y-%m-%d %H:%M:%S')
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Open-Office 2.0 bêta-2 français pour Windows (en fait, la 1.9.125 ) est
sortie.
Vous la trouverez là :
http://oootranslation.services.openoffice.org/pub/OpenOffice.org/2.0beta2rc/OOo_2.0beta2_Win32Intel_install_fr.zip
Je cite ce lien, car j'ai réussi à piloter Open-Office, depuis Python, avec
Hi !
I had read the article on Python's concept "Metaclass": zero error in
the content !
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
One of the greatest reason which encouraged me to choose Python is its
interpreted nature (more exactly its nature of dynamic language).
The utilities of distribution, or packaging, are enough numerous to solve
this kind of problem.
The existence of Py2exe (inter alia), could concillier
Hi !
Thank you for this interesting message.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look (the doc for) Popen2, Popen3, Popen4 & Subprocess
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Perhaps : .Dispactch vs .Dispatch ?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look : .split()
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
same symptoms
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
And :
http://lesuisse.net/pyphp-0.1.tgz
?
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
You can found few ideas here :
http://candygram.sourceforge.net
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
It's OK for me
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I had also make a Python-COM-server.
But, when I launch several clients, I obtain several instances of my
COM-server.
Finally, there are advantages and disadvantages in this established fact.
But I can't use this way for to exchange data between several clients. For
that, I use a TCP local s
See Pamie :
http://pamie.sourceforge.net
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Oh, Sorry, I had read too fast.
I see, now, the word "Mac".
Apologies.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Sorry, but I receive the mailing list, I had readed THE book (Prog...Win32),
I questioned M.Hammond, I traversed the archives...
But I have no solution.
And, also, a COM server which answers several clients is very smart to
design; in particular because of the temporal re-entry (re-entrance
Hi !
On windows, and PyWin, this script give the H/V current resolution :
import win32com.client
oWMI = win32com.client.Dispatch("WbemScripting.SWbemLocator")
owbem = oWMI.ConnectServer(".","root\cimv2")
collec = owbem.ExecQuery("Select * from Win32_PrinterConfiguration")
pr
Hi !
For test your system, please, read this url :
http://sivanataraja.free.fr/config/test.htm (french)
http://www.alanwood.net/unicode/ (english)
And many explains : http://en.wikipedia.org/wiki/Unicode
And, to reassure you: I had no problème for use unicode chars with Tk (my
tests
Hi !
A socket (TCP) server is very easy, and 30 x faster than XML-RPC.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
A socket (TCP) server is more simplist than XML-RPC, and 30 x faster.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi
if key not in d:
d[key] = {subkey:value}
else:
d[key][subkey] = value
and
d[(key,subkey)] = value
?
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Also :
classname = "Dog"
exec("b="+classname+"()")
b.bark()
or
classname = "Dog"
exec("cl="+classname)
b=cl()
b.bark()
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Sorry, but :
The statement exec does not have impact on the style.
Like with exefile or import (and other), the style is determined by the
contents. Rather judge "exec" (or import, or execfile) than the contents,
it is an error of causality.
@-salutations
--
Michel Claveau
--
ht
4
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Try :
exec f in globals(),locals()
or
exec(f,globals(),locals())
or
exec f in globals(),globals()
or
exec(f,globals(),globals())
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Iconvcodec was good, for to work with UTF-32, with Python 2.3
But, which tool, for the same use, with Python 2.4 ?
Thanks for suggestions.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
re-Hi
When I look http://cjkpython.i18n.org I found only binaries for P2.1, P2.2
& P2.3 (I am on windows)
If I run the P2.3's version, on my Python 2.4 config, the package said that
he don't found Python2.3.
And, I don't have compiler for work with source.
If benefactor
Hi !
Finally, it's the best solution.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
a  aaa'
0123456
It's OK
--
http://mail.python.org/mailman/listinfo/python-list
And this run OK for me :
s = 'a  aaa'
print s
print s.replace('Â', '')
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I am curious :
1)I can't download the file ("error in the GotDotNet system").
2) On http://ironpython.com, there are no new version
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
little idea :
You can save the string, in temp-directory (see tempfile module), then,
use execfile
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Same question.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
+1
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I have sevral problems with P4-RC2.
Typical case, I have a script who run OK with P4 "standard" ; but, on a new
install, with P4-RC2, I obtain :
Traceback (most recent call last):
File "C:\PONX\ponx.py", line 60, in ?
import pdebug
File "C:\PONX\pde
Hi !
Good idea. I take this interpreter with jubilation.
Can I add your URL at http://mclaveau.com/esolang ?
Other question : do you know PATH ? (http://pathlang.sourceforge.net)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Yes, P4RC2 is a error ; it is Python 2.4.1 release candidate 2
Yes, P2.4 is Python 2.4
The scripts use ONLY space-indentation.
But the important points are :
- if I install Python 2.4 on the rc2 (overwrite), then problem
disappears, with the SAME scripts.
- the problem is only wi
Hi !
Thanks.
But, for previous versions of Python, I downloaded a CHM version; and, at
http://docs.python.org/download.html, I don't found this format.
is this a lapse of memory?
Would it be possible to have a continuity in the availability of the
formats?
Thanks again.
Michel Claveau
Hi !
This DLL come also with MS-JVM engine, who is free. Therefore...
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
And, also, with dotNET-framework
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I confirm for IE. Others, I don't know.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
+1
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
You can to generate SWF (flash) files, with swfobjs.dll
See :
http://bukoo.sourceforge.net
and
http://www.angelfire.com/nt/teklord/swfexport.htm
I succeeded, therefore, it is easy...
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look ctypes, for call the DLLs
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I had few modif. your code :
import time
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
xlApp.Visible=True
xlWb = xlApp.Workbooks.Open("Read.xls")
print "D3:",xlWb.ActiveSheet.Cells(3,4).Value
time.sleep(2)
xlWb.Close(SaveChanges=0)
xlApp.Quit()
This run OK on my
>>> vxworks tasks writes to a reserved area of memory.
Is it compatible with the mmap module ?
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See :
http://www.activeperl.com/Products/Visual_Perl/?mp=1
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
On windows, you MUST also configure the console.
Use CHCP for to force the good code-page.
And, right-click + property + font, for to choice the good font.
With that, I can visu french accents, cyrillic, etc.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/pyth
Hi!
That depends on what we call "console".
Python console?
or
Windows console?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Super mega cool.
Thanks!
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
>>> Just a poll: Who misses the Vaults of Parnassus like me?
Me (+1)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 112 matches
Mail list logo