Re: Increasing the diversity of people who write Python

2017-11-27 Thread Alexandre Brault
A quick Google search turned up WinCompose. It defaults to Right-Alt for its compose key, but that's configurable On 2017-11-27 02:05 PM, Paul Moore wrote: > On 27 November 2017 at 18:13, Skip Montanaro wrote: >>> If you have a Windows key, you can assign it to be >>> the Compose key. >> Would t

Re: why won't slicing lists raise IndexError?

2017-12-06 Thread Alexandre Brault
process() wasn't defined either, nor were n and seq and yet you're not complaining about them. It seems it was clear to everyone but you that seq was a sequence defined elsewhere, n was an index defined elsewhere, and both process and do_without_item were functions defined elsewhere. And eve

Re: What is django-hotsauce?

2018-02-02 Thread Alexandre Brault
So it's a buzzword generator? Alex On 2018-02-02 04:17 AM, Etienne Robillard wrote: > About Django-hotsauce: > > Scalable and high-performance WSGI microframework on top of Django and > others: Django-hotsauce is the ultimate web development toolkit for > rogue Python hackers and chronic weed us

Re: why does list's .remove() does not return an object?

2018-05-17 Thread Alexandre Brault
On 2018-05-17 11:26 AM, Abdur-Rahmaan Janhangeer wrote: > I don't understand what this would return? x? You already have x. Is it > meant to make a copy? x has been mutated, so I don't understand the benefit > of making a copy of the 1-less x. Can you elaborate on the problem you are > trying to

Re: what does := means simply?

2018-05-18 Thread Alexandre Brault
On 2018-05-18 02:48 PM, bartc wrote: > On 18/05/2018 18:27, bartc wrote: > >> (BTW here's a port of that benchmark based on the Lua code: >> >>    https://pastebin.com/raw/ivDaKudX > > And here's the payoff: I was able to use this version to port it to > Python. One which works better the the origi

Re: Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Alexandre Brault
On 2018-05-22 02:29 PM, Νίκος wrote: > Hello all, > > Iam tryign to run a bootle script iw rote as wsgi app and iam gettign the > follwing eroor. > > === > [Tue May 22 06:49:45.763808 2018] [:error] [pid 24298] [client > 46.103.59.37:145

Re: List replication operator

2018-05-25 Thread Alexandre Brault
On 2018-05-25 11:40 AM, bartc wrote: > On 25/05/2018 16:27, Chris Angelico wrote: >> You're way WAY too late to debate the matrix multiplication operator. > > /The/ matrix multiplication operator? > > In which language? And what was wrong with "*"? > In Python, the language we're discussing right

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Alexandre Brault
The important question we should ask ourselves: Do we have a replacement Dutch person to figure out the one obvious way to do things that may not be obvious at first? Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.6 Logging time is not listed

2018-08-13 Thread Alexandre Brault
On 2018-08-13 12:37 PM, Keep Secret wrote: > #!/usr/bin/env python3 > import logging > logging.basicConfig(filename='example.log',level=logging.DEBUG) > logging.basicConfig(format='%(asctime)s;%(levelname)s:%(message)s', > level=logging.DEBUG) > logging.debug('Message1) > logging.info('Message2')

Re: PEP 394

2018-10-19 Thread Alexandre Brault
On 2018-10-19 06:06 AM, Marko Rauhamaa wrote: > Anders Wegge Keller : >> * python2 will refer to some version of Python 2.x. > Untrue for macOS. > >> * python3 will refer to some version of Python 3.x. > Untrue for macOS, ArchLinux, RHEL and CentOS. > >> * for the time being, all distributions shou

Re: What is the difference between "ws.Messagebeep(1)" and "ws.Messagebeep(-1)" ?

2019-03-21 Thread Alexandre Brault
Assuming ws is winsound, MessageBeep(-1) produces a "simple beep". MessageBeep(1) doesn't seem to actually exist so it might fall back to that same "simple beep". The possible values are -1, MB_ICONASTERISK, MB_ICONEXCLAMATION, MB_ICONHAND, MB_ICONQUESTION, and MB_OK, all of which are defined in th

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Alexandre Brault
On 2019-03-27 10:42 a.m., Paul Moore wrote: > On Wed, 27 Mar 2019 at 12:27, Alexey Muranov wrote: >> On mer., mars 27, 2019 at 10:10 AM, Paul Moore >> wrote: >>> On Wed, 27 Mar 2019 at 08:25, Alexey Muranov >>> wrote: Whey you need a simple function in Python, there is a choice betwee

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Alexandre Brault
On 2019-06-07 2:43 p.m., Rich Shepard wrote: > I understand positional and keyword arguments and the syntax for the > ttk.Checkbutton as described on > . > > $ python3 geochem.py >   File "geochem.py", line 60 >     ttk.Checkbutton(text='Censore

Re: How to load cookies from a json input in python-requests?

2019-08-12 Thread Alexandre Brault
On 2019-08-12 11:38 p.m., Peng Yu wrote: ``` import requests s = requests.Session() import json s.cookies.set_cookie(requests.utils.cookiejar_from_dict(json.load(sys.stdin))) ``` I used the above command to load cookies from a json file. But I got the following error. Does anybody know how to fi

Re: Spread a statement over various lines

2019-09-18 Thread Alexandre Brault
On 2019-09-18 4:01 p.m., Ralf M. wrote: > Am 17.09.2019 um 20:59 schrieb Manfred Lotz: >> I have a function like follows >> >> def regex_from_filepat(fpat): >> rfpat = fpat.replace('.', '\\.') \ >>    .replace('%', '.')  \ >>    .replace('*', '.*') >> >

Re: Why generate POP_TOP after an "import from?"

2020-04-17 Thread Alexandre Brault
On 2020-04-17 2:22 p.m., Adam Preble wrote: Given this in Python 3.6.8: from dis import dis def import_from_test(): from sys import path dis(import_from_test) 2 0 LOAD_CONST 1 (0) 2 LOAD_CONST 2 (('path',)) 4 IMPORT_N

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-19 Thread Alexandre Brault
On 2020-08-18 7:34 p.m., rmli...@riseup.net wrote: There are many reasons Elements is a terrible English style guide: https://www.pure.ed.ac.uk/ws/files/8520953/PULLUM_2010_The_land_of_the_free_and_the_elements_of_style.pdf I would kindly recommend that folks just educate themselves on what whit