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
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
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!
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
Hi!
You can use (exemple) :
"cmd /cSTART notepad"
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
'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
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
Cool !
Thanks !
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
NTFS hardlink exists before others filesystem.
Please, send question to other FS...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
>>> I have also found "autoimp" useful in writing normal Python...
+1
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
fois par
mois, et les utilisateurs ont toujours plus choses à valider...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
For Python only, it's possible.
But, if you add Pywin32... problem!
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
mmap?
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Rename Pythonw.exe like jtp.exe
And... run: jtp.exe yourscript.pyw
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
classification, I propose: PEP'S
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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!
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
, 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
And Il1 O0 ?
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Merci beaucoup !
Thank you very much!
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
?)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
In my Win è 64 bits, python27.dll (and others DLLs like pythoncom27.dll,
pythoncomloader27.dll or pywintypes27.dll) are in C:\Windows\SysWOW64
And (my) Python 2.7.2 run perfectly.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
nd os.system("cmd /k") then "dir C:\Windows\System32\SoundRecorder.exe" do
not found
anyway.
But:
{Ctrl-Z} in Python
then dir C:\Windows\System32\SoundRecorder.exe run OK
Therefore, is the problem only in Python?
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
"trick" for mark the file like visible, or not,
in 32 mode. What trick?
OK, it is not a Python problem.
Then... thanks again for your explanations.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
+1
Gelonida confuses "Windows permissions" and "NTFS's rights".
(too) Many Windows users are unfamiliar with Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
+1
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
On windows, install a "Generic" printer, on "FILE:" port.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
On my system, thera are not "twain32.dll" or "twain_32.dll", but "twain.dll"
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> you need to install the appropriate libraries, among which are:
> libjpeg-devel
> freetype-devel
> libpng-devel
OK, but where can I find it? I want use PIL with Python under Windows,
and I can't compile C's sources.
Should I replace PIL by ImageMagick?
@-salutati
Re!
And why the problem no exist with PIL 1.1.6? (only 1.1.7)
Is that the version 1.1.6 does not use these libraries?
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Me, because some bugs in 216, I come back to 214...
(215 has another bugs).
@-salutations
--
MCi
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Warning with lower/uppercases!
Try to make two versions of your methods (ex.: "add" & "ADD"), for study.
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> If it's a binary file...
OK, but... what is a "binary" file?
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
IronPython is an implementation of Python.
IMO, this group talk about all Pythons.
Therefore, for me, this group is OK.
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
RUNNING / NOT RESPONDING / etc.
And...tasklist /? for help.
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I had write PLUIE, for use DHTML as GUI:
http://www.ponx.org/ponx/guie.htm
But it is not a good answer to your problem. Sorry.
Nevertheless, there are several functions & methods
for generate DHTML objects (and Python keep the
control on each object.
@+
--
Michel Claveau
*** s
Hi!
On windows, you can record sound who play on the local sound-card.
It is not really Python scripting, but Python can launch it.
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Try to unactive UAC...
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
The only way I know is to use sendkeys.
@+
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You forget to write "urwid" do not run under Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You forget to write "urwid" do not run under Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You forget to write "urwid" do not run under Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Your computer is too slow, for launch Excel.
Configure the machine for more speed...
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> Symbolic links are available in NTFS starting with Windows Vista.
No.
Hardlink come with NTFS, and already exists in W2K (and NT with specifics
utilities).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Where (directory) are you, when the problem come?
Have you try with UAC disabled?
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Install a resident soff (script) by task-planified, in Administrator
rights. Then, call this script from current work, for bypass UAC.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> side-by-side configuration is incorrect
Others have given you an explanation.
A possibility: you use a DLL directly, without having installed.
That is OK with some DLL, and no OK with others DLL.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
You will find (positive) answers in PyWin32 and his examples.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
;):
print instance," URL :",instance.LocationURL
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Try this line:
"C:\Program Files\Windows NT\Accessories\wordpad.exe" /p D:\data\fil.rtf
(change the path if you have a windows 64 bits)
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Python 32 bits (& Pywin32) limits are:
2 GB on win.7_32 bits
4 GB on win.7_64 bits
That's what I found in my tests.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I am, also, very interested in the answers.
Thank you for asking this question.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Thanks for this idea.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
AMHA (IMO), it is PyQT4 who change the DLL loader...
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> print x or y or z
> If none of the potential values are considered boolean false
But :
a=None
b=False
c=None
print a or b or c
> None
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re!
Look also :
>>> print False or None
None
>>> print None or False
False
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you are under Vista, or Windows 7, have you unactivate UAC, before
the update?
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Bonsoir !
La démarche me semble intéressante.
Je testerai le module quand j'aurai un peu de temps.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
IL-1.1.6 all run OK.
I found a solution:
- install PIL-1.1.7,
- then, copy these two files from PIL 1.1.6: _imaging.pyd & _imagingft.pyd
But, is it a good way?
Thanks
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
In several cases, Notes is not registred as COM server.
Depending of installation.
@-salutations
--
MCi
--
http://mail.python.org/mailman/listinfo/python-list
Salut !
C'est cela, la solitude du programmeur génial...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
se
print test_ascii(u"abcde")
print test_ascii(u"abcdê")
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re !
> Try your code with u"abcd\xa1" ... it says it's ASCII.
Ah? in my computer, it say "False"
@-salutations
--
MCi
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Suppose that the (web) site give the file only after several seconds, and after
the user click a confirm (example: RapidFile).
Suppose that the (web) site give the file only after the user input a code,
controled by a javascript script.
@-salutations
--
Michel Claveau
--
http
Hi!
On Windows, you can drive (manage?) ImageMagick from Python, via COM.
See: http://www.imagemagick.org/script/api.php#com+
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Bonsoir !
Un exemple là: http://www.mclaveau.com/grimoire/bleu.html#999
@-salutations
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> Python is interpreted
No. Python is compiled (--> .pyc)
But the term "to compile" is not always unambiguous...
And the notion of "compiler" is not attached to Python (the language), but is
attached to the implementation.
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
yLevel ; set 1 or 0.
)
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I use, all days, Python 2.6 + Pywin32 on Win-7-64 bits. Without problem
(I confirm : pywin 32 on 64 bits).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Application) for use HTML as
GUI tool in local applications.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you are under Windows, you can drive IE, for indirect drive the web-pages.
In this case, you can then interact with pages & the javascript's scripts
included.
For more, see Pywin32, Pamie, Pxie, etc.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listin
(envoyé via news:\\news.wanadoo.fr\comp.lang.python)
Hi!
See the module "sets"
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re !
Juste pour signaler qu'il existe un newsgroup en français sur Python, qui
permet de recevoir des réponses en français (donc plus complètes/détaillées).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
(envoyé via news:\\news.wanadoo.fr\comp.lang.python)
Hi!
Yes, the module sets is written, in doc, like "deprecated".
But:
- sets exist in Python 2.6 (& 2.5 or 2.4)
- documentation of sets (module) is better tha, documentation of set
(builtin)
The best: read the documentaion of the module
Bonsoir !
Tu aurais peut-être dû répondre en anglais (pour certains, "advanced features",
c'est mieux que "concepts sophistiqués").
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
d'autres étudiants d'écoles de commerce françaises que le
fait de ne pas arriver/savoir installer et tester Python sous Windows-7 donne
une mauvaise image de l'école...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
What is this final comma?
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Perso I use a wrapper to RMCHART.
There are two versions : DLL & COM. I prefer COM.
Warning : only on Windows's family.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> Tkinter is part of the Python standard library
Yes.
But...
tkinter is a wrapper to tcl/tk, who is written in tcl. Ok, tcl is given with
Python (standard library).
Therefore, you sentence:
'Are you really ruling out its use for a "pure Python" solution?'
Is w
Hi!
import os
os.system('cmd /c type L:\\source.fic >L:\\destination.txt')
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See:
http://docs.python.org/tutorial
(section 5)
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 146 matches
Mail list logo