On Sat, Jan 16, 2016 at 04:39:09PM -0600, boB Stepp wrote:
> So in this model of understanding negative list indexing, should it be:
>
> mylist = [ 100, 200, 300, 400, 500 ]
> ^^^^^ ^
> -5 -4 -3 -2 -1 ?
Correct.
> Well, it has to be this; otherwise
On 17/01/16 00:23, Alex Kleider wrote:
>> I should have added a :-/ to that in case it wasn't obvious...
>
> It wasn't to me; could you please explain what you mean by ":-/" and/or
> where you should have added it?
It's an emoticon
I usually use it as being tongue in cheek, but I see that
wikip
On 16Jan2016 22:42, Alex Kleider wrote:
On 2016-01-16 18:02, Cameron Simpson wrote:
much like writing a function "def f(x, y=None)"; None is a sentinel
value - specially recognised as nor in the normal domain for that
value.
Can you please clarify the last bit:
"specially recognised as nor in
Steven D'Aprano wrote:
>> Slightly related is a problem that comes up in practice; you cannot
>> specify "including the last item" with negative indices:
>
> But you can do so by leaving the end index blank:
That's why the problem typically comes up when the stop index is a variable.
__
boB Stepp wrote:
>> The hard part is to remember to test whenever a negative index is
>> calculated.
>
> I am assuming that this is relevant to what just came before, the use
> of this "or None" check. Is this correct?
No, I mean that you always should test your code against the corner cases.
Hello EverybodyI need to sort a dataframe according to a specific column the
create new dataframes according to the sorted columns each new created
dataframe should contain the list(set('the sorted element)any help please , i
am new in python and pandas thanks muchBachir
___
On 17/01/16 11:43, Bachir Bachir via Tutor wrote:
> i am new in python and pandas thanks muchBachir
Hi Bachir,
This list is for questions about core Python and its standard
library. Although pandas is part of some Python distributions
(eg anaconda) it's not really part of the standard library but
Bachir Bachir via Tutor wrote:
> Hello EverybodyI need to sort a dataframe according to a specific column
> the create new dataframes according to the sorted columns each new created
> dataframe should contain the list(set('the sorted element)any help please
> , i am new in python and pandas thank
Ricardo Martínez wrote:
> Hi, i wrote a small APP to execute MySQL commands and retrieve to a
> Treeview
>
> http://pastebin.com/v2C8kAu1
>
> Share your comments and upgrades.
Well, you have an application that works -- that's good.
Do you have specific questions in mind? Then don't hesitate t
On 2016-01-17 02:18, Cameron Simpson wrote:
On 16Jan2016 22:42, Alex Kleider wrote:
On 2016-01-16 18:02, Cameron Simpson wrote:
much like writing a function "def f(x, y=None)"; None is a sentinel
value - specially recognised as nor in the normal domain for that
value.
Can you please clarify
Alex Kleider writes:
> May I trouble you further by specifically asking about 's/nor/not/'- I
> don't get what that's about.
He's using a common editor syntax (the ancient ‘ed’ editor's
“substitute” command, which is inherited by Unix ‘sed’ and ‘vi’, among
others) to represent “please replace th
On 17Jan2016 10:49, Alex Kleider wrote:
Can you please clarify the last bit:
"specially recognised as nor in the normal domain for that value."
s/nor/not/
May I trouble you further by specifically asking about 's/nor/not/'- I don't
get what that's about.
Ah. Ed, sed, vi, vim speak. Substi
Hi folks, first thanks to Peter and Alan for the comments about the
Interpreter, i really appreciate that.
The question that i have in mind is about grid layout, i have the below
code and i want to resize every widget when the user resize the main
windows.
"""
START
"""
import tkinter as tk
im
> To: tutor@python.org
> From: __pete...@web.de
> Date: Fri, 15 Jan 2016 17:37:25 +0100
> Subject: Re: [Tutor] str.strip strange result...?
>
> Jignesh Sutar wrote:
>
> > #python2.7
> >
> s="V01_1"
> s.strip("_1")
> > 'V0'
> >
> >
> > Wouldn't you expect the result to be "V01" ?
>
>
> From: eryk...@gmail.com
> Date: Thu, 14 Jan 2016 04:42:57 -0600
> Subject: Re: [Tutor] Question about the memory manager
> To: tutor@python.org
> CC: sjeik_ap...@hotmail.com
>
> On Thu, Jan 14, 2016 at 3:03 AM, Albert-Jan Roskam
> wrote:
> >
> > These two pages are quite nice. The author says t
On 17/01/16 18:27, Ricardo Martínez wrote:
> Hi folks, first thanks to Peter and Alan for the comments about the
> Interpreter, i really appreciate that.
I don't remember giving any comments about the interpreter,
but if I did you're welcome! :-)
> The question that i have in mind is about grid l
> To: tutor@python.org
> From: cmgcom...@gmail.com
> Date: Thu, 14 Jan 2016 09:37:02 +0530
> Subject: Re: [Tutor] me, my arm, my availability ...
>
> take care, get well soon,
>
> regards
>
> CMG
>
> On Thursday 14 January 2016 02:17 AM, Laura Creighton wrote:
> > I fell recently. Ought to b
On Fri, Jan 15, 2016 at 11:33:24AM -0500, Chelsea G wrote:
> Hi,
[snip stuff which is, as far as I can see, irrelevant]
> What I am having issues with is the def txt_output that is where I am
> trying to take the .csv off and add the .txt but keep the filename the
> same. For example, having a fi
On Fri, Jan 15, 2016 at 12:06:38PM -0500, wolfrage8...@gmail.com wrote:
> I realize this is a higher level question; so please direct me as
> appropriate. I can not seem to find a good standard that is in
> practical use for controlling user interfaces via a message passing.
> Does any one have an
Again, a personal thank you.
More often than not, when answering one thing, you teach me about
other things. The 'thing' thing is only the latest. Of course
I knew that using a name bound to a collection would effect the
contents of the collection but it would never have occurred to me
to use i
Py 3.4.4; W7-64-bit
I've been reviewing all of the posts relevant to questions I asked
last year on Python project directory structures. I was wondering
about a data directory nested under the program's top-level directory.
I can see no reason why I would need an __init__.py file for a data
direc
On Fri, Jan 15, 2016 at 05:07:58PM +, Chad Perry wrote:
> I need to know how to substitute for the drive letter for the following
> drives.
>
> sad-sdp
> also will need to wipe data from /dev/md1
>
> I believe that the script is sound just sub's
I don't understand your question. Substitute
On 17Jan2016 14:50, Alex Kleider wrote:
Again, a personal thank you.
No worries.
More often than not, when answering one thing, you teach me about
other things. The 'thing' thing is only the latest. Of course
I knew that using a name bound to a collection would effect the
contents of the c
>From "Python Cookbook, 3rd Ed." by David Beazley and Brian K. Jones,
the authors recommend using pkgutil.get_data() to obtain the contents
of data files. Normally I would use "with open..." giving my expected
file's location, but the authors claim that using pkgutil.get_data()
is a more robust wa
Hi All,
I am running a python flask project for fetching the endpoint.
Please find the files attached.
Parent file: FlaskTest2.py
Endpoint Tester File: FlaskTendpointTester2.py
Process:
1. Execute the file FlaskTest2.py --> python FlaskTest2.py
# This will execute the file on the terminal and wil
On 17/01/16 23:15, sudipto manna wrote:
> Hi All,
> I am running a python flask project for fetching the endpoint.
>
> Please find the files attached.
OK, This is a text based mailing list so attachments tend
not to make it through the server. If they are not too long post them
here, or if they a
boB Stepp writes:
> I can see no reason why I would need an __init__.py file for a data
> directory. Yes, files will be read there, but there will be no code
> there. Is this correct?
That is correct. A directory of files is accessed just fine using the
normal filesystem access features.
What's
27 matches
Mail list logo