Chris Green writes:
> I have a list created by:-
>
> fld = shlex.split(ln)
>
> It may contain 3, 4 or 5 entries according to data read into ln.
Because of what an index means for the 'list' type, that's equivalent to
saying "the result of `len(fld)` may be 3, 4, or 5".
> What's the neatest
Ben Finney writes:
> Ajay Patel writes:
>
> > L = [1,2,3]
>
> That's not an expression; it is an assignment statement.
>
> The right-hand side is an expression. […] in this case, [the object] a new
> instance of 'list' […] is the result of evaluating the right-hand side
> of the expression.
I g
I have a list created by:-
fld = shlex.split(ln)
It may contain 3, 4 or 5 entries according to data read into ln.
What's the neatest way of setting the fourth and fifth entries to an
empty string if they don't (yet) exist? Using 'if len(fld) < 4:' feels
clumsy somehow.
--
Chris Green
·
--
On Friday, September 28, 2018 at 11:03:17 AM UTC-7, Chris Green wrote:
> I have a list created by:-
>
> fld = shlex.split(ln)
>
> It may contain 3, 4 or 5 entries according to data read into ln.
> What's the neatest way of setting the fourth and fifth entries to an
> empty string if they don'
On 28Sep2018 20:12, Chris Green wrote:
Peter Pearson wrote:
On Fri, 28 Sep 2018 15:01:41 +0100, Chris Green wrote:
> Chris Green wrote:
>> Brian Oney wrote:
>> > Could you please try another tool like `convert'? E.g.
>> >
>> > $ convert 102_PANA/P1020466.JPG test.png
>> >
>> > What does tha
On Sep 3, 2018, gvim wrote
(in article <5b8d0122.1030...@gmail.com>):
> Anyone have any idea when Anaconda might ship a version compatible with
> Python 3.7. I sent them 2 emails but no reply.
I heard a rumor today that it will be a few more months. They are short on
resources and are also deali
Peter Pearson wrote:
> On Fri, 28 Sep 2018 15:01:41 +0100, Chris Green wrote:
> > Chris Green wrote:
> >> Brian Oney wrote:
> >> > Could you please try another tool like `convert'? E.g.
> >> >
> >> > $ convert 102_PANA/P1020466.JPG test.png
> >> >
> >> >
> >> > What does that say?
> >>
> >>
On Fri, 28 Sep 2018 15:01:41 +0100, Chris Green wrote:
> Chris Green wrote:
>> Brian Oney wrote:
>> > Could you please try another tool like `convert'? E.g.
>> >
>> > $ convert 102_PANA/P1020466.JPG test.png
>> >
>> >
>> > What does that say?
>>
>> Well, after having returned home with the l
On Friday, 1 September 2017 19:37:41 UTC+1, The Cat Gamer wrote:
> fter I installed Python I try to open it in Powershell, by typing
> python/python.exe.
> It gives me an error:
> python : The term 'python' is not recognized as the name of a cmdlet,
> function, script file, or operable program. Ch
Dear EuroPython'istas,
We are happy to announce that we have started the RFP for venues to host
the EuroPython 2019 conference.
We have sent out the details to almost 40 venues.
For more details about the RFP, please see our blog post:
https://www.europython-society.org/post/178541594370/europy
Chris Green wrote:
> Brian Oney wrote:
> > Could you please try another tool like `convert'? E.g.
> >
> > $ convert 102_PANA/P1020466.JPG test.png
> >
> >
> > What does that say?
>
> Well, after having returned home with the laptop where this was
> failing and doing exactly the same thing aga
Brian Oney wrote:
> Could you please try another tool like `convert'? E.g.
>
> $ convert 102_PANA/P1020466.JPG test.png
>
>
> What does that say?
Well, after having returned home with the laptop where this was
failing and doing exactly the same thing again, it now works. However
it did take s
Chris Angelico wrote:
> On Fri, Sep 28, 2018 at 3:51 AM Chris Green wrote:
> >
> > Chris Angelico wrote:
> > > On Fri, Sep 28, 2018 at 2:51 AM Chris Green wrote:
> > > >
> > > > I'm converting an existing Python2 program to Python3, it uses
> > > > jpegtran and I can't find what to install to g
[I tried without success to post this question to the cx_Freeze
mailing list (which seems to have suddenly died at the beginning of
the year).]
You freeze an app on Windows producing a 'build' directory. The
contents of that build directory get installed in some arbitrary
location.
When you run
Yes, you are right, it's just the way Python display the '\'.
Thank you.
Gregory Ewing at 2018/9/28 PM 02:02 wrote:
Jach Fong wrote:
I get a string item, for example path[0], from path = os.get_exec_path()
It's something like "\\Borland\\Bcc55\\Include"
It doesn't actually have double backsla
15 matches
Mail list logo