On 2023-10-02 19:44:12 +0300, אורי via Python-list wrote:
> I have an issue since about 5 months now. Python 3.12.0 venv not working
> with psycopg2 on Windows. I created 2 issues on GitHub but they were
> closed. I checked today with the new Python release but it's still not
> working.
>
>
Dieter, thanks for your comment that:
* In your code, `offset` is `0`, `1`, `2`, ...
but it should be `0 *8`, `1 * 8`, `2 * 8`, ...
But you concluded with essentially the same solution proposed by MRAB, so that
would obviate the need to write item by item because it writes the whole buffer
at
Jen Kris wrote at 2023-10-2 00:04 +0200:
>Iwant to write a list of 64-bit integers to a binary file. Everyexample I
>have seen in my research convertsit to .txt, but I want it in binary. I wrote
>this code,based on some earlier work I have done:
>
>buf= bytes((len(qs_array)) * 8)
>
>for offset
Thanks very much, MRAB. I just tried that and it works. What frustrated me is
that every research example I found writes integers as strings. That works --
sort of -- but it requires re-casting each string to integer when reading the
file. If I'm doing binary work I don't want the extra
On 2023-10-01 23:04, Jen Kris via Python-list wrote:
>
> Iwant to write a list of 64-bit integers to a binary file.
Everyexample I have seen in my research convertsit to .txt, but I want
it in binary. I wrote this code,based on some earlier work I have done:
>
> buf= bytes((len(qs_array)) *
Hi,
I have an issue since about 5 months now. Python 3.12.0 venv not working
with psycopg2 on Windows. I created 2 issues on GitHub but they were
closed. I checked today with the new Python release but it's still not
working.
https://github.com/psycopg/psycopg2/issues/1578
Finally, it’s final! The final release of Python 3.12.0 (final) is here!
https://www.python.org/downloads/release/python-3120/
This is the stable release of Python 3.12.0
Python 3.12.0 is the newest major release of the Python programming
language, and it contains many new features and
On 2 Oct 2023, at 16:02, Jen Kris via Python-list
wrote:
Iwant to write a list of 64-bit integers to a binary file. Everyexample
I have seen in my research convertsit to .txt, but I want it in binary.
I wrote this code,based on some earlier work I have done:
buf=
Finally, it’s final! The final release of Python 3.12.0 (final) is here!
https://www.python.org/downloads/release/python-3120/
This is the stable release of Python 3.12.0
Python 3.12.0 is the newest major release of the Python programming
language, and it contains many new features and
Iwant to write a list of 64-bit integers to a binary file. Everyexample I have
seen in my research convertsit to .txt, but I want it in binary. I wrote this
code,based on some earlier work I have done:
buf= bytes((len(qs_array)) * 8)
foroffset in range(len(qs_array)):
item_to_write=
Wing Python IDE version 9.1.2 has been released with improved
auto-import and fixes for debugging with mingw Windows Python builds,
creating projects when multiple windows are open, auto-editing inside
f-strings, and about 20 other improvements.
Details: https://wingware.com/news/2023-09-28
11 matches
Mail list logo