x.pop())
return y
Something like that :
def foo(x):
return reversed(x)
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
--
https://mail.python.org/mailman/listinfo/python-list
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit :
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('Réussi')
But, when I start the vrey same file on Linux (ubuntu 14), I got:
Traceback (most recent call last):
File "/partages/bureau/PB/Dev/Python3/test.p
Le 14/08/2014 15:31, YBM a écrit :
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit :
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('Réussi')
But, when I start the vrey same file on Linux (ubuntu 14), I got:
Traceback (most recent call last):
File "/p
Le 20/08/2014 00:11, Alex Murray a écrit :
Hi,
I've discovered some very strange behaviour when trying to delete a
QWidget from a QGridLayout. The following code demonstrates this
behaviour:
>>> from PyQt4 import QtGui
>>> import sys
>>> app = QtGui.QApplication(sys.argv)
>>> grid_layout = QtG
Le 20/08/2014 16:22, Alex Murray a écrit :
Please do not post in HTML it makes everything an unreadable mess
(I have left you original post above so you can see what I mean.)
Sorry, here's the original e-mail in plain text:
Hi,
I've discovered some very strange behaviour when trying to
delete
Le 25/09/2014 10:07, Pinter, Karina /C a écrit :
Dear Team,
I am working as a software analyst at ExxonMobil. I received a
software request for Python Imaging Library 1.x and the user needs a
64bit setup file for Python 2.7.2. Can I download it somewhere?
Thanks in advance.
*/Best Regards,
uot;\rProgress .. %s" % i,
... sys.stdout.flush()
... time.sleep(1)
...
>>> counter(5)
Vincent.
--
https://mail.python.org/mailman/listinfo/python-list
code = Code(code_obj)
File "unpyc3.py", line 210, in __init__
for v in code_obj.co_cellvars + code_obj.co_freevars]
AttributeError: 'NoneType' object has no attribute 'co_cellvars'
...
Cheers
--
Vincent V.V.
Oqapy . Qarte+7 . PaQager
--
http://mail.python.org/mailman/listinfo/python-list
Le 14/09/11 08:20, Arnaud Delobelle a écrit :
On 14 September 2011 06:53, Vincent Vande Vyvre
wrote:
Hi, trying your code, I have had numbers of errors:
Hi Vincent, thanks for trying it.
File "unpyc3.py", l
Le 14/09/11 10:13, Vincent Vande Vyvre a écrit :
Le 14/09/11 08:20, Arnaud Delobelle a écrit :
On 14 September 2011 06:53, Vincent Vande Vyvre
wrote:
Hi, trying your code, I have had numbers of errors:
Hi Vincent
Le 14/09/11 11:31, Arnaud Delobelle a écrit :
On 14 September 2011 09:44, Vincent Vande Vyvre
wrote:
File "unpyc3.py", line 211, in __init__
for v in code_obj.co_cellvars + code_obj.co_freevars]
AttributeError: 'NoneType' obj
rsion.split()[0])
print(platform.platform())
paths = ['/home/vincent/image.jpg', '/home/vincent/àéèîö.jpg']
for path in paths:
print('\nPath: {0}, Type: {1}'.format(path, type(path)))
if not os.path.exists(path) or not os.path.isfile(p
Le 17/09/11 01:28, Ian Kelly a écrit :
On Fri, Sep 16, 2011 at 7:52 AM, Vincent Vande Vyvre
wrote:
[vincent@myhost ~]$ python string_2.py
Python version: 3.2.2
Linux-3.0-ARCH-x86_64-Pentium-R-_Dual-Core_CPU_T4500_@_2.30GHz-with-glibc2.2.5
Path: /home
Le 17/09/11 05:28, Vincent Vande Vyvre a écrit :
Le 17/09/11 01:28, Ian Kelly a écrit :
On Fri, Sep 16, 2011 at 7:52 AM, Vincent Vande Vyvre
wrote:
[vincent@myhost ~]$ python string_2.py
Python version: 3.2.2
Linux-3.0-ARCH
# -*- coding: utf-8 -*-
items = {'fees':[('status','pending'), ('timeout',60)],
'hostel':[('status',
'pending'), ('timeout','120')]}
for key, value in items.iteritems():
print
':[('status','pending'), ('timeout',60)],
'hostel':[('status',
'pending'), ('timeout','120')]}
for key, value in d.items():
print("\n {0}".format(key))
for val in value:
print("\t{0}: {1}".format(val[0], val[1]))
--
Vincent V.V.
Oqapy . Qarte+7 . PaQager
--
http://mail.python.org/mailman/listinfo/python-list
== 14:
resize()
return True
In your case, 'MainWindow' seems to be 'parent'
--
Vincent V.V.
Oqapy . Qarte+7 . PaQager
--
http://mail.python.org/mailman/listinfo/python-list
, why
is_not_closed[obj] = why
for f in L:
close_(f)
Now, your dictionnary contain the file as key and the exception
message as value.
--
Vincent V.V.
Oqapy . Qarte+7 . PaQager
--
http://mail.python.org/mailman/listinfo/python-list
ame with pyside.
--
Vincent V.V.
Oqapy . Qarte+7 . PaQager
--
http://mail.python.org/mailman/listinfo/python-list
import datetime
begin = datetime.datetime(2011, 12, 13, 9, 47, 12)
today = datetime.datetime(2011, 12, 13, 9, 47, 39)
dif = str(today - begin)
print dif
>>> 0:00:27
Regards
--
Vincent V.V.
Oqapy . Qarte+7 . PaQager
--
http://mail.python.org/mailman/listinfo/python-list
'346.5905371', 'end']
If you can give me some lead to fix the code I wrote below that will be great:
def average(bin):
num=[]
total = 0.0
count=0
for number in bin:
while True:
if number!='
Le 20/01/12 20:30, Vincent Vande Vyvre a écrit :
Le 20/01/12 19:49, Tamanna Sultana a écrit :
can some one help me??
I would like to create a function that, given a bin, which is a list
(example below), generates averages for
s.exit(app.exec_())
>
> if __name__ == '__main__':
> main()
>
> I have tried mainWindow and mainwindow as well so it appears not to be
> a case error.
>
Are you sure you have a class MainWindow in your ui.MainWindow.py ?
Can you show us the code of this MainWind
Le 17/02/13 16:13, Joel Goldstick a écrit :
>
>
>
> On Sun, Feb 17, 2013 at 6:35 AM, Vincent Vande Vyvre
> mailto:vincent.vandevy...@swing.be>> wrote:
>
> Le 17/02/13 10:08, Phil a écrit :
> > Thank you for reading this.
> >
> > I'v
Le 18/02/13 00:04, Phil a écrit :
> ...
>
> from PyQt4 import QtCore, QtGui
> from ui.MainWindow import MainWindow
>
As I've sayed in my last post, this is not "ui.MainWindow" but
"ui.mainwindow"
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> .
Le 01/03/13 18:53, olsr.ka...@gmail.com a écrit :
> comment tracer une cercle contient un numéro au un symbole dans le center
> dans python tkinter?
Posez votre question ici:
http://www.developpez.net/forums/f96/autres-langages/python-zope/
--
Vincent V.V.
Oqapy <https://launchpad.
Forget the reference:
http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
--
http://mail.python.org/mailman/listinfo/python-list
Le 17/03/13 17:15, ofene...@hotmail.com a écrit :
> sip.setapi("QString", 2)
Remove the line:
sip.setapi("QString", 2)
and try it.
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.n
Le 17/03/13 17:53, Vincent Vande Vyvre a écrit :
> Le 17/03/13 17:15, ofene...@hotmail.com a écrit :
>> Dear List,
>>
>> I have been working on restructured text(rest) documents and found a nice
>> application which makes viewing the rest documents easy. It is a web
&
ot;, "copyright", "credits" or "license" for more information.
>>> a=[1,3,5,6,10]
>>> b=['a', 't', 'q', 'r', 's']
>>> sta = " ".join([str(i) for i in a])
>>> stb = " ".jo
Le 01/04/13 12:14, Ana Dionísio a écrit :
> for t in range(20):
> if t == 4:
> vt[t]=1
Sets only the needed values:
for t in range(4, 8):
vt[t]=1
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https
is because I have initialized both dicts inside the
> function, But why dicts are not saved out, if I intialize the dicts
> outside the function, the processing is still done inside and end
> result I am getting is an empty dict.
>
>
> Thanks in Advance for suggestions
>
mething like that:
# Get the content of row 0, column A
first = str(self.table.item(0, 0).text())
for entryPos in range(lastRow, len(data)):
if str(data[entryPos][0]) == first:
self.update_first_row(data[entryPos])
else:
self.add_new_row(data[entryPos])
--
Vincent V
I would like to know if it's possible to retrieve the name of a method when
you're inside it. For example, in the following script, I would like to
assign _s so that it prints "you are in method1".
***
class Obj1:
def __init__(self):
...
def
I've found some class on the Net which takes basically this form :
##
class Foo:
def __init__(self):
self.tasks = []
...
def method1(self):
tasks = []
while True:
...
append/pop elements into/from tasks
...
if condition : break
self.tasks[:] = t
Thank you, that's very clear indeed.
"Helmut Jarausch" <[EMAIL PROTECTED]> a écrit dans le message de
news: [EMAIL PROTECTED]
> Sébastien Vincent > I've found some class on the Net which takes basically this form :
>>
>> ##
>> class Foo
"c:\PYTHON26\lib\threading.py", line 121, in acquire
rc = self.__block.acquire(blocking)
Can someone tell me how the sleep of one thread can continue as the 'run' of
another? Is this normal? Thanks in advance!
Regards,
Vincent van Beveren
___
Ing. V. van Beveren
Software Engineer, FOM Rijnhuizen
T: +31 (0) 30-6096769
E: v.vanbeve...@rijnhuizen.nl
--
http://mail.python.org/mailman/listinfo/python-list
g I can do about it? I wish to reference these bound functions, but I do
not want to keep them in memory once the object they belong to is no longer
referenced.
Regards,
Vincent van Beveren
___
Ing. V. van Beveren
Software Engineer, FOM Rijnhuizen
E: v.vanbeve...@rijnhuizen.nl
--
http://mail.python.org/mailman/listinfo/python-list
Hi Peter,
I did not know the object did not keep track of its bound methods. What
advantage is there in creating a new bound method object each time its
referenced? It seems kind of expensive.
Regards,
Vincent
-Original Message-
From: Peter Otten [mailto:__pete...@web.de]
Sent
Hi Gregory,
> You can create your own wrapper that keeps a weak reference to
> the underlying object. Here's an example.
> [...]
Thanks for the code!
Regards,
Vincent
--
http://mail.python.org/mailman/listinfo/python-list
ree list. The creation of a new bound
> method just takes a few pointer assignments and three INCREFs.
Okay, that also explains the consistent memory assignment. Maybe I'll create a
bound-method caching object, see how slow/fast it is in comparison, and see
what ever other issues
2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>>
os.path.isfile('/home/vincent/oqapy-3/trunk/__pycache__/grid.cpython-34.pyc
')
False
Why ?
--
https://mail.python.org/mailman/listinfo/python-list
Le 10/02/17 à 21:36, Peter Otten a écrit :
Vincent Vande Vyvre wrote:
Le 10/02/17 à 19:11, epro...@gmail.com a écrit :
Hello NG
Python 3.5.2
Windows 10
os.path.isfile() no recognise file with double dot?
eg. match.cpython-35.pyc
Please somebody know something about that?
Thank You in
Le 10/02/17 à 22:03, Vincent Vande Vyvre a écrit :
Le 10/02/17 à 21:36, Peter Otten a écrit :
Vincent Vande Vyvre wrote:
Le 10/02/17 à 19:11, epro...@gmail.com a écrit :
Hello NG
Python 3.5.2
Windows 10
os.path.isfile() no recognise file with double dot?
eg. match.cpython-35.pyc
Please
malformed node or string: ' + repr(node))
ValueError: malformed node or string: <_ast.Call object at 0x7fcf955871d0>
Is it an import question ?
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Le 27/02/17 à 14:09, Chris Angelico a écrit :
On Mon, Feb 27, 2017 at 11:57 PM, Vincent Vande Vyvre
wrote:
I've this strange error:
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license"
3='world'
self.dlg.lineEdit_2.setText(str(area1))
self.dlg.lineEdit_3.setText(str(area2))
self.dlg.lineEdit_4.setText(str(area3))
pass
but no change.
distance is a string, then you have to compare it with the string "0"
not the integer
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
r example:
[(tmp, tmp + 1) for x in data with tmp = expensive_calculation(x)]
Alas!
With two passes
e = [expensive_calculation(x) for x in data]
final = [(x, y+1) for x, y in zip(e, e)]
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
alphabetical order, but not only for the attribute name, also for the
reference n.
Same into a console:
(py352_venv) vincent@djoliba:~/CPython/py352_venv/pydcraw$ python
Python 3.5.2 (default, Dec 19 2016, 11:46:33)
[GCC 4.8.4] on linux
Type "help", "copyright", "credit
Le 12/04/17 à 08:57, Vincent Vande Vyvre a écrit :
Hi,
Learning CPython, I've made this simple exercice, a module test which
contains an object Test.
The object Test has an attribute name, fixed at instanciation.
So, I try my code with a s
Le 12/04/17 à 10:51, Peter Otten a écrit :
Vincent Vande Vyvre wrote:
Le 12/04/17 à 08:57, Vincent Vande Vyvre a écrit :
Hi,
Learning CPython, I've made this simple exercice, a module test which
contains an object Test.
The object Test has an attribute name, fixed at instanciation.
Le 12/04/17 à 11:47, Peter Otten a écrit :
Vincent Vande Vyvre wrote:
No, no warning.
For the truth, this code is copy-pasted from the doc.
https://docs.python.org/3.5//extending/newtypes.html#adding-data-and-methods-to-the-basic-example
But the example expects objects (the big O), not
Key
Python 3.6.1 (default, Apr 12 2017, 11:39:17)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> f = "lkjgh"
>>> ^[[A^[[B# Up Arrow Key and Backspace Key
F
Le 16/04/17 à 15:19, Wolfgang Maier a écrit :
On 16.04.2017 10:56, Vincent Vande Vyvre wrote:
Hi,
I'm using Python 3.5 and 3.6 in venv and I see a strange behaviour in
the interactive interpreter.
The arrow keys can't be used to move the cursor into the current line of
code or to r
fail.
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Changed)
vat.setRate(17.5) # No change will occur (new rate is the same)
vat.setRate(8.5) # A change will occur (new rate is different)
Isn't this a mistake? self.connect( should be:
vat.connect(vat, SIGNAL("rateChanged"), rate)
Again, use the new syntaxe (new but not recent) it's more clear.
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
the ONLY two places
> draw_ellipse is mentioned are right there in the ellipse() function...
> WHAT am I missing??
>
> Thanks!
> -Stumpy (aka Greg)
Hi,
It's not defined in Python module but in
Pillow-3.5/Pillow-master/libImaging/Draw.c
... line 748
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
Please bear with me as I am new to Python and have not done any
programming in about 20 years. I am attempting to do a simple
interpolation of a line's intermediate points given the x,y coordinates
of the line's two endpoints within an Active State Python script that I
am working with. Is ther
> HI Vincent.
>
> You need the sources of the OpenSSL library, not the compiled library.
> On Ubuntu, the packages with sources are typically named xxx-dev where
> xxx is the package that provides the library. I don't have a Ubuntu
> currently, but try looking for someth
)
---
What can I do for that ?
Vincent.
--
https://mail.python.org/mailman/listinfo/python-list
opt/lib:$LD_LIBRARY_PATH
------
And rerun the compilation of 3.12.9 without problem with openssl.
(*) https://openssl-library.org/source/old/1.1.1/index.html
Vincent.
--
https://mail.python.org/mailman/listinfo/python-list
501 - 561 of 561 matches
Mail list logo