Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-02 Thread Alan Gauld via Python-list
.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-02 Thread Alan Gauld via Python-list
e reporting and some updates showing as having happened in the future! -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-02 Thread Alan Gauld via Python-list
om/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-02 Thread Alan Gauld via Python-list
photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-03 Thread Alan Gauld via Python-list
people. Most still see it as a benefit because they get longer working daylight. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem with python

2021-09-04 Thread Rob Cliffe via Python-list
7 -0500, Igor Korot wrote: Will this syntax work in python 2? Yes. It's just a redundant pair of parentheses. hp -- https://mail.python.org/mailman/listinfo/python-list

CPython / Decimal and bit length of value.

2021-09-04 Thread Nacnud Nac via Python-list
to be able to call. It'd be nice to just be able to tell the "size of data", or something like that, that was stored in the *data? I note there is len "field" in the structure mpd_t Sorry for the dumb question Thanks,Duncan -- https://mail.python.org/mailman/listinfo/python-list

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-04 Thread Alan Gauld via Python-list
issue - except we'd be an hour out of sync with the EU. (Post Brexit that may not be seen as a problem!! :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: on writing a while loop for rolling two dice

2021-09-06 Thread Avi Gross via Python-list
ave one extra put it here. If you have two, put one here and one there. My method had all kinds of bells and whistles that this specific case did not need. Let me end with asking if anyone has ever seen a mild variant of this: ... # code while false apologize() ... # more code -Original M

RE: on writing a while loop for rolling two dice

2021-09-06 Thread Avi Gross via Python-list
the user 😉 Bottom line I find is it is a great idea to write comments as even if you are the one reviewing the code much later, you may struggle to figure out what you did and why. -Original Message- From: Python-list On Behalf Of Dennis Lee Bieber Sent: Sunday, September 5, 2021 12

RE: on writing a while loop for rolling two dice

2021-09-06 Thread Avi Gross via Python-list
in the python version, has anyone made a generator that returned NULL or the like so you can say uselessly: for ( _ in forever() ) ... -Original Message----- From: Python-list On Behalf Of Stefan Ram Sent: Monday, September 6, 2021 12:34 PM To: python-list@python.org Subject: Re: on wri

RE: on writing a while loop for rolling two dice

2021-09-06 Thread Avi Gross via Python-list
(): print("repeating ...") The above gives me a nice infinite loop, with the second one looking like a normal loop but actually doing nothing much. -----Original Message- From: Python-list On Behalf Of 2qdxy4rzwzuui...@potatochowder.com Sent: Monday, September 6, 2021 8:28 PM To:

RE: on writing a while loop for rolling two dice

2021-09-06 Thread Avi Gross via Python-list
ormal then head off into hyperspace at warp speed. Python too has a way to write fairly unsophisticated programs as well as idioms and methods that rapidly become hard to comprehend. -Original Message----- From: Python-list On Behalf Of Stefan Ram Sent: Monday, September 6, 2021 7:49 PM To: p

RE: on writing a while loop for rolling two dice

2021-09-07 Thread Avi Gross via Python-list
the one to use beyond that point. So, I am not sanguine on trying to enforce some standards to make your code easy to read by others and am more a fan of suggesting enough comments in the code to guide anyone on your own idiosyncratic uses. -Original Message- From: Python-list On Behalf Of

Re: on writing a while loop for rolling two dice

2021-09-07 Thread Alan Gauld via Python-list
?!) for a while. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: on writing a while loop for rolling two dice

2021-09-07 Thread Avi Gross via Python-list
though at the fact that python, by using indentation rather than things like curly braces, would make some of the games like shown below quite a bit more difficult. -Original Message- From: Python-list On Behalf Of Greg Ewing Sent: Tuesday, September 7, 2021 9:08 PM To: python-list

RE: on writing a while loop for rolling two dice

2021-09-07 Thread Avi Gross via Python-list
another object means you over-rode the meaning of += for instance. -Original Message- From: Python-list On Behalf Of Richard Damon Sent: Tuesday, September 7, 2021 10:09 PM To: python-list@python.org Subject: Re: on writing a while loop for rolling two dice On 9/7/21 3:51 PM, Avi Gross via

RE: on writing a while loop for rolling two dice

2021-09-08 Thread Avi Gross via Python-list
w one, just use what works and leave others that like it alone. Make your own religion and let others keep theirs. However, improvements and increased functionality may be more welcome, than examples where the interface was changed with no benefits. -Original Message- From: Python-lis

Re: Change the display style of the text on the STACKLINE.

2021-09-09 Thread Roland Mueller via Python-list
d:M-b' Replace D and M with _D_, _M_ >>> percol.view.STACKLINE = re.sub(r'([DM])', r'_\1_', percol.view.STACKLINE) 'Fold:F1,F2,F3 Push:C-p Pop:_M_-p Script:_M_-s _D_ir:_M_-d _D_ircmd:_M_-b' Regards, Roland > How to achieve this purpose? >

Re: Change the display style of the text on the STACKLINE.

2021-09-09 Thread Roland Mueller via Python-list
shown? Python 3.9.6 (default, Jul 16 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> UL = '\033[4m' >>> UL '\x1b[4m' >>> ENDC

Re: Friday Finking: Contorted loops

2021-09-10 Thread Alan Gauld via Python-list
On 09/09/2021 22:36, dn via Python-list wrote: > Even in fairly modest Python constructs, we quickly repeal the one-in, > one-out philosophy because try...except operates by providing another > exit-path. Exceptions are exceptional by their nature (or should be!) As such they can ar

Re: Friday Finking: Contorted loops

2021-09-10 Thread Alan Gauld via Python-list
om/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Friday Finking: Contorted loops

2021-09-10 Thread Alan Gauld via Python-list
e with a loop. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Change the display style of the text on the STACKLINE.

2021-09-10 Thread Roland Mueller via Python-list
inal understands unicode, Combining Low Line: U+0332 > might help > > > The problem was to get the string to this mail. In my terminal it was OK. -- https://mail.python.org/mailman/listinfo/python-list

RE: Friday Finking: Contorted loops

2021-09-10 Thread Avi Gross via Python-list
over and over for "if" statements and perhaps some kind of case/switch statement and while loops and so on, may be parsimonious but ... -Original Message- From: Python-list On Behalf Of Alan Gauld via Python-list Sent: Friday, September 10, 2021 11:58 AM To: python-list@pytho

RE: Friday Finking: Contorted loops

2021-09-10 Thread Avi Gross via Python-list
age and still fail. Throw in the reality that your loop may use variable manipulated in parallel by other threads and that your thread may be killed as it runs and I wonder. -Original Message- From: Python-list On Behalf Of Greg Ewing Sent: Friday, September 10, 2021 2:40 AM To: py

ANN: Version 0.5.1 of the Python config module has been released.

2021-09-11 Thread Vinay Sajip via Python-list
/listinfo/python-list

Re: Friday Finking: Contorted loops

2021-09-11 Thread Alan Gauld via Python-list
tp://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: Friday Finking: Contorted loops

2021-09-11 Thread Avi Gross via Python-list
SE statements each with another WHILE. But is that an ideal way to do this or perhaps instead use some variant of a switch statement or a dictionary pointing to functions to invoke or something. Time to go do something lese of even minor usefulness! -Original Message- From: Python-list O

RE: Friday Finking: Contorted loops

2021-09-11 Thread Avi Gross via Python-list
methods too like map/reduce or vectorized operations? -Original Message- From: Python-list On Behalf Of Peter J. Holzer Sent: Saturday, September 11, 2021 10:42 AM To: python-list@python.org Subject: Re: Friday Finking: Contorted loops On 2021-09-10 12:26:24 +0100, Alan Gauld via Python

Re: Friday Finking: Contorted loops

2021-09-12 Thread Alan Gauld via Python-list
f times. But in Pascal I use it regularly. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: Friday Finking: Contorted loops

2021-09-12 Thread Avi Gross via Python-list
multiple exit methods and so on. But you can add bells and whistles like the ELSE clause but not get many to actually use it as there are more standard ways to do that without confusion, especially if it is confusing to some. -Original Message- From: Python-list On Behalf Of Peter J. Holzer Sent

RE: Friday Finking: Contorted loops

2021-09-12 Thread Avi Gross via Python-list
needs to do things in the current environment and thus only part of the functionality can be moved away. -Original Message- From: Python-list On Behalf Of Stefan Ram Sent: Saturday, September 11, 2021 10:56 PM To: python-list@python.org Subject: Re: Friday Finking: Contorted loops &quo

Re: ANN: Version 0.5.1 of the Python config module has been released.

2021-09-12 Thread Vinay Sajip via Python-list
hat's good enough for me :-) On Sunday, 12 September 2021, 18:11:21 BST, Abdur-Rahmaan Janhangeer wrote: Used by 4.8k but only ... 4 stars -- https://mail.python.org/mailman/listinfo/python-list

RE: Friday Finking: Contorted loops

2021-09-12 Thread Avi Gross via Python-list
power can come great responsibility to use it well and make sure others can figure it out. -Original Message----- From: Python-list On Behalf Of Peter J. Holzer Sent: Sunday, September 12, 2021 4:49 PM To: python-list@python.org Subject: Re: Friday Finking: Contorted loops On 2021-09-12 10:2

Re: Friday Finking: Contorted loops

2021-09-12 Thread Alan Gauld via Python-list
thor/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: Friday Finking: Contorted loops

2021-09-13 Thread Avi Gross via Python-list
ething, such as an object like a deque, you get to know it so well that you may stop commenting on how you are using some built-in feature as it seems routine. -Original Message- From: Python-list On Behalf Of Peter J. Holzer Sent: Monday, September 13, 2021 3:28 PM To: python-list@pyth

RE: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-16 Thread Avi Gross via Python-list
-list On Behalf Of Mostowski Collapse Sent: Thursday, September 16, 2021 3:59 PM To: python-list@python.org Subject: Re: ANN: Dogelog Runtime, Prolog to the Moon (2021) Here is a challenge for Python. Can Python solve Sudoku? Mostowski Collapse wrote: > I am not testing this use-case. Bu

Re: Question again

2021-09-16 Thread Alan Gauld via Python-list
be indented as part of the if statement above? > #Other than that if user says 'no', reply 'just kidding we're done here haha' > elif answer == "no" : > print("just kidding we're done here haha") But the code always gets to the end, there is nothing to stop it exiting. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: Question again

2021-09-16 Thread Avi Gross via Python-list
- From: Python-list On Behalf Of Alan Gauld via Python-list Sent: Thursday, September 16, 2021 8:11 PM To: python-list@python.org Subject: Re: Question again On 16/09/2021 06:50, af kh wrote: > Hello, > I was doing some coding on a website called replit I have no idea what that

How to "cast" an object to a derived class?

2021-09-18 Thread Robert Latest via Python-list
at # class def __init__(self, *a, **k): super().__init__(*a, *k) self.__something = 0 def get_something(self): return self.something op = opaque.make_opaque() # But I want to have this as type MyClass. This obviously doesn't work: my_object = MyClass(op) # But what does? -- https://mail.python.org/mailman/listinfo/python-list

Re: How to "cast" an object to a derived class?

2021-09-18 Thread Robert Latest via Python-list
l.etree.ElemenTree and .Element to circumvent its idiotic namespace handling. For that I need inheritance since I want to override the find..() functions to return my derived MyElement classes. I think it could work but I somehow need to convert the root Element to a MyElement. -- https://mail.python.org/mailman/listinfo/python-list

Re: Inheriting from str

2021-09-20 Thread Jon Ribbens via Python-list
ndard assumptions with sufficiently evil or badly-written classes. e.g.: >>> class intt(int): ... def __add__(self, other): ... return int(self) + int(other) * 2 ... >>> a = intt(2) >>> b = intt(3) >>> a + b 8 >>> b + a 7 -- https://mail.python.org/mailman/listinfo/python-list

Re: XML Considered Harmful

2021-09-21 Thread Jon Ribbens via Python-list
alm voice until you have reached sufficient safe distance, then turn and run. -- https://mail.python.org/mailman/listinfo/python-list

Re: XML Considered Harmful

2021-09-21 Thread Jon Ribbens via Python-list
tools. In JSON all that checking is entirely > handled by the consuming program(s). That's not true. You can use "JSON Schema" to create a schema for validating JSON files, and there appear to be at least four implementations in Python. -- https://mail.python.org/mailman/listinfo/python-list

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-22 Thread Roland Mueller via Python-list
take only one LineEdit for all these tree > situations, or I have to implement 9 small squares for small fonts and a > big one for the big fonts? > Any help and suggestion is welcome and appreciated. > > Best regards > Mohsen > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

ANN: distlib 0.3.3 released on PyPI

2021-09-22 Thread Vinay Sajip via Python-list
.3/ [3] https://bitbucket.org/pypa/distlib/issues/new -- https://mail.python.org/mailman/listinfo/python-list

RE: XML Considered Harmful

2021-09-23 Thread Avi Gross via Python-list
well be a fairly slow and even error-prone way to solve a problem. -Original Message----- From: Python-list On Behalf Of Chris Angelico Sent: Thursday, September 23, 2021 9:27 AM To: Python Subject: Re: XML Considered Harmful On Thu, Sep 23, 2021 at 10:55 PM Mats Wichmann wrote: > >

RE: XML Considered Harmful

2021-09-23 Thread Avi Gross via Python-list
more like that? -Original Message- From: Python-list On Behalf Of Stefan Ram Sent: Thursday, September 23, 2021 5:43 PM To: python-list@python.org Subject: Re: XML Considered Harmful "Avi Gross" writes: >But scientific papers seemingly allow oodles of authors and any time

Re: XML Considered Harmful

2021-09-23 Thread Jon Ribbens via Python-list
rmats are also available ;-) -- https://mail.python.org/mailman/listinfo/python-list

Type annotation pitfall

2021-09-23 Thread Robert Latest via Python-list
= Foo('abc') print(foo.x) # prints '{'abc'} -- https://mail.python.org/mailman/listinfo/python-list

Re: XML Considered Harmful

2021-09-23 Thread Mike Dewhirst via Python-list
phone) Original message From: dn via Python-list Date: 24/9/21 15:42 (GMT+10:00) To: python-list@python.org Subject: Re: XML Considered Harmful On 24/09/2021 14.07, Stefan Ram wrote:> dn writes:>> With that, why not code it as Python expressions, and include the mod

Re: XML Considered Harmful

2021-09-24 Thread Jon Ribbens via Python-list
On 2021-09-24, Chris Angelico wrote: > On Sat, Sep 25, 2021 at 8:53 AM dn via Python-list > wrote: >> On 25/09/2021 06.59, Peter J. Holzer wrote: >> > CSV: Good for tabular data of a single data type (strings). As soon as >> > there's a second data type (numb

Re: XML Considered Harmful

2021-09-25 Thread Jon Ribbens via Python-list
On 2021-09-25, Peter J. Holzer wrote: > On 2021-09-24 23:32:47 -, Jon Ribbens via Python-list wrote: >> JSON Schema provides a way to denote composite types. > > I probably wasn't clear what I meant. In XML, every element has a tag, > which is basically its type. So by

Could not initilalize crash reporting DB

2021-09-25 Thread Sir Real via Python-list
https://mail.python.org/mailman/listinfo/python-list

RE: XML Considered Harmful

2021-09-25 Thread Avi Gross via Python-list
thers have already produced the data using other tools, in which case you have to read it in at least once/ -Original Message- From: Python-list On Behalf Of Michael F. Stemper Sent: Saturday, September 25, 2021 4:20 PM To: python-list@python.org Subject: Re: XML Considered Harmful O

RE: XML Considered Harmful

2021-09-27 Thread Avi Gross via Python-list
m numbers. Again, if you have or build such code, it is not clear it needs to be written to disk and then read back. You may of course want to save it, perhaps as a log, to show what your program was working on. -Original Message----- From: Python-list On Behalf Of Michael F. Stemper Sent:

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
ike you do want something easier to create while editing. -Original Message----- From: Python-list On Behalf Of Michael F. Stemper Sent: Tuesday, September 28, 2021 11:38 AM To: python-list@python.org Subject: Re: XML Considered Harmful On 27/09/2021 20.01, Avi Gross wrote: > Michae

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
mainly in PASCAL. Ah the good old days. -Original Message- From: Python-list On Behalf Of Michael F. Stemper Sent: Tuesday, September 28, 2021 11:45 AM To: python-list@python.org Subject: Re: XML Considered Harmful On 28/09/2021 02.25, Peter J. Holzer wrote: > On 2021-09-27 21:01:04 -0

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
we worked on what Hypertext should look like, ... -Original Message- From: Python-list On Behalf Of Michael F. Stemper Sent: Tuesday, September 28, 2021 2:41 PM To: python-list@python.org Subject: Re: XML Considered Harmful On 28/09/2021 13.27, Avi Gross wrote: > Well, Michael, if

RE: XML Considered Harmful

2021-09-29 Thread Avi Gross via Python-list
does Python have? [] - list comprehension {} - dictionary OR set comprehension () - generator expression Tuples are incomprehensible and I wonder if any other comprehensions might make sense to add, albeit we may need new symbols. -Original Message- From: Python-list On Behalf Of Michael

Re: OT: AttributeError

2021-09-29 Thread Rob Cliffe via Python-list
+1000, Chris Angelico wrote: On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: On 2021-09-29 at 11:38:22 +1300, dn via Python-list wrote: For those of us who remember/can compute in binary, octal, hex, or decimal as-needed: Why do programmers confuse

RE: How to pass a method as argument?

2021-09-30 Thread Avi Gross via Python-list
----- From: Python-list On Behalf Of Anil Anvesh Sent: Thursday, September 30, 2021 1:11 AM To: python-list@python.org Subject: How to pass a method as argument? I want to write a python calculator program that has different methods to add, subtract, multiply which takes 2 parameters. I need to have

pythonpapers.org domain name to lapse in November

2021-10-04 Thread Mike Dewhirst via Python-list
private key. If you import my public key you can automatically decrypt my signature and be sure it came from me. Just ask and I'll send it to you. Your email software can handle signing. OpenPGP_signature Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list

Big jump in version

2021-10-05 Thread Cecil Westerhof via Python-list
updated pyzstd for a long time, because that breaks py7zr which needs a version lower as 0.15.0. Any chance that py7zr is going to be updated? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.python.org/mailman/listinfo/python-list

RE: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread Avi Gross via Python-list
another. Here are examples I just typed: +1 1 +1 1 +-+-+-1 -1 ---1 -1 --1 1 Luckily since Python has no ++ or -- pre or post operators, these are legal, albeit a tad weird. -Original Message- From: Python-list On Behalf Of dn via Python-list Sent: Tuesday, October 5, 2021 7:11 PM To

Re: Big jump in version

2021-10-07 Thread Cecil Westerhof via Python-list
Grant Edwards writes: > On 2021-10-04, Cecil Westerhof via Python-list wrote: >> When I run: >> pip3 list --outdated >> >> I get: >> Package Version Latest Type >> --- -- - >> cryptography 3.4.8 35.0.0

RE: Re: sum() vs. loop

2021-10-12 Thread Avi Gross via Python-list
. -Original Message- From: Python-list On Behalf Of Alan Gauld Sent: Tuesday, October 12, 2021 6:56 PM To: python-list@python.org Subject: Fwd: Re: sum() vs. loop On 10/10/2021 09:49, Steve Keller wrote: > I have found the sum() function to be much slower than to loop over > the op

RE: sum() vs. loop

2021-10-13 Thread Avi Gross via Python-list
worry the original might be changed out from under. My apologies if it was understood to mean I had shown it was copied. -Original Message- From: Python-list On Behalf Of Stefan Ram Sent: Tuesday, October 12, 2021 9:49 PM To: python-list@python.org Subject: Re: sum() vs. loop &quo

Re: importing a module from a file without the '.py' suffix

2021-10-22 Thread Rob Cliffe via Python-list
ion? Best wishes Rob Cliffe On 22/10/2021 12:19, Antoon Pardon wrote: I have a file with python code but the name doesn't end with the '.py' suffix. What is the easiest way to import this code as a module without changing its name? -- https://mail.python.org/mailman/listinfo/python-list

Re: New assignmens ...

2021-10-22 Thread Jon Ribbens via Python-list
but the attribute references "self.ctr" is no identifier! This seems a surprising omission. You'd expect at least 'attributeref' and 'subscription' to be allowed, if not the whole of 'target'. -- https://mail.python.org/mailman/listinfo/python-list

Re: New assignmens ...

2021-10-23 Thread Jon Ribbens via Python-list
to show that this special case is special enough to be given its own unique existence. It's a bit surprising that the PEP doesn't discuss this decision at all. -- https://mail.python.org/mailman/listinfo/python-list

Re: New assignmens ...

2021-10-23 Thread Jon Ribbens via Python-list
On 2021-10-23, Chris Angelico wrote: > On Sun, Oct 24, 2021 at 4:39 AM Jon Ribbens via Python-list > wrote: >> On 2021-10-23, Chris Angelico wrote: >> > In what situations do you need to mutate an attribute and also test >> > it, and how much hassle is it to simp

RE: New assignmens ...

2021-10-24 Thread Avi Gross via Python-list
need to check your version of Python to see if the feature exists before ... -Original Message- From: Python-list On Behalf Of Alan Bawden Sent: Sunday, October 24, 2021 3:53 AM To: python-list@python.org Subject: Re: New assignmens ... It seemed weird to me that only an identifier was

Re: [tkinter][Windows]Unexpected state report for the tab key

2021-10-25 Thread Rob Cliffe via Python-list
) events? (I'm not familiar with tkinter, but in wxpython you can.) And if so, does trapping KeyUp solve the problem? Best wishes Rob Cliffe -- https://mail.python.org/mailman/listinfo/python-list

RE: New assignmens ...

2021-10-25 Thread Avi Gross via Python-list
paste operation for the more complex scenarios even if they remember the fancy version exists and is bound to some forgotten series of keys clicked together like control-X control-alt-t or something. -Original Message- From: Python-list On Behalf Of Antoon Pardon Sent: Monday, October 2

RE: New assignmens ...

2021-10-25 Thread Avi Gross via Python-list
anced Odobenus rosmarus operator like ::== ... -Original Message- From: Python-list On Behalf Of Christman, Roger Graydon Sent: Monday, October 25, 2021 12:48 PM To: python-list@python.org Subject: Re: New assignmens ... Message: 8 Date: Mon, 25 Oct 2021 11:20:52 +0200 From: Antoon Pardo

RE: Beginner in python

2021-10-25 Thread Avi Gross via Python-list
. Avi -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Monday, October 25, 2021 6:25 PM To: Python Subject: Re: Beginner in python On Tue, Oct 26, 2021 at 9:23 AM Kian Kwame wrote: > > hi buddie > am new to python somebody kindly advice the coding which w

RE: New assignmens ...

2021-10-25 Thread Avi Gross via Python-list
d not be a souped-up generalized_sum() function when a simple one will do and be faster when invoked so many times. And note often what is used is a temporary lambda anonymous function that may look like \(x,y) x+y ... or whatever syntax your language uses. -Original Message----- From: Pytho

RE: Create a contact book

2021-10-26 Thread Avi Gross via Python-list
in contact and lets you add friends and view them -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Tuesday, October 26, 2021 2:36 AM To: Python Subject: Re: Create a contact book On Tue, Oct 26, 2021 at 5:30 PM anders Limpan wrote: > > i would like to

RE: New assignmens ...

2021-10-27 Thread Avi Gross via Python-list
the walrus and like it and it makes coding easier AND they ask for more, it may come, at incremental cost. -Original Message- From: Python-list On Behalf Of Antoon Pardon Sent: Wednesday, October 27, 2021 2:59 AM To: python-list@python.org Subject: Re: New assignmens ... Op 26/10/2021 om

RE: Create a contact book

2021-10-27 Thread Avi Gross via Python-list
normally have enough local help. -Original Message----- From: Python-list On Behalf Of dn via Python-list Sent: Wednesday, October 27, 2021 12:15 AM To: python-list@python.org Subject: Re: Create a contact book On 27/10/2021 04.16, Avi Gross via Python-list wrote: > Chris, > > I thin

RE: New assignmens ...

2021-10-27 Thread Avi Gross via Python-list
are added, for completeness, add the post-increment version of index++ ... I mean if cost is no object, and worrying how it may impact current programs or conflicts is nothing to be concerned about in the interest of some academic purity ... -Original Message- From: Python-list On Behalf

walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
castic. -- https://mail.python.org/mailman/listinfo/python-list

RE: walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
I just realized I left out **= so my apologies. Are there other such abbreviations and does anyone use them? -Original Message- From: Python-list On Behalf Of Avi Gross via Python-list Sent: Wednesday, October 27, 2021 8:57 PM To: python-list@python.org Subject: walrus with a twist

RE: walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
haps a :U instead of Ü or allowing an SS to be typed instead of ß. When used on character-only scenarios, obviously you let the users mis-spell these ways but that is not an ideal way to learn a language or write in it. -Original Message----- From: Python-list On Behalf Of Chris Angelico Sent:

RE: walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
we got along fine before a walrus came along, ... or did we? -Original Message- From: Python-list On Behalf Of MRAB Sent: Wednesday, October 27, 2021 9:21 PM To: python-list@python.org Subject: Re: walrus with a twist :+= or ... On 2021-10-28 02:06, Avi Gross via Python-list wrote: >

Re: New assignmens ...

2021-10-28 Thread Jon Ribbens via Python-list
ven't studied the PEP so I don't know if there was a particular > rationale. Well, that's what I was saying: there's no rationale - the limitation is not even mentioned, let alone explained. -- https://mail.python.org/mailman/listinfo/python-list

RE: Re: The task is to invent names for things

2021-10-28 Thread Avi Gross via Python-list
p within reasonable (printable) line lengths gets hard. MyHumoungousDictionaryContainingElectionResults[SomeCountyInSomeStateOfTheUS ] = MyHumoungousDictionaryContainingElectionResults[SomeCountyInSomeStateOfTheUS ] + TheOfficialCertifiedVoteCountOfThisRegion -Original Message- From: Python-

RE: New assignmens ...

2021-10-28 Thread Avi Gross via Python-list
, 5+cos(x))) … Not necessarily pretty and I am sure there may well be reasons it won’t work, but I wonder if it will work in more places than the currently minimal walrus operator. From: Antoon Pardon Sent: Thursday, October 28, 2021 3:03 AM To: Avi Gross ; python-list@python.org Subj

RE: walrus with a twist :+= or ...

2021-10-28 Thread Avi Gross via Python-list
ything like I am describing (or something much better) is being looked at? -Original Message----- From: Python-list On Behalf Of Peter J. Holzer Sent: Thursday, October 28, 2021 5:08 AM To: python-list@python.org Subject: Re: walrus with a twist :+= or ... On 2021-10-27 22:15:09 -0400, Avi

RE: The task is to invent names for things

2021-10-28 Thread Avi Gross via Python-list
s. It is not at all a foreign concept to have multiple names point to the same things. Often, it helps make the code clearer. -----Original Message- From: Python-list On Behalf Of Stefan Ram Sent: Thursday, October 28, 2021 2:07 PM To: python-list@python.org Subject: Re: The task is to inven

RE: walrus with a twist :+= or ...

2021-10-28 Thread Avi Gross via Python-list
, that should do even on standard keyboards. ∴ -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Thursday, October 28, 2021 3:24 PM To: Python Subject: Re: walrus with a twist :+= or ... On Fri, Oct 29, 2021 at 5:53 AM Avi Gross via Python-list wrote: > Is ther

Re: Get a Joke in Python

2021-10-28 Thread Jon Ribbens via Python-list
gs it follows: A real customer walks into the bar and doesn't order anything, but asks where the toilets are. The bar explodes in flames. -- https://mail.python.org/mailman/listinfo/python-list

RE: New assignmens ...

2021-10-29 Thread Avi Gross via Python-list
tting down some such abilities is exactly why people code defensively and try to hide the inner aspects of an object by doing things like having a proxy in front of it and creating getters and setters. -Original Message- From: Python-list On Behalf Of Antoon Pardon Sent: Friday, October

RE: How to apply a self defined function in Pandas

2021-10-31 Thread Avi Gross via Python-list
it for them, as in some asking about HW. I am not joining this one. 😉 -Original Message- From: Python-list On Behalf Of Karsten Hilbert Sent: Sunday, October 31, 2021 4:00 PM To: python-list@python.org Subject: Re: How to apply a self defined function in Pandas Am Sun, Oct 31, 2021 at

Problem with concatenating two dataframes

2021-11-06 Thread Mahmood Naderan via Python-list
As it reaches the contact() statement, I get this error: TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame" Based on the definition I wrote in the beginning of the code, "dict[name]" should be a dataframe. Isn't that? How can I fix that? Regards, Mahmood -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem with concatenating two dataframes

2021-11-06 Thread Mahmood Naderan via Python-list
  0 M3  0, 'K1':    Value 0 10 1  5 2 10 6  2 7  2 8  2, 'K2':    Value 3 20 4 10 5 15} For K1, there should be three rows and two columns labeled as Value. Regards, Mahmood -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem with concatenating two dataframes

2021-11-06 Thread Mahmood Naderan via Python-list
  Value 0   10.0NaN 15.0NaN 2   10.0NaN 6NaN2.0 7NaN2.0 8NaN2.0, 'K2':Value 3 20 4 10 5 15} Regards, Mahmood -- https://mail.python.org/mailman/listinfo/python-list

Breaking new relic format on a new line character in FileHandler appender

2021-11-10 Thread Vijay Karavadra via Python-list
uth\_service_account_info.py", line 71, in from_filename with io.open(filename, 'r', encoding='utf-8') as json_file: FileNotFoundError: [Errno 2] No such file or directory: 'E:\\comms-nlp-service\\src\\GoogleAuthentication\\ xyz .json' "} Any suggestions on this would be a great help. -- Thanks, Vijay Karavadra -- https://mail.python.org/mailman/listinfo/python-list

<    24   25   26   27   28   29   30   31   32   33   >