Re: Format Logfile Name with logging.ini

2020-05-30 Thread DL Neil via Python-list
On 30/05/20 4:52 AM, connor.r.no...@gmail.com wrote: In an effort to clean up my python logging practices when creating libraries, I have begun reading into "Advanced Logging" and converting my logging practices into logging configuration `.ini` files: [link](https://docs.python.org/3.4/howto/

Re: Binary Sort on Python List __xor__

2020-05-30 Thread Evan Schalton
@MRAB, Yes -- good point, it should be the __and__ operator. do I need a new class? No, but based on this use case and other formatting techniques adding a filter method to the list class that takes in either bit mask or bool list would streamline a lot of code and not change any existing func

Re: Binary Sort on Python List __xor__

2020-05-30 Thread MRAB
On 2020-05-30 23:52, evan.schal...@gmail.com wrote: I frequently use binary as bool placeholders and find myself filtering lists based on those bools, this seems to have a similar semantic meaning as the bit wise ^ or __xor__ operator and could add syntactic sugar to the base list class. Use C

Binary Sort on Python List __xor__

2020-05-30 Thread evan . schalton
I frequently use binary as bool placeholders and find myself filtering lists based on those bools, this seems to have a similar semantic meaning as the bit wise ^ or __xor__ operator and could add syntactic sugar to the base list class. Use Case: Controlling a stepper at half-step has the follo

Re: why no camelCase in PEP 8?

2020-05-30 Thread Terry Reedy
On 5/29/2020 4:30 PM, Peter J. Holzer wrote: On 2020-05-28 18:14:53 -0400, Terry Reedy wrote: On 5/28/2020 4:18 PM, Peter J. Holzer wrote: On 2020-05-19 05:59:30 +1000, Chris Angelico wrote: Nobody ever requires you to comply with it for any other code. That's obviously not true: [...] Rev

Re: Python with text editor

2020-05-30 Thread DL Neil via Python-list
On 30/05/20 7:42 PM, Preetha M wrote: Hello. Thank you for responding to my previous mail. Can someone tell me how to connect python to sublime text 3. Whenever I select python and type the code, it does not work when I press ctrl+B. Please tell. ST is an editor/IDE which is not Python-specifi

Python with text editor

2020-05-30 Thread Preetha M
Hello. Thank you for responding to my previous mail. Can someone tell me how to connect python to sublime text 3. Whenever I select python and type the code, it does not work when I press ctrl+B. Please tell. -- https://mail.python.org/mailman/listinfo/python-list