Re: binascii.b2a vs ord()

2021-01-10 Thread MRAB
On 2021-01-10 18:50, Dennis Lee Bieber wrote: On Sun, 10 Jan 2021 03:29:37 - (UTC), Bischoop declaimed the following: I wanted to learn about conversion string to Ascii. So I learn about binascii.b2a but because the output wasn't what I wanted got deeper and found out about ord(c) and actu

Re: binascii.b2a vs ord()

2021-01-10 Thread Chris Angelico
On Mon, Jan 11, 2021 at 7:09 AM Bischoop wrote: > > On 2021-01-10, Chris Angelico wrote: > > > > Trace it through, step by step. You have a series of ASCII values, > > represented in binary, and then you call int() on each of them. What > > sort of numbers will you get? > > > > I'm kinda lost her

Re: binascii.b2a vs ord()

2021-01-10 Thread Chris Angelico
On Mon, Jan 11, 2021 at 7:09 AM Dennis Lee Bieber wrote: > > On Sun, 10 Jan 2021 03:29:37 - (UTC), Bischoop > declaimed the following: > > >I wanted to learn about conversion string to Ascii. > >So I learn about binascii.b2a but because the output wasn't what I > >wanted got deeper and found

Re: binascii.b2a vs ord()

2021-01-10 Thread Bischoop
On 2021-01-10, Chris Angelico wrote: > > Trace it through, step by step. You have a series of ASCII values, > represented in binary, and then you call int() on each of them. What > sort of numbers will you get? > I'm kinda lost here about what sort of numbers I get, its class 'int'. > Then look

Pieshell: Combination of the expressiveness of shell pipelines and the power of python iterators

2021-01-10 Thread Egil Möller
Hi! I've written a python package that lets you combine python code and shell pipelines: Pieshell is a Python shell environment that combines the expressiveness of shell pipelines with the prower of python iterators. It can be used in two major ways: As an interactive shell replacing e.g. bas

Re: primitive password cracker

2021-01-10 Thread Bischoop
On 2021-01-08, Stefan Ram wrote: > Bischoop writes: >>What I want to learn is if I need get for example four combinations, so >>how to get in a loop first letter 'a',then another step'a' and again 'a' >>and 'a', to have '' later on'abaa' etc. > > I can only guess what you want, maybe someth

Re: binascii.b2a vs ord()

2021-01-10 Thread Greg Ewing
On 10/01/21 4:29 pm, Bischoop wrote: So what's that binascii The binascii module contains implementations of various ways of encoding *binary* data as ascii text. The one you're using there is a format called "uuencode"; it was frequently used in the days before the WWW when people often sent

Re: dayofyear is not great when going into a new year

2021-01-10 Thread Martin Schöön
Den 2021-01-09 skrev Michael F. Stemper : > > A week is like a piece of string. It has two ends. > The control line of the main sheet traveler on my boat is spliced into an endless loop. http://hem.bredband.net/b262106/pages/controls/index.html I am glad work weeks are not like that :-) /Martin -