Re: Checking network input processing by Python for a multi-threaded server

2019-04-30 Thread dieter
Markus Elfring writes: > ... >> As you say to have created a "multi-threaded TCP server", I assume >> that your server spawns a thread for each TCP connection. > > Is this the software behaviour we usually get from > the class “socketserver.ThreadingMixIn”? Look at the source -- and there look es

RE: Generating generations of files

2019-04-30 Thread Avi Gross via Python-list
TOPIC: how to save, retain and retrieve files as they change. There seem to be several approaches and one proposal here involved using altered file names with a numeric suffix. Can we compare two different concepts? A typographical approach with little or no built-in support like searching for a

python3 html to rtf or doc

2019-04-30 Thread Wen-Chen Hol
Looking for a library or utility that could transform html to rtf in redhat environment. Googled a while still could not find a solution I like. Any suggestions would be much appreciated Thanks in advance Wen With python2.7 and zopyx.convert, was able to do html to rtf export, with some css kept

Re: EmailMessage and RFC 2047

2019-04-30 Thread Peter J. Holzer
On 2019-04-30 17:45:52 +0200, Thomas Jollans wrote: > On 30/04/2019 13.11, Peter J. Holzer wrote: > > https://docs.python.org/3.7/library/email.header.html states: > > > > | This module is part of the legacy (Compat32) email API. In the current > > | API encoding and decoding of headers is handled

Re: Dynamic selection for network service ports?

2019-04-30 Thread Peter J. Holzer
On 2019-04-30 20:37:58 +0200, Markus Elfring wrote: > > In Python, there's a certain amount of support. You can attempt to > > bind to a port, and if you fail, try the next one in a sequence. > > * The zero seems to be also an usable parameter here. Yes. This gives you a random port (just like a

IPython and dumb terminal

2019-04-30 Thread Nobody
Recent versions of IPython ignore $TERM and blindly assume that you're using something similar to xterm. Does it have an option to disable this "feature"? -- https://mail.python.org/mailman/listinfo/python-list

Re: A newbie question about using tix

2019-04-30 Thread MRAB
On 2019-04-30 16:40, David Sumbler wrote: Running Ubuntu 18.04, Python 3.6.7, tkinter 8.6 I am very new to tkinter. The simple program I am writing requires a user file to be selected before it does anything else, so I would like a file selection dialog in the main window as soon as the program

Re: Dynamic selection for network service ports?

2019-04-30 Thread Chris Angelico
On Wed, May 1, 2019 at 4:37 AM Markus Elfring wrote: > > > In Python, there's a certain amount of support. You can attempt to > > bind to a port, and if you fail, try the next one in a sequence. > > * The zero seems to be also an usable parameter here. > Is the system configuration documentation

Re: Dynamic selection for network service ports?

2019-04-30 Thread Markus Elfring
> In Python, there's a certain amount of support. You can attempt to > bind to a port, and if you fail, try the next one in a sequence. * The zero seems to be also an usable parameter here. Is the system configuration documentation unclear about the applied value range for the port allocation?

Re: Dynamic selection for network service ports?

2019-04-30 Thread Chris Angelico
On Wed, May 1, 2019 at 3:51 AM Markus Elfring wrote: > > > * Which challenges from inter-process communication should be taken better > > into > > account for the involved programming interfaces (because of > > multi-threading)? > > I would like to clarify another recurring challenge with netw

Re: Dynamic selection for network service ports?

2019-04-30 Thread Markus Elfring
> * Which challenges from inter-process communication should be taken better > into > account for the involved programming interfaces (because of > multi-threading)? I would like to clarify another recurring challenge with network configuration. A port number should be selected somehow for the

A newbie question about using tix

2019-04-30 Thread David Sumbler
Running Ubuntu 18.04, Python 3.6.7, tkinter 8.6 I am very new to tkinter. The simple program I am writing requires a user file to be selected before it does anything else, so I would like a file selection dialog in the main window as soon as the program launches. Tkinter only has askopenfilename

Re: EmailMessage and RFC 2047

2019-04-30 Thread Thomas Jollans
On 30/04/2019 13.11, Peter J. Holzer wrote: > Hi, > > https://docs.python.org/3.7/library/email.header.html states: > > | This module is part of the legacy (Compat32) email API. In the current > | API encoding and decoding of headers is handled transparently by the > | dictionary-like API of the

Re: Generating generations of files

2019-04-30 Thread Grant Edwards
On 2019-04-30, Cameron Simpson wrote: > On 30Apr2019 11:24, DL Neil wrote: >>On 30/04/19 8:17 AM, MRAB wrote: >>>Why would generation numbers result in a 'ripple' of renaming? >>> >>>You're assuming that "output.rpt.1" comes after "output.rpt.2", but >>>it could just as well come before (generat

Re: Generating generations of files

2019-04-30 Thread Grant Edwards
On 2019-04-29, DL Neil wrote: > On 30/04/19 8:12 AM, Grant Edwards wrote: >> On 2019-04-29, DL Neil wrote: >> >>> Are you aware of a library/utility which will generate and maintain the >>> file names of multiple generations of a file? >> >> Well, the FILES-11 filesystem on VAX/VMS did that aut

EmailMessage and RFC 2047

2019-04-30 Thread Peter J. Holzer
Hi, https://docs.python.org/3.7/library/email.header.html states: | This module is part of the legacy (Compat32) email API. In the current | API encoding and decoding of headers is handled transparently by the | dictionary-like API of the EmailMessage class. I understood this to mean that an Ema

Re: Most "pythonic" syntax to use for an API client library

2019-04-30 Thread Thomas Jollans
On 30/04/2019 09.52, Peter Otten wrote: > Thomas Jollans wrote: > >> On 29/04/2019 09.18, Peter Otten wrote: >>> Jonathan Leroy - Inikup via Python-list wrote: >>> alice.name = "Bob" # __setattr__ >>> >>> del customers[42] # __delitem__ >> >> do you want this sort of thing to update the upstream

drop jython support in mock backport?

2019-04-30 Thread Chris Withers
Hi All, If you need Jython support in the mock backport, please shout now: https://github.com/testing-cabal/mock/issues/453 cheers, Chris -- https://mail.python.org/mailman/listinfo/python-list

Re: Checking network input processing by Python for a multi-threaded server

2019-04-30 Thread Markus Elfring
> Does this mean that the second number in a listing like the above > should be approximatively equal? The expectation (or hope) was that an identical number of record sets would be available for each loop iteration in such a data processing approach by the server. But the reality is different for

Re: Most "pythonic" syntax to use for an API client library

2019-04-30 Thread Peter Otten
Thomas Jollans wrote: > On 29/04/2019 09.18, Peter Otten wrote: >> Jonathan Leroy - Inikup via Python-list wrote: >> >>> Hi all, >>> >>> I'm writing a client library for a REST API. The API endpoints looks >>> like this: /customers >>> /customers/1 >>> /customers/1/update >>> /customers/1/delete

Re: Checking support for efficient appending to mapped data

2019-04-30 Thread Markus Elfring
> The file name for the client script is passed by a parameter to a command > which is repeated by this server in a loop. Additional explanations can be helpful for the shown software situation. > It is evaluated then how often a known record set count was sent. It was actually determined for a