On 12/01/24 10:33, Left Right via Python-list wrote:
By the way, in an attempt to golf this problem, I discovered this,
which seems like a parser problem:
This is what Python tells me about its grammar:
with_stmt:
| 'with' '(' ','.with_item+ ','? &
On 12/01/24 12:56, Chris Angelico via Python-list wrote:
On Fri, 12 Jan 2024 at 08:56, Left Right via Python-list
wrote:
By the way, in an attempt to golf this problem, I discovered this,
which seems like a parser problem:
When you jump immediately to "this is a bug", all you
On 12/01/24 08:53, Rich Shepard via Python-list wrote:
On Thu, 11 Jan 2024, Piergiorgio Sartor via Python-list wrote:
Why not to use bash script for all?
Piergiorgio,
That's certainly a possibility, and may well be better than python for this
task.
(sitting in a meeting with litt
insert your question here: What do you want to know? What has been
bothering you about OOP (or O-O in Python) that you'd like to settle?
To join us (we don't bite!), please RSVP at
https://www.meetup.com/nzpug-auckland/events/298536620/
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 13/01/24 00:11, Left Right via Python-list wrote:
To people discussing BNF:
The grammar language Python uses is *very* far from BNF. It's more
similar to PEG, but even then it's still quite far. Python's grammar
is just its own thing, which makes it harder to read, if
On 14/01/24 16:48, Chris Angelico wrote:
On Sun, 14 Jan 2024 at 14:43, dn via Python-list wrote:
Similarly, whilst we could write:
a, b, c = 1, 2, 3
I would only do this when it aligns particularly well with the
algorithm being implemented. For example, you could start a Fibonacci
On 15/01/24 10:23, Chris Angelico via Python-list wrote:
On Mon, 15 Jan 2024 at 08:15, Left Right wrote:
Python grammar rules prevent function definition from
appearing in left-hand side of the head of the for loop. However, a
variable declaration, which is also a statement, is allowed there
)
Admittedly, a #-comment does not qualify as an object; but then the hash
is an exclusion signal, which the lexer understands as ending the
logical line.
Thus, a comment has meaning at 'compile time', but not at 'execution
time'. Such would be true, strictly-speaking. However, most of us would
say that a comment 'has no meaning' in terms of the parser, and what it
delivers.
Shall we change the phrase to "everything in Python, at run-time, is an
object"? As a phrase it is obiter-dictum, not ratio decidendi! (to use a
language which has only extended in dubious modes for the last
couple-of-thousand years - but which still has illogical structure)
Suspect that clumsy exclusion also lacks precision to the standard being
demanded. Thus return to the suggestion that you seem in the wrong
place, because Python doesn't meet the required standard. Sorry!
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 15/01/24 08:06, AVI GROSS via Python-list wrote:
...> You provided a way to create an anonymous function and that was not
enough.
I wonder if you could throw in the new := walrus operator to similarly make
a named lambda function in a similar way.
Why would @Chris have anything to do w
On 15/01/24 11:47, Chris Angelico via Python-list wrote:
On Mon, 15 Jan 2024 at 09:40, dn via Python-list wrote:
The basic challenge came from my earlier (and blasé) repetition of the
Python refrain "everything in Python is an object". Which led to:
...
So, no, there's an &qu
On 15/01/24 14:33, Chris Angelico via Python-list wrote:
On Mon, 15 Jan 2024 at 12:12, dn via Python-list wrote:
Here's another witticism I'll often toss at trainees (in many languages,
and especially in UX): just because we can do it, doesn't make it a good
idea!
Programm
On 15/01/24 14:45, Chris Angelico wrote:
On Mon, 15 Jan 2024 at 12:42, dn via Python-list wrote:
On 15/01/24 14:33, Chris Angelico via Python-list wrote:
On Mon, 15 Jan 2024 at 12:12, dn via Python-list wrote:
Here's another witticism I'll often toss at trainees (in many lang
On 15/01/24 21:13, Greg Ewing via Python-list wrote:
On 15/01/24 1:54 pm, dn wrote:
Soon after, Wirth simplified rather than expanded, and developed Pascal.
Before Pascal there was Algol-W, which Wirth invented as a rebellion
against how complicated Algol 68 was becoming.
When I first saw
> On 16 Jan 2024, at 03:49, Thomas Passin via Python-list
> wrote:
>
> This kind of thing can happen with PyQt, also. There are ways to minimize it
> but I don't know if you can ever be sure all Qt C++ objects will get deleted.
> It depends on the type of objec
> On 16 Jan 2024, at 13:17, Thomas Passin via Python-list
> wrote:
>
> The usual advice is to call deleteLater() on objects derived from PyQt
> classes. I don't know enough about PyQt to know if this takes care of all
> dangling reference problems, though.
It
> On 16 Jan 2024, at 12:10, Frank Millman via Python-list
> wrote:
>
> My problem is that my app is quite complex, and it is easy to leave a
> reference dangling somewhere which prevents an object from being gc'd.
What I do to track these problems down is use g
> On 16 Jan 2024, at 17:11, Sibylle Koczian via Python-list
> wrote:
>
> while the new Windows 11 machine finds the Microsoft stub
You can turn off the stub in windows settings. The magic windows jargon is
“App Execution Aliases”. Once you find it in settings you can turn off
th
class NameMe(dict):
def __missing__(self, key):
return key
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-01-28 18:16, marc nicole via Python-list wrote:
So I am trying to build a binary tree hierarchy given numerical elements
serving for its leaves (last level of the tree to build). From the leaves I
want to randomly create a name for the higher level of the hierarchy and
assign it to the
On 30/01/24 05:15, Rich Shepard via Python-list wrote:
On Fri, 12 Jan 2024, Rich Shepard via Python-list wrote:
For my use 1) the salutation and email address (always with an '@') are
sequential and 2) I'm developing the script to extract both from the same
file.
I've
LykLc9kjPJcxvWRLVsk4
OzN5lHzsiYKsS0g3NVSj+2PKxY3d3w==
=abqD
-END PGP SIGNATURE-
--
https://mail.python.org/mailman/listinfo/python-list
8901851/
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
Every trainer, in any field, has to deal with these problems - all the
time, and over-and-over.
On 4/02/24 06:58, Thomas Passin via Python-list wrote:
In my view this whole thread became murky and complicated because the OP
did not write down the requirements for the program. Requirements
On 2024-02-03 23:02, gelukt gelukt via Python-list wrote:
Dear,
While running a code, I get the error below:
What does this error mean? How can I fix this error?
C:\Users\brech\Desktop\Crypto\venv\Scripts\python.exe
"C:/Users/brech/Desktop/Crypto/Project/aaa Arbitrage.py"
Trace
is going
to be productive when communicating with a pedantic compiler?
Again, some people are suited to this business (or specific jobs
within), and some (?many) are not - but many are (perhaps reluctantly)
programming to get some other job done...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
could you please
pass my message on to a better choice?
Gratefully,
Jim Haas
Sent from my iPhone
--
https://mail.python.org/mailman/listinfo/python-list
Test - ignore February 15, 2024
Test post to see if my Newsgroup post program is working.
--
https://mail.python.org/mailman/listinfo/python-list
On 16/02/24 13:29, Skip Montanaro via Python-list wrote:
Test post to see if my Newsgroup post program is working.
Aim your test messages at alt.test, please.
I agree that basic Usenet connectivity messages should go to alt.test. It's
not clear from the original post, but if the pos
On 2024-02-16 00:29, Skip Montanaro via Python-list wrote:
> Test post to see if my Newsgroup post program is working.
Aim your test messages at alt.test, please.
I agree that basic Usenet connectivity messages should go to alt.test. It's
not clear from the original post, bu
On 2024-02-16 20:07, Gabor Urban via Python-list wrote:
Hi guys,
I need something about modules to be clarified.
Suppose I have written a module eg: ModuleA which imports an other
module, let us say the datetime.
If I import ModuleA in a script, will be datetime imported automatically?
Yes
On 2024-02-17 22:35, Jonathan Gossage via Python-list wrote:
I am attempting to use the __new__ method in the following code:
class SingletonExample(object):
_instance = None
def __new__(cls, **kwargs):
if cls._instance is None:
cls._instance = super().__new__
On 18/02/24 11:35, Jonathan Gossage via Python-list wrote:
I am attempting to use the __new__ method in the following code:
class SingletonExample(object):
_instance = None
def __new__(cls, **kwargs):
if cls._instance is None:
cls._instance = super().__new__(cls
n learn from, or
contribute to, this conversation!
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
The earlier comment was that
class S( object ):
is 'tradition', and synonymous with:
class S:
(not disputing the concept of "object" as the base class)
Not correct.
Please see last paragraph from previous message:
On Sat, Feb 17, 2024 at 7:06 PM dn via Python-li
On 18/02/24 09:53, Grant Edwards via Python-list wrote:
On 2024-02-17, Cameron Simpson via Python-list wrote:
On 16Feb2024 22:12, Chris Green wrote:
I'm looking for a simple way to make NaN values output as something
like '-' or even just a space instead of
On 19/02/24 12:09, Grant Edwards via Python-list wrote:
...
But posts to the list still seemed to vanish into the ether while
emails from both accounts reached other destinations without delay,
During this process a number of posts from other users did appear in
the list archive and at at
On 20/02/24 05:58, Grant Edwards via Python-list wrote:
Here's a demonstration of how to hook custom code into the f-string
formatting engine. It's brilliantly depraved.
https://stackoverflow.com/questions/55876683/hook-into-the-builtin-python-f-string-format-machinery
From
On 20/02/24 01:04, Chris Green via Python-list wrote:
dn wrote:
On 18/02/24 09:53, Grant Edwards via Python-list wrote:
On 2024-02-17, Cameron Simpson via Python-list wrote:
On 16Feb2024 22:12, Chris Green wrote:
I'm looking for a simple way to make NaN values output as something
On 2024-02-24 01:14, Steve GS via Python-list wrote:
Python, Tkinter: How do I
determine if a window has been
resized? I want to locate
buttons vertically along the
right border and need to know
the new width. The buttons are
to move with the change of
location of the right-side
border.
Bind
> On 24 Feb 2024, at 04:36, Steve GS via Python-list
> wrote:
>
> How do I extract the values
> from args?
You can look up the args in documentation.
You can run the example code MRAB provided and see what is printed to learn
what is in the args.
Barry
--
https://
On 2024-02-25 00:33, Steve GS via Python-list wrote:
"Well, yes, in Python a
variable created inside a
function or method is local to
that function unless you
declare it global."
Yes, I knew that. I tried to
global it both before the
function call and within it.
Same for when I c
Also, 'global' works only within a function.
8<
import tkinter as tk
def on_configure(event):
print(f'{event.width=}, {event.height=}')
root = tk.Tk()
root.bind('',on_configure)
root.mainloop()
8<
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-02-25 21:19, Steve GS via Python-list wrote:
SOLUTION FOUND!
The fix was to write the code that uses the width value and to place it into
the function itself.
Kluge? Maybe but it works.
Mischief Managed.
As for the most recent suggestion, it fails for me
via Python-list wrote:
Hi there
Working with python 3.11, and, issue that confused me for a little
while, trying to figure out what was occurring - unless am completely
confused, or missing something - was that, for example, when having
pre-defined a variable, and then included it in the
On 2024-03-06 00:06, Chano Fucks via Python-list wrote:
[image: image.png]
This list removes all images.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-03-06 00:24, Ethan Furman via Python-list wrote:
On 3/5/24 16:06, Chano Fucks via Python-list wrote:
[image: image.png]
The image is of MS-Windows with the python installation window of "Repair
Successful". Hopefully somebody better at
explaining that problem can take it
On 2024-03-06 01:44, Ethan Furman via Python-list wrote:
On 3/5/24 16:49, MRAB via Python-list wrote:
> On 2024-03-06 00:24, Ethan Furman via Python-list wrote:
>> On 3/5/24 16:06, Chano Fucks via Python-list wrote:
>>
>>> [image: image.png]
>>
>>
On 7/03/24 05:28, Jacob Kruger via Python-list wrote:
...
So, yes, know this comes across like some form of a scam/joke, or
list-garbage, since it doesn't make any sense to me at all, but still
just wondering if missing something, or should I shift over to 3.12 to
see if if works differ
On 2024-03-07 14:11, Varuna Seneviratna via Python-list wrote:
If a dictionary key has a Python list as its value, you can read the values
one by one in the list using a for-loop like in the following.
d = {k: [1,2,3]}
for v in d[k]:
print(v)
No tutorial describes this, why?
What is
> On 8 Mar 2024, at 23:19, Thomas Passin via Python-list
> wrote:
>
> We just learned a few posts back that it might be specific to Linux; I ran it
> on Windows.
Depending on the exact win32 api used there is a 257 limit on windows.
The 257 includes 2 for the device, C:,
> On 10 Mar 2024, at 14:49, Thomas Passin via Python-list
> wrote:
>
> That and there's a registry setting:
>
> https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation
>
Yep that and rules about size of parts of the path.
Barry
-
Good question Rambius!
On 12/03/24 09:53, Ivan "Rambius" Ivanov via Python-list wrote:
Hello,
I am refactoring some code and I would like to get rid of a global
variable. Here is the outline:
import subprocess
CACHE = {}
First thought: don't reinvent-the-wheel, use lr
On 15/03/24 22:30, Loris Bennett via Python-list wrote:
Hi,
I am initialising an object via the following:
def __init__(self, config):
self.connection = None
self.source_name = config['source_name']
self.server_host = config[
> On 15 Mar 2024, at 19:51, Thomas Passin via Python-list
> wrote:
>
> I've always like writing using the "or" form and have never gotten bit
I, on the other hand, had to fix a production problem that using “or”
introducted.
I avoid this idiom because it fa
On 16/03/24 21:15, Barry via Python-list wrote:
On 15 Mar 2024, at 19:51, Thomas Passin via Python-list
wrote:
I've always like writing using the "or" form and have never gotten bit
I, on the other hand, had to fix a production problem that using “or”
introducted.
I a
On 17/03/24 12:06, Peter J. Holzer via Python-list wrote:
On 2024-03-16 08:15:19 +, Barry via Python-list wrote:
On 15 Mar 2024, at 19:51, Thomas Passin via Python-list
wrote:
I've always like writing using the "or" form and have never gotten bit
I, on the other han
irefox - for now). A head-set
will facilitate asking questions but text-chat will be available.
Please RSVP at https://www.meetup.com/nzpug-auckland/events/299764049/
See you there!
=dn, Branch Leader
--
https://mail.python.org/mailman/listinfo/python-list
On 17/03/24 23:40, Jim Schwartz wrote:
Will it be recorded?
Better than that (assumption) "coming soon" - please join-up or keep an
eye on PySprings' Meetup ANNs: https://www.meetup.com/pysprings/
On Mar 17, 2024, at 1:47 AM, dn via Python-list wrote:
The Auckland Branch
On 18/03/24 04:11, Peter J. Holzer via Python-list wrote:
On 2024-03-17 17:15:32 +1300, dn via Python-list wrote:
On 17/03/24 12:06, Peter J. Holzer via Python-list wrote:
On 2024-03-16 08:15:19 +, Barry via Python-list wrote:
On 15 Mar 2024, at 19:51, Thomas Passin via Python-list
/should I 'do more', and similar.
One of the valuable observations is that most of us would benefit by
improving our sleep-schedule and ensuring we do sleep for sufficient
time (probably longer than current habit).
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
, key, val)
f = Foo({'cat': 'dog'})
print(f.cat)
(outputs 'dog')
--
https://mail.python.org/mailman/listinfo/python-list
e foo.config an object by itself so
you can do foo.config.option. You'd fill it's attributes
in the same way I suggested for your main object.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-03-21 11:36, Johanne Fairchild via Python-list wrote:
Why is a whl-package called a ``wheel''? Is it just a pronunciation for
the extension WHL or is it really a name?
Also, it seems that when I install Python on Windows, it doesn't come
with pip ready to run. I had to
> On 22 Mar 2024, at 15:25, Gilmeh Serda via Python-list
> wrote:
>
>> Many if not most Linux distributions do not include pip by default.
>
> Really? It came with Manjaro.
Debian and Ubuntu require you to install pip as a separate package.
Also puts venv in its own pa
> On 22 Mar 2024, at 20:28, Mats Wichmann via Python-list
> wrote:
>
> pip is still a separate package in the .rpm world. which makes sense on a
> couple of levels:
Yes it’s a separate package, but it’s always installed. At least on Fedora.
I agree it makes sense to packag
You should considered also announcing on https://discuss.python.org/ which is a
lot more active then this list.
Barry
> On 25 Mar 2024, at 04:13, Erik Max Francis via Python-list
> wrote:
>
> I'm pleased to announce the release of EmPy 4.1.
>
> The 4._x_ series is
quot;AZERTY", "QSDFGH", "WXCVBN")))
['A', 'Q', 'W', 'Z', 'S', 'X', 'E', 'D', 'C', 'R', 'F', 'V', 'T', 'G',
'B', 'Y', 'H', 'N']
Do you havbe a neat solution ?
--
https://mail.python.org/mailman/listinfo/python-list
Le 28/03/2024 à 17:45, ast a écrit :
A Q W Z S C E D C ...
sorry
A Q W Z S X E D C
--
https://mail.python.org/mailman/listinfo/python-list
an iterable.
You could also use "*" instead of "list" to print it. So,
import itertools as _itertools
s =[ "AZERTY", "QSDFGH", "WXCVBN" ]
print( *_itertools.chain.from_iterable( zip( *s )))
. But these are only minor nitpicks; you have found a nice solution!
Why did you renamed itertools as _itertools ?
--
https://mail.python.org/mailman/listinfo/python-list
> On 28 Mar 2024, at 16:13, Olivier B. via Python-list
> wrote:
>
> But on Linux, it seems that linking to libpython3.so instead of
> libpython3.11.so.1.0 does not have the same effect, and results in
> many unresolved python symbols at link time
>
> Is this functio
On 2024-03-30 11:25, Skip Montanaro via Python-list wrote:
> https://xkcd.com/1306/
> what does SIGIL mean?
I think its' a Perl term, referring to the $/@/# symbols in front of
identifiers.
I had a vague recollection of hearing it elsewhere (*Game
On 2024-03-31 00:09, marc nicole via Python-list wrote:
I am creating a memoization example with a function that adds up / averages
the elements of an array and compares it with the cached ones to retrieve
them in case they are already stored.
In addition, I want to store only if the result of
> On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list
> wrote:
>
> pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found
> and is required by the application
I think I have seen this error being discussed before…
A web search for pyinsta
ey not in cache:
cache[key] = f(args[0], args[1])
return cache[key]
return g
Anything else is good in my code ?
Thanks
Le dim. 31 mars 2024 à 01:44, MRAB via Python-list
a écrit :
On 2024-03-31 00:09, marc nicole via Python-list wrote:
> I am creating a memoization examp
https://xkcd.com/353/ ( Flying with Python )
https://xkcd.com/1306/
what does SIGIL mean?
Other xkcd that you like?
--
https://mail.python.org/mailman/listinfo/python-list
x.php/1306:_Sigil_Cycle
--
https://mail.python.org/mailman/listinfo/python-list
Found in a
real dictionary :
Camel case , int,char, min, len, def, elseif
cons, defun, cond, goto,
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Apr 1, 2024 at 1:26 PM HenHanna via Python-list <
python-list@python.org> wrote:
> Johanne Fairchild wrote:
>
> > HenHanna writes:
>
> >> https://xkcd.com/1306/
> >> what does SIGIL mean?
>
> > A glyph used
> On Mar 30, 2024, at 22:09, Johanne Fairchild via Python-list
> wrote:
>
> Sigil is noun. Definitions:
>
> A seal; a signet.
> A sign or an image considered magical.
> A seal; a signature.
Creating Sigils
The origin and design process informing Urbit's
The April Fools joke was on those of us who never received/have yet to
receive @Stefan's OP.
On 2/04/24 08:02, Avi Gross via Python-list wrote:
Is this a April 1 post for fools.
Multiplication with an asterisk symbol is built into python.
The same symbol used in other contexts has
ailman/listinfo/python-list
> On 1 Apr 2024, at 15:52, Jacob Kruger via Python-list
> wrote:
>
> Found many, many mentions of errors, with some of the same keywords, but, no
> resolutions that match my exact issue at all.
Try asking the pyinstaller developers. I think there is a mailing list.
Barr
> On 1 Apr 2024, at 18:14, Left Right via Python-list
> wrote:
>
> It sounds weird that symbols from Limited API are _missing_ (I'd
> expect them to be there no matter what library version you link with).
You have to specify the version of the limited API that you want
].
Does he use Python? i wonder.
--
https://mail.python.org/mailman/listinfo/python-list
s (in Lisp in the old days), there was a convention of using var-name like *foo* to
indicate it's a dynamic variable.
and sometimes **foo** for
and %foo% or %%foo%% was used for ...
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Apr 5, 2024 at 4:40 PM shannon makasale via Python-list <
python-list@python.org> wrote:
> Hi there,
> My name is Shannon. I installed Python 3.12 on my laptop a couple months
> ago, but realised my school requires me to use 3.11.1.
>
> I uninstalled 3.12
On 2024-04-05 22:32, shannon makasale via Python-list wrote:
Hi there,
My name is Shannon. I installed Python 3.12 on my laptop a couple months ago,
but realised my school requires me to use 3.11.1.
I uninstalled 3.12 and installed 3.11.1.
Unfortunately, I am unable to run python now. It
On 11/04/24 06:50, WordWeaver Evangelist via Python-list wrote:
I have a simple question. I use the following textPrompt in some of my Jython
modules:
'\n[1;33mYour choice is? (A B C D E): ', maxChars=1, autoAccept=False,
forceUppercase=True)
Is there a way to add an ANSI color c
On Wed, 10 Apr 2024 at 18:51, WordWeaver Evangelist via Python-list
wrote:
> I have a simple question. I use the following textPrompt in some of my
> Jython modules:
> '\n [1;33mYour choice is? (A B C D E): ', maxChars=1, autoAccept=False,
> forceUppercase=True)
>
https://mail.python.org/mailman/listinfo/python-list
ould like to get a result similar to this:
{
'zz':[('foo1','foo3'),
('foo2','foo5'),
('foo3','foo2'),
('foo3','foo6'),
('foo5','foo4')
]
}
Would you show me the path, please?
Thank you in advance.
--
https://mail.python.org/mailman/listinfo/python-list
result[what] += [(rowname, colname)]
print(result)
In any case, thank you again for pointing me in the right direction. I
had lost myself looking for a pandas method that would do this in a
single shot or almost.
--
https://mail.python.org/mailman/listinfo/python-list
Stefan Ram ha scritto:
df = df.where( df == 'zz' ).stack().reset_index()
result ={ 'zz': list( zip( df.iloc[ :, 0 ], df.iloc[ :, 1 ]))}
Since I don't know Pandas, I will need a month at least to understand
these 2 lines of code. Thanks again.
--
https://mail.python.or
he "where" creates a new DataFrame selection that contains
the same data as df, but with all values replaced by NaN (Not
a Number) except for the values that are equal to 'zz'.
"stack" returns a Series with a multi-level index created
by pivoting the columns. Here it gives a Series with the
row-col-addresses of a all the non-NaN values. The general
meaning of "stack" might be the most complex operation of
this script. It's explained in the pandas manual (see there).
"reset_index" then just transforms this Series back into a
DataFrame, and ".iloc[ :, 0 ]" and ".iloc[ :, 1 ]" are the
first and second column, respectively, of that DataFrame. These
then are zipped to get the desired form as a list of pairs.
And this is a technique very similar to reverse engineering. Thanks for
the explanation and examples. All this is really clear and I was able to
follow it easily because I have already written a version of this code
in C without any kind of external library that uses the .CSV version of
the table as data ( 234 code lines :^/ ).
--
https://mail.python.org/mailman/listinfo/python-list
I read it, both with encoding='utf_16_be' and
with 'utf_16_le' without errors but in the last case the bytes are
inverted. What did I not understand? What am I doing wrong?
thanks in advance
--
https://mail.python.org/mailman/listinfo/python-list
re just 2 bytes and there is no difference between
them.
Thank you.
--
https://mail.python.org/mailman/listinfo/python-list
Richard Damon ha scritto:
On Apr 29, 2024, at 12:23 PM, jak via Python-list
wrote:
Hi everyone,
one thing that I do not understand is happening to me: I have some text
files with different characteristics, among these there are that they
have an UTF_32_le coding, utf_32be, utf_16_le
> On 3 May 2024, at 17:43, Tripura Seersha via Python-list
> wrote:
>
> Hi Team,
>
> I am working on an automation related to uninstalling and installing python
> versions on different windows servers.
>
> I have observed that uninstallation is working only with
!= TEXT('\0'); s++)
{
if(d == pCLipb)
{
if(*s != TEXT(' ') && *s != TEXT('\n') && *s != TEXT('\r'))
*d++ = *s;
}
else if(*s == TEXT(' ') || *s == TEXT('\n') || *s == TEXT('\r'))
{
if(d[-1] != TEXT(' '))
*d++ = TEXT(' ');
}
else
*d++ = *s;
}
*d = TEXT('\0');
--
https://mail.python.org/mailman/listinfo/python-list
mail.python.org/mailman/listinfo/python-list
1001 - 1100 of 5776 matches
Mail list logo