Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Keith Thompson via Python-list
2qdxy4rzwzuui...@potatochowder.com writes:
[...]
> In Common Lisp, you can write integers as #nnR[digits], where nn is the
> decimal representation of the base (possibly without a leading zero),
> the # and the R are literal characters, and the digits are written in
> the intended base.  So the input #16f is read as the integer 65535.

Typo: You meant #16R, not #16f.

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Bug in 3.12.5

2024-09-20 Thread Keith Thompson via Python-list
Martin Nilsson  writes:
> The attached program doesn’t work in 3.12.5, but in 3.9 it worked.

Attachments don't show up either on the mailing list or the newsgroup.

Try again with the program inline in your post (if it's not too long).

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Process.start

2024-09-03 Thread Keith Thompson via Python-list
r...@zedat.fu-berlin.de (Stefan Ram) writes:
> marc nicole  wrote or quoted:
>>Thanks for the reply, Here's the code I tested for the debug:
>>print("executed")
>>but neither "Hello World" or "Executed" are displayed in the console which
>
>   It shouldn't spit out "Executed" 'cause there's a lowercase
>   "e" in the mix. Talk about sweating the small stuff! 
>
>   That 'if __name__ == "__main__"' jazz? It's barking up the wrong
>   tree here, just muddying the waters. I'd 86 that clause for now.
>
>   In your start() function call, you're rockin' "do_something()",
>   but the actual function's defined as "do_Something()" with a
>   capital "S". Python's all about that case sensitivity.
>
>   Dropping that "exit(0)" bomb right after firing up the process?
>   That's like bailing on a gnarly wave before you even catch it.
>   It might pull the plug on the main process before the kid process
>   has a chance to strut its stuff.
>
>   Those "ghello" and "fhello" functions? They're just chillin'
>   there, not pulling their weight!
[...]

Stefan, you've recently started using a lot of slang in your posts.
I suggest that this is counterproductive.  For me, it makes your
posts more difficult to read.  I can imagine that it would be even
more difficult for readers whose first language is not English.

You also indent your own new text, which is exactly the opposite of
common Usenet conventions.  (You've been doing this for a long time.)

Please consider prioritizing your readers' convenience over whatever
benefit you derive from your unconventional posting style.

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Keith Thompson via Python-list
Ethan Furman  writes:
> On 8/30/24 15:28, dn via Python-list wrote:
>> The OP was @Gilmeh Serda (from an invalid email address). That appears in 
>> the email thread
>>
>> @Stefan Ram has had two contributions quoted, but no such original-message 
>> has appeared in the thread.
>
> I can't speak about the archives, but I can say that Stefan's posts
> are discarded automatically since they are opposed to their words
> showing up on the list.

I'm posting this on the comp.lang.python Usenet newsgroup.

Stefan Ram's posts to comp.lang.python include several header lines,
including "X-No-Archive: Yes".  I presume the software that copies
comp.lang.python posts to python-list pays attention to some of those
header lines.  (I personally think it's silly to impose this kind of
restriction.  The Usenet group and the mailing list are both public.)

Lawrence D'Oliveiro adds the string "(Posting On Python-List
Prohibited)" to the subject on his articles, for reasons he has
declined to discuss.  I don't know whether the software recognizes
that.

Can someone who manages the list software discuss the exact
rules?  I suggest that those rules should be documented on
.

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: new here

2024-08-25 Thread Keith Thompson via Python-list
Lawrence D'Oliveiro  writes:
> On 23 Aug 2024 03:43:15 GMT, rbowman wrote:
>> I am confused by the cross-over to Python-list. I only read/post to
>> comp.lang.python. Is that echoed to Python-list or vice versa?
>
> This has been happening, without asking our permission, for years.

The comp.lang.python newsgroup and the Python-list mailing list
are bidirectionally gatewayed.  Both are public.  Why is that a
problem for you?  Whose permission do you think is needed?

https://mail.python.org/mailman/listinfo/python-list

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: bring back nntp library to python3

2024-08-14 Thread Keith Thompson via Python-list
"test"  writes:
> why is the nntp library deprecated in recent python versions? they
> clearly lost touch

nntplib is not vanishing into thin air.  It's just not going to be part
of a default Python installation.  (It's not there in Python 3.13.0rc1.)

In my opinion the use of the word "deprecated" is misleading.

$ python3
Python 3.12.4 (main, Jun 27 2024, 13:53:59) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nntplib
:1: DeprecationWarning: 'nntplib' is deprecated and slated for removal 
in Python 3.13
>>>
$ 



The rationale for removing nntplib and other modules from the default
installation is explained in PEP 0594 .

"""
Back in the early days of Python, the interpreter came with a large
set of useful modules. This was often referred to as “batteries
included” philosophy and was one of the cornerstones to Python’s success
story. Users didn’t have to figure out how to download and install
separate packages in order to write a simple web server or parse email.

Times have changed. With the introduction of PyPI (née Cheeseshop),
setuptools, and later pip, it became simple and straightforward to
download and install packages. Nowadays Python has a rich and vibrant
ecosystem of third-party packages. It’s pretty much standard to either
install packages from PyPI or use one of the many Python or Linux
distributions.

[...]

The nntplib module implements the client side of the Network News
Transfer Protocol (nntp). News groups used to be a dominant platform for
online discussions. Over the last two decades, news has been slowly but
steadily replaced with mailing lists and web-based discussion
platforms. Twisted is also planning to deprecate NNTP support and pynntp
hasn’t seen any activity since 2014. This is a good indicator that the
public interest in NNTP support is declining.

The nntplib tests have been the cause of additional work in the recent
past. Python only contains the client side of NNTP, so the tests connect
to external news servers. The servers are sometimes unavailable, too
slow, or do not work correctly over IPv6. The situation causes flaky
test runs on buildbots.
"""

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Keith Thompson via Python-list
Thomas Passin  writes:
> On 4/8/2024 2:01 PM, Dietmar Schwertberger via Python-list wrote:
>> To be sure, you can always go the the directory of the Python
>> interpreter and open a cmd window there.
>> (By entering 'cmd' into the explorer address bar.)
>> Then enter 'python.exe -mpip install paramiko'.
>> This way you can be sure that you're not running a pip.exe that
>> belongs to another Python interpreter.
>
> This is not quite right. The best name of the Python executable may or
> may not be "python.exe".  The command line needs a space after the
> "-m":

No, the option and its argument can be bundled.  "-mpip" is equivalent
to "-m pip".  (The space might make it clearer for human readers.)

[...]

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list