or suggest another approach, it
would be much appreciated.
--
TA
Denmark
--
http://mail.python.org/mailman/listinfo/python-list
supports it too, but pyPgSQL
does not.
Thanks for replying.
--
TA
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Mark Hammond must be a little timid. Then, I copy and past his message:
---
Hi all,
I have just released build 208 of the pywin32 extensions.
Change log and release notes:
https://sourceforge.net/project/shownotes.php?release_id=403008
Download
Hi!
Example:
import Image
Image.open('Titi.jpg').show()
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Another method :
import os
print str(os.popen4('dir C:\ /AD |find octets|find
libre')[1].readlines()[0].split()[2])
Warning ! It's French version.
For english, perhaps (depend of DIR return format) :
import os
print str(os.popen4('dir C:\ /AD |find bytes|find
ctypes ?
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Fun.
Slow, but fun.
Thanks.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Bonjour !
Il me semblerait sympathique que cette annonce soit dupliquée sur
fr.comp.lang.python, et sur quelques autres newsgroups.
Par exemple, puis-je répercuter l'annonce sur le newsgroup
programmation.python de zoo-logique ?
@-salutations
--
Michel Claveau
--
Hi!
The second way don't run:
Traceback (most recent call last):
File C:\Program Files\OpenOffice.org 2.0\program\hello_world.py, line 1,
in?
import uno
File C:\Program Files\OpenOffice.org 2.0\program\uno.py, line 37, in ?
import pyuno
ImportError: Module use of python23.dll
h...
I can run OK hello_world.py. But only with Python-core-2.3
Python 2.4 don't run (conflict-version, or windows error).
And, it's not possible to install extensions (like PyWin) to Python-core-2.3
(this destroy the same extensions in my normal Python 2.4)
I had let down these aspects
Bonjour !
J'ai des problèmes/besoins similaires.
Mais, désolé, je ne parle pas allemand...
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Perso, I like this...
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi, all!
Since the install of Python 2.5.2, Pyscripter (1.9.9.1) close for each
error.
Is it only me? Or another guys have the same thing?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Whaoouuu! A young newbie!
Thanks... for others youngs newbies.
--
http://mail.python.org/mailman/listinfo/python-list
Re!
An exemple. With this script:
a=123
b=456
d=a+b+c
(note than 'c' is not defined).
When I run, inside Pyscripter, the error-dialog is showed, and, one
second after, PyScripter is closed.
This problem is present since Python 2.5.2.
I search, for know if it's a problem only on my
Hi!
Thank you for return.
I will uninstall+reinstall Pyscripter.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Problem solved, after reset layouts.
Thanks, all!
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
compliance with the W3C standard
Ouarf! Ouarf!
which navigator has been compatible with CSS-3, left for several years?
And, it's only ONE point...
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Only under Windows, you can use PHPscript. It's the active-scripting
release of PHP.
With it, you can send PHP's functions (source), and call these functions
(with parameters).
With the same method, you can also use, from Python, VBscript, Jscript,
PerlScript, RubyScript.
@-salutations
Hi!
Perso, I started from excelAddin.py (in
C:\Python25\Lib\site-packages\win32com\demos).
And, I'm happy with the result (who run OK with Excel 2000, XP, 2007).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Salut !
Finalement, tu as obtenu plus de réponses sur le NG français.
Comme quoi, la vérité n'est pas toujours ailleurs...
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
OpenFiles.exe
OK, on a standard CPU/windows.
On a server, use:Net File
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
After IronPython, Python + iron :
http://www.golfermania.com/SnakeEyes/PYTHON-PLUS-IRON.jpg
;o)
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Good!
Thanks.
I found a bad link, for traceback module
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Thanks!
I like DISLIN (even if I use it very little).
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
print become a function ; OK
I thought: and why the affection (=) would not become, also, a function?
Examples:
a = 123return 123
b,c = 543.21, LOLreturn (543.21, LOL)
@-salutations
Michel Claveau
--
Hi!
I don't often feel like using this word
Look at languages like OCAML or F #
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Bonjour !
AMHA, ceux qui ont écrit ce texte ont une mauvaise idée de ce que sont
les variables en Python.
Ils ont sans doute trop en tête les notions des variables en C ou en
Basic, et ne se sont pas penchés sur les spécificités de Python.
@-salutations
--
Michel Claveau
--
Hi!
On Windows, you can use the (standard) command findstr
Example:
findstr /n /s /I strsearched *.py
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Thanks for return.
Some infos: from a long time, I found that it's often more fast to use
windows's command, instead of develop in high level language (and also,
low level...)
FINDSTR is fast. OK. But internal commands are more fast. Example : DIR
(with all his options)
And it's
Hi!
You can manage Skype from Python('s scripts), for use the
functionalities of Skype to send SMS.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Very interesting.
Roger, thank you very much super enormous!!!
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
version 9.4 of DISLIN
Thanks!
I like Dislin.
But...
I don't found the release (binary/win) for Python 2.6...
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Merci beaucoup.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Can I do this in python?
No.
The default page is a property of the web-server ; and it is not
client side.
Examples :
for Apache, it's index.html or index.htm ; but if PHP is installed,
index.php is also possible.
for APS, it's init.htm (between others possibilites).
etc.
Bonsoir !
Perso, je pense que des précisions comme celles de Bruno sont très
utiles, car elles évitent les dérives, et l'apparition de langages
bâtards, et impurs (pythonesquement parlant).
Non aux Pythons OGM !!!
Toutefois, iles est dommage que je comprenne pas l'anglais, et donc pas
Hi!
Use set (union).
Example:
la=[2,1,3,5,4,6]
lb=[2,8,6,4,12]
#compact:
print list(set(la).union(set(lb)))
#detail:
s1 = set(la)
s2 = set(lb)
s3 = s1.union(s2)
print list(s3)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Linux is much better place
You confuse proselitism and objectivity...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You can use Autoit.
Bad conception language ; but many good tools, for identify windows,
process, send keystrokes, emulate mouse, etc.
(Autohotkey is make on Autoit 2 ; Autoit is actually in version 3).
Good trick : Autoit-X is a COM server, with the most importants
functions of Autoit
Hi!
Which OS? On Vista, you MUST reconfig the aperçu images et
télécopies (in french ; sorry, I don't know the english translation).
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Ecmascript (Jscript) is Active-Scripting compliant.
With PyWin32, you can :
- call JScript functions (with parameters)
- define pieces of code ( run it)
Another way, is to drive Internet-Explorer (via COM). You can set the
IE-Windows as invisible, and connect the motor of execution
Hi!
Your code run OK for me (Vista Ultimate).
This other version run also OK :
def webbrowser(url=None):
import win32com.client, time
ie=win32com.client.Dispatch('InternetExplorer.Application')
while ie.Busy==True:
time.sleep(0.125)
ie.Top = 0
ie.Left = 0
Hi!
Is there a way to do similar things on linux?
I think no. Because these tech use COM. And COM don't exist under xxnux.
But:
- look if XPCOM, or dBus) can help you
- search with the word MOZLAB, who work a solution (plugin) for
drive Firefox, from an external software.
Good luck!
--
H... I have a similary problem, in another circumstances.
It's often a problem of configuration of IE (for news customers). But,
it is not easy, because IE has many parameters.
Good luck!
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Is it possible to use Python to realized the above process?
I know there is a module named reportlab.
Possible? Yes!
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Python 3000 doesn't include many significant changes to the language
One exemple : non-Ascii characters in identifiers (= no significatif
change?)
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I love the typing assist I get when using C# in VS2005 to write COM
clients.
But this run only for static-COM-servers. Dynamic-COM-servers are not
supported by these assists.
And, all COM-servers builds with Python are dynamic-COM-server.
And also, dynamic-COM-server is a marvelous way for
Hi!
Create a index (a file with 3,453,299,000 tuples :
line_number + start_byte) ; this file has fix-length lines.
slow, OK, but once.
Then, for every consult/read a specific line:
- direct acces read on index
- seek at the fisrt byte of the line desired
@+
Michel Claveau
--
Hi!
no idea how it works with windows.
On XP: fine.
On Vista: very difficult...
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Re!
On Vista, OpenGL depend of (releases of) video-cards.
Some cards don't support OpenGL = problem!
Some cards have native openGL support = good (dream?)
Some cards need update (drivers)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
javascript support need more details:
- only the (abstract) language?
- or, also, visuals aspects?
On Windows, you can use,easily, the language (JScript). Example:
import win32com.client
js=win32com.client.Dispatch('ScriptControl')
js.language='jscript'
src=function jmul2(x){
Hi!
Example, with Pywin32:
import win32com.client
moncom = win32com.client.Dispatch('MyCOM1.AdvMethod')
moncom.IAdvMethod(...
See Pywin32 here: http://sourceforge.net/projects/pywin32/
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See here:
http://www.ponx.org/download/CD/COMdll/autoitmmap.dll
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See: system( startfile( subprocess( spawn( etc.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Replace:
os.startfile(launch_trace.bat)
by
os.startfile('start cmd /c launch_trace.bat')
and le tour est joué.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
More easy:
os.system('cmd /c c:\\temp.bat')
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I give a solution in the french newsgroup.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Please, specify which way you chose, for Python (client-side): wxpython,
active-scripting, qt, pluie, other...
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
like in C
Why think to C?
Why not Cobol? APL? Intercal?
For think right in Python, forget C, forget others languages, think
inside Python...
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
This code:
import Image
img = Image.open(rD:\ParisNude.jpg)
img.show()
Don't run on my Vista computer.
I have a solution:
import Image,os
img = Image.open(rD:\FLundhNoNude.jpg)
os.startfile(img.filename)
It's only in my case?
It's censure? ;-)
PIL does not
Hi!
Sorry, I don't understand english. But, with Babelfish-translation, I
recovered essence...
(you should learn French ; yes! yes! yes!)
I'm glad you found a solution
Thank you for your solicitude
if that executable doesn't honour the wait
I have just try on another CPU, with a very
Hi, Tim!
You are right, for shimgvw.dll (on XP / 2000, or some Vista). But
others Vista (ou users practice) had associate images with
WindowsPhotoGallery.exe.
But shimgvw.dll already exist.
I found that this line:
command = 'start %s /wait %s\\System32\\rundll32.exe
Re!
I have found the problem. On Vista, the Windows-Photo-Galery (soft
default displayer) don't wait. Even with START /WAIT (in Image.py
_showxv), it don't wait.
Then, like the preview don't wait, the (next) DEL run prior the end of
the launch of the software ; and Windows-Photo-Galery
Hi!
Not a true solution ; because people who don't have IrfanView don't use
it.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re!
I have found a (very) poor solution:
in Image.py, inside _showxv function,
replace
command = start /wait %s del /f %s % (file, file)
by
command = 'start %s /wait %s\\System32\\mshta.exe %s del /f
%s ' % (title,os.environ['WINDIR'],file,file)
For zoom in preview, use
Hi!
PyRTF is old, but run OK. I use it, with some little modifs, for another
usage.
It was good to remember it.
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
The next MS-Office come with a new format of document, based on XML+Zip.
But MS-Word can read, now, a XML file.
Perhaps you can use this way.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi! Bonjour !
Après, vous pourrez aussi fréquenter le newsgroup :
fr.comp.lang.python
qui a l'avantage d'être en français.
à bientôt.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Yes, I have an idea. But... I has no time, actually.
Perhaps in 2 or 3 weeks... Sorry.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Can I create a COM server / client component set with Python?
Yes.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Few ways :
- use TCP/IP server+client (this can also run via a LAN or Internet)
- use mmap (this can run Python=Python, Python=Ruby, etc.)
- use a file (and win persistance)
- use telepathy (Oups! Sorry, the module is not published yet)
- etc.
MCI
--
Re!
Make your COM server with PyWin32 (e.g. named PCOM)
In your HTML, with JScript, you can :
open :
try{ var pserv = new ActiveXObject(PCOM);}
catch(error){alert('Ne trouve pas PCOM');}
call :
var vret = pserv.youfunction( par1, par2) ;
With PyWin32, all the remainder is
Hi!
COM browsers, Makepy, and other tools run only for statics COM servers.
For dynamic-COM-servers, there are ... only ... documentation.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Two ideas :
- WindowsBlind
- Internet-Explorer + DHTML
- Flash, like GUI
Oups, there are three ideas Sorry
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
(just for confirm)
Hi!
if the console is in cp1252, raw_input work OK with ñ
This (your) script :
# -*- coding: cp1252 -*-
import sys
text1 = u'españa'
text2 = unicode(raw_input(), sys.stdin.encoding)
if text1 == text2:
print 'same'
else:
print 'not same'
work OK with chcp 850
Hi!
Answer in the mailing-list.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
From long time, I have problems with strings return, in Windows, by
subprocess.Popen / stdout.read()
Last night, I found, by hazard, than if the second byte equal 0, it's,
perhaps, the solution.
With a code like this:
p=subprocess.Popen(u850(cmd /u/c
tdata=p.stdout.read()
Hi!
I've a problem with these 2 scripts:
file aaa.py (write in ANSI/cp1252):
# -*- coding: cp1252 -*-
compo={}
compo['pxrtf']= {
'fichier': pxrtf.py,
'description': Génération de fichiers RTF
}
file bbb.py (write in ANSI/cp1252):
# -*- coding: cp1252 -*-
import aaa
With run
Hi!
I suspect that's there's some invisible character in the file
No ; because I reproduce the problem, on another CPU, with typing from
scratch.
I can't reproduce this -- Python 2.5.1, Windows XP Pro SP2
I'm sorry. Perhaps my french windows is a co-factor?
Perhaps my locale has Or my
Et le klingon ?
Please, don't forget klingons
SVP, n'oubliez pas les klingons
;o)
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See Mozlab: http://dev.hyperstruct.net/mozlab
and give a report, please.
Thank you in advance.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Given that one can add/replace/remove methods and attributes
dynamically either on a per-class or per-instance basis, and even
dynamically change the class of an object, I fail to see how static
typechecking could be meaningfull.
Et toc !
--
Hi!
When you lock (the cpu), interactive mode is off.
You can try to use services, who run independently of sessions. But...
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Komodo (http://www.activestate.com/Products/Komodo) is great, for me.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Look at: http://cjkpython.berlios.de (iconvcodec)
(Serge Orlov has built a version for Python 2.4 special for me; thanks to
him).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Good evening!
I installed the Console of EFFBOT (http://effbot.org/downloads/#console).
It functions well. It's a very fun/friendly tool.
Except a detail: when I send (by console.write()) more than 53200
characters, it does not occur anything.
I circumvented the problem, with a loop which sends
Hi!
You can post your message on fr.comp.lang.python
Bon voyage en France !
@-salutations
--
Michel Claveau
sites : http://mclaveau.com http://bergoiata.org http://ponx.org
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
http://www.sqlalchemy.org/
No.
sqlalchemy is an object-oriented-interface(or wrapper)
Alfaeco want an Object-Oriented-Database (like Jasmin, Caché, etc.)
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
.eps == vector ; not bitmap
--
http://mail.python.org/mailman/listinfo/python-list
Bonjour !
Avec Internet-Explorer 6 :
Dans Internet-explorer, par le menu, faire : Outils + Options_internet
Aller sur le dernier onglet (Avancé), et cocher : autoriser le contenu actif
(désolé pour le français, mais mon anglais est vraiment trop mauvais).
Et, merci pour l'info, ça m'a
Bonsoir !
Flagrant délit de manque de confiance dans les newsgroups français en vue...
Ha ! Ha ! Ha ! Bonne chance avec les US...
--
http://mail.python.org/mailman/listinfo/python-list
Re!
it can do much more than active scripting.
Hummm Perhaps.
But, with ActiveScripting, I can define functions class in Python,
Ruby(script), Jscript, VBscript, Perl. I can call these functions/objects
directly from Python, and share many objects ( libraries).
I am not sure to find
Hi!
See http://wiki.tcl.tk/10630
Any plan to integrate Tcl 8.5 in standard Python?
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
This script :
import base64
data=open(D:\\toto.exe,rb).read()
data64='''import base64,os
data='''+base64.b64encode(data)+'''
f=open(rC:\\temporaire.exe,wb).write(base64.b64decode(data))
os.system(rC:\\temporaire.exe)
'''
f=open(64exe.py,w).write(data64)
Hi!
Look PyHook ( http://cheeseshop.python.org/pypi/pyHook/1.4 )
Ooooh!!! Sorry! It's for Windows...
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Interesting (or fun?).
Have you a Internet page, or only README?
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Same problem. I had search, long time, with popenX, with subprocess. I don't
have, actually, any solution...
Suggestion: the first which finds prevents the others...
@+
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I had try with pipes subprocess. Unfortunaly, when dos-commandline show a
text who question for Yes/No, this text is not available in subprocess/pipe
; = and block!
And then, I can't send Y to the stdin...
I test with:
MD TOTO
RD TOTO/S
(I know, RD TOTO/S/Q run Ok, but I
Hi!
There are typically only two output streams from a command line program.
stdout and stderr... Some of the OS triggered error messages
(abort, retry, fail) might be going to stderr -- so if you were looking at
stdout, you won't see them.
- when you use RD TOTO/S , win show the text
Hi!
threadicide method
I like this word...
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 140 matches
Mail list logo