simple workaround.
Anyone know how to get around this problem. I did try rebuilding the cpython
stuff using make, but that also failed.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
installing into
python-3.12.0a5 I used latest lxml source and
python setup.py bdist_wheel --with-cython
which built without error. The installed lxml seems fine (at least for
reportlab tests).
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
Wouters
Ned Deily
Steve Dower
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
=
> ERROR: testImport1 (__main__.ImportTestCase.testImport1)
> --
> Traceback (most recent call last):
> File "/home/robin/devel/reportlab/REPOS/preppy/tmp/test_import.py", line
13, in testImport1
> import sample001
On 25/05/2023 12:23, Robin Becker wrote:
On 22/05/2023 22:04, Thomas Wouters wrote:
> I'm pleased to announce the release of Python 3.12 beta 1 (and feature
> freeze for Python 3.12).
>
...
I see a major difference between 3.12.0a7 and 3.12.0b1
Basically in preppy an impor
-Xtracemalloc; the main process is almost finished so the error appears to
come from trying to free resources
$ python -Xdev -Xtracemalloc genuserguide.py
/home/robin/devel/reportlab/.py310/lib/python3.10/distutils/__init__.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see
things
--
not segfaulting-ly yrs Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
I googled in vain for instances where parts of idlelib are re-used in a simplistic way. I would like to use the editor
functionality in a tkinter window and also probably run code in a subprocess.
Are there any examples around that do these sorts of things?
--
Robin Becker
--
https
Thanks,
On 28/01/2021 19:57, Terry Reedy wrote:
On 1/28/2021 5:53 AM, Robin Becker wrote:
I googled in vain for instances where parts of idlelib are re-used in a simplistic way. I would like to use the editor
functionality in a tkinter window and also probably run code in a subprocess.
Are
roduces
is an A
is a type
<__main__.A object at 0x7fe5a2248fd0> is an A instance
<__main__.B object at 0x7fe5a2248fd0> is an instance
is this the right approach to this problem of distinguishing instances ?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
he self writing script
python find-tomorrows-lotto-numbers.py
since GvR has been shown to have time traveling abilities such a script could
paradoxically appear acausally.
--
yrs-not-too-seriously
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 12/05/2021 20:17, Mirko via Python-list wrote:
Am 12.05.2021 um 20:41 schrieb Robin Becker:
...
...
since GvR has been shown to have time traveling abilities such a
script could paradoxically appear acausally.
--
yrs-not-too-seriously
Robin Becker
Not sure, if that's
uild/env.py", line
92, in __enter__
> executable, scripts_dir = _create_isolated_env_venv(self._path)
> File "/home/user/devel/reportlab/.py39/lib/python3.9/site-packages/build/env.py", line 221, in
_create_isolated_env_venv
> pip_distribution = next(iter(metad
auth value?
As an additional issue I find I have no clear idea what encoding is allowed for
the components of a basic auth input.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
equests package or 2) setting up an opener.
Both of these seem to be much more complex than is required to add the header.
I thought there might be a shortcut or more elegant way to replace the old
code, but it seems not
thanks
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
is
xml file 014.xml
]>
&e;\xef\xbb\xbfdata'
which implies seems as though the extra BOM in the entity has been kept and
processed into a different BOM meaning utf8.
I think the test file is wrong and that multiple BOM chars in the entiry should
have been removed.
Am I rig
I might use the __module__ to locate the module object via PyImport_GetModuleDict.
Any expertise or advice gratefully received.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
Hi Marc,
Thanks for the suggestion,
On 27/09/2021 09:38, Marc-Andre Lemburg wrote:
Hi Robin,
seeing that no one replied to your question, I'd suggest to ask this
on the Python C-API ML:
https://mail.python.org/mailman3/lists/capi-sig.python.org/
That's where the experts are, inc
.compile('^.*(?:\\W|\\b)(?Pdynamic_rml\\.dtd|rml\\.dtd|rml_0_2\\.dtd|rml_0_3\\.dtd|rml_1_0\\.dtd)$',
re.MULTILINE)
Resolving url='../rml.dtd' context= dtdPath='rml.dtd'
Traceback (most recent call last):
File "/home/robin/devel/reportlab/REPOS/rlextra/tmp/t
On 02/11/2021 12:55, Robin Becker wrote:
I'm having a problem using lxml.etree to make a treebuilding parser that validates; I have test code where invalid xml
is detected and an error raised when the line below target=ET.TreeBuilder(), is commented out.
.
I managed to overcome
g
xxml=b'a &mysym; < & >
! A'
ET.tostring(tree)=b'a &mysym; < &
> ! A'
using attributes
tree.text='a &mysym; < & > ! A'
tree.getchildren()=[]
tree.tail=None
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 12/01/2022 20:49, Dieter Maurer wrote:
...
when run I see this
$ python tmp/tlp.py
using tostring
xxml=b'a &mysym;
< & >
! A'
ET.tostring(tree)=b'a
&mysym; < &
> ! A'
using attributes
tree.text='a &mysym; < & > ! A'
tree.getchildren(
On 13/01/2022 09:29, Dieter Maurer wrote:
Robin Becker wrote at 2022-1-13 09:13 +:
On 12/01/2022 20:49, Dieter Maurer wrote:
...
Apparently, the `resolve_entities=False` was not effective: otherwise,
your tree content should have more structure (especially some
entity reference children
I'm using lxml.etree.XMLParser and would like to distinguish
from
I seem to have e.getchildren()==[] and e.text==None for both cases. Is there a
way to get the first to have e.text==''
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 02/03/2022 18:39, Dieter Maurer wrote:
Robin Becker wrote at 2022-3-2 15:32 +:
I'm using lxml.etree.XMLParser and would like to distinguish
from
I seem to have e.getchildren()==[] and e.text==None for both cases. Is there a
way to get the first to have e.text==''
hing is compiled for arm64, but gcc
doesn't want to use an arm64 dylib.
Can macos experts assist?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 08/03/2022 16:08, Christian Gollwitzer wrote:
Am 07.03.22 um 17:22 schrieb Robin Becker:
I use brew to install freetype version 2.11.1.
I find via google that homebrew/apple have split the installation of intel and arm64 into /usr/local and /opt/homebrew
so I must modify the include_dirs
many years) at
https://pairlist2.pair.net/mailman/listinfo/reportlab-users
is that the address you used? I see messages in the archives so some people can
use it.--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
..
Hi Les, so far as I know the reportlab-users list is still running it is hosted
(nad has been for many years) at
https://pairlist2.pair.net/mailman/listinfo/reportlab-users
is that the address you used? I see messages in the archives so some people can
use it.--
Robin Becker
On 15/03/2022 13:20, Les wrote:
Robin Becker ezt írta (időpont: 2022. márc. 15., K,
14:06):
Hi Les, so far as I know the reportlab-users list is still running it is
hosted (nad has been for many years) at
https://pairlist2.pair.net/mailman/listinfo/reportlab-users
is that the address you
t))
print("({:.1f} images per second)".format(numOfImages/t))
print("({:.1f} tiles per second)".format(tilesPerImage*numOfImages/t))
--
Robin Koch
--
https://mail.python.org/mailman/listinfo/python-list
upon receipt.
Do you realize how stupid it is to put this on a message sent all around
the world?
I have worked places where they put stuff like this at the bottom of emails sent
to the person sitting next to them :)
-raising entropy-ly yrs-
Robin Becker
--
https://mail.python.org/ma
omewhat moot under such assumptions.
Also presumably there are other constructions of 'our' familiar arithmetic.
Perhaps someone could probably make an arithmetic where most of standard ZF is
true except for 1<2. Gödel definitely says there are holes in arithmetic :)
-possibly non-
)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
import sys
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
)
But how to do this in python 3?
https://docs.python.org/3/library/functools.html#functools.cmp_to_key
| Transform an old-style comparison function to a key function.
--
Robin Koch
--
https://mail.python.org/mailman/listinfo/python-list
hat functionality safely.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
py:81: RuntimeWarning:
Config variable 'WITH_PYMALLOC' is unset,
Python ABI tag may be incorrect
warn=(impl == 'cp')):
I guess this must mean I need to set something somewhere, but what?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
is give different outcomes, but both appear to be a correct mapping of
non-negative integers to triplets.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 12/03/2018 13:17, Robin Becker wrote:
It's possible to generalize the cantor pairing function to triples, but that may not give you what you want. Effectively you can
generate an arbitrary number of triples using an iterative method. My sample code looked like this
ct mapping o
On 12/03/2018 18:05, Chris Angelico wrote:
On Tue, Mar 13, 2018 at 2:54 AM, Robin Becker wrote:
On 12/03/2018 13:17, Robin Becker wrote:
An alternative approach gives more orderly sequences using a variable base
number construction
4 (0, 0, 1)
9 (0, 0, 1)
18 (0, 0, 2)
32 (0, 0, 2)
I spy
-3141/]
--
Robin Koch
--
https://mail.python.org/mailman/listinfo/python-list
On 13/03/2018 11:14, Steven D'Aprano wrote:
On Mon, 12 Mar 2018 13:17:15 +0000, Robin Becker wrote:
It's possible to generalize the cantor pairing function to triples, but
that may not give you what you want. Effectively you can generate an
arbitrary number of triples using an iterat
or "license" for more information.
>>> s = '0123456789'
>>> print(repr(s[-5:5]))
''
>>> print(repr(s[5:15]))
'56789'
>>>
why is the underflow start index treated so differently from the limit index overflow? I suppose there must be some reason, but it
eludes me.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
ght dawned :) seems the negative indexes rules apply to both
On 20/03/2018 14:21, Robin Becker wrote:
I don't know how I never came across this before, but there's a curious
asymmetry in the way ranges are limited
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.19
toBasics.html
Since that's exactly what I need to do, that might be a problem.
On the other hand, I doubt I'll need to generate more than a few thousand
of these, so it might be fast enough. I guess I have to run some
benchmarks to find out.
But however they turn out, I appreciate your
signal.SIGALRM,signal.SIG_IGN)
print("You entered: ", data)
for i in reversed(xrange(15)):
print i
time.sleep(1)
print 'finished!'
if I leave out the signal.signal(signal.SIGALRM,signal.SIG_IGN) then the
timeout function gets called anyway.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
mp; make install
Something in setup.py seems to want ctypes irrespective of what I give to configure; I don't actually know what the alternative to
--with-system-ffi does, but it didn't work for me.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
work. It might be that make silently allows extension builds to fail even if they are 'required' and
that later causes an error in the install phase.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
a compiler" and one
will be provided, of course by that time they will all have forgotten about eating berries in favour of soma or equivalent.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
long, but that seems a bit flaky.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 17/07/2018 10:32, Chris Angelico wrote:
..
All you gotta do is solve the halting problem...
https://en.wikipedia.org/wiki/Halting_problem
ChrisA
ah so it's easy :)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 17/07/2018 12:16, Cameron Simpson wrote:
On 17Jul2018 10:10, Robin Becker wrote:
A user reported an infinite loop in reportlab. I determined a possible cause and fix and would like to test for absence of the
loop. Is there any way to check for presence/absence of an infinite loop in python
lity, but
obviously the implementation seems to be comparing b'a' with 'a' (I suppose because they hash to the same chain).
Is this code erroneous or is the warning spurious or wrong?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 31/07/2018 09:16, Paul Moore wrote:
On 31 July 2018 at 08:40, Robin Becker wrote:
A bitbucket user complains that python 3.6.6 with -Wall -b prints warnings
for some reportlab code; the
example boils down to the following
##
C:\code\hg-repos\reportlab\tmp>cat tb.py
if __nam
On 31/07/2018 16:52, Chris Angelico wrote:
On Wed, Aug 1, 2018 at 1:28 AM, MRAB wrote:
On 2018-07-31 08:40, Robin Becker wrote:
A bitbucket user complains that python 3.6.6 with -Wall -b prints warnings
.
The warning looks wrong to be.
In Python 2, u'a' and b
On 01/08/2018 09:52, Chris Angelico wrote:
On Wed, Aug 1, 2018 at 6:36 PM, Robin Becker wrote:
On 31/07/2018 16:52, Chris Angelico wrote:
..
it says explicitly that numeric keys will use numeric comparison, but no
.
Technically, the comparison used is:
a is b or a == b
you let
the matter rest for a day or so, and then look at it with a fresh eye.
..
my bad; not worrying enough about real problems
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
tb1.py
{'a': 1, b'a': 1}
{b'a': 1, 'a': 1}
I expected one of the assignments to warn.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
rom this dictionary assignment. Probably the code needs tightening
so that we insist on using native strings everywhere; that's quite hard for py2/3 compatible code.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
to find more issues.
In other cases it might detect sources of bugs, so IMHO it's better to have
a close look at and possibly rewrite code that triggers the warning rather
than to disable it.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
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.
aborate your knowledge about conditional probability as well.
P("X is programmer" | "X is in Forbes Top 10")
!=
P("X is in Forbes Top 10" | "X is programmer")
--
Robin Koch
--
https://mail.python.org/mailman/listinfo/python-list
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
python-python-l...@m.gmane.org. 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
Thanks for letting me know.
On Tue, 21 May 2019, 17:04 Inada Naoki, wrote:
> I plan to remove int support in Python 3.10.
>
> If this warning is ignored, the extension module will be broken silently
> from 3.10.
> It is because C is not typesafe here.
>
> Regards,
>
>
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
101 - 200 of 896 matches
Mail list logo