In comp.lang.python, Tobiah wrote:
>> Your subject missed a critical word: vim.
> It's there!
I added it.
> > Run vim. Then ':set' to see what's set different than default. Then,
> > if it is tabstop you want to know about, ':verbose set tabstop?' will
> > tell you where that setting was last a
In comp.lang.python, moi wrote:
> I hope, one day, for those who are interested in Unicode,
> they find a book, publication, ... which will explain
> what is UCS1.
There isn't anything called UCS1. There is a UTF-1, but don't use it.
UTF-8 is better in every way.
https://en.wikipedia.org/wiki/U
In comp.lang.python, lampahome wrote:
> what I tried many times like enter password, but it failed.
> I just want to use ps.stdin.write(password) to send password, but it always
> jump password prompt immediately.
Passwords are frequently read from stderr, not stdin, so that tools can
get a huma
In comp.lang.python, Roy Hann wrote:
> I am designing a mobile application to run on a Raspberry Pi 3 model B.
> It will not have any Internet access. I need to generate a static image
> consisting of a simple arc representing (say) a speedometer or a
> pressure gauge. The image will need to be r
In comp.lang.python, Dennis Lee Bieber wrote:
> pyotr filipivich declaimed the following:
>> "A simple program" to divide the amount of "today's" daylight into 12
>> even '"hours", so that Dawn begins the First hour, the third hour is
>> mid-morning, noon is the middle of the day, the ninth hour
In comp.lang.python, DFS wrote:
> On 10/25/2019 10:57 PM, MRAB wrote:
>> Here's a simple example, based in your code:
>>
>> from email.header import decode_header
>>
>> def test(header, default_encoding='utf-8'):
>> parts = []
>>
>> for data, encoding in decode_header(header):
>>
In comp.lang.python, Paul Rubin wrote:
> Dan Stromberg writes:
>> By an Artifact Repository, I mean something that can version largish
>> binaries that are mostly produced by a build process.
> I'm not familiar with the term "artifact repository" and hadn't heard of
> the ones you mentioned, but
I recently saw a link to an old post on a blog and then started looking
at the newer posts. This one:
https://leancrew.com/all-this/2019/11/the-key-to-sorting-in-python/
discusses ways to deal with useful sorting of movie / television show
titles. Some initial words should be re-ordered for sorti
In comp.lang.python, Peter Otten <__pete...@web.de> wrote:
> Eli the Bearded wrote:
>> But what caught my eye most, as someone relatively new to Python but
>> with long experience in C in Perl, is sorting doesn't take a
s/C in /C and/
Ugh.
>> *comparison* fun
In comp.lang.python, wrote:
> However, one of them immediately returns a 401. I'm using the exact
> same credentials to check this site, as when loggin in.
>
> Also, interestingly, it returns the 401 right away. I tried setting the
> timeout value for a ridiculously long time, but it passes th
In comp.lang.python, wrote, in reply to me:
> "What do you think it is doing?"
> I thought the timeout was waiting for a successful connection.
A successful *connection* and a successful *authentication* are
different things.
$ telnet example.com 80
Trying 255.11.22.123...
Connected to example
In comp.lang.python, wrote:
> On Monday, April 20, 2020 at 5:02:23 PM UTC-4, Eli the Bearded wrote:
> > For an example, back to telnet again.
> >
> > $ telnet example.com 80
> > Trying 255.11.22.123...
> > Connected to example.com
> > Escape character is &
This just arrived at my newserver:
Path:
reader2.panix.com!panix!goblin2!goblin.stu.neva.ru!news.unit0.net!2.eu.feeder.erje.net!4.us.feeder.erje.net!feeder.erje.net!xmission!csiph.com!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: Eli the Bearded <*@eli.users.panix.com> (E
In comp.lang.python, Paul Rubin wrote:
> I don't know if this was the explicit motivation for PEP 8, but it
> has always seemed valid to me:
>
> https://en.wikipedia.org/wiki/Camel_case#Readability_studies
There are three things cited there. One is a NYTimes story from 2009
"Against Camel Case"
In comp.lang.python, Paul Rubin wrote:
> Eli the Bearded <*@eli.users.panix.com> writes:
>> One of those is easier to "grep" for than the other.
> grep -i might help.
Or might not, if I want case sensitivity in the rest of my RE.
Elijah
--
can, but doesn
In comp.lang.python, Loris Bennett wrote:
> Manfred Lotz writes:
> > My idea was to do
> >
> > - os.scandir and for each file
> >- check if a file is a text file
^^
> >- if it is not a text file skip that file
> >- change the string as often as it
In comp.lang.python, Chris Angelico wrote:
> Eli the Bearded <*@eli.users.panix.com> wrote:
>> Read first N lines of a file. If all parse as valid UTF-8, consider it text.
>> That's probably the rough method file(1) and Perl's -T use. (In
>> particular a
In comp.lang.python, Chris Angelico wrote:
> There are multiple definitions for "day of year", depending on how you
> want to handle certain oddities. The simplest is to identify Jan 1st
> as 1, Jan 2nd as 2, etc, to Dec 31st as either 365 or 366; but some
> libraries will define the year as star
In comp.lang.python, Mats Wichmann wrote:
> "workweeks" has always been fun, ISO standard or not, there's been a
> variation for ages since people don't seem to always follow ISO for
> that. I spent over a decade at a place that lived and died by their
> WorkWeek references ("due WW22" or the
about this on
inline@perl.org, but things seem pretty dead over there).
Is anyone actually using any of this stuff?
Thanks for any feedback,
Eli
[*] Obviously this is a golden ideal. We're willing to make compromises
to get things to work.
--
http://mail.python.org/mailman/listinfo/python-list
Sybren Stuvel wrote:
> Eli Stevens (WG.c) enlightened us with:
>
>>I've bumped into some snags with pyperl (can't import perl2.so? But
>>it's right there in site-packages/ !), and I'm wondering if it's bitrot
>>or a config error on my end.
&
In comp.lang.perl.misc, Willem wrote:
> In Perl, it would be applicable. You see, in Perl, you can call a function
> in the replacement of the regex substitution, which can then look up the
> html entity and return the wanted unicode literal.
A function? I'd use a hash.
> I think you can do th
In comp.lang.python, Gilmeh Serda wrote:
> Python 3.12.6 (main, Sep 8 2024, 13:18:56) [GCC 14.2.1 20240805] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> help('modules')
>
> Please wait a moment while I gather a list of all available modules...
>
> Ass
101 - 123 of 123 matches
Mail list logo