Re: The Mailing List Digest Project

2019-03-27 Thread Abdur-Rahmaan Janhangeer
continuing a better effort here: https://github.com/PythonCHB/PythonListsSummaries moving to an impersonal repo later! Garanti sans virus. www.avast.com

Re: The Mailing List Digest Project

2019-03-27 Thread Abdur-Rahmaan Janhangeer
hum maybe beacuse i speak french some settings got configured but i don't see how. btw we are moving to a better repo with sphinx Garanti sans virus. www.avast.com

Re: The Mailing List Digest Project

2019-03-27 Thread Jason Friedman
On Mon, Mar 25, 2019 at 11:03 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > As proposed on python-ideas, i setup a repo to turn mail threads into > articles. > > i included a script to build .md to .html (with syntax highlighting) here > is the index > > https://abdur-rahmaanj.githu

Re: Getting file extensions [linux fs]

2019-03-27 Thread Paulo da Silva
Às 23:09 de 27/03/19, Cameron Simpson escreveu: > On 27Mar2019 21:49, Paulo da Silva wrote: ... > The filefrag manual entry says it works by calling one of 2 ioctls. You > can do that from Python with the ioctl() function in the standard fcntl > module. I haven't tried to do this, but the results

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

2019-03-27 Thread Ben Finney
Alexey Muranov writes: > It would be however more convenient to be able to write instead just > >f(x) = x*x That's not an anonymous function then, is it? You want to assign a name to that function, and (to be useful in development tools, such as a stack trace) the function needs to know its

Re: configparser - which one?

2019-03-27 Thread Ben Finney
DL Neil writes: > After striking this problem, I was encouraged to take a look at JSON, > and thence YAML. Once there, as they say, didn't look back! > - multi-dimensional possibilities, cf .ini > - similarity/correspondence with Python data structures > - convenient PSL > - easily adopted by (po

Re: Your IDE's?

2019-03-27 Thread Ben Finney
Mr Zaug writes: > On Monday, March 25, 2019 at 5:38:41 PM UTC-4, John Doe wrote: > > What is your favorite Python IDE? > > "Your IDE's?" is not a question It is a topic for discussion though. Hence, appropriate for the Subject field. Especially because he then wrote a full sentence question in t

Re: Getting file extensions [linux fs]

2019-03-27 Thread Cameron Simpson
On 27Mar2019 21:49, Paulo da Silva wrote: I don't know if this is the right group to ask ... sorry if it isn't. Is there a way to get the file extensions of a file in linux, the same way as "filefrag -e " does? The purpose is to see if two files are the same file, namely those copied with the

Re: Your IDE's?

2019-03-27 Thread Cameron Simpson
On 27Mar2019 10:55, Anssi Saari wrote: Ben Finney writes: Emacs and a shell multiplexer (today, that's GNU Screen, but others swear that I should try TMux). I've actually been using tmux for a while. The only reason and the only thing I can think of that it does and screen doesn't is that tm

Create GUI with Python using Tkinter | Youtube Playlist

2019-03-27 Thread Attreya Bhatt
In this series of 30 videos we learn how to create a Music Player from scratch using Python. Youtube Playlist - https://www.youtube.com/playlist?list=PLhTjy8cBISEp6lNKUO3iwbB1DKAkRwutl -- https://mail.python.org/mailman/listinfo/python-list

Getting file extensions [linux fs]

2019-03-27 Thread Paulo da Silva
Hi! I don't know if this is the right group to ask ... sorry if it isn't. Is there a way to get the file extensions of a file in linux, the same way as "filefrag -e " does? The purpose is to see if two files are the same file, namely those copied with the --reflink option in btrfs. A solution f

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

2019-03-27 Thread Terry Reedy
On 3/27/2019 4:21 AM, Alexey Muranov wrote: Whey you need a simple function in Python, there is a choice between a normal function declaration and an assignment of a anonymous function (defined by a lambda-expression) to a variable:    def f(x): return x*x or    f = lambda x: x*x PEP 8 p

Re: Your IDE's?

2019-03-27 Thread Mr Zaug
On Monday, March 25, 2019 at 5:38:41 PM UTC-4, John Doe wrote: > What is your favorite Python IDE? "Your IDE's?" is not a question, nor is any word in English made plural with an apostrophe s. -- https://mail.python.org/mailman/listinfo/python-list

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

2019-03-27 Thread Alexey Muranov
On mer., Mar 27, 2019 at 5:00 PM, python-list-requ...@python.org wrote: On 27/03/19 09:21, Alexey Muranov wrote: Whey you need a simple function in Python, there is a choice between a normal function declaration and an assignment of a anonymous function (defined by a lambda-expression) to a

Library for parsing binary structures

2019-03-27 Thread Paul Moore
I'm looking for a library that lets me parse binary data structures. The stdlib struct module is fine for simple structures, but when it gets to more complicated cases, you end up doing a lot of the work by hand (which isn't that hard, and is generally perfectly viable, but I'm feeling lazy ;-)) I

asyncio KeyboardInterrupt in select

2019-03-27 Thread Thomas Grainger
It seems quite easy to cause asyncio to deadlock: File "/usr/lib/python3.6/asyncio/base_events.py", line 1404, in _run_once event_list = self._selector.select(timeout) File "/usr/lib/python3.6/selectors.py", line 445, in select fd_event_list = self._epoll.poll(timeout, max_ev) Keyboard

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: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Rhodri James
On 27/03/2019 16:15, Bev in TX wrote: On Mar 27, 2019, at 10:41 AM, Antoon Pardon wrote: I don't know. Something like the following is already legal: f(x)[n] = x * n And it does something completly different. Where would I find information on what this does in the documentation? Nowhere

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

2019-03-27 Thread Bev in TX
> On Mar 27, 2019, at 10:41 AM, Antoon Pardon wrote: > > I don't know. Something like the following is already legal: > > f(x)[n] = x * n > > And it does something completly different. Where would I find information on what this does in the documentation? Bev in TX -- https://mail.pytho

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

2019-03-27 Thread Antoon Pardon
On 27/03/19 09:21, Alexey Muranov wrote: > Whey you need a simple function in Python, there is a choice between a > normal function declaration and an assignment of a anonymous function > (defined by a lambda-expression) to a variable: > >    def f(x): return x*x > > or > >    f = lambda x: x*x > >

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

2019-03-27 Thread Paul Moore
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 > >> between a > >> normal function declaration and

Re: Your IDE's?

2019-03-27 Thread Grant Edwards
On 2019-03-25, John Doe wrote: > What is your favorite Python IDE? Unix+Emacs I sometimes wish that Emacs had a better code folding mode when browsing other people's code, but the editors I've tried that do have nice code-folding fall down at too many other tasks. -- Grant Edwards

PyDev 7.2.0 Released

2019-03-27 Thread Fabio Zadrozny
PyDev 7.2.0 Release Highlights --- * Debugger improvements (updated to pydevd 1.6.0). * Fixed issue quoting/unquoting parameters for subprocess. * Fixed exception breakpoints for Django and Jinja2. * Console hook import compatibility with matplotlib and pyl

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

2019-03-27 Thread Alexey Muranov
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 between a normal function declaration and an assignment of a anonymous function (defined by a lambda-expression) to

Re: Search and Replace of string in a yaml file

2019-03-27 Thread Test Bot
Assuming you are asking about the logic at the uber level. You can try handling yaml file with pyyaml. It is a 3rd party package which has a good support for I/O related to yaml files. After you are able to read the data from the file, you need to apply your business logic to it. And log all the

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

2019-03-27 Thread Paul Moore
On Wed, 27 Mar 2019 at 08:25, Alexey Muranov wrote: > > Whey you need a simple function in Python, there is a choice between a > normal function declaration and an assignment of a anonymous function > (defined by a lambda-expression) to a variable: > > def f(x): return x*x > > or > > f = l

Re: Your IDE's?

2019-03-27 Thread Anssi Saari
Ben Finney writes: > Emacs and a shell multiplexer (today, that's GNU Screen, but others > swear that I should try TMux). I've actually been using tmux for a while. The only reason and the only thing I can think of that it does and screen doesn't is that tmux can display italic text and screen a

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

2019-03-27 Thread Alexey Muranov
Whey you need a simple function in Python, there is a choice between a normal function declaration and an assignment of a anonymous function (defined by a lambda-expression) to a variable: def f(x): return x*x or f = lambda x: x*x It would be however more convenient to be able to write