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
> 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
it does not fix it, that is how I
>got your email.
>How can I get the latest Python version (3.9.1), instead of what I'm
>getting (22.7.17)?
>Thank you for your time.
Please, copy-paste all the content of your terminal (I presume this is wht you
name cmd.exe).
Vincent
--
On 22/12/20 01:57, Bob Gailer wrote:
>
>
> On Mon, Dec 21, 2020, 3:03 PM Vincent Vande Vyvre
> wrote:
>
> Hi,
>
> I've an object that I want to serialise with pickle.
> When I reload the object the attributes of this object are correctly
> fixe
Hi,
I've an object that I want to serialise with pickle.
When I reload the object the attributes of this object are correctly
fixed except one of these.
This attribute (value) define a simple string.
Example:
-
tag = XmpTag('Xmp.dc.format', 'image/
Le 20/08/20 à 09:07, Robin Becker a écrit :
> .
>>> so obviously I need to install some version of boost libs or
>>> Boost.Python etc etc. Gave up :(
>>> -luddite-ly yrs-
>>> Robin Becker
>>>
>> The aur repository, no ?
>>
>&
Le 19/08/20 à 10:15, Robin Becker a écrit :
> On 18/08/2020 20:05, Vincent Vande Vyvre wrote:
> .
>>>
>> Hi,
>>
>> Two solutions:
>> 1. Install exiv2-dev and py3exiv2 with pip
>> $ sudo apt-get install libexiv2-dev
>> $
incent-vandevyvre/vvv
$ sudo apt-get update
$ sudo apt-get install python3-exiv2
Don't change your old code for pyexiv2, the names of the modules are
unchanged, your old code should work as it.
Off course old strings are now unicode.
Vincent (AKA VinsS)
--
https://mail.python.org/mailman/listinfo/python-list
Data Sceptic has a couple podcast and some of the code is open source.
https://dataskeptic.com/blog/episodes/2018/algorithmic-detection-of-fake-news
Thanks
Vincent Davis
720-301-3003
*Want to get a hold of me?*
*SMS: awesome.phone: ok...*
*email: bad!*
On Fri, Jul 17, 2020 at 11:39 PM Mike
, 'euclidean')
b = a[a < .0001]
b
array([8.83911760e-05, 6.31347765e-05, 3.89486842e-05, 2.13775583e-05,
2.10950231e-05, 4.10487515e-05, 6.7000e-05, 9.10878697e-05,
7.61183289e-05, 9.90050504e-05, 7.88162420e-05, 5.90931468e-05,
4.50111097e-05, 4.97393205e-05, 6.7896980
Dennis,
Thanks for your ideas. The researcher I am working with just told me the
data is wrong and needs to send me new data and there are other problems
with exactly what their research questions is. So this goes nowhere for now.
Thanks
Vincent Davis
720-301-3003
*Want to get a hold of me
it in that color format? I think yes.
3. How can I visualize this data as a 6x6 color image and visualize each
color on a gray scale.
4. General hints or link of how to proceed would be helpful.
Thanks
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
ot;
> seek = {'a','b','c'}
> count = sum(1 for a in chars if a in seek)
>
> So you haven't really changed any semantics - and it seems that this
> is far better than fiddling with the for loop syntax.
You can use boolean as integer.
>>> ch
Python 3.7.4 won’t uninstall, I have tried doing what I can such as going to
the control panel and uninstalling the program there, but that did not work.
Since I am unable to delete it I am unable to download a different version of
python. How do I fix this and fully uninstall python?
Sent from
xecutable for Windows.
But, recently an user send me how it has successfully compiled py3exiv2
for Windows.
Hello Vincent,
I’ve run through the trouble of building py3exiv2 on Windows and was
successful in doing so,
therefore I’d like to present you the steps I’ve taken to get there, so
that
Le 25/04/19 à 08:25, Chris Angelico a écrit :
On Thu, Apr 25, 2019 at 2:32 PM Vincent Vande Vyvre
wrote:
Le 24/04/19 à 19:57, MRAB a écrit :
On 2019-04-23 20:21, Vincent Vande Vyvre wrote:
Le 23/04/19 à 20:54, Chris Angelico a écrit :
Why a SystemError ?
The SystemError means that you
Le 24/04/19 à 19:57, MRAB a écrit :
On 2019-04-23 20:21, Vincent Vande Vyvre wrote:
Le 23/04/19 à 20:54, Chris Angelico a écrit :
On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre
wrote:
Into the lib:
static int
ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds)
{
PyObject
Le 23/04/19 à 21:48, MRAB a écrit :
On 2019-04-23 19:21, Vincent Vande Vyvre wrote:
Le 23/04/19 à 19:23, Chris Angelico a écrit :
On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre
wrote:
Hi,
In a CPython lib I have an _init() method wich take one argument, a
file
name.
char
Le 23/04/19 à 20:54, Chris Angelico a écrit :
On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre
wrote:
Into the lib:
static int
ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds)
{
PyObject *tmp;
char *fname;
if (!PyArg_ParseTuple(args, "s&quo
Le 23/04/19 à 19:27, MRAB a écrit :
On 2019-04-23 10:56, Vincent Vande Vyvre wrote:
Hi,
In a CPython lib I have an _init() method wich take one argument, a file
name.
char *fname;
if (!PyArg_ParseTuple(args, "s", &fname))
return NULL;
So, if I instanc
Le 23/04/19 à 19:23, Chris Angelico a écrit :
On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre
wrote:
Hi,
In a CPython lib I have an _init() method wich take one argument, a file
name.
char *fname;
if (!PyArg_ParseTuple(args, "s", &fname))
return N
nstanciation of this object into a try-except bloc
but how to read the error message ?
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
ered as suitable, but I think
the above is likely.
Paul
Exact, in mode verbose it enumerate all versions of pyqt-sip and all are declared
"not compatible with this Python"
So I'll create a 3.7.3 venv without the "--with-pydebug"
Thanks,
Vincent.
--
https://mail.python.org/mailman/listinfo/python-list
Le 12/04/19 à 07:40, dieter a écrit :
Vincent Vande Vyvre writes:
...
Using Python-3.7.2 (compiled with --with-pydebug) in a venv, I've
encountered this problem:
$ pip install --upgrade pip setuptools wheel
Successfully installed setuptools-41.0.0 wheel-0
th this problem.
Thanks for all advices
Vincent.
--
https://mail.python.org/mailman/listinfo/python-list
Le 23/01/19 à 13:11, Neal Becker a écrit :
dieter wrote:
Vincent Vande Vyvre writes:
.
To load external C/C++ shared objects, the dynamic lickage loader
(ldd) is used. "ldd" does not look at Pthon's "sys.path".
Unless configured differently, it looks at stand
/pyexiv2/libexiv2python.cpython-37m-x86_64-linux-gnu.so
# and the latest version of libexiv2
~/CPython/py370_venv/lib/libexiv2.so.0.27.0
All theses path are in the sys.path
Now I test my binding:
>>> import pyexiv2
Traceback (most recent call last):
File "", line 1, in
File
"/hom
;", line 1, in
File
"/home/vincent/CPython/py370_venv/lib/python3.7/site-packages/py3exiv2-0.1.0-py3.7-linux-x86_64.egg/pyexiv2/__init__.py",
line 60, in
import libexiv2python
ImportError:
/home/vincent/CPython/py370_venv/lib/python3.7/site-packages/py3exiv2-0.1.0-py3.7-linux-
this?
TIA
With Qt it's very easy to implement a video player.
See this example:
https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head:/gui/videoplayer.py
It is implemented into this window:
https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head
Why not start with a histogram.
Vincent
On Sat, Dec 15, 2018 at 6:46 PM Marc Lucke wrote:
> hey guys,
>
> I have a hobby project that sorts my email automatically for me & I want
> to improve it. There's data science and statistical info that I'm
> missing, &
The Account Settings
<https://pypi.us18.list-manage.com/track/click?u=b96f861be540deb98fd700265&id=1763135c31&e=8824682d0f>
is :
https://pypi.us18.list-manage.com/track/click?u=b96f861be540deb98fd700265&id=1763135c31&e=8824682d0f
Phishing ? yes, no ?
ng the message ]
Same day, same hour but arrived today
From: "Steven D'Aprano"
From: Steven D'Aprano
On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
[ following the same message ]
-------
classic example :
class Foo:
_instance = None
def __new__(cls, *args, **kwargs):
if cls._instance is None:
cls._instance = super(Foo, cls).__new__(cls, *args, **kwargs)
return cls._instance
def __init__(self, ...):
...
Vincent
Send at Mon, 18 Jun 2018 09:17:21 +0200
--
https://mail.python.org/mailman/listinfo/python-list
scape() instead.',
DeprecationWarning, stacklevel=2)
return unescape(s)
Vincent
(send at 08:07 GMT)
--
https://mail.python.org/mailman/listinfo/python-list
Le 15/05/18 à 12:05, Vincent Vande Vyvre a écrit :
Hi,
Trying to upgrade a package on PyPI, I get this error:
$ python3 setup.py register sdist upload
...
Submitting dist/py3exiv2-0.3.0.tar.gz to https://pypi.python.org/pypi
Upload failed (308): Redirect to Primary Domain
error: Upload failed
/
username = VinsS
password = **
-
Note: I've tested on test.pypi.org without problems.
Thanks for all advices,
Vincent
(send at Tue, 15 May 2018 12:04:10 +0200)
--
https://mail.python.org/mailman/listinfo/python-list
à l'installer depuis pyzo.
Si quelqu'un peut m'aider, merci à lui d'avance.
Hi,
This is an English mailing list.
If you prefer talk in French, I recommend you this forum:
https://www.developpez.net/forums/f96/autres-langages/python-zope/
Best
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
s not None:
setattr(self, key, value)
def spam(self, **kwargs):
self.config(kwargs)
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
nd
the Python code.
Can this be done with just two packages: the C library and C wrapper and
Python in one package?
Hi,
You can made an all-in-one package without problems.
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber
wrote:
> On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis
> declaimed the following:
>
> >Looking for suggestions. I have an ordered list of names these names will
> >be reordered. I am looking to make a plot, graph, wi
example code for this on the net an am not
finding a clean example.
Thanks
Vincent Davis
--
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
ing??
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
k >= 2:
# do magnificent things
Thank you
AZ
Maybe something like that:
lst = [do_magnificent_thing(dct[k]) for k in dct if k >= 2]
lst contains the returns of do_magnificent_thing(k) in unpredictable order.
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Le 14/10/17 à 15:59, Stefan Behnel a écrit :
Vincent Vande Vyvre schrieb am 13.10.2017 um 13:18:
Le 13/10/17 à 12:39, Paul Moore a écrit :
As a specific suggestion, I assume the name of the created file is a
string object constructed in the C extension code, somehow. The fact
that you
ython with:
static PyMemberDef PyUnraw_members[] = {
{"out_file", T_OBJECT_EX, offsetof(PyUnraw, outfname), 0,
"Path of the decoded file"},
...
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Le 13/10/17 à 09:23, Chris Angelico a écrit :
On Fri, Oct 13, 2017 at 4:46 PM, Vincent Vande Vyvre
wrote:
Simplified code:
---%<--
...
---%<--
If I place self.callback() at the end of the func proces
allback() at the end of the func process that doesn't
change anything.
Regards,
Vincent.
--
https://mail.python.org/mailman/listinfo/python-list
Is it a reason why my messages appears always a long time (today 9
hours) on the list after I send it ?
Send at 19:14 UTC+2
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
gt; text = ('Lorum ipsum dolor sit amet, consectetur adipiscing'
... ' elit ZZZ\xa0ZZZ sed do euismod tempor incididunt'
... ' ut labore et dolore magna aliqua.')
>>> print(textwrap.fill(text, 59))
Lorum ipsum dolor sit amet, consectetur adipiscing elit
ZZZ ZZZ sed do euismod tempor incididunt ut labore et
dolore magna aliqua.
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Again an other review:
http://www.kdnuggets.com/2017/08/python-overtakes-r-leader-analytics-data-science.html
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
fail.
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
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
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 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
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 à 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
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
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
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
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"
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 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
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
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
ror that I could not understand why...Thanks in Advance
Try with:
for i in product_name:
print(i)
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Le 20/12/16 à 10:13, Chris Angelico a écrit :
On Tue, Dec 20, 2016 at 7:36 PM, Vincent Vande Vyvre
wrote:
It seems you have shadowed your default python2 with the new one. A very bad
idea.
Only because /usr/local/bin is ahead of /usr/bin in PATH.
That's the problem.
The link /us
Le 20/12/16 à 08:45, Chris Angelico a écrit :
On Tue, Dec 20, 2016 at 5:19 PM, wrote:
Thanks Chris for replying, but it didn't work. The upgrade happened, but still
python can't see numpy! So it seems to be a path problem. The numpy (and scipy
and matplotlib) files are there, so surely in pr
ath.dirname(os.path.abspath('__files__'))
PAGESDIR = os.path.join(os.path.dirname(WEBDIR), 'somewhere/templates')
STATICDIR = os.path.join(os.path.dirname(WEBDIR), 'somewhere/static')
...
app = Flask(__name__, template_folder=PAGESDIR, static_folder=STATICDIR)
...
--
Vincent V.V.
Oqapy <http://www.oqapy.eu> . python3-exiv2
<http://www.py3exiv2.tuxfamily.org/> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
--
https://mail.python.org/mailman/listinfo/python-list
rtable coding in Python.
Thanks,
Paul
Hi,
PyQt is a good choice to embed a web viewer in a GUI application.
There's no great differences between Qt4 and Qt5.
An example with PyQt4:
http://bazaar.launchpad.net/~vincent-vandevyvre/oqapy/2.0/files/head:/oqapy-2.0/g9n/
The same with PyQt5
ot;help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> assert sys.version >= (sys.version_info >= (3, 0))
Traceback (most recent call last):
File "", line 1, in
TypeError: unorderable types: str()
ce is appreciated, thanks!
On Debian, this is a separate package python3-pyqt5.qtserialport, I
don't know for other Linux
After install you can use:
from PyQt5.QtSeriaPort import QSerialPort
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
Le 12/06/16 09:20, Vincent Vande Vyvre a écrit :
Hi,
I have a strange behaviour in my code.
In an interactive session, the result is as expected:
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "l
except AttributeError:
self.core.artetv.configure_downloading(self.video)
and ...
Traceback (most recent call last):
File "/home/vincent/qarte-3/trunk/loadingscheduler.py", line 240, in
call_settings_dialog
_ = self.video.category
AttributeError: 'TVItem
msg.attach(part)
s = smtplib.SMTP('localhost')
s.sendmail(fromid,toaddress, msg.as_string())
s.quit()
Try with
msg['Reply-To'] = the adress
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
also a mailing list PyQt:
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
nderstood here.
The date used to sort the picture is not the file date provided by
os.stat but the shooting date written into the metadata of each picture.
Can the OP confirm that ?
So, if the name of the picture are unchanged why not just compare the
file name ?
Vincent
--
https://mail.py
using matplotlib and PyQt4 at
supercomputer.
Any other suggestion???
There's no IndentationError in the exemple provided by Michael.
Copy the code AS IT in a file and retry.
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
(I want it to be python as
that is what I am trying to learn)
Can you give me some coding suggestions to get me goings? I haven't found any
substantive scripts to use as guides.
Many thanks in advance
Have a look at py3exiv2:
http://python3-exiv2.readthedocs.org/en/latest/
Vincent
--
Le 26/03/2016 18:06, Vincent Vande Vyvre a écrit :
Le 26/03/2016 17:49, beliavsky--- via Python-list a écrit :
I can use x[::n] to select every nth element of a list. Is there a
one-liner to get a list that excludes every nth element?
Something like that:
>>> l = list("lkod
'k', 'o', 'd', 'j', 'u', 'y', 'h', 'r', 't', 'g', 'f', 'e', 'd',
'c', 'v', 'f', 'g']
>>> ll = [c for i, c in enumerate(l) if i % 3]
>>> ll.insert(0, l[0])
>>> ll
['l', 'k', 'o', 'j', 'u', 'h', 'r', 'g', 'f', 'd', 'c', 'f', 'g']
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
t and tell your feeling
Regards
http://salvatore.diodev.fr/pypybox/
Use Firefox...
That's look fine but:
PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND
4917 vincent 20 0 1081m 305m 52m R *50.3* 15.4 5:23.75 firefox
1094 root 20 0 48152 15m 7180 S *
Le 07/03/2016 09:24, Faling Dutchman a écrit :
Hey folks,
I am just starting off in python, but have good knowledge of both Java and C#.
Now is the problem that I need to have multiple instances of one dictionary,
that is not a problem if you know how many, but now, it is an unknown amount.
S
se a dict
was better.
See the example here.
https://github.com/vincentdavis/USAC_data/blob/master/tools.py#L24
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
Le 24/01/2016 08:58, Vincent Vande Vyvre a écrit :
Hi,
Refering to the doc
https://docs.python.org/3/library/pathlib.html?highlight=pathlib#pathlib.PurePath.path
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC
", "credits" or "license" for more information.
>>> from pathlib import PurePath
>>> p = PurePath('/home/vincent/Images')
>>> p.name
'Images'
>>> p.suffix
''
>>> p.parent
PurePosixPath('/ho
://www.developpez.net/forums/f96/autres-langages/python-zope/
Vincent
--
https://mail.python.org/mailman/listinfo/python-list
'Lu', 'Ll')))[945:965]
>>> u
'ԡԢԣԤԥԦԧԨԩԪԫԬԭԮԯԱԲԳԴԵ'
Python 3.4
>>>
import unicodedata
>>>
u = ''.join(chr(i) for i in range(65536) if (unicodedata.category(chr(i))
in ('Lu', 'Ll')))[945:965]
>>> u
'
e is one
result as of now,
which
is an archive of this tread. If you search for any given word or even the
phrase
, for example
"baby lions at play
" you get a much larger set of results
~500
. I assue there are many was to search google with python, this looks like
one. https://pypi.python.org/pypi/google
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Dec 14, 2015 at 4:53 PM, Ian Kelly wrote:
>
> Except that catching an exception just to immediately re-raise it is
> silly. This would be better:
>
> try:
> name = handle.name
> except AttributeError:
> pass
> else:
> handle.write("# Report_file: %s\n" % name)
Ya that would
ributeError:
raise
try:
name = handel.name
write("# Report_file: %s\n" % name)
except AttributeError:
pass
write("\n")
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
except AttributeError:
pass
handle.write("\n")
The specific use case I noticed this was
https://github.com/biopython/biopython/blob/master/Bio/AlignIO/EmbossIO.py#L38
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
Le 08/12/2015 20:02, Thomas 'PointedEars' Lahn a écrit :
Erik wrote:
Please fix, Erik #75656.
On 07/12/15 18:10, Tony van der Hoff wrote:
A highly contrived example, where I'm setting up an outer class in a
Has-a relationship, containing a number of Actors. The inner class needs
to access
urce code from a jupyter notebook. Reading closer this seems like it
will work.
Not that I mind learning more about how doctests work ;-)
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
int('world')
Exception raised:
Traceback (most recent call last):
File "/Users/vincentdavis/anaconda/envs/py35/lib/python3.5/doctest.py",
line 1320, in __run
compileflags, 1), test.globs)
File "", line 1
print('hello')
^
SyntaxError: multiple statements found while compiling a single statement
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
is into a test. doctest seemed the simplest
but maybe there is a better way.
I also tried something like:
assert exec("""print('hello word')""") == 'hello word'
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
t.Example(source="print('hello world')/n", want="hello world\n")
t = doctest.DocTestRunner()
t.run(e)
Thanks
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
gt; backagain = decoder(short)
> nlen = len(str(n))
> print (nlen, len(short), float(len(short))/nlen)
> assert n==backagain, (n,short,b)
>
> test()
>
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 561 matches
Mail list logo