Op 2018-07-29, Terry Reedy schreef :
> multiprocessing module uses 'spawn' rather than 'fork' on Windows and it
> has an option to use 'spawn' even on *nix. I presume the latter refers
> to posix_spawn. You might want to check the multiprocessing code to see
> what *it* is doing 'under the co
On 7/29/2018 10:28 AM, Jan Claeys wrote:
On Fri, 2018-07-27 at 19:13 +0200, Barath Aron wrote:
I intend to cross-compile Python v3.6.6 to Threos ( https://threos.io
) operating system. Threos is supports a quite large set from
POSIX and C89/C99. Unfortunately, Threos lacks fork(2), but
provide
On Fri, 2018-07-27 at 19:13 +0200, Barath Aron wrote:
> I intend to cross-compile Python v3.6.6 to Threos ( https://threos.io
> ) operating system. Threos is supports a quite large set from
> POSIX and C89/C99. Unfortunately, Threos lacks fork(2), but
> provides posix_spawn(3) instead. I already
On Wed, 04 Jul 2018 23:25:14 +, Adrian Taylor wrote:
> G'day All,
>
> I have just discovered Python and thanks to a script by Ethan I can read
> a foxpro database and change the required values.
> However my next big step is to be able to use this python feature within
> a website.
>
> Basic
Adrian Taylor writes:
> I have just discovered Python […]
Welcome. The Python community has a starter page for beginners at
https://wiki.python.org/moin/BeginnersGuide>.
> However my next big step is to be able to use this python feature
> within a website.
Good. Be aware, though, that running
On Tue, 12 Sep 2017 20:22:30 -0700, Rick Johnson wrote:
> Gregory Ewing wrote:
>> Rick Johnson wrote:
>> > Heck, when is the last time GvR participated in any discussion
>> > outside the hermetic bubble of Python-Dev or Python-Ideas?
>>
>> I'd hardly call python-ideas "hermetic". Anyone is free t
Gregory Ewing wrote:
> Rick Johnson wrote:
> > Heck, when is the last time GvR participated in any
> > discussion outside the hermetic bubble of Python-Dev or
> > Python-Ideas?
>
> I'd hardly call python-ideas "hermetic". Anyone is free to
> post there and participate in discussions. Python-dev i
Steve D'Aprano writes:
> Guido has ruled that Python 4 will not be a major compatibility break
Looking forward to Python 5 then ;-).
--
https://mail.python.org/mailman/listinfo/python-list
On 09/10/2017 09:38 PM, Dennis Lee Bieber wrote:
> It ain't dead yet... Fujitsu still has a COBOL compiler/IDE for Windows
> and/or .NET (and maybe even other systems)... (I should see if Win10 can
> install the Fujitsu COBOL 4 that came with my Y2K era text books... WinXP
> could not install
On Mon, Sep 11, 2017 at 5:34 PM, Steven D'Aprano
wrote:
>> By the way, "onerous" is an adjective, not a noun.
>
> "Onerosity" or "onertude" would be the correct grammatical forms for the
> noun.
More likely, "onus" was intended.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 11 Sep 2017 00:07:15 -0600, Ian Kelly wrote:
> On Sun, Sep 10, 2017 at 10:06 AM, Rick Johnson
> wrote:
>> Ian wrote:
>>> Rick Johnson wrote:
>>> > Ned Batchelder wrote:
>>> > > Leam Hall wrote:
>>> > > >
>>> > > > I've read comments about Python 3 moving from the Zen of Python.
>>> > > >
On Sun, Sep 10, 2017 at 10:06 AM, Rick Johnson
wrote:
> Ian wrote:
>> Rick Johnson wrote:
>> > Ned Batchelder wrote:
>> > > Leam Hall wrote:
>> > > >
>> > > > I've read comments about Python 3 moving from the Zen of
>> > > > Python. I'm a "plain and simple" person myself.
>> > > > Complexity to su
On 09/10/2017 09:20 AM, Marko Rauhamaa wrote:
> Been there. I'm afraid this is not a joke:
>
> https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition>
Wow that's pretty amazing! Thanks for sharing that link.
> Python, COBOL for the next generation.
I guess we'll have to see. CO
Rick Johnson wrote:
Heck, when is the last time GvR participated in any
discussion outside the hermetic bubble of Python-Dev or
Python-Ideas?
I'd hardly call python-ideas "hermetic". Anyone is free to
post there and participate in discussions.
Python-dev is open to anyone too, the only differe
Ian wrote:
> Rick Johnson wrote:
> > Ned Batchelder wrote:
> > > Leam Hall wrote:
> > > >
> > > > I've read comments about Python 3 moving from the Zen of
> > > > Python. I'm a "plain and simple" person myself.
> > > > Complexity to support what CompSci folks want, which was
> > > > used to descri
Steve D'Aprano wrote:
> Rick Johnson wrote:
> > Marko Rauhamaa wrote:
> > >
> > > The risk to Python will be whether the occasion is
> > > exploited by fanboys of competing programming languages.
> > > The migration from Python 2 might be to something else
> > > than Python 3 in some circles.
> >
Ian Kelly :
> 2. Type hints are completely optional, so this does not support the
> claim that Python 3 added complexity that is counter-productive to
> "simple" users. If you want to keep your program simple, you can: just
> don't use them.
We'll see about that. I'm afraid type hints will become
On Sat, Sep 9, 2017 at 9:26 PM, Rick Johnson
wrote:
> On Friday, September 8, 2017 at 8:57:56 AM UTC-5, Ned Batchelder wrote:
>> On 9/8/17 6:12 AM, Leam Hall wrote:
>> > I've read comments about Python 3 moving from the Zen of Python. I'm a
>> > "plain and simple" person myself. Complexity to supp
On Sun, 10 Sep 2017 01:08 pm, Rick Johnson wrote:
> Marko Rauhamaa wrote:
>> The risk to Python will be whether the occasion is
>> exploited by fanboys of competing programming languages.
>> The migration from Python 2 might be to something else than
>> Python 3 in some circles.
>
> That has been
On Sun, 10 Sep 2017 02:04 pm, Rick Johnson wrote:
> Can you imagine the rage that someone will feel after
> climbing up the migration hill from Python2 to Python3, and
> then suddenly, hearing the announcement that it's now time
> to migrate to Python4?
Guido has ruled that Python 4 will not be a
Steve D'Aprano wrote:
> Chris Angelico wrote:
> But some of us can't resist the temptation to evangelise
> about Python 3 :-)
An error that did not pass silently. Even when
explicitly requested.
> > Also, be completely honest here: how much work would it
> > take for you to move your "millions o
On Friday, September 8, 2017 at 10:42:44 AM UTC-5, Steve D'Aprano wrote:
> To be perfectly rational, we *should* consider at least
> three alternatives:
>
> (1) Stick with Python 2 and pay for support;
>
> (2) Migrate to Python 3;
>
> (3) Re-implement in some other language;
>
> and make a dis
On Friday, September 8, 2017 at 9:41:55 AM UTC-5, Chris Angelico wrote:
> False dichotomy. [Python3 was] not a total rewrite, but it
> fixes certain long-standing issues. Compatibility had to be
> broken in order to change certain behaviours.
Namely: maintenance programmers who dared to take a bre
On Friday, September 8, 2017 at 9:22:52 AM UTC-5, leam hall wrote:
> To say Python 2 is old is true.
Old? Yes. Ancient? BS!
> What does it matter though? Unless Python 3 provides a
> business value for spending lots of time and money to
> change then "old" doesn't matter.
If the code performs t
On Friday, September 8, 2017 at 8:57:56 AM UTC-5, Ned Batchelder wrote:
> On 9/8/17 6:12 AM, Leam Hall wrote:
> > I've read comments about Python 3 moving from the Zen of Python. I'm a
> > "plain and simple" person myself. Complexity to support what CompSci
> > folks want, which was used to describ
Chris Angelico wrote:
> And the sky is going to fall on Chicken Little's head, any
> day now. Let's see. You can port your code from Python 2.7
> to Python 3.6 by running a script and then checking the
> results for bytes/text problems.
This is an argument i find interesting: First, the Python3
j
Marko Rauhamaa wrote:
> The risk to Python will be whether the occasion is
> exploited by fanboys of competing programming languages.
> The migration from Python 2 might be to something else than
> Python 3 in some circles.
That has been my observation as well. Python-dev and Python-
ideas have be
On 9/8/2017 12:27 PM, Steve D'Aprano wrote:
On Sat, 9 Sep 2017 12:23 am, Leam Hall wrote:
If Python 3 is not a total re-write then why break
compatibility?
To avoid building up excess cruft in the language.
To fix design mistakes which cannot be fixed without a backwards-incompatible
change
On Fri, Sep 8, 2017 at 6:35 PM, Christopher Reimer <
christopher_rei...@icloud.com> wrote:
> > On Sep 8, 2017, at 6:57 AM, Ned Batchelder
> wrote:
> >
> > What is it that CompSci folks want that developers don't
> > want, that ruined Python 3?
>
> Long-winded debates about obscure language featur
> On Sep 8, 2017, at 6:57 AM, Ned Batchelder wrote:
>
> What is it that CompSci folks want that developers don't
> want, that ruined Python 3?
Long-winded debates about obscure language features that left the layman
programmers in the bit bucket about 50+ comments ago.
While some of this can b
Op 2017-09-08, Stefan Ram schreef :
> OTOH, there are those killjoys who complain about
> "too many parentheses" in programs written in the
> "simple language".
Which is clearly nonsense since it is easy to show that any working
program in said simple language contains *precisely enough* par
On Friday, September 8, 2017 at 5:19:36 PM UTC+1, Steve D'Aprano wrote:
> On Sat, 9 Sep 2017 12:41 am, Chris Angelico wrote:
>
> >> I ran 2to3 on some code that worked under 2.6.6. and 3.6.2. 2to3 broke it
> >> for both versions and it was a fairly trivial script.
> >
> > Show the code that it br
On Friday, September 8, 2017 at 11:12:50 AM UTC+1, Leam Hall wrote:
>
> I've read comments about Python 3 moving from the Zen of Python. I'm a
> "plain and simple" person myself. Complexity to support what CompSci
> folks want, which was used to describe some of the Python 3 changes,
> doesn't
On 2017-09-08, Steve D'Aprano wrote:
> One thing which is notoriously tricky to migrate is mixed
> bytes/Latin1 text using Python 2 strings, say you're manipulating
> file formats that mix text with binary bytes. These mixed
> binary/text files are sometimes badly suited to the new
> Unicode/byte
On Sat, Sep 9, 2017 at 2:19 AM, Steve D'Aprano
wrote:
> On Sat, 9 Sep 2017 12:41 am, Chris Angelico wrote:
>
>>> I ran 2to3 on some code that worked under 2.6.6. and 3.6.2. 2to3 broke it
>>> for both versions and it was a fairly trivial script.
>>
>> Show the code that it broke? I've never seen th
On Sat, 9 Sep 2017 12:23 am, Leam Hall wrote:
> Various responses in no particular order:
>
> On 09/08/2017 09:57 AM, Ned Batchelder wrote:
>> I've heard a lot of FUD about the Python 3 transition, but this one is
>> new to me. What is it that CompSci folks want that developers don't
>> want, th
On 9/8/2017 6:12 AM, Leam Hall wrote:
I've read comments about Python 3 moving from the Zen of Python.
Comments about Python 3 range from factual to opinionated to fake.
I'm a "plain and simple" person myself.
Many of the changes in Python3 were simplifications -- removing a
semi-deprecat
On Sat, 9 Sep 2017 12:41 am, Chris Angelico wrote:
>> I ran 2to3 on some code that worked under 2.6.6. and 3.6.2. 2to3 broke it
>> for both versions and it was a fairly trivial script.
>
> Show the code that it broke? I've never seen this, unless it's
> something like "now you need to install thi
On Sat, Sep 9, 2017 at 1:42 AM, Steve D'Aprano
wrote:
> ... because this is
> really just an excuse to do what they've wanted to do all along: use a
> different language.
>
> Or because somebody in management heard from somebody on LinkedIn that they
> heard on Facebook about something they read i
On Fri, 8 Sep 2017 10:51 pm, Chris Angelico wrote:
> On Fri, Sep 8, 2017 at 10:42 PM, Marko Rauhamaa wrote:
>> Chris Angelico :
>>> But as others have said, upgrading to 3.4+ is not as hard as many
>>> people fear, and your code generally improves as a result
>>
>> That's somewhat irrelevant. Poi
On Fri, 8 Sep 2017 10:50 pm, Larry Martell wrote:
> If python 2 ever
> is not available I guess then they will have to find the time and
> money.
Python 2 is open source, it will always be available so long as we still have
computers capable of running present day software.
(Presumably by the y
On 9/8/17 10:23 AM, Leam Hall wrote:
> On 09/08/2017 09:57 AM, Ned Batchelder wrote:
>> I've heard a lot of FUD about the Python 3 transition, but this one is
>> new to me. What is it that CompSci folks want that developers don't
>> want, that ruined Python 3?
>
>
> It's not FUD if it's true. Cal
On Fri, 8 Sep 2017 08:40 pm, Marko Rauhamaa wrote:
> Leam Hall :
>> However, those millions of servers are running Python 2.6 and a
>> smaller number running 2.7. At least in the US market since Red Hat
>> Enterprise Linux and its derivatives run 2.6.6 (RHEL 6) or 2.7.5 (RHEL
>> 7). Not sure what
On Sat, Sep 9, 2017 at 12:23 AM, Leam Hall wrote:
> Various responses in no particular order:
>
> On 09/08/2017 09:57 AM, Ned Batchelder wrote:
>>
>> I've heard a lot of FUD about the Python 3 transition, but this one is
>> new to me. What is it that CompSci folks want that developers don't
>> wa
Various responses in no particular order:
On 09/08/2017 09:57 AM, Ned Batchelder wrote:
I've heard a lot of FUD about the Python 3 transition, but this one is
new to me. What is it that CompSci folks want that developers don't
want, that ruined Python 3?
It's not FUD if it's true. Calling it
On 9/8/17 6:12 AM, Leam Hall wrote:
> I've read comments about Python 3 moving from the Zen of Python. I'm a
> "plain and simple" person myself. Complexity to support what CompSci
> folks want, which was used to describe some of the Python 3 changes,
> doesn't help me get work done.
I've heard a
On Fri, Sep 8, 2017 at 10:42 PM, Marko Rauhamaa wrote:
> Chris Angelico :
>> But as others have said, upgrading to 3.4+ is not as hard as many
>> people fear, and your code generally improves as a result
>
> That's somewhat irrelevant. Point is, Python 2 will quickly become a
> pariah in many corp
On Fri, Sep 8, 2017 at 8:42 AM, Marko Rauhamaa wrote:
> Chris Angelico :
>> But as others have said, upgrading to 3.4+ is not as hard as many
>> people fear, and your code generally improves as a result
>
> That's somewhat irrelevant. Point is, Python 2 will quickly become a
> pariah in many corpo
Chris Angelico :
> But as others have said, upgrading to 3.4+ is not as hard as many
> people fear, and your code generally improves as a result
That's somewhat irrelevant. Point is, Python 2 will quickly become a
pariah in many corporations during or after 2018, and we are going to
see emergency
On Fri, Sep 8, 2017 at 8:12 PM, Leam Hall wrote:
> However, those millions of servers are running Python 2.6 and a smaller
> number running 2.7. At least in the US market since Red Hat Enterprise Linux
> and its derivatives run 2.6.6 (RHEL 6) or 2.7.5 (RHEL 7). Not sure what
> Python SuSE uses but
On 09/08/2017 06:40 AM, Marko Rauhamaa wrote:
Leam Hall :
However, those millions of servers are running Python 2.6 and a
smaller number running 2.7. At least in the US market since Red Hat
Enterprise Linux and its derivatives run 2.6.6 (RHEL 6) or 2.7.5 (RHEL
7). Not sure what Python SuSE uses
Leam Hall :
> However, those millions of servers are running Python 2.6 and a
> smaller number running 2.7. At least in the US market since Red Hat
> Enterprise Linux and its derivatives run 2.6.6 (RHEL 6) or 2.7.5 (RHEL
> 7). Not sure what Python SuSE uses but they seem to have a fairly
> large Eu
Leam Hall writes:
> I've read comments about Python 3 moving from the Zen of Python.
For what it's worth: I have done successful conversions of numerous code
bases from Python 2 to Python 3, and that characterisation does not fit
at all. The resulting code base is much more Pythonic.
> I'm a "p
On Thursday 19 Jan 2017 20:08 CET, Cecil Westerhof wrote:
> I am writing a python program to start the programs that need to be
> started after logging in.
I published what I have until now at:
https://github.com/CecilWesterhof/PythonScripts/blob/master/startPrograms.py
I do not mind some fe
In <878tq6hi0s@equus.decebal.nl> Cecil Westerhof writes:
> > I think using your window manager's built-in facilities for starting
> > programs would be better. Why are you using Python instead?
> Because when you use the window managers builtin facilities then all
> programs will be started
On Friday 20 Jan 2017 00:36 CET, Cecil Westerhof wrote:
> I wrote a function for switching to the correct virtual desktop and
> starting all the commands. I am also using with now:
> def do_desktop(desktop, commands, seconds_to_wait = 10):
> desktop_command = ('wmctrl -s ' + desktop).split()
> che
On Friday 20 Jan 2017 01:24 CET, MRAB wrote:
>> I wrote a function for switching to the correct virtual desktop and
>> starting all the commands. I am also using with now:
>> def do_desktop(desktop, commands, seconds_to_wait = 10):
>> desktop_command = ('wmctrl -s ' + desktop).split()
>> check_cal
On 2017-01-19 23:36, Cecil Westerhof wrote:
On Thursday 19 Jan 2017 22:21 CET, Cecil Westerhof wrote:
On Thursday 19 Jan 2017 21:12 CET, MRAB wrote:
On 2017-01-19 19:08, Cecil Westerhof wrote:
I am writing a python program to start the programs that need to
be started after logging in.
I ha
On Thursday 19 Jan 2017 22:21 CET, Cecil Westerhof wrote:
> On Thursday 19 Jan 2017 21:12 CET, MRAB wrote:
>
>> On 2017-01-19 19:08, Cecil Westerhof wrote:
>>> I am writing a python program to start the programs that need to
>>> be started after logging in.
>>>
>>> I have the following imports:
>>
On Thursday 19 Jan 2017 21:12 CET, MRAB wrote:
> On 2017-01-19 19:08, Cecil Westerhof wrote:
>> I am writing a python program to start the programs that need to be
>> started after logging in.
>>
>> I have the following imports:
>> from subprocess import check_call, Popen, STDOUT
>> from time
On Thursday 19 Jan 2017 20:29 CET, John Gordon wrote:
> In <878tq6amvj@equus.decebal.nl> Cecil Westerhof
> writes:
>
>> I am writing a python program to start the programs that need to be
>> started after logging in.
>
>> Is this a good way to do things, or could I do it in a better way?
>
>
On 2017-01-19 19:08, Cecil Westerhof wrote:
I am writing a python program to start the programs that need to be
started after logging in.
I have the following imports:
from subprocess import check_call, Popen, STDOUT
from time import sleep, strftime
And use the following code:
In <878tq6amvj@equus.decebal.nl> Cecil Westerhof writes:
> I am writing a python program to start the programs that need to be
> started after logging in.
> Is this a good way to do things, or could I do it in a better way?
I think using your window manager's built-in facilities for startin
I don't understand what you're trying to do. But I think you have fixed
your problem:
Hongyi Zhao writes:
> It seems the above code will do the job for me.
If I understand correctly this sentence, you now have a satisfactory
solution. Good!
--
\ “A man must consider what a rich realm
On Mon, 28 Mar 2016 21:29:48 +1100, Ben Finney wrote:
>> If I want to use python heredoc to substitute this external file for
>> the above codes. Is this possible?
>
> What do you mean by “Python heredoc”? What Python feature are you
> referring to?
I find the following methods currently:
impor
Hongyi Zhao writes:
> If I want to use python heredoc to substitute this external file for
> the above codes. Is this possible?
What do you mean by “Python heredoc”? What Python feature are you
referring to?
--
\ “Anyone who puts a small gloss on [a] fundamental technology, |
`\
I'm not a developer, i always use this free online pdf to word converter
http://www.online-code.net/pdf-to-word.html to convert pdf to ms doc online.
--
https://mail.python.org/mailman/listinfo/python-list
Op Monday 1 Jun 2015 22:42 CEST schreef Laura Creighton:
> In a message of Mon, 01 Jun 2015 21:57:05 +0200, Cecil Westerhof
> writes:
>>> Truly? That's (very close to) 7 inch by 9 inch, 177.8 mm x 228.6
>>> mm and 7 by 9 is what pre-metric Britian called 'Small Post
>>> Quarto'. I wonder if this m
In a message of Mon, 01 Jun 2015 21:57:05 +0200, Cecil Westerhof writes:
>> Truly? That's (very close to) 7 inch by 9 inch, 177.8 mm x 228.6 mm
>> and 7 by 9 is what pre-metric Britian called 'Small Post Quarto'.
>> I wonder if this merely a coincidence, or does some software really
>> still like
Op Monday 1 Jun 2015 20:42 CEST schreef Laura Creighton:
> In a message of Mon, 01 Jun 2015 18:44:01 +0200, Cecil Westerhof
> writes:
>> Op Monday 1 Jun 2015 17:44 CEST schreef Laura Creighton:
>>
>>> In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof
>>> writes:
Also the funny
In a message of Mon, 01 Jun 2015 18:44:01 +0200, Cecil Westerhof writes:
>Op Monday 1 Jun 2015 17:44 CEST schreef Laura Creighton:
>
>> In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof
>> writes:
>>> Also the funny thing is that I first scanned it. But it gave
>>> several problems.
Op Monday 1 Jun 2015 17:44 CEST schreef Laura Creighton:
> In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof
> writes:
>> Also the funny thing is that I first scanned it. But it gave
>> several problems. One of them was that it is a format between A4
>> and A5. Taking pictures is fa
In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof writes:
>Also the funny thing is that I first scanned it. But it gave several
>problems. One of them was that it is a format between A4 and A5.
>Taking pictures is faster and gives better results.
>
>--
>Cecil Westerhof
>Senior Softw
On 2015-05-31, Cecil Westerhof wrote:
> I help someone that has problems reading. For this I take photo's of
> text, use convert from ImageMagick to make a good contrast (original
> paper is grey) and use lpr to print it a little bigger.
>
> Normally I would implement this in Bash, but I thought
Op Monday 1 Jun 2015 11:07 CEST schreef alister:
> On Mon, 01 Jun 2015 11:06:33 +0300, Jussi Piitulainen wrote:
>
>> Larry Hudson writes:
>>
>>> On 05/31/2015 05:42 AM, Cecil Westerhof wrote:
I help someone that has problems reading. For this I take photo's
of text, use convert from Imag
Op Monday 1 Jun 2015 02:53 CEST schreef Dennis Lee Bieber:
> On Sun, 31 May 2015 19:06:40 +0200, Cecil Westerhof
> declaimed the following:
>
>>
>> By the way: because of the lpr my script only works on Linux (and
>> probably Unix and Apple). Can I rewrite it in such a way that it
>> also works w
Cecil Westerhof :
> I am amazed about the technical progress: I did not know it was
> possible to take a screen-shot from a booklet.
Well, take a look at this video that demonstrates the possibilities of
the technology:
https://www.youtube.com/watch?v=MOXQo7nURs0
Marko
--
https://mail.pyth
Op Monday 1 Jun 2015 09:56 CEST schreef Larry Hudson:
> On 05/31/2015 05:42 AM, Cecil Westerhof wrote:
>> I help someone that has problems reading. For this I take photo's
>> of text, use convert from ImageMagick to make a good contrast
>> (original paper is grey) and use lpr to print it a little
On Mon, 01 Jun 2015 11:06:33 +0300, Jussi Piitulainen wrote:
> Larry Hudson writes:
>
>> On 05/31/2015 05:42 AM, Cecil Westerhof wrote:
>>> I help someone that has problems reading. For this I take photo's of
>>> text, use convert from ImageMagick to make a good contrast (original
>>> paper is gr
Larry Hudson writes:
> On 05/31/2015 05:42 AM, Cecil Westerhof wrote:
>> I help someone that has problems reading. For this I take photo's of
>> text, use convert from ImageMagick to make a good contrast (original
>> paper is grey) and use lpr to print it a little bigger.
>>
> I''m wondering why y
On 05/31/2015 05:42 AM, Cecil Westerhof wrote:
I help someone that has problems reading. For this I take photo's of
text, use convert from ImageMagick to make a good contrast (original
paper is grey) and use lpr to print it a little bigger.
I''m wondering why you bother to take a photo, which th
On Sun, 31 May 2015 19:06:40 +0200, Cecil Westerhof wrote:
>>
>>By the way: because of the lpr my script only works on Linux (and
>>probably Unix and Apple). Can I rewrite it in such a way that it also
>>works with Windows? Someone else has to test it then, because I do not
>>have a Windows comput
Just for funsies, I did a slight rewrite using my scription[1] library:
--8<--
#!/usr/bin/python3
"""
Convert scanned images: contrast is increased, size is enlarged,
format is changed from jpeg to png.
"""
from __future
On 31May2015 11:05, Dennis Lee Bieber wrote:
I'll concede submitting jobs to a print queue probably does work easier
this way, but I'd have to ask if the "convert" could be performed using
actual Python -- the old Python Imaging Library -- PIL -- for example
(superseded, I think, by pill
Op Sunday 31 May 2015 17:05 CEST schreef Dennis Lee Bieber:
> On Sun, 31 May 2015 14:42:02 +0200, Cecil Westerhof
> declaimed the following:
>
>> I help someone that has problems reading. For this I take photo's
>> of text, use convert from ImageMagick to make a good contrast
>> (original paper i
Op Sunday 31 May 2015 16:02 CEST schreef Alain Ketterlin:
> Cecil Westerhof writes:
>
>> I help someone that has problems reading. For this I take photo's
>> of text, use convert from ImageMagick to make a good contrast
>> (original paper is grey) and use lpr to print it a little bigger.
>
>> imp
Op Sunday 31 May 2015 16:14 CEST schreef Cem Karan:
>> I help someone that has problems reading. For this I take photo's
>> of text, use convert from ImageMagick to make a good contrast
>> (original paper is grey) and use lpr to print it a little bigger.
>>
>> Normally I would implement this in Ba
> I help someone that has problems reading. For this I take photo's of
> text, use convert from ImageMagick to make a good contrast (original
> paper is grey) and use lpr to print it a little bigger.
>
> Normally I would implement this in Bash, but I thought it a good idea
> to implement it in Pyt
Cecil Westerhof writes:
> I help someone that has problems reading. For this I take photo's of
> text, use convert from ImageMagick to make a good contrast (original
> paper is grey) and use lpr to print it a little bigger.
> import glob
> import subprocess
>
> treshold = 66
> co
On Mar 23, 2015, at 06:36, Steven D'Aprano wrote:
> http://www.keacher.com/1216/how-i-introduced-a-27-year-old-computer-to-the-
> web/
I saw it too, on Hacker News ;-) Awesome. I love(d) my Classic Mac but I
couldn't stand the slow network connection, I think.
Also, creative use of Flask and B
On Fri, 21 Nov 2014 15:07:39 -0500, Denis Beauregard
wrote:
>On Fri, 21 Nov 2014 14:35:14 -0500, Dennis Lee Bieber
> wrote in soc.genealogy.computing:
>
>>On Fri, 21 Nov 2014 10:35:19 +0200, Steve Hayes
>>declaimed the following:
>>
>>
>>>This Python script does it for me.
>>>
>>>year = input("
On Sat, 22 Nov 2014 06:51:15 +1100, Paul Blair
wrote:
>On 22-Nov-2014 6:35 am, Dennis Lee Bieber wrote:
>> On Fri, 21 Nov 2014 10:35:19 +0200, Steve Hayes
>> declaimed the following:
>>
>>
>>> This Python script does it for me.
>>>
>>> year = input("Year: ")
>>> age = input("Age: ")
>>> born = y
On Sat, Nov 22, 2014 at 4:07 PM, Steve Hayes wrote:
> On Fri, 21 Nov 2014 14:50:36 -0500, Dennis Lee Bieber
> wrote:
>
>>On Fri, 21 Nov 2014 12:15:03 +0200, Steve Hayes
>>declaimed the following:
>>
>>>On Fri, 21 Nov 2014 19:40:22 +1100, Chris Angelico wrote:
>>>
On Fri, Nov 21, 2014 at 7:3
On Fri, 21 Nov 2014 14:50:36 -0500, Dennis Lee Bieber
wrote:
>On Fri, 21 Nov 2014 12:15:03 +0200, Steve Hayes
>declaimed the following:
>
>>On Fri, 21 Nov 2014 19:40:22 +1100, Chris Angelico wrote:
>>
>>>On Fri, Nov 21, 2014 at 7:35 PM, Steve Hayes wrote:
This Python script does it for me
On 22-Nov-2014 6:35 am, Dennis Lee Bieber wrote:
On Fri, 21 Nov 2014 10:35:19 +0200, Steve Hayes
declaimed the following:
This Python script does it for me.
year = input("Year: ")
age = input("Age: ")
born = year-age
print 'Year of birth:', born
It's so simple, so elementary, that it's not
On Fri, 21 Nov 2014 17:03:12 +, duncan smith
wrote:
>On 21/11/14 08:35, Steve Hayes wrote:
>> I've finally found a use for Python.
>>
>> When, in the course of my genealogy research, I look at census or burial
>> records, I often want to work out a person's date of birth from their age.
>>
On 21/11/14 08:35, Steve Hayes wrote:
> I've finally found a use for Python.
>
> When, in the course of my genealogy research, I look at census or burial
> records, I often want to work out a person's date of birth from their age.
> It's a simple matter of mental arithmetic, but I sometimes get i
On 21/11/2014 15:50, Steve Hayes wrote:
On Fri, 21 Nov 2014 10:20:06 +, Mark Lawrence
As I'm using Python 2 and I asked the question, I'm grateful that the answer
was given in my dialect.
Luddite :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do
On Fri, 21 Nov 2014 10:20:06 +, Mark Lawrence
wrote:
>On 21/11/2014 08:50, Gary Herron wrote:
>> On 11/21/2014 12:35 AM, Steve Hayes wrote:
>>> I've finally found a use for Python.
>>>
>>> When, in the course of my genealogy research, I look at census or burial
>>> records, I often want to wo
On 11/21/14 9:55 AM, Steven D'Aprano wrote:
- Use your OS facilities to run that process in a chroot jail.
If you are interested, this is the facility that edX uses to run
untrusted Python code on the servers: https://github.com/edx/codejail
--
Ned Batchelder, http://nedbatchelder.com
--
h
1 - 100 of 603 matches
Mail list logo