On Wednesday, March 1, 2017 at 4:51:34 AM UTC-6, Terry Reedy wrote:
> The class listing provided by the pydoc module browser,
> also in help(someclass), do list all methods. Try
> >>> import tkinter
> >>> help(tkinter.Text)
> for instance.
>
> On 2/28/2017 7:16 PM, Rick Johnson wrote:
> > IDLE h
On 03/01/2017 02:55 PM, rob...@forzasilicon.com wrote:
> Obviously, not what I want. Can anyone feed some input?
You've already got some good answers, but I just wanted to point you at
this good resource:
http://www.dabeaz.com/generators/
Pretty much anything you do in a shell script that involv
On 01Mar2017 13:55, rob...@forzasilicon.com wrote:
I'm relatively new to Python, and I am having some trouble with one of my
scripts. Basically, this script connects to a server via ssh, runs Dell's
omreport output, and then externally pipes it to a mail script in cron. The
script uses an exte
Thanks, Chris. That was nice and easy and very simple.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Mar 2, 2017 at 8:55 AM, wrote:
> Hi All,
>
> I'm relatively new to Python, and I am having some trouble with one of my
> scripts. Basically, this script connects to a server via ssh, runs Dell's
> omreport output, and then externally pipes it to a mail script in cron. The
> script uses
Hi All,
I'm relatively new to Python, and I am having some trouble with one of my
scripts. Basically, this script connects to a server via ssh, runs Dell's
omreport output, and then externally pipes it to a mail script in cron. The
script uses an external call to grep via subprocess, but I woul
On 28.02.17 19:28, Skip Montanaro wrote:
Most of the time (well, all the time if you're smart), you let the
database adapter do parameter substitution for you to avoid SQL
injection attacks (or stupid users). So:
curs.execute("select * from mumble where key = ?", (key,))
If you want to sele
On Mon, 27 Feb 2017 07:15 am, Pete Dowdell wrote:
> I use Python, mainly with Django, for work. I was wondering if anyone
> has encountered an editor that could display a class with all inherited
> methods included in the editor's view of the class code.
Python 3.5 (if not earlier) can do most of
"Frank Millman" wrote in message news:o93vs2$smi$1...@blaine.gmane.org...
I use asyncio in my project, so most of my functions start with 'async'
and
most of my calls are preceded by 'await'.
If an exception is raised, I usually get the full traceback, but sometimes
I
just get something l
On 2017-03-01 05:50, Terry Reedy wrote:
> The class listing provided by the pydoc module browser, also in
> help(someclass), do list all methods. Try
> >>> import tkinter
> >>> help(tkinter.Text)
> for instance.
I've been stung by opaque objects a couple times:
1) when the method comes from c
Steve D'Aprano writes:
> Given a function like this:
>
>
> def func(alpha, beta, gamma, delta=4, *args, **kw):
> ...
>
>
> which is called in some fashion:
>
> # say
> func(1, 2, gamma=3, epsilon=5)
>
> which may or may not be valid:
>
> func(1, 2, alpha=0)
>
> how does Python match up the for
On Wed, 1 Mar 2017 10:18 pm, Steve D'Aprano wrote:
[...]
> how does Python match up the formal parameters in the `def` statement with
> the arguments given in the call to `func`?
>
> I'm looking for official docs, if possible. So far I've had no luck
> finding anything.
Never mind, I found it ab
Given a function like this:
def func(alpha, beta, gamma, delta=4, *args, **kw):
...
which is called in some fashion:
# say
func(1, 2, gamma=3, epsilon=5)
which may or may not be valid:
func(1, 2, alpha=0)
how does Python match up the formal parameters in the `def` statement with
the arg
The class listing provided by the pydoc module browser, also in
help(someclass), do list all methods. Try
>>> import tkinter
>>> help(tkinter.Text)
for instance.
On 2/28/2017 7:16 PM, Rick Johnson wrote:
IDLE has a "class browser" feature (@GUI_XY = File->
Class_Browser) that displays a GUI t
> Replace the slice row[index:index+1] with row[index], either by building a
> new list or in place:
>
> >>> def show(data):
> ...for item in data: print(item)
> ...
> >>> def flatten_one(rows, index):
> ... return [r[:index] + r[index] + r[index+1:] for r in rows]
> ...
> >>> def fla
15 matches
Mail list logo