Re: python 2.5 scripting in vim on windows: subprocess problem

2007-10-22 Thread MVP
Hi!

VIM can, also, to be OLE-COM-server.

Try with: 
  from win32com.client.dynamic import Dispatch
  vim = Dispatch('Vim.Application')

(+google)

@-salutations

Michel Claveau


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Multiple Versions of Python on Windows XP

2008-12-02 Thread MVP

Hi!

Multiple versions of Python is possible (example: Python standard + 
Python by OOo).

But, multiple versions of Python+PyWin32 is not possible.

Suggestion: use VirtualBox or Virtual-PC.

@-salutations
--
Michel Claveau


--
http://mail.python.org/mailman/listinfo/python-list


Re: multiply each element of a list by a number

2008-12-27 Thread MVP

Hi!


map(multby3, (1, 2, 3, ))


...with lambda:  
   map(lambda x: x*3, [1,2,3])


@-salutations
--
Michel Claveau


--
http://mail.python.org/mailman/listinfo/python-list


Re: When does python 3.1, 3.2 ve rsion out?

2009-01-08 Thread MVP
Hi! 


The mountain Python-3000 gave birth to a mouse Python-3.
You must waiting for Python-4000...

@+

MCI



--
http://mail.python.org/mailman/listinfo/python-list


Re: compare unicode to non-unicode strings

2008-08-31 Thread MVP

Par Toutatis !
Si tu avais posé la question à Ordralphabétix, ou sur un des ng français 
consacrés à Python, au lieu de refaire "La grande Traversée", la réponse 
aurait peut-être été plus rapide.


@-salutations
--
Michel Claveau


--
http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-21 Thread MVP

Hi!


Everything ... are an object.


It's true ; but a language built around the objects, and OOP, are two 
different concepts.


@-salutations
--
Michel Claveau


--
http://mail.python.org/mailman/listinfo/python-list


Re: Missing python27.dll on Win 7 64-bit

2011-06-20 Thread Michel Claveau - MVP
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


Python 2.7 and cmd on Windows 7 64 (files lost)

2011-06-22 Thread Michel Claveau - MVP
Hi!

(sorry for my bad english...)

On Win 7 64 bits:
  Command-Line
  CD \Python27
  dir C:\Windows\System32\SoundRecorder.exe:==> OK
  Python.exe

>>> import os
>>> os.system("dir C:\\Windows\\System32\\SoundRecorder.exe")  

==> Do not found the file !!!

and 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


Re: Python 2.7 and cmd on Windows 7 64 (files lost)

2011-06-23 Thread Michel Claveau - MVP
Re !

> This is because 32-bit processes (Python, 32-bit cmd) cannot see the 
> 64-bit DLLs in System32.

Thanks. 
You are right... but it is not enought.

This command:  echo %PROCESSOR_ARCHITECTURE%
give the statut:
   32:  x86
   64:  AMD64

and  DIR C:\Windows\System32\SoundRecorder.exe  is OK in 64, not in 32.



But if, in 64 mode, I copy SoundRecorder.exe to sr.exe, then I rename
sr.exe to sr.txt, the file (which is not an executable) is not visible 
in 32 mode.
And, if I move (or copy) sr.txt in an USB-drive, the file become visible 
in 32 mode !!!???

Therefore, Windows has a "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


Re: windows 7 create directory with read write execute permission for everybody

2011-06-26 Thread Michel Claveau - MVP
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


Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Michel Claveau - MVP
Hi!

+1

@-salutations
-- 
Michel Claveau 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to create a virtual printer

2011-03-28 Thread Michel Claveau - MVP
Hi! 

On windows, install a "Generic" printer, on "FILE:" port.

@-salutations
-- 
Michel Claveau
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ctypes and twain_32.dll

2011-05-02 Thread Michel Claveau - MVP
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


Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Michel Claveau - MVP
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?

@-salutations
-- 
Michel Claveau 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Michel Claveau - MVP
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


Re: pyWin build 216

2011-09-24 Thread Michel Claveau - MVP
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


Re: SEO - Search Engine Optimization - Seo Consulting

2007-04-28 Thread Alvin Bruney [MVP]
Please don't spam this group

-- 
Regards,
Alvin Bruney
--
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Free Seo Consulting http://seo-optimizer.blogspot.com/
> 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Free Windows Vista Download

2007-04-29 Thread Alvin Bruney [MVP]
That's a misleading post, you should indicate that this is an evaluation 
copy.

-- 
Regards,
Alvin Bruney
--
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> http://freewindowsvista.blogspot.com/ - Get Windows Vista for Free
> 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: SEO - Search Engine Optimization - Seo Consulting

2007-04-29 Thread Alvin Bruney [MVP]
>Top posting
Did not. I replied to the message at the bottom of the thread.

>Call yourself an MVP, that's a joke Slick.
Yup, I do call myself an MVP, it's not a joke either.

-- 
Regards,
Alvin Bruney
--
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


"Spin Dryer" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Sat, 28 Apr 2007 21:21:39 -0400, ["Alvin Bruney [MVP]"  without an email address>] said :-
>
>>Please don't spam this group
>
> Top posting and without removing the spamvertised site, you are as bad
> as the spammer. Call yourself an MVP, that's a joke Slick.
>
> Indeed the spam was not even seen by probably many servers until you
> decided to reply. 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Car-ac-systems

2007-09-11 Thread John Timney \(MVP\)
How do I control one with C# then!  Thats not on your site, clearly not 
everything I need to know then.  Waste of a site!

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"knjaz" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Here you can find everything you need to know about car air
> conditioning
>
> http://car-ac-systems.blogspot.com/
> 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Car-ac-systems

2007-09-11 Thread John Timney \(MVP\)
Thats all it is.  It may have been a usefully intended resource once, but 
they have no controls whatsoever.  Its time someone closed it down.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"Lew" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> John Timney (MVP) wrote:
>> How do I control one with C# then!  Thats not on your site, clearly not 
>> everything I need to know then.  Waste of a site!
>
> Please do not top post.
>
>> "knjaz" <[EMAIL PROTECTED]> wrote in message
>>> Here you can find everything you need to know about car air
>>> conditioning
>>>
>>> http://car-ac-systems.blogspot.spam/
>
> I'm starting to see "blogspot" as a synonym for "spam".
>
> -- 
> Lew 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Car-ac-systems

2007-09-11 Thread John Timney \(MVP\)

"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Tue, 11 Sep 2007 17:42:53 +, Zentrader wrote:
>
>> 
>> What is it about "please do not top-post" that you have difficulty
>> understanding? Or do "MVP"s feel that their time is so much more
>> valuable than anyone else's that they are free to ignore the norms?
>>
>> Who made this the norm?
>
> Common sense and (western) reading habits.
>
>> In my travels through web-land, it appears to be the opposite.
>
> You must travel strange territories.  ;-)
>
>> Don't waste space repeating everything in every post, and it wastes
>> everyone's time by have to go over the same thing again and again.
>
> That's why you trim the quoted part to the minimum to understand what one
> is answering.  Top posting and full quoting wastes time for people who
> want to see the context because context and answer are way apart and in 
> the
> wrong order so one has to scroll back and forth to keep track of the
> discussion.
>
> Ciao,
> Marc 'BlackJack' Rintsch


I like top posted threads, its my preferred response method - and actually 
also how I prefer to read a thread.  Normally, I and the thread followers 
are familiar with a threads context - and don't need to read down to get the 
context of a response.  Not much of a hardship really and just as I give my 
time freely in answering a thread - everyone else can chose freely to read 
it or ignore.

I don't though have no issues with people who chose to bottom post, or 
respond with the full thread if its relevent, or trim it.  If the answer is 
relevent, I'll gladly spend the time reading it from any direction.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Car-ac-systems

2007-09-13 Thread John Timney \(MVP\)
ho ho..now thats quite funny!

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Sep 11, 9:35 am, "John Timney \(MVP\)"
> <[EMAIL PROTECTED]> wrote:
>> How do I control one with C# then!  Thats not on your site, clearly not
>> everything I need to know then.  Waste of a site!
>
> C# is just as off topic in comp.lang.java.programmer as car air-
> conditioning systems. The latter, however, have the redeeming
> characteristic that they are not the demonic spawn of evil Microsoft.
> 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Connecting to Python COM server from Excel VBA does not work

2009-12-10 Thread Michel Claveau - MVP
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


Re: read text file byte by byte

2009-12-13 Thread Michel Claveau - MVP
Hi! 

> If it's a binary file...

OK, but... what is a "binary" file?

@+
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Ironpython

2009-12-22 Thread Michel Claveau - MVP
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


Re: Portable way to tell if a process is still alive

2009-12-30 Thread Michel Claveau - MVP
Hi!

For Windows, you can use the command-line  tasklist

Example:
   tasklist
   tasklist /FI "IMAGENAME eq iexplore.exe"
   tasklist /FI "PID eq 4044" /FO LIST

The last line is for known PID. Prior for search by (exe's) name.
Note than STATUS give if the process is RUNNING / NOT RESPONDING / etc.
And...tasklist /?  for help.

@+
-- 
Michel Claveau 




-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Dynamic HTML controls

2010-01-12 Thread Michel Claveau - MVP
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 


*** sorry for my bad english
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: web sound recording with python

2009-10-09 Thread Michel Claveau - MVP
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


Re: virtualenv under Win7: easy_install fails in virtual environments

2009-10-26 Thread Michel Claveau - MVP
Hi!

Try to unactive UAC...

@+
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to close not response win32 IE com interface

2009-11-10 Thread Michel Claveau - MVP
Hi!

The only way I know is to use sendkeys.

@+

Michel Claveau
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Urwid 0.9.9 - Console UI Library

2009-11-18 Thread Michel Claveau - MVP
Hi! 

You forget to write "urwid" do not run under Windows.

@-salutations
-- 
Michel Claveau
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Urwid 0.9.9 - Console UI Library

2009-11-18 Thread Michel Claveau - MVP
Hi! 

You forget to write "urwid" do not run under Windows.

@-salutations
-- 
Michel Claveau
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Urwid 0.9.9 - Console UI Library

2009-11-18 Thread Michel Claveau - MVP
Hi! 

You forget to write "urwid" do not run under Windows.

@-salutations
-- 
Michel Claveau
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: (pywin related) pywintypes.com_error: -2147417846 "Application busy"

2009-11-25 Thread Michel Claveau - MVP
Hi! 

Your computer is too slow, for launch Excel.
Configure the machine for more speed...

@+
-- 
MCI
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-23 Thread Michel Claveau - MVP
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


Re: python shell crashing on paste

2010-02-23 Thread Michel Claveau - MVP
Hi! 

Where (directory) are you, when the problem come?
Have you try with UAC disabled?

@+
--  
MCI



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: bypass UAC control through python script (to be run from batchfile)

2010-03-11 Thread Michel Claveau - MVP
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


Re: subprocess only good for win32?

2010-04-01 Thread Michel Claveau - MVP
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


Re: How to open html page in python resource file? ActiveX and Javascript addEventListener? Options

2010-11-21 Thread Michel Claveau - MVP
Hello!

You will find (positive) answers in PyWin32 and his examples.

@-salutations
-- 
Michel Claveau 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread Michel Claveau - MVP
Hello!

> The "InternetExplorer.Application" automation object doesn't contain 
> any way to manipulate tabs directly

False. Try this example:
  import win32com.client
  for instance in 
win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'):
  print instance,"  URL :",instance.LocationURL

@-salutations
-- 
Michel Claveau 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Printing RTF file under win32

2011-01-21 Thread Michel Claveau - MVP
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


Re: Python 32-bit on Windows 64-bit

2011-02-11 Thread Michel Claveau - MVP
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


Re: Pickle compatibility between Python 2.7 and python 3.2

2011-02-22 Thread Michel Claveau - MVP
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


Re: Download Visual Studio Express 2008 now

2010-04-13 Thread Michel Claveau - MVP
Hi!

Thanks for this idea.

Michel Claveau
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: DLLs loading in interpreter but not with direct run on Windows

2010-04-24 Thread Michel Claveau - MVP
Hi!

AMHA (IMO), it is PyQT4 who change the DLL loader...

@+
-- 
MCI
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Default if none

2010-04-29 Thread Michel Claveau - MVP
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: Default if none

2010-04-29 Thread Michel Claveau - MVP
Re! 

Look also : 
  >>> print False or None
  None
  >>> print None or False
  False

-- 
MCI
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Upgrade Python 2.6.4 to 2.6.5

2010-05-12 Thread Michel Claveau - MVP
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


Re: Discover PyH

2010-05-19 Thread Michel Claveau - MVP
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


Problem PIL-1.1.7 & _imagingft

2010-06-24 Thread Michel Claveau - MVP
Hi!

With PIL-1.1.7.win32-py2.6 and Windows 7, I have this traceback:
  raise ImportError("The _imagingft C module is not installed")
  ImportError: The _imagingft C module is not installed

I tested "import _imaging" and several other things, without success.
If I re-install PIL-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


Re: Access lotus notes using Python 2.5.1

2010-08-11 Thread Michel Claveau - MVP
Hi!

In several cases, Notes is not registred as COM server.
Depending of installation.

@-salutations
-- 
MCi
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Iterative vs. Recursive coding

2010-08-20 Thread Michel Claveau - MVP
Salut ! 

C'est cela, la solitude du programmeur génial...

@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Detect string has non-ASCII chars without checking each char?

2010-08-22 Thread Michel Claveau - MVP
Hi! 

Another way : 

  # -*- coding: utf-8 -*-

  import unicodedata

  def test_ascii(struni):
  strasc=unicodedata.normalize('NFD', struni).encode('ascii','replace')
  if len(struni)==len(strasc):
 return True
  else:
 return False

  print test_ascii(u"abcde")
  print test_ascii(u"abcdê")



@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Detect string has non-ASCII chars without checking each char?

2010-08-22 Thread Michel Claveau - MVP
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


Re: python way to automate IE8's File Download dialog

2009-06-05 Thread Michel Claveau - MVP
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://mail.python.org/mailman/listinfo/python-list


Re: is there python image lib that does imagemagick?

2009-06-08 Thread Michel Claveau - MVP
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


Re: Running a script from a windows right click menu..?

2009-06-28 Thread Michel Claveau - MVP
Bonsoir ! 

Un exemple là: http://www.mclaveau.com/grimoire/bleu.html#999

@-salutations
-- 
MCI

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Does python have the capability for driver development ?

2009-07-30 Thread Michel Claveau - MVP
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


Re: os.path.exists() and Samba shares

2009-08-01 Thread Michel Claveau - MVP
Hi!

> SAMBA is a Linux implementation of the SMB protocol, natively supported on 
> Windows.

Right.
But, with Vista or Seven, only recents releases of Samba are supported.
And, Samba know only NTLM release 2
(in register: 
  HKLM\SYSTEM\CurrentControlSet\Control\Lsa
  value  LMCompatibilityLevel ; set 1 or 0.
)

@-salutations
-- 
Michel Claveau 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Windows 7 : any problems installing or running Python ?

2009-08-08 Thread Michel Claveau - MVP
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


Re: Python or ActionScript 3.0

2009-08-15 Thread Michel Claveau - MVP
Hi!

> Python doesn't run in your typical web browser

Yes, Python can do it... on Windows.
Two (examples) ways:
  - ActiveScripting (PythonScript), include in PyWin32
  - Gestalt (who mix Python, Ruby & Javascript, via Silverlight)

And alse, these two solutions run OK in HTA (HTml Application) for use HTML as 
GUI tool in local applications.

@-salutations
-- 
Michel Claveau 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python- javascript

2009-08-17 Thread Michel Claveau - MVP
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/listinfo/python-list


Re: difference between 2 arrays

2009-08-19 Thread Michel Claveau - MVP
(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: difference between 2 arrays

2009-08-19 Thread Michel Claveau - MVP
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


Re: difference between 2 arrays

2009-08-20 Thread Michel Claveau - MVP
(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, and use the builtin...

@-salutations 
-- 
MCI 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Learning Python advanced features

2009-08-30 Thread Michel Claveau - MVP
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


Re: Support for Windows 7 ?

2009-09-06 Thread Michel Claveau - MVP
Bonjour ! 

Plusieurs points : 
  - Python (ainsi que Pywin32) fonctionne TRÈS bien sous Windows-7 (je 
l'utilise depuis plus d'un an, sur Win-7 beta, RC, RTM, en 32 bits et en 64 
bits). Résultats : AUCUN problème.
  - Il existe des sources françaises (newsgroups, sites, forums, etc.) qui 
peuvent répondre aussi bien sur Python, que les newsgroups américains.

Du coup, j'ai envie de déduire : 
  - Que certains étudiants d'écoles de commerce françaises préfèrent travailler 
avec "l'étranger" plutôt qu'avec "le français".
  - Il faudra dire à 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


Re: Does python 3.1 support sybase module?

2009-09-09 Thread Michel Claveau - MVP
Hi,

What is this final comma?  

@+
-- 
MCI
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Looking for a pure Python chart drawing module

2009-09-16 Thread Michel Claveau - MVP
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


Re: Looking for a pure Python chart drawing module

2009-09-16 Thread Michel Claveau - MVP
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 well done...
;-)

Michel Claveau 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Redirect output on script

2009-09-17 Thread Michel Claveau - MVP
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


Re: arrays in python

2009-09-23 Thread Michel Claveau - MVP
Hi!

See:
   http://docs.python.org/tutorial

(section 5)

@+
-- 
MCI

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python Editor or IDE ActiveX control

2010-08-26 Thread Michel Claveau - MVP
Hi!

Scintilla come like a "control" (a piece for a window), raleted to the
file SciLexer.DLL
For call the scintilla-componant, use "messages". Example :
   SendMessage(Sci, SCI_GOTOLINE, line, 0)
For the constant SCI_GOTOLINE, I suggest  scintillacon.py, include in
Pywin32.

@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Installing Python as Scripting Language in IIS

2010-08-31 Thread Michel Claveau - MVP
Hi!

You must register Python as ActiveScripting's language.
See : C:\Python26\Lib\site-packages\win32comext\axscript

@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Installing Python as Scripting Language in IIS

2010-08-31 Thread Michel Claveau - MVP
Re ! 

More details:
C:\Python26\Lib\site-packages\win32comext\axscript\Demos\client\ie\demo.htm

@+
--
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: SendKeys and Python 2.7

2010-09-09 Thread Michel Claveau - MVP
Hi!

Example for send ^V  (with PyWin32):

  import time,win32api,win32con
  win32api.keybd_event(win32con.VK_CONTROL, 0, 0, 0)
  win32api.keybd_event(ord('V'), 0, win32con.KEYEVENTF_EXTENDEDKEY | 0, 0) 
  time.sleep(0.05)
  win32api.keybd_event(ord('V'), 0, win32con.KEYEVENTF_EXTENDEDKEY | 
win32con.KEYEVENTF_KEYUP, 0)
  win32api.keybd_event(win32con.VK_CONTROL, 0, win32con.KEYEVENTF_KEYUP, 0)



@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


PIL : "The _imaging C module is not installed"

2010-09-13 Thread Michel Claveau - MVP
Hello!

(*** sorry for my bad english***)


I have the message (title), but only with PIL 1.1.7 (Windows XP, Vista 
or 7 (32 bits or 64 bits)).

I tried:

 _imaging.pyd  exist in C:\Python26\Lib\site-packages\PIL
OK

 python -v
 >>> import Image
OK

 sys.path contain C:\Python26\Lib\site-packages\PIL
OK


 python
 >>> import _imaging
OK


I tested on more than 6 computers, with new installations, or update 
installations. Same problem.
Same problem, also, with Python 2.6 or Python 2.7

If I install again PIL 1.1.6, all scripts run OK.

Then, I install again PIL 1.1.7, the problem returns.


It is the only thing than I wait before update to Python 2.7


One idea?  Thanks in advance.

-- 
Michel Claveau 




-- 
http://mail.python.org/mailman/listinfo/python-list


Re: SendKeys and Python 2.7

2010-09-13 Thread Michel Claveau - MVP
Re!

Sorry for time, but I am very busy...


With Python + Pywin32, you can force the activation of a window (before
send some keys...)
See: 
  win32gui.SetForegroundWindow(w_handle)

or
  win32gui.SetActiveWindow(w_handle)



For to find a windows (and his handle), see:
  win32gui.EnumWindows()
  win32gui.GetWindowTex()
or 
  win32gui.FindWindowEx()


@-salutations
-- 
Michel Claveau 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: compile Py2.6 on SL

2010-09-17 Thread Michel Claveau - MVP
Hello!

SL (SilverLight) is a library/techno who give functions.
You cannot compile Python on SL (SilverLight).

@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to display unicode char in Windows

2010-10-15 Thread Michel Claveau - MVP
Hi! 

1) the good syntax is:
# -*- coding: latin-1 -*-
print "**"
oo = "ö"
print "char=<%s>" % oo
print "**"

2) in the console (commandLine), use this command:  CHCP 1252 {Enter}
(before run your script)


@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to display unicode char in Windows

2010-10-16 Thread Michel Claveau - MVP
Hi!

>  "cp65001" isn't in Python's encoding tables.

CP65001 is an alias for (partial) UTF-8

@-salutations
-- 
Michel Claveau 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: regular expression

2006-12-24 Thread Rad [Visual C# MVP]
On Sun, 24 Dec 2006 16:36:31 +0100, Stef Mientki wrote:

> Dustan wrote:
>> Kleine Aap wrote:
>>> Asper Faner wrote:
>>>
 I seem to always have hard time understaing how this regular expression
 works, especially how on earth do people bring it up as part of
 computer programming language. Natural language processing seems not
 enough to explain by the way. Why no eliminate it ?
>>> I.M.H.O. anyone that is not capable to grasp the concept of regular
>>> expressions should not attempt to write computer programs at all! My
>>> suggestion to you would be to find a job that involves working with your
>>> hands...
>> 
>> Your humble opinion doesn't get much ruder...
>> 
>> Perhaps you meant "anyone that is not capable to grasp the concept of
>> regular expressions after some experience with programming should not
>> attempt to write computer programs at all!" Then at least newbies would
>> have a leg to stand on.
>> 
>> Otherwise, you're practically cutting off all entrances into the world
>> of programming! The concept of regular expressions isn't exactly the
>> simplest one out there. Just because you understood it immediately
>> (which I'm guessing you did, considering your harsh response), doesn't
>> mean others find the concept that simple.
>> 
> I agree, and in addition:
> 
> (large) regular expressions are easy to write,
> but can be almost impossible to read back !
> 
> I once had a program to generate and evaluate regular expressions,
> but can't find it anymore :-(
> 
> If someone has links to regex generators/evaluators,
> I'ld be much obliged.
> 
> cheers.
> Stef Mientki

A good tool to write, test and analyse regexes is the Regulator, available
here http://sourceforge.net/projects/regulator/ 

A good reference site is http://www.regular-expressions.info/, with
tutorials, examples and tools
-- 
Bits.Bytes
http://bytes.thinkersroom.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Seek the one billionth line in a file containing 3 billion lines.

2007-08-08 Thread M�ta-MCI (MVP)
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


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: SCF released to GPL

2007-08-27 Thread M�ta-MCI \(MVP\)
Salut !

Le deuxième envoi aurait pu être en français.
Cela aurait évité le doublon, tout en maintenant le message.

@+

Michel Claveau

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)

2007-08-27 Thread M�ta-MCI \(MVP\)
Re! 

Sended by direct (private) e-mail

@+

Michel Claveau




-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)

2007-08-27 Thread M�ta-MCI \(MVP\)
Aïe!

gmail said :  "illegal attachment"   (because  .exe?)
I will try to send a zipped-file...

@+

Michel Claveau


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)

2007-08-29 Thread M�ta-MCI \(MVP\)
Hi! 

I've send the soft.
But, I have no news ; good news? 

@+

Michel Claveau

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyS60

2007-09-26 Thread M�ta-MCI (MVP)
Hi!

I am also interested by Python on Symbian-series 60

@+

Michel Claveau

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [ANN] Data Plotting Library DISLIN 9.2

2007-10-10 Thread M�ta-MCI (MVP)
Thanks!  I play with this library, for fun ; with success.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in HTML Application (HTA)

2007-10-13 Thread M�ta-MCI (MVP)
Hi! 

I give a solution in the french newsgroup.

Michel Claveau



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Writing event handler for dropdown list in python

2007-11-23 Thread M�ta-MCI (MVP)
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


Re: Is there pointer * in Python?

2007-11-23 Thread M�ta-MCI (MVP)
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


PIL + show() + Vista

2007-11-29 Thread M�ta-MCI (MVP)
Hi!

This code: 
import Image
img = Image.open(r"D:\ParisNude.jpg")
img.show()

Don't run on my Vista computer.

I have a solution:
import Image,os
img = Image.open(r"D:\FLundhNoNude.jpg")
os.startfile(img.filename)

It's only in my case?  
It's censure?   ;-)  
PIL does not approve humour?
A solution soon? 

@-salutations

Michel Claveau



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
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 new Vista-premium 
(configuration of exit of factory). The assoc est made with the 
WindowsPhotoGallery.exe who don't respect the WAIT


> universally is the solution.

The universal solution, it's... you!


With forthcoming once.
-- 
Michel Claveau

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
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 
%s\\System32\\shimgvw.dll ImageView_Fullscreen %s && del /f "%s" ' % 
(title,os.environ['SYSTEMROOT'],os.environ['SYSTEMROOT'],file,file)

launch a "Photo Gallery" who respect the WAIT.

For me (and my users), it's a solution.  Perhaps others PIL's users can 
read that with interest.

Have a good day.

Michel Claveau


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
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 don't found the 
file...

I don't have a good solution. For force view of image, it's possible to 
delete the "DEL /F %s" part ; but that will involve many BMP/temporary 
files.

@+ & sorry for my bad english

Michel Claveau


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
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: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
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  Ctrl+mouse_roller (good english term?)  or 
Ctrl +   Ctrl -   Ctrl 0   (keyboard)


This solution will be replace by Fredrick Lundh, when he awakes... 
;-)))



@+

Michel Claveau

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI development with 3D view

2007-12-10 Thread M�ta-MCI (MVP)
Hi!

> no idea how it works with windows.

On XP: fine.
On Vista: very difficult...

@+

MCI


-- 
http://mail.python.org/mailman/listinfo/python-list


  1   2   >