t that's fairly standard.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
eople have been using
these sorts of terms for a long time without anyone objecting. This sort of language control is just thought control of the wrong
sort.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 24/09/2018 17:30, Dan Purgert wrote:
Robin Becker wrote:
[...] just thought control of the wrong sort..
Is there "thought control of the right sort"?
yes python is good python is good ....
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
sant to see how such holy things spread into the
world of OSS, and this is apparently only the beginning.
+1
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
in that way or probably at all) -
Who is the "SJW brigade" of whom you speak?
...
It didn't take me very long to find a connection between this thread and this
phrase
"I’m Tired of Being Tolerant"
on these issues I am with the Voltaireans.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
;s
Flying Circus (https://docs.python.org/2/faq/general.html#why-is-it-called-python). Apparently we now also have the Spanish
Inquisition :)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
of
social systems that took centuries to build."
these Vandals are probably not in favour of the #me-too movement either :)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
a reasonable way to import either builtins / __builtin__
try:
import __builtin__
except ImportError:
import builtins as __builtin__
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 05/11/2018 10:00, Thomas Jollans wrote:
On 2018-11-05 10:47, Robin Becker wrote:
raise ImportError('This package should not be accessible on Python 3. '
'Either you are trying to run from the python-future src
folder '
&
#x27;)),'reportlab_mods')
except (ImportError,KeyError):
pass
and is intended to allow per user actions in a config file when reportlab is
imported.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
no attribute 'module_from_spec'
The example does work in python 3.5.0 so I guess the docs are a bit misleading.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
Does anyone know if sum does anything special to try and improve accuracy? My
simple tests seem to show it is exactly equivalent to a for loop summation.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
-summation-accurate-to-full-p/
for an example of a more accurate algorithm, but note that, for example,
this algorithm wouldn't work on complex numbers (you'd have to sum the
real and imaginary components separately)
yes indeed summation is hard :(
--
Robin Becker
--
https://mail.python.
le way to take a set of floats and find a suitable format to
show significant figures for all, but leave off the noise?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 23/05/2016 18:05, Ian Kelly wrote:
On Mon, May 23, 2016 at 10:39 AM, Robin Becker wrote:
.
If you want to show the float in a less noisy format, you can
explicitly format it using the 'g' or 'n' presentation type, which
essentially round to a given precision an
quent
copyright owners (heirs, divorcing spouses, creditors).
.
I'm surprised the tax man doesn't have a say; if I disclaim any property/right
in the UK it might be thought of as an attempt to evade death duties, taxes
always outlive death :(
--
Robin Becker
--
https://mail.pyt
n Rossum at CWI in the Netherlands"
so that Aycocks's paper must have been at the -1st Python Conference
-parallely yrs-
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
don't catch stuff like this. But I'm
sure there are also other mistakes as well in there so feel free to let me know.
not a big deal; I like the spark parser :)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
mutual dependencies then you need to find a set of variables that cuts all
the loops and solve for those simultaneously. Unfortunately for a directed graph
structure I think the minimal cutset problem is NP complete so good luck with that.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
I just got a mail bounce from my normal gmane --> nntp setup sending to
[email protected]. Have others seen this and does it mean the end
of gmane has happened? See
https://developers.slashdot.org/story/16/07/28/2059249/the-end-of-gmane
--
Robin Becker
--
https://mail.python.
, but that disallows referencing valid
properties eg pagesize, fontName, etc etc.
Is there a way to recursively turn everything immutable?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
::
host mail.python.org [188.166.95.178]: 504-5.5.2 :
Helo command rejected: need fully-qualified hostname
this being sent by gmane
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 05/08/2016 01:03, Lawrence D’Oliveiro wrote:
objects after the save method has been used. The user had mixed results :(
As GvR has said: “we’re all consenting adults here”.
In other words, we”re capable of coping with the consequences of our actions.
agreed :)
--
Robin Becker
(for the
reportlab tests on windows 2.7 takes 68.7", 3.4 83.8", 3.5 77.0", 3.6 61.5" & 3.7 60.9").
At some point reportlab will be made 3.x only which will require more effort.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 23/01/2019 21:51, Ian Kelly wrote:
On Wed, Jan 23, 2019 at 1:36 PM Stefan Behnel wrote:
.
All right, but apart from absolute imports, the print function, and true
division, what has Python 3.x ever done for us?
*ducks*
headaches :)
--
Robin Becker
--
https://mail.python.org
large list just copied into the zip *args; I suppose calling zip(A[0],A[1],..A[len(A)-1]) cannot be how this is done.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 21/02/2019 13:49, Peter Otten wrote:
Robin Becker wrote:
...
Isn't df.values a numpy array? Then try the more direct and likely more
efficient
df.values.tolist()
or, if you ever want to transpose
df.values.T.tolist()
The first seems to achieve what your sample code does
7; to 'task-args' and that seemed to fix things.
Is there a recommendation anywhere for names and detinations to avoid?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
; 64 MacOS and
linux.
His patch is changing several ints to Py_ssize_t after defining
PY_SSIZE_T_CLEAN.
Can anyone say which versions/runtimes this is needed for or can I just assume
it has no effect in early versions.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
r '#' formats
>>
>> Currently we build the extensions for 2.7 3.4-3.7 Windows 32 & 64 MacOS
>> and linux.
>>
>> His patch is changing several ints to Py_ssize_t after defining
>> PY_SSIZE_T_CLEAN.
>>
>> Can anyone say which versi
eans issues
of control, where do the sources reside and other politics.
Django has a similar feature to cgitb's output for tracebacks, but is too deeply embedded for use elsewhere; is there anything
suitable elsewhere?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
is, but I would still use cgitb to provide nicely formatted traceback html.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
such file.
I tried other commands, but it seems any attempt to cd to the directory
fails.
Using sftp in the shell directly I needed to add HostKeyAlgorithms=+ssh-dss for
this host.
Any pointers to what the problem could be?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 12/06/2019 05:59, dieter wrote:
Robin Becker writes:
I am trying to convert older code that uses ftplib as the endpoint has switched
to sftp only.
I am using the pysftp wrapper around paramiko.
The following script fails
def main():
import pysftp
with pysftp.Connection
On 13/06/2019 05:56, dieter wrote:
Robin Becker writes:
On 12/06/2019 05:59, dieter wrote:
Robin Becker writes:
I am trying to convert older code that uses ftplib as the endpoint has switched
to sftp only.
...
Well with real sftp I can cd to that path so if it is a symlink it goes
uest
return self._read_response(num)
File
"/home/rptlab/tmp/tpy3/lib/python3.6/site-packages/paramiko/sftp_client.py",
line 865, in _read_response
self._convert_status(msg)
File
"/home/rptlab/tmp/tpy3/lib/python3.6/site-packages/paramiko/sftp_client.py",
line 894,
iling server is using an earlier version of openssh or OS as it wants to use ssh-dss which is now considered
unsafe (I believe).
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
seems that ubuntu feels able to provide packages which are rc versions or
have a + indicating they're modified. They'll probably argue that this improves
things and I shouldn't be using such low level code ... :(
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 29/07/2019 12:33, Chris Angelico wrote:
.
Should I always be using self build python versions?
If you want to maintain your own Python, then by all means, go ahead.
I don't maintain my own Python 2.7, but I have a number of Python 3.x
builds, since Debian Stretch doesn't ship with a
L/382/lib/python3.8/site-packages
rptlab@everest:~/code/hg-repos
$
so the linked version of the venv python sees the base python site packages and
not the expected venv site-packages.
Is there a way to make the link work properly.
This problem doesn't seem to occur with older v
On 11/03/2020 17:24, Dieter Maurer wrote:
Robin Becker wrote at 2020-3-11 15:26 +:
I'm trying to understand why python 3.8.2 venv behaves differently when it is
executed va a link
Make the env
rptlab@everest:~/code/hg-repos
$ python38 -mvenv __py__/382v
...
so the l
(20.0.8) has
changed something and its linked python now has the same behaviour as the venv version even when the --copies option is
used.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
c etc.
Women and children first is long gone the new British attitude is devil take
the hindmost :)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
ense" for more information.
norm=lambda m: m+(m and(m[-1]!='\n'and'\n'or'')or'\n')
File "", line 1
norm=lambda m: m+(m and(m[-1]!='\n'and'\n'or'')or'\n')
appears to be in the same
location as the system distutils?")
distutils.__path__
['/home/robin/LOCAL/3.9b1/lib/python3.9/distutils']
distutils.__file__
'/home/robin/LOCAL/3.9b1/lib/python3.9/distutils/__init__.py'
is this a bug or have I built python 3.9.0b1 wrongly?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
explained.
I can build python3.9.9b1 virtualenvs using archlinux python 3.8.2 with
/bin/python -mvirtualenv -p /home/robin/LOCAL/3.9b1/bin/python3.9 myenv
I prefer the older virtualenv because it makes python executables which I can link to rather than always using an
explicit path.
So
On 19/05/2020 23:41, Robin Becker wrote:
..
robin@minikat:~/devel/reportlab
$ $HOME/LOCAL/3.9b1/bin/python3.9
Python 3.9.0b1 (default, May 19 2020, 12:50:30) [GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more informat
Significant (t=-111.53)
> ...
Is this because I haven't built in the same way as Arch or are there real slowdowns in this beta? Or even dumber have I
got the results the wrong way round?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
telist the application.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 10/06/2020 15:18, Souvik Dutta wrote:
You might also try py2exe, in that way the user doesn't need to install
python in her/his computer.
Souvik flutter dev
On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote:
I'm sure this has come up before, but a tiny pyinstaller created ex
On 10/06/2020 16:11, Souvik Dutta wrote:
I found this...
https://stackoverflow.com/questions/43777106/program-made-with-pyinstaller-now-seen-as-a-trojan-horse-by-avg
Might be usefull, might be useless.
Souvik flutter dev
On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote:
.
thanks for the
ersions of windows as well. Some people are reluctant to change old win 95/xp
machines just to run a single app.
I had supposed there might be a simple mechanism to get these applications validated in some way, but it seems not. MS
seems uninterested.
--
Robin Becker
--
https://mail.python.o
On 10/06/2020 20:41, Chris Angelico wrote:
.
Python can be installed from the app store, or from a python.org
downloader. If that's too much hassle for them, then they're going to
need help *whatever* you do.
works for windows 10, but probably not on older machines.
The current exe wo
d because they won't follow us on the upgrade tread
wheel seems a bit arrogant.
ChrisA
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
ed the false
problem in a few days for me.
I think my boss actually tried this, but I will check. Thanks
Barry
....
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 11/06/2020 16:39, Grant Edwards wrote:
the hands of the developer. I suppose the OP could quit and stand on
the street corner with a cardboard sign:
I would love to do that :)
--
https://mail.python.org/mailman/listinfo/python-list
the BBC of “social engineering” after its head of
comedy said Monty Python’s white Oxbridge males were out of step with modern
television.
so is there a pep for alternate language names ;)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
{t:23}
d
{(1, <__main__.H object at 0x7f5bf72021f0>): 23}
hash(h)
2
hash(list(d.keys())[0])
-3550055125485641917
h.a=33
hash(list(d.keys())[0])
-3656087029879219665
so the dict itself doesn't enforce immutability of its keys
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
construct
https://www.sciencemag.org/news/2020/08/quantum-paradox-points-shaky-foundations-reality
ReportLab has quite a lot of colour based words; so far I've only had a few related emails :) which mostly seem to end
up in spam
-hoping to escape victimhood-ly yrs-
Robin Becker
--
https://
r-sensitivity of the woken
rather dispiriting.
-aged-ly yrs-
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
x27;gcc' failed with exit status 1
so obviously I need to install some version of boost libs or Boost.Python etc
etc. Gave up :(
-luddite-ly yrs-
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
.
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 ?
https://aur.archlinux.org/packages/python-exiv2/
Vincent
that would work (if I had thought hard about it), but not for a pip
As mentioned earlier only a dictator can make such decisions and of course as
with many dictatorships the wrong decision is often made. There's no such thing
as a benevolent dictatorship.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Eric Nieuwland wrote:
>
>
> Ever cared to check what committees can do to a language ;-)
>
well there goes democracy :(
-the happy slaves eat and are contented-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ouldn't find
anything obvious. My system doesn't have psyco so xlrd's attempted psyco use
shouldn't be an issue. Thanks for 2.4.2, but is this one of the fixed bugs or
has it just got harder to induce?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
time
>>on such files, and have been attempting to debug the problem for some
>>time without any apparent success.
>
>
> http://www.python.org/sf/1175396
>
>
thanks that looks like it, the __init__.py had
# -*- coding: cp1252 -*-
at the start.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Is there a way to override a data property in the instance? Do I need to create
another class with the property changed?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
> Robin Becker a écrit :
>
>> Is there a way to override a data property in the instance? Do I need
>> to create another class with the property changed?
>
>
> Do you mean attributes or properties ?
I mean property here. My aim was to
,pName,value):
print 'obs1', inst, pName, value
class A(object):
x = ObserverProperty('x')
a=A()
A.x.add(obs0)
a.x = 3
b = A()
b.x = 4
#I wish I could get b to use obs1 instead of obs0
#without doing the following
class B(A):
x = ObserverProperty('x',observers=[obs1])
b.__class__ = B
b.x = 7
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
> Robin Becker wrote:
>
>>Is there a way to override a data property in the instance? Do I need to
>>create
>>another class with the property changed?
>>--
>>Robin Becker
>
>
> It is possible to decorate a method in a way that i
Steven Bethard wrote:
> Robin Becker wrote:
>
...
>
> Can you add the object to be observed as another parameter to the add
> method?
>
> py> class ObservableProperty(property):
> ... def __init__(self, *args, **kwargs):
..
> py> A.x.add
Kay Schluehr wrote:
> Robin Becker wrote:
>
>
>>I thought that methods were always overridable.
>>In this case the lookup on the
>>class changes the behaviour of the one and only property.
>
>
> How can something be made overridable that is actually overri
e descriptor, instance class and the
instance. Since the descriptor is attached to the class or a base class
one could argue about whether observers should be inherited etc etc, but
perhaps that's a step too far.
Thanks to Alex and Bengt and others for clarifying a bunch of issues.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
;
> Don't jump to conclusions...
> http://dwahler.ky/python/
>
> If you really, really want Python in a browser, it's certainly
> possible. :)
>
> -- David
>
well in firefox 1.07 I seem to be getting
Error: unmarshal is not defined
Source File: http://dwahler.ky/pytho
ill not allow me to
> read local, client files. Right?
I think reading files is easy; just get the client browser to submit a
form with the file as an upload. Hard part is getting the path(s) right.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
, moinmoin and others work fine with apache2 maybe because they use a cgi
style interface. I would stick with a pythonic solution unless there's a good
reason not too.
-too old to learn a new language-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
re alleged not to be threadsafe. Some Linux distributions ship standard
this way.
...
unfortunately mod_python3 seems to need exactly the opposite ie apache2
with threads. However, I originally tried to get php going with apache2
in the standard mode and still had problems.
--
Robin Beck
/~rgbecker/cgi-bin/pytestcgi.cgi
Please don't misuse it's free and I'm no longer an American :)
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
sources of removed modules?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Nick Craig-Wood wrote:
Robin Becker <[EMAIL PROTECTED]> wrote:
Paul Rubin wrote:
"Reed L. O'Brien" <[EMAIL PROTECTED]> writes:
I see rotor was removed for 2.4 and the docs say use an AES module
provided separately... Is there a standard module that works alike or
an
Robin Becker wrote:
Presumably he is talking about crypo-export rules. In the past strong
cryptography has been treated as munitions, and as such exporting it
(especially from the USA) could have got you into very serious
trouble.
So Python is an American Language and must obey American Law
sa006&articleID=000479CD-F58C-11BE-AD0683414B7F&ref=rdf
-can't wait to get my quantum computer-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
on%20extensions
which may help
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
h better
and he got java -- python etc etc pretty easily.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
shed into the real world.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
> dcrespo wrote:
>
>>Hi... Thanks for your answer, but can you give me his contact or tell
>>him to post here the answer I'm looking for? I'm needing it seriously.
>>
>
> Well I'm not a VB person so perhaps you need to ask on a
would like to automate my build script to include this file, but cannot think
of an automatic way to determine which of msvcr70/71.dlls are needed.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Heller wrote:
> Robin Becker <[EMAIL PROTECTED]> writes:
.
>
> For a discussion about the rights (or not) to distribute msvcr71.dll you
> could read the py2exe-users lists archive.
thanks for the tip, I believe there was a discussion on clpy recently as well
Paul Rubin wrote:
> km <[EMAIL PROTECTED]> writes:
>
>>is true parallelism possible in python ? or atleast in the coming versions ?
>>is global interpreter lock a bane in this context ?
>
>
> http://poshmodule.sf.net
Is posh maintained? The page mentions
which about
one day was figuring out how the NSIS + py2exe stuff worked. I think the nsis
script needed a minor tweak to do exactly what we wanted.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ry
> gratefully received.
>
> regards
> Steve
Could PIL have been compiled without freetype support perhaps?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
interest: http://poshmodule.sf.net
>
It seems it might be a bit out of date. I've emailed the author via sf, but no
reply. Does anyone know if poshmodule works with latest stuff?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
> Paul Rubin wrote:
>
>>
>>This module might be of interest: http://poshmodule.sf.net
>>
>
> It seems it might be a bit out of date. I've emailed the author via sf, but
> no
> reply. Does anyone know if poshmodule works with l
Robin Becker wrote:
> Robin Becker wrote:
>
>>Paul Rubin wrote:
>>
>
>
>>>This module might be of interest: http://poshmodule.sf.net
>>>
>>
>>It seems it might be a bit out of date. I've emailed the author via sf, but
>>no
group 996688 Dec 31 09:57 test.rml
C:\Tmp>
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
port database
class C(database.C):
_fieldDefs = database.C._fieldDefs+[..]
database.C = C
Is there a better way to do this which preserves more of C's original identity?
I suppose I want to call the metaclass initialization again, but can't see a way
to do that.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
it__.py for
an implementation of mine which you can steal in toto (because it's
public domain).
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
and thanks again
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
...
My question is this: what can be substituted for that will
make the example above work?
self.__class__.__name__
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Michael Hoffman wrote:
Robin Becker wrote:
self.__class__.__name__
Unless I misunderstood the question, that won't work. That will
give you the name of the class the object is an instance is of.
I think he wants the name of the class the method was defined in.
Here's a way to do
101 - 200 of 731 matches
Mail list logo