Le mardi 23 mai 2017 19:10:11 UTC+2, Irmen de Jong a écrit :
> On 23-5-2017 10:19, COPIN Mathieu. wrote:
> > Hi,
> >
> > I want to get a server certificate from the host-name.
> >
> > I know I could do something like :
> >> call(openssl, s_c
Hi,
I want to get a server certificate from the host-name.
I know I could do something like :
> call(openssl, s_client, -showcerts, -connect, hostname:port)
But the thing is to do it without openssl because I want to run the script on
Windows.
Any suggestions ?
Mathieu
--
ht
Hello,
The simple example works fine using __reduce__:
class MyError(Exception):
def __init__(self, arg):
self.arg = arg
def __reduce__(self):
return (MyError, (self.arg, ))
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for your reply
On Wednesday, September 5, 2012 8:02:55 AM UTC+2, Dieter Maurer wrote:
>
> The pickle interface is actually more complex and there are several
>
> ways an object can ensure picklability. For example, there is
>
> also a "__reduce__" method. I suppose, that "Exception" def
Here is my example :
import cPickle
ParentClass = object # works
ParentClass = Exception # does not
class MyError(ParentClass):
def __init__(self, arg):
self.arg = arg
def __getstate__(self):
print '#DBG pass in getstate'
odict = self.__dict__.copy()
Precisions : I'm trying to embed python 3.2 release.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to embed python in a c++ program.
I have compiled python32.lib with msvc 2010 targetting 32bits, i link
it with my program wich is also 32bit.
I get an error when calling Py_Initialize() : "no codec search
functions registered: can't find encoding"
Py_FileSystemDefaultEncoding val
As far as I know there has not been any consensus on how to install
multiple version of a same module in python ? What are the recommended
mechanism ?
I could not find any documentation on the subject. Does anyone sees
any issue with using standard SONAME mechanism when installing a
python module
On Feb 24, 9:24 pm, John Machin wrote:
> On Feb 25, 4:48 am, mathieu wrote:
>
> > I did not know where to report that:
>
> > 'u' Obselete type – it is identical to 'd'. (7)
>
> >http://docs.python.org/library/stdtypes.html#string-forma
On Feb 24, 11:06 pm, Steven D'Aprano wrote:
> mathieu wrote:
> > I did not know where to report that:
>
> > 'u' Obselete type – it is identical to 'd'. (7)
>
> >http://docs.python.org/library/stdtypes.html#string-formatting
>
&
I did not know where to report that:
'u' Obselete type – it is identical to 'd'. (7)
http://docs.python.org/library/stdtypes.html#string-formatting
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 28, 4:21 pm, mathieu wrote:
> Hi there,
>
> I am trying to use win32com.client, but I do not think I fully grasp
> the concept. So far I copied chunk of code from the net to write my
> script. It worked well until I could not find any example on
> Trendlines. Accordin
Hi there,
I am trying to use win32com.client, but I do not think I fully grasp
the concept. So far I copied chunk of code from the net to write my
script. It worked well until I could not find any example on
Trendlines. According to doc it should be as simple as:
wc.Chart.SeriesCollection(1).Tr
d data,
> waits for an exe to finish, then again, starts the second .exe file,
> ... ?
Of course. See the subprocess module for this.
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
Hi there,
I have prepared binaries of a python module that I wrote. Basically
the lib is written in C++ and wrapped in python using SWIG. Of course
it links to the python dynamic libraries. I found out that this is
version dependant. For instance if I prepare the binaries on my
machine with a py
me.sleep(5)
doSomething(data0)
thread2:
while True:
time.sleep(0.01)
doAnotherthing(data0)
thread1 and thread2 can run in parallel; if thread2 take more time,
thread1 won't be impaired.
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
sn't exist
download foo
python foo/setup.py install
etc
HTH
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 8, 9:32 am, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> mathieu a écrit :
>
> > Hi there,
>
> > I am trying to write something very simple to test if a list
> > contains another one:
>
> > a = [1,2,3]
>
> > b = [3,2,1,4]
>
>
Hi there,
I am trying to write something very simple to test if a list
contains another one:
a = [1,2,3]
b = [3,2,1,4]
but 'a in b' returns False. How do I check that a is indeed contained
in b ?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
lib.macosx-10.3-i386-2.6/_ctypes.so
Expected in: dynamic lookup
Any hints ?
thanks,
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
eems to be unsufficient. Does someone have links/mail
archives/patches/scripts ?
2) Python needs gettext for _locale package, but I fail to compile it with icc.
3) How can I build an autonomous and sufficient distribution (a dmg
file with everything in it) ?
Thanks,
Mathieu
--
http://mail.python.org/mailma
2008/9/4 Mathieu Prevot <[EMAIL PROTECTED]>:
> Hi,
>
> for scripts that take arguments, I would like to remove the trailing
> slash if it's present.
>
> Is there something else than:
>
> a='/usr/local/lib/'
> if a[-1] == '/':
> a = li
Hi,
for scripts that take arguments, I would like to remove the trailing
slash if it's present.
Is there something else than:
a='/usr/local/lib/'
if a[-1] == '/':
a = list(a)
a.pop()
''.join(a)
Thanks,
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
in CPython, len(L) is about
> twice as fast as L.__len__() for built-in sequences.)
Got it. Thanks :)
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
2008/9/4 Chris Rebert <[EMAIL PROTECTED]>:
> On Thu, Sep 4, 2008 at 12:25 AM, Mathieu Prevot
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a program that take a word as argument, and I would like to
>> link this word to a class variable.
>>
>&g
= 'width';
a.width = new_value
Can I do this with python ? How ?
Thanks,
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 29, 12:46 pm, Matthias Bläsing <[EMAIL PROTECTED]
aachen.de> wrote:
> Am Fri, 29 Aug 2008 03:35:51 -0700 schrieb mathieu:>
>
> > A = [1,2,3]
> > B = [4,5,6]
> > for a,b in A,B: # does not work !
> > print a,b
>
> > It should print:
Hi there,
just trying to figure out how to iterate over two array without
computing the len of the array:
A = [1,2,3]
B = [4,5,6]
for a,b in A,B: # does not work !
print a,b
It should print:
1,4
2,5
3,6
Thanks !
--
http://mail.python.org/mailman/listinfo/python-list
2008/8/21 Gabriel Genellina <[EMAIL PROTECTED]>:
> En Thu, 21 Aug 2008 02:46:06 -0300, Mathieu Prevot <[EMAIL PROTECTED]>
> escribió:
>
>>> So what is the right thing to do so my script
>>> returns 1 or 0 depending on its state and success ?
>
>
2008/8/21 Mathieu Prevot <[EMAIL PROTECTED]>:
> 2008/8/20 Gabriel Genellina <[EMAIL PROTECTED]>:
>> En Wed, 20 Aug 2008 12:22:16 -0300, Wojtek Walczak <[EMAIL PROTECTED]>
>> escribió:
>>
>>> On Wed, 20 Aug 2008 15:09:11 +0200, Mathieu Prevot wro
2008/8/20 Gabriel Genellina <[EMAIL PROTECTED]>:
> En Wed, 20 Aug 2008 12:22:16 -0300, Wojtek Walczak <[EMAIL PROTECTED]>
> escribió:
>
>> On Wed, 20 Aug 2008 15:09:11 +0200, Mathieu Prevot wrote:
>>
>>> child = Popen(cmd.split(), stderr=flog)
>&g
Hi there,
it seems that child.wait() is ignored when
print "Server running [PID %s]"%(child.pid)
fpid.write(child.pid)
are between the process creation child = Popen(cmd.split(),
stderr=flog) and child.wait().
It seems to be a bug, doesn't it ?
Mathieu
(I'm running
ynamically linked shared
library i386
===
Which method do you recommend ?
Thanks
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
est me how can I abort the thread at any point in time
> using CTRL+C.
Hi,
a terminate method is given here:
http://sebulba.wikispaces.com/recipe+thread2
so you can terminate the thread by:
(...)
t.start()
(...)
while True:
try:
#some code
except KeyboardInterrupt:
t.terminate()
break
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
to do the following in python:
1) know the bitrate at the script scale
2) control, and limit or not this bitrate
Thanks,
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
2008/8/8 <[EMAIL PROTECTED]>:
> On 8 Ago, 10:03, "Mathieu Prevot" <[EMAIL PROTECTED]> wrote:
>> 2008/8/8 Miki <[EMAIL PROTECTED]>:
>>
>> > Hello,
>>
>> >> I have a threading.Thread class with a "for i in range(1,50)&qu
ere. I placed this inside loop, within
called functions from the loop, I still have the problem.
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
I do this ? in __run__ ? __init__ ? a try/except stuff ?
Thanks,
Mathieu
[1]:
^CException in thread Thread-1:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py",
line 486, in __bootstrap_inner
self.run()
File &
2008/7/11 WDC <[EMAIL PROTECTED]>:
> On Jul 10, 6:57 pm, "Mathieu Prevot" <[EMAIL PROTECTED]> wrote:
>> 2008/7/10 "Martin v. Löwis" <[EMAIL PROTECTED]>:
>>
>> >> I have the following error when I run configure:
>>
&g
re can manage this. I can
I want to help for further diagnosis or improvement. Also it seems
-Wall will be deprecated, and usually we use -w:
-w Control diagnostics, where is one of the following:
0 -- Display errors (same as -w)
1 -- Display warnings a
:21976: $? = 0
configure:21991: result: yes
configure:21998: checking size of wchar_t
configure:22306: icc -o conftest -g -O2 conftest.c >&5
ld: library not found for -lgcc_s
configure:22309: $? = 1
configure: program exited with status 1
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have the following error when I run configure:
checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
what can I do ?
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
s for primetime.
It seems that when I ask to process < 4 files everything is ok, but if
I ask for > 4 files to process, I loose terminal features (no more
newlines, etc).
What's happening ? What is wrong in my script ?
Thanks,
Mathieu
[1]:
,-- thread -- subprocess
scr
2008/7/7 Peter Otten <[EMAIL PROTECTED]>:
> Mathieu Prevot wrote:
>
>> I use in a bourne shell script the following filter:
>>
>> sed '/watch?v=/! d;s/.*v=//;s/\(.\{11\}\).*/\1/' \
>> | sort | uniq | awk 'ORS=" "{print $1}'
>
python on stdout from a
subprocess.Popen instance, using python tools rather than sed awk etc.
How can I do this ? Can I expect something as fast ?
Thanks,
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
2008/7/6 Sebastian lunar Wiesner <[EMAIL PROTECTED]>:
> Mathieu Prevot <[EMAIL PROTECTED]>:
>
>> it seems the script (A) finishes before the downloading ends, and the
>> (B) version doesn't (wanted behavior) ... this is unexpected. What
>> happens ?
>
&g
Hi
it seems the script (A) finishes before the downloading ends, and the
(B) version doesn't (wanted behavior) ... this is unexpected. What
happens ?
(A)
class vid(threading.Thread):
def __init__(self):
threading.Thread.__init_
x27;
Basically A1 to A3 are organized in complexity of PYTHONPATH. A1 is
great because importing a moduleD in the future will just works
(PYTHONPATH is unchanged). A2 & A3 make the layout of the project
impact on the PYTHONPATH.
Thanks
-Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
when I run configure, it fails at:
checking for wchar.h... yes
checking for wchar_t... yes
checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
what can I do ?
Thanks,
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
agically wrap into
another target language (in your case: python).
If you download the binaries, you are all set (expect maybe adjusting
your PYTHONPATH).
Anyway this is highly GDCM oriented, and we should continue this
discussion directly on the GDCM ML.
HTH
-Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have the following error on a OSX.5 OS with CC=icc and using the
python-svn files:
checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
I would like to help so we can compile python with icc/OSX.
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
2008/6/6 Mathieu Prevot <[EMAIL PROTECTED]>:
> 2008/6/5 Zhaojie Boulder <[EMAIL PROTECTED]>:
>> Hello,
>> I am new to Mac and used python in linux before. What I am trying to do is
>> to install "Ipython" and "PyCogent" in Mac OS X.
>> For
usr/bin. If you type "which gcc", it
should return "/usr/bin/gcc". Xcode is an IDE that use gcc or another
compiler eg. icc the Intel compiler, hence if you move Xcode in the
application folfer it won't change anything. You install Xcode by
double clicking on a .pkg file from your Leopard DVD.
You also can download gcc from the site and bootstrap/compile it.
Cheers
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
missed ?
Thanks
-Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
r start you swf decoder from scratch using Adobe specification
[3] on the swf format.
Happy coding !
Mathieu
[1] http://en.wikipedia.org/wiki/Gnash
[2] http://en.wikipedia.org/wiki/Swfdec
[3] http://www.adobe.com/devnet/swf/
--
http://mail.python.org/mailman/listinfo/python-list
v [2] file from youtube with a first
python script that use the right component(s) of libffmpeg. Python
allows you to use C libraries.
Mathieu
[1] http://ffmpeg.mplayerhq.hu/documentation.html
[2] http://en.wikipedia.org/wiki/Flv
--
http://mail.python.org/mailman/listinfo/python-list
n ffmpeg/libffmpeg python wrap. It could
be really useful, and faster than a pure python decoder. Even for fun.
Cheers
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
IPE)
print k.stderr
In the case 2) I got:
open file '', mode 'rb' at 0x5a608>
and I want what I get in file from 1) ... how to do this ?
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
2008/5/24 Diez B. Roggisch <[EMAIL PROTECTED]>:
> Mathieu Prevot schrieb:
>>
>> Hi
>>
>> I import subprocess and use Popen, but PIPE is not defined. I used
>> 2.5.1, 2.5.2, Python 2.6a3+ (trunk:63576, May 24 2008, 12:13:40), it's
>> always the
Hi
I import subprocess and use Popen, but PIPE is not defined. I used
2.5.1, 2.5.2, Python 2.6a3+ (trunk:63576, May 24 2008, 12:13:40), it's
always the same. What am I missing ?
Thanks
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
RTLD_LOCAL)
Ref:
http://gcc.gnu.org/ml/gcc/2002-05/msg00869.html
& http://lists.apple.com/archives/xcode-users/2006/Feb/msg00234.html
Thanks
-Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
I do not understand what is wrong with the following regex expression.
I clearly mark that the separator in between group 3 and group 4
should contain at least 2 white space, but group 3 is actually reading
3 +4
Thanks
-Mathieu
import re
line = " (0021,xx0A) Siemens: Thorax/Multix F
ect*) (vtkObject.cxx:547)
==20066==by 0x483C18E: vtkObject::InvokeEvent(unsigned long,
void*) (vtkObject.cxx:713)
==20066==by 0x4E67E6A: vtkAlgorithm::UpdateProgress(double)
(vtkAlgorithm.cxx:115)
Thanks,
-Mathieu
Original post:
http://public.kitware.com/pipermail/vtk-developers/2008-January/004890.h
change it in Visual Studio.
Mathieu Gontier
Core Development Engineer
Read the attached v-card for telephone, fax, adress
Look at our web-site http://www.fft.be
[EMAIL PROTECTED] wrote:
> On Nov 8, 4:07 am, [EMAIL PROTECTED] wrote:
>
>> I tried to change the code above (ju
On Oct 18, 10:54 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> On 18 oct, 13:46, mathieu <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Oct 18, 6:36 pm, mathieu <[EMAIL PROTECTED]> wrote:
> > > > I am trying to use strptime to parse my microseconds
On Oct 18, 6:36 pm, mathieu <[EMAIL PROTECTED]> wrote:
> On Oct 18, 6:00 pm, mathieu <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi there,
>
> > I am trying to use strptime to parse my microseconds but I was not
> > able the documentation for it. The only li
On Oct 18, 6:00 pm, mathieu <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am trying to use strptime to parse my microseconds but I was not
> able the documentation for it. The only list I found was:
>
> http://docs.python.org/lib/module-time.html
>
> So I can get s
Hi there,
I am trying to use strptime to parse my microseconds but I was not
able the documentation for it. The only list I found was:
http://docs.python.org/lib/module-time.html
So I can get seconds with %S, but nowhere is there a microsecond
symbol...
Thanks for pointer to doc,
-Mathieu
any news about the integration of Visual Studio
2005 in distutil?
Many thanks,
--
Mathieu Gontier
Product Development Engineer
Free Field Technologies S.A.
Skype Name: mathieu_gontier
Read the attached v-card for telephone, fax, adress
Look at our web-site http://www.fft.be
--
http
Just in case something already exist for this. Is there some tool,
that can produce gcov-type coverage out of a python code ?
I have an already existing regex code that turn gcov output into XML,
which I'd like to reuse.
thanks !
-Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I am currently investigating how to distribute a python based
application on a targeted linux system (debian) and so far I only
found two options:
- Freeze (shipped with python dist)
- cx_Freeze (*)
As far as I understand those two options are very close. According to
the cx_Freeze READ
;^[ ]*([A-Za-z]+)[ ]+([A-Za-z]+)$')
Which of course does not work. I cannot express the fact: sentence
have 0 or 1 whitespace, separation of group have two or more
whitespaces.
Any suggestion ? Thanks a bunch !
Mathieu
--
http://mail.python.org/mailman/listinfo/python-list
Yes and it's called python-config...
Sorry for the noise.
--
http://mail.python.org/mailman/listinfo/python-list
'python-config' like script that would
tell me that I also need to link against zlib libraries in order to
properly link my executable ?
Has anyone seen this problem before ? Or is this simply that there
is a misconfiguration problem in my gentoo installation ?
Thanks for your advices,
Mat
74 matches
Mail list logo