I am trying to split off reportlab C extensions to simplify installations and
make use of more advanced packages.
A simple extension is easily converted to being an abi3 module. However, another has a custom type which uses the old
style mechanisms here
https://docs.python.org/3.7/extending
I’m not understanding the task. The sample code given is converting the input
r’\x0a’ to a newline, it appears.
import re
def exam(z):
print(f"examine {type(z)} {z}")
for c in z:
print(f"{ord(c)} {c}")
s0 = r'\x0a'
def to1byte(matchobj):
return chr(int('0x' + matchobj.gro
The original post started out with r'\x0a' but then talked about '\xdd'.
I assumed that there was a pattern here, a raw string containing "\x"
and two more characters, and made a suggestion for converting any string
with that pattern. But the OP was very unclear what the task really
was, so h
On 08/12/2022 12:52, Robin Becker wrote:
I am trying to split off reportlab C extensions to simplify installations and
make use of more advanced packages.
A simple extension is easily converted to being an abi3 module. However, another has a custom type which uses the old
style mechanisms here
On 08/12/2022 02:17, Jach Feng wrote:
Peter Otten 在 2022年12月8日 星期四清晨5:17:59 [UTC+8] 的信中寫道:
On 07/12/2022 03:23, Jach Feng wrote:
s0 = r'\x0a'
At this moment it was done by
def to1byte(matchobj):
return chr(int('0x' + matchobj.group(1), 16))
s1 = re.sub(r'\\x([0-9a-fA-F]{2})', to1byte, s0)
Jach Feng 在 2022年12月7日 星期三上午10:23:20 [UTC+8] 的信中寫道:
> s0 = r'\x0a'
> At this moment it was done by
>
> def to1byte(matchobj):
> return chr(int('0x' + matchobj.group(1), 16))
> s1 = re.sub(r'\\x([0-9a-fA-F]{2})', to1byte, s0)
>
> But, is it that difficult on doing this simple thing?
>
>
Hello all,
I would like to share Panoptisch, a FOSS(Free and Open Source Software)
tool I've been working on.
We all may have encountered the issue of not having a clear dependency tree
or not being sure of the modules our dependencies and sub-dependencies are
using.
Some of us may have also hea
Hello,
I'm new to MinecraftEDU programming with Python. I'm wondering if anyone can
recommend how to get started with creating lessons and how to get started
programming in MinecraftEDU?
--
https://mail.python.org/mailman/listinfo/python-list
On 08Dec2022 12:12, Jelena Ilić wrote:
I'm new to MinecraftEDU programming with Python. I'm wondering if
anyone can recommend how to get started with creating lessons and how
to get started programming in MinecraftEDU?
Had you started here?
https://education.minecraft.net/en-us/resources/co
Jach Feng 在 2022年12月7日 星期三上午10:23:20 [UTC+8] 的信中寫道:
> s0 = r'\x0a'
> At this moment it was done by
>
> def to1byte(matchobj):
> return chr(int('0x' + matchobj.group(1), 16))
> s1 = re.sub(r'\\x([0-9a-fA-F]{2})', to1byte, s0)
>
> But, is it that difficult on doing this simple thing?
>
>
On 08/12/2022 17:52, Aarnav Mahavir Bos wrote:
Hello all,
I would like to share Panoptisch, a FOSS(Free and Open Source Software)
tool I've been working on.
Hi there,
I added your project to my watch list, keep on your work.
A couple of points:
First, I glanced at the code and in the very f
11 matches
Mail list logo