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
https://githu
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
On 02/10/2023 00.57, Karsten Hilbert via Python-list wrote:
Sorry for having conflated the core of the matter with all
the Borg shenanigans, that's where I found the problem in my
real code, so there :-)
The first question when dealing with the Singleton Pattern is what to do
when more
On 04/10/2023 19.41, Chris Angelico via Python-list wrote:
On Wed, 4 Oct 2023 at 15:27, dn via Python-list wrote:
- should the class have been called either;
class SomethingSingleton():
or a Singleton() class defined, which is then sub-classed, ie
class Something( Singleton
On 21/10/2023 01.32, Thomas Passin via Python-list wrote:
On 10/19/2023 11:16 PM, Bongo Ferno via Python-list wrote:
On Thursday, October 19, 2023 at 11:26:52 PM UTC-3, avi.e...@gmail.com
wrote:
There are many ways to make transient variables that disappear at
some time
and do we need yet
On 23/10/2023 04.50, Antoon Pardon via Python-list wrote:
I have the following small module:
=-=-=-=-=-=-=-=-=-=-=-= 8< =-=-=-=-=-=-=-=-=-=-=-=-=
from typing import NamedTuple, TypeAlias, Union
from collections.abc import Sequence
PNT: TypeAlias = tuple[float, float]
class Pnt (NamedTu
sult in at best an inaccurate
result and at worst - - - no result. This is the kind of thing
(correct code) that I'm
hoping to accomplish - - - to rephrase the question - - - how do I
test for that?)
TIA
--
https://mail.python.org/mailman/listinfo/python-list
connected remotely by the browser-based JS clients.
I found a Python sample[*] but I am neither familiar with
Python nor with the 'simple_websocket_server' package that
is used in that sample code. But the code looks so simple
that I'm considering to learn and use Python for the task.
T
> On 24 Oct 2023, at 18:25, o1bigtenor via Python-list
> wrote:
>
> Is there a way to verify that a program is going to do what it is
> supposed to do
In the general case not proven to be not possible.
Have a read about the halting problem
https://en.wikipedia.org/wiki/Halt
On Tue, Oct 24, 2023 at 4:54 PM Grant Edwards via Python-list
wrote:
>
> On 2023-10-24, Dan Purgert via Python-list wrote:
> > On 2023-10-24, o1bigtenor wrote:
> >> Greetings
> >>
> >> (Sorry for a nebulous subject but dunno how to have a
nds as if you should
>
> Write programs or functions to simulate each piece of hardware and
> generate random, but reasonably realistic, data. (Python and most other
> programming languages provide means of generating random or
> pseudo-random data.)
> In your main program:
&g
On Tue, Oct 24, 2023 at 6:09 PM Thomas Passin via Python-list
wrote:
>
snip
>
> By now you have read many responses that basically say that you cannot
> prove that a given program has no errors, even apart from the hardware
> question. Even if it could be done, the kind of specifi
A post with useful ideas - - - - thanks (it generates some questions!
interleaved)
On Tue, Oct 24, 2023 at 8:35 PM Chris Angelico via Python-list
wrote:
>
> On Wed, 25 Oct 2023 at 12:11, Thomas Passin via Python-list
> wrote:
> > This doesn't mean that no program can ever be
On Tue, Oct 24, 2023 at 8:43 PM Chris Angelico via Python-list
wrote:
>
> On Wed, 25 Oct 2023 at 12:20, AVI GROSS via Python-list
> wrote:
> > Consider an example of bit rot. I mean what if your CPU or hard disk has a
> > location where you can write a byte and read it ba
On Tue, Oct 24, 2023 at 9:36 PM AVI GROSS via Python-list
wrote:
>
> Agreed, Chris. There are many methods way better than the sort of RAID
> architecture I supplied as AN EXAMPLE easy to understand. But even so, if a
> hard disk or memory chip is fried or a nuclear bomb takes out al
On Wed, Oct 25, 2023 at 6:25 AM Chris Angelico via Python-list
wrote:
>
> On Wed, 25 Oct 2023 at 21:53, o1bigtenor wrote:
> >
> > Hmm - - - - now how can I combine 'Hamming codes'
> > and a raid array?
> >
> > TIA
>
> Normally you woul
of errors.
>
> Some can be avoided by using an integrated development environment
> (e.g. misspellings, type mismatches, ...).
Haven't heard of a python IDE - - - doesn't mean that there isn't such - -
just that I haven't heard of such. Is there a python IDE?
>
> Som
On Wed, Oct 25, 2023 at 6:20 AM Chris Angelico via Python-list
wrote:
>
> On Wed, 25 Oct 2023 at 21:46, o1bigtenor wrote:
> > > 2. Catch the failure as you save. We have a lot of tools that can help
> > > you to spot bugs.
> >
> > Tools like this for p
integrated development environment
> >> (e.g. misspellings, type mismatches, ...).
> >
> >Haven't heard of a python IDE - - - doesn't mean that there isn't such - -
> >just that I haven't heard of such. Is there a python IDE?
>
> There are several.
On Wed, Oct 25, 2023 at 7:56 AM Dieter Maurer wrote:
>
> o1bigtenor wrote at 2023-10-25 07:50 -0500:
> >> There are several others,
> >> e.g. "ECLIPSE" can be used for Python development.
> >
> >Is 'Eclipse' a Windows oriented IDE?
>
&
Hi all,
I am fairly new to python (ie < 2 years). I have a question about
pylint. I am running on windows 10/11, python 3.10.11.
Here's what I'm trying to do:
I am using robocopy to to copy a set of files to/from a LAN location and
my desktop(s). Here is the part
of the try/except code looks quite clumsy to
me. It may be excellent for some tasks but to me, it looks quite
inelegant. Like I said, I have a lot to learn.
Thank you both for your guidance.
Richard
--
https://mail.python.org/mailman/listinfo/python-list
On 26/10/2023 04.49, rsutton via Python-list wrote:
On 10/25/2023 11:06 AM, Stefan Ram wrote:
r...@zedat.fu-berlin.de (Stefan Ram) writes:
outer quotation marks) prints some prominent exception types. After
...
"Manually removing" above was meant to be a fast first pass,
wh
to # opt .
> >There is absolutely NO mention of anything python - - - java, c and
> >its permutations,
> >'scientific computing', and some others but nothing python.
> >
> >I may be missing something due to an extreme lack of knowledge.
> >
> >P
On Wed, Oct 25, 2023 at 10:19 AM Michael Torrie via Python-list
wrote:
>
> On 10/25/23 05:51, o1bigtenor via Python-list wrote:
> > Looks like I have another area to investigate. (grin!)
> > Any suggestions?
>
> Seems to me you're trying to run before you have learn
On Wed, Oct 25, 2023 at 11:58 AM Michael F. Stemper via Python-list
wrote:
>
> On 25/10/2023 05.45, o1bigtenor wrote:
> > On Tue, Oct 24, 2023 at 8:35 PM Chris Angelico via Python-list
> > wrote:
>
> >> 3. Catch the failure before you commit and push. Unit
ipse.org/downloads/packages/>
> eclipse.org <https://www.eclipse.org/downloads/packages/>
> [image: favicon.ico] <https://www.eclipse.org/downloads/packages/>
> <https://www.eclipse.org/downloads/packages/>
>
> I was looking at this page and absoulutely couldn'
On Thu, Oct 26, 2023 at 11:43 AM Michael Torrie via Python-list
wrote:
>
> On 10/26/23 06:34, o1bigtenor wrote:
> > Interesting - - - - ". . . see if it runs." - - - that's the issue!
> > When the code is accessing sensors there isn't an easy way to
> &
On Thu, Oct 26, 2023 at 11:47 AM Michael Torrie via Python-list
wrote:
>
> On 10/26/23 10:41, Michael Torrie wrote:
> > By the way you definitely can step
> > through MicroPython code one line at a time with a remote debugger, say
> > with Visual Studio Code.
>
>
rg/project/smbus2/
smbus2 is designed to be a "drop-in replacement of smbus". SO you can look
at its documentation for or use it instead of smbus.
Disclaimer: I haven't any experience on this library
--
https://mail.python.org/mailman/listinfo/python-list
On 2023-10-30 19:19, McDermott Family via Python-list wrote:
Hello, I am trying to create a one file executable with pyinstaller 6.1.0
and auto-py-to-exe 2.41.0 using Python version 3.10.9 in a virtual
environment.
Some points before the output of pinstaller is shown. My resource .py file
is
On 02/11/2023 00.35, Simon Connah via Python-list wrote:
OK. I've been doing some reading and that you should avoid regex to check email addresses.
This operation used to be a BIG THING back in the days of 'everyone'
building PHP web-sites. When there were only a handful of T
On 02/11/2023 19.46, Simon Connah via Python-list wrote:
On Thu, 2 Nov 2023 at 05:21, Simon Connah via Python-list
python-list@python.org wrote:
Could someone push me in the right direction please? I just want to find out if
a string is a valid email address.
There is only one way
On 02/11/2023 19.56, Chris Angelico via Python-list wrote:
On Thu, 2 Nov 2023 at 17:47, Simon Connah wrote:
My goal is to make a simple mailing list platform. I guess I could just send
email to an address and if it bounces then I can remove it from the database.
Thing is I'm not sur
bout "closeness".
Thus, what you might expect from email servers and Admins, NOT what you
should do. That part should be quite evident by now!
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
I don 't understand the meaning of this mail Verzonden vanaf mijn Galaxy
Oorspronkelijk bericht Van: python-list-requ...@python.org
Datum: 04-11-23 17:01 (GMT+01:00) Aan: python-list@python.org Onderwerp:
Python-list Digest, Vol 242, Issue 3 Send Python-list mailing
27;crud'
hangs-about 'forever'.
Accordingly, python -m pip list --outdated shows about as many entries
as python - m pip list!
Have (comparatively recently) standardised that projects not inside a VM
or Container, will be managed by Poetry. (It's working well!)
Q1
Ca
for humans.
--
https://mail.python.org/mailman/listinfo/python-list
On 2023-11-06 08:57, Simon Connah via Python-list wrote:
I can see how the truley dim-witted might forget that other countries
have phone numbers with differing lengths and formatting/punctuation,
but there are tons of sites where it takes multiple tries when
entering even a bog-standard USA
n in how to check fuses.
At least with software you don't have to physically appear on site.
--
https://mail.python.org/mailman/listinfo/python-list
On 2023-11-06 00:51, Rob Cliffe via Python-list wrote:
Recently I switched from Python 3.8.3 to Python 3.11.4. A strange
problem appeared which was not there before:
I am using the win32clipboard backage (part of pywin32), and when I use
SetClipboardData() to write text which consists ENTIRELY
On 08/11/2023 06.47, Egon Frerich via Python-list wrote:
I've no idea why this happens. In a module there are lists and definitions:
...
["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])
File "/home/egon/Entw/Geldspur/geldspur/gui/GUI_Konf
On 2023-11-07 18:30, dn via Python-list wrote:
On 08/11/2023 06.47, Egon Frerich via Python-list wrote:
I've no idea why this happens. In a module there are lists and definitions:
...
["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])
File "/hom
ating about Python. A big part of his day is
busy with running Codetoday—we teach Python coding to children between 7
and 16 years old (https://www.codetoday.co.uk/). He also runs courses
for adults and corporate training programs, and particularly, writing
about Python. He writes the articl
On 2023-11-07 19:20, Jim Schwartz via Python-list wrote:
Where do you define fCONV_AUSRICHTG? It must be initialized or defined
somewhere. Did you leave out a statement from the python 2 version?
It's given its value here:
(
fNAME,
fLG1,
fLG2,
On 2023-11-07 20:56, Thomas Passin via Python-list wrote:
On 11/7/2023 3:29 PM, MRAB via Python-list wrote:
On 2023-11-07 19:20, Jim Schwartz via Python-list wrote:
Where do you define fCONV_AUSRICHTG? It must be initialized or defined
somewhere. Did you leave out a statement from the python 2
Rob Cliffe ha scritto:
Apologies if this is not a Python question.
I recently moved from a WIndows 10 laptop to a Windows 11 one.
Although there is nothing wrong with the sound on the new machine (I can
listen to podcasts and watch videos), I find that outputting "\a" to the
co
On 2023-11-12 11:16, Chris Angelico via Python-list wrote:
On Sun, 12 Nov 2023 at 21:27, Y Y via Python-list
wrote:
I am curious and humble to ask: What is the purpose of a BEEP?
There are several purposes. I can't say which of these are relevant to
the OP, but some or all of them
> On 13 Nov 2023, at 15:16, Dom Grigonis via Python-list
> wrote:
>
> I think it could be useful to have `xor` builtin, which has API similar to
> the one of `any` and `all`.
I do not understand how xor(iterator) works.
I thought xor takes exactly 2 args.
I also do not und
> On 13 Nov 2023, at 17:21, Jacob Kruger via Python-list
> wrote:
>
> Had a look at the following bit of introduction to using python and flet to
> build cross-platform flutter-based apps using same python code, and, while it
> seems to work alright if tell it to run as
mail.python.org/mailman/listinfo/python-list
On 2023-11-13 21:03, Barry via Python-list wrote:
On 13 Nov 2023, at 17:48, Dom Grigonis wrote:
Short circuiting happens, when:
xor([True, True, False, False], n=1)
At index 1 it is clear that the answer is false.
Can you share an example with 4 values that is true?
And explain why it is
On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote:
I'd like to improve the code below, which works. It feels clunky to me.
I need to clean up user-uploaded files the size of which I don't know in
advance.
After cleaning they might be as big as 1Mb but that would be super rar
On 2023-11-15 03:41, Mike Dewhirst via Python-list wrote:
On 15/11/2023 10:25 am, MRAB via Python-list wrote:
On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote:
I'd like to improve the code below, which works. It feels clunky to me.
I need to clean up user-uploaded files the si
On 15/11/2023 20.25, Grizzy Adams via Python-list wrote:
Hi & thanks for patience with what could be simple to you
Have this (from an online "classes" tutorial)
There are lots of on-line classes!
--- Start Code Snippit ---
students = []
grades = []
for s in
On 2023-11-17 01:15, Mike Dewhirst via Python-list wrote:
On 15/11/2023 3:08 pm, MRAB via Python-list wrote:
On 2023-11-15 03:41, Mike Dewhirst via Python-list wrote:
On 15/11/2023 10:25 am, MRAB via Python-list wrote:
On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote:
I'd li
Mike Dewhirst ha scritto:
On 15/11/2023 10:25 am, MRAB via Python-list wrote:
On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote:
I'd like to improve the code below, which works. It feels clunky to me.
I need to clean up user-uploaded files the size of which I don't know
On 2023-11-17 09:38, jak via Python-list wrote:
Mike Dewhirst ha scritto:
On 15/11/2023 10:25 am, MRAB via Python-list wrote:
On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote:
I'd like to improve the code below, which works. It feels clunky to me.
I need to clean up user-upl
nk about it.
Sorry.
--
https://mail.python.org/mailman/listinfo/python-list
Virtual meeting: Wednesday 6 December, 1815 for 1830 NZDT/UTC+13
Book at https://www.meetup.com/nzpug-auckland/events/295433876/
1 Making Python faster - using type hints
Tushar will lead us through:
A brief history of type hints
Using type checkers to verify your type hints
?
def powers_of_2_inB(n):
bc = (n ^ (n - 1)).bit_count() - 1
return bc, int(n / (1 << bc))
--
https://mail.python.org/mailman/listinfo/python-list
On 14/01/2021 04.54, Grimble wrote:
> On 11/01/2021 20:37, DonK wrote:
>>
>> Hi, I'm thinking about learning Python but I'm 74 years old and will
>> very likely not ever have a programming job again.
> At 83, I have no intention of having a programming j
you recommend a good reference for someone relatively new to GUI
> programming that is based on such research? Book or web reference
> would be fine.
Most of my training-materials (certainly in this topic) are web-based -
but the ideas are also common to Python.
Nielsen-Norman Group do a l
Finkings have arisen from in-house discussions within a
Python dev.team which deserved a wider airing or debate. This contains
(with due apologies) excessive personal reflection and comments
abstracted from posts to this Discussion List.
Many of us have used Python for years but never touched ABCs
ly might it have been literally the end of (your) day. This
conversation does seem to have reached the point of reductio ad absurdum!
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
n a bid to "capture
eye-balls" and/or to prove how much smarter 'I' am (than any other
web-author/JavaScript-er), there are (far too) many reasons why
web-pages are adorned and accompanied by myriad scripts (and likely,
whole libraries/frameworks), and thus become slow (or 'hea
t; writes:
>>>>> On 15/01/2021 14.01, Stefan Ram wrote:
>
>>>>>> __import__( "math" ).sqrt( 4 )
>>>>> I had no idea that syntax existed, and find it completely at odds
>>>>> with The Zen of Python. I'm torn between forgetting
On 18/01/2021 08.12, omid mohammadi wrote:
> On Sunday, January 17, 2021 at 9:31:58 PM UTC+3:30, MRAB wrote:
>> On 2021-01-17 13:57, Karsten Hilbert wrote:
>>> Am Sun, Jan 17, 2021 at 02:20:24AM -0800 schrieb omid mohammadi:
>>>
>>>> When I open th
While print() is groovy and all,
if anyone runs across a non-pdb python debugger (standalone or IDE-based)
please let me know.
I too was blessed with IDE-based debugging (in the 90's!)
* where you can set break point(s);
* have the program stop right before a suspected failure point;
*
n Microsoft was finally caught; and they backed off of
this in the next version (I do not know if they've snuck it in again or not).
But it did not raise my confidence in tools from Microsoft all that much.
I love Python.
I just want to add a real debugger ;-)
Sent with [ProtonMail](h
Thank you J. Pic.
Out of everything today,
(and given my priority is Python/Flask debugging)
it looks like Wing IDE is something to dig into.
Thanks
Sent with ProtonMail Secure Email.
‐‐‐ Original Message ‐‐‐
On Wednesday, January 27, 2021 4:09 PM, J. Pic wrote:
> Thonny, win
me (odd) suffix, then why not slice the
string [ :-2 ]?
Alternately, consider str.translate() where both character codes are
removed, regardless of location.
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
It looks like it will be Wing IDE and maybe pyscripter to start.
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
On 07/02/2021 08.21, Philipp Daher via Python-list wrote:
> Hello,
>
>
> I recently programmed some code for a webdriver with selenium.
> I asked the program to find an input tag, which is interactible, with this:
>
> searchbar=driver.find_element_by_class_name(&quo
ad a long term Flask/Python issue where the site just dies.
(MY) External ping attempts still report the Flask site is functioning;
but accessing the pages returns 500 errors.
Apache is still running and other (non-Flask) sites are still running on the
Linux server.
I see no errors that might b
On 08/02/2021 09.49, Kevin M. Wilson via Python-list wrote:
> Set i = 0 at the begin of the code, that way each entry starts at Logical 0
> of the array/container/list...
FYI: https://docs.python.org/3/library/stdtypes.html#typesseq-range
See also @Chris' contribution regarding t
On 09/02/2021 15.13, Juan Jose Reyna Figuera wrote:
> *Buenas tardes, le escribo breve y puntualmente para reportar este el
> siguiente error al cual no le pude dar solución.*
>
> *Instalé Python 3.9.1 (64 bits), todo había funcionado bien hasta que
> necesité usar la libre
r with the list?
I've had a long term Flask/Python issue where the site just dies.
(MY) External ping attempts still report the Flask site is functioning;
but accessing the pages returns 500 errors.
Apache is still running and other (non-Flask) sites
are still running on the Linux server.
I see
On 10/02/2021 12.23, Martin Lopez wrote:
> Hello,
>
> My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup.
>
> After I install the program then try to run it, with no success.
>
> I've uninstalled all previous versions and reinstalled them, but
t;
>>>> wrote:
>>>>
>>>>> I am starting work on creating a new Python implementation from
>>>>> scratch
... (which isn't a stretch given how poorly they perform).
>>>> I'd like to encourage you to give this a go. It'
On 12/02/2021 08.53, Chris Angelico wrote:
> On Fri, Feb 12, 2021 at 6:47 AM dn via Python-list
> wrote:
>> 3
>> My mind is whirling in an attempt to understand "show me a better time".
>> Does this perhaps indicate that @Chris' social life leaves somet
also allows deque-mutation, then the first value(s),
previously printed, will no longer exist within the queue.
I'm enjoying the question: wither inconsistency? Perhaps someone (wiser)
will jump in...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 13/02/2021 18.34, Mladen Gogala via Python-list wrote:
> On Fri, 12 Feb 2021 18:29:48 +, Tony Ogilvie wrote:
>
>> I am trying to write a program to open a PostgesSQL 13 database using
>> psycopg2. All seems to work if I write direct to Python but if I write
>> the
an be List-Id:, or List-ID: or list-id:, will
> email.message.get("List-Id:", "unknown") find all of them?
Case is (should be) irrelevant (as it is for most (parts of) Internet
Protocols).
Rather than the "Zen of Python", when it comes to IPs, "Postel's Law
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
tack architecture" (cf
IBM's collections of "registers" in an ALU). Certainly the language was
clearly based upon ALGOL-60. Clearly it led to the refinement and/or
development of Pascal.
Pascal's value as a teaching language was that it embodied many aspects
of structured prog
ouldn't a representation using the set
> notation
> be more intuitive, i.e. what about changing the output of
> dict_keys.__repr__ to
> "dict_keys({'one', 'two'})"
> (using curly braces instead of brackets)
When considering the data-returned,
ow has the student proven that (s)he has learned the material?
(apologies for criticism: I readily assume your motivation was to be
helpful)
The problem is a Caesar Cipher - disguised, because most examples/usage
of such is for alphanumeric messages. This topic is often used for ComSc
examples to demonstrate modulo arithmetic and/or circular data
structures, eg a bounded-queue (per other's responses).
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 23/02/2021 08.00, Vinicius Costa Marques wrote:
> Hello there Python team, I’m having this problem were I installed Python
> 3.9.2 and then went to unistall 3.8.5 but here is the problem the version
> 3.8.5 dosen’t get deleted properly. The uninstall program says that
> everythin
://go.microsoft.com/fwlink/?LinkId=550986
--
https://mail.python.org/mailman/listinfo/python-list
serts, but logging. Having
"assert" being a function would make it much harder to get rid of it
in production code.
--
https://mail.python.org/mailman/listinfo/python-list
Hi, and welcome to the list.
On 05/03/2021 09.36, alberto wrote:
> Hi I'm tring to write a program with python to evaluate data of csv data
> In particular I would extract this information
>
> View data on the presence of men and women in Affori over time.
>
> * Carry o
27;t follow that nobody else
>> can.
>
> True, but lots of very knowledgeable people have tried and failed.
I even wonder why they have tried. Writing a universal
compiler/interpreter sounds logically impossible to me, Here's a
simple Python expression:
>>> 3+3*5
18
And
t; 71 208 217 266 279 290 458 478 523 614 766 853 888 944 969
> 43 70 176 204 227 334 369 480 513 703 708 835 874 895
> 25 52 278 730
> 151 432 504 830 890
Great!
For what purpose - is this a 'homework assignment'?
What code do you have so far?
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
Am 07.03.2021 um 21:52 schrieb Avi Gross via Python-list:
> The precedence example used below made a strange assumption that the
> imaginary program would not be told up-front what computer language it was
> being asked to convert from. That is not the scenario being discussed as
On 10/03/2021 09.16, Victor Dib wrote:
> Olá, comunidade do Python!
Olá Victor!
At which point we should switch to English, because this is an
English-language list. (there may be Portuguese lists - I haven't looked)
Please do not be afraid to write in English. There are many here
ment and self-banishment
- and a protagonist whose Last Will and Testament read:
"That Elizabeth-Jane Farfrae be not told of my death, or made to grieve
on account of me. that I be not bury'd in consecrated ground. that no
sexton be asked to toll the bell. that nobody is wished to see my dead
body. that no murners walk behind me at my funeral. that no flours be
planted on my grave, that no man remember me."
RiP - and this thread also!
--
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
t; complaint? I have never once seen anything that costly - usually it'll
>> be something like checking a length (and this isn't C's strlen, since
>> Python can get lengths of all built-in types quickly), or some simple
>> checks.
>
> That's very much in th
MP4). Am working
on a similar container format at the moment, where the length of
sub-components may be reported in bytes (if not delineated by 'markers').
So, there are many reasons why "bytes" is a 'good' measure of length -
in this context.
Is it "misusing __len__" in a class/object designed to manipulate such
files? Hope not!
(or I'm 'in trouble' - again...)
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 12/03/2021 11.27, Chris Angelico wrote:
> On Fri, Mar 12, 2021 at 9:10 AM Ethan Furman wrote:
>>
>> On 3/11/21 1:45 PM, dn via Python-list wrote:
>>
>>> Is assert so much faster/cheaper than try...except...raise?
>>
>> Infinitely faster when they ar
1001 - 1100 of 5859 matches
Mail list logo