understand why it’s empty. I’m
expecting for b to equal [[1,2,3,4], [2,3,4], [3,4], [4]].
Best Regards,
Rick
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
es. Worse, I may or may not be able
to have changes to a list show up in my list of lists, depending on how
& when I do it.
Really kludgy, but it is a one off that will likely never be used again.
TIA,
Rick
signature.asc
Description: OpenPGP dig
insistance that I help the querent
with $FOO for some bizarre value of FOO _right now_. I'm always nice to
them and try to send them in the right direction, but _man_
The 'disclaimer', the bit that says that Rick and Eric are not a
helpdesk for several thousand projects they (mos
t generation by issuing bonds payable
by the next generation." -- Lawerence J.Peter
Rick Pasottor...@niof.nethttp://www.niof.net
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Fri, Jun 18, 2010 at 12:24:25PM +1000, Lie Ryan wrote:
> On 06/18/10 06:41, Rick Pasotto wrote:
> > I'm using BeautifulSoup to process a webpage. One of the fields has a
> > unicode character in it. (It's the 'registered trademark' symbol.) When
> > I t
you must set a low value on everything else." -- Lucius Annaeus Seneca, 65
A.D.
Rick Pasottor...@niof.nethttp://www.niof.net
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
I need to read!
thanks,
Rick
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
e docs
show msg.attach() to create an email but I can't find anything that
would allow deleting an attachment. I know how to delete an entire
message from a mailbox.
--
"There is no medicine like hope, no incentive so great, and no tonic so
powerful as expectation of something tomorrow."
gt;
> Somehow you are picking up an older v2 interpreter.
> How are you running the script?
> >From within IDLE? Or from an OS command?
>
> If the latter try using the full path to the v3 Python interpreter.
>
> HTH,
>
>
Hi Alan,
from within geany.
The first li
I'm working my way through Mr Lutz's "Learning Python", and I come to
this snippet (page 271):
while True:
reply = input('Enter text:')
if reply == 'stop': break
print(reply.upper())
which works "as advertised" in an interactive session, but not in a
script. Yes, I tried tossing the
find that lpr is yet again working, it has
been updated and is now a frontend for cups.
suggest you read the man pages for fmt and groff to see what those
commands will do to your text. By default, they both output to stdout,
so you would have to redirect thei
l, the pointer to the
new was appreciated.
Rick
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Mon, Aug 10, 2009 at 07:22:03PM -0400, Kent Johnson wrote:
> On Mon, Aug 10, 2009 at 3:52 PM, Rick Pasotto wrote:
> > Not exactly what I'm looking for.
> >
> > The type_code in the tuple is a number. For one of my tables I see the
> > following numbers: 1, 2,
On Mon, Aug 10, 2009 at 02:50:01PM -0400, Kent Johnson wrote:
> On Mon, Aug 10, 2009 at 1:08 PM, Rick Pasotto wrote:
> > After executing a query that returns values, cursor.description contains
> > a list of tuples, one tuple for each field. Each tuple has seven values
> > con
need
to experiment and make my own list?
--
"As empty vessels make the loudest sound, so they that have
the least wit are the greatest blabbers." -- Plato
Rick Pasottor...@niof.nethttp://www.niof.net
___
Tutor maillist - Tutor@
On Sun, Jul 12, 2009 at 09:54:26AM -0700, Emile van Sebille wrote:
> On 7/12/2009 9:09 AM Rick Pasotto said...
>> I've got a script that I wrote several years ago and have been happily
>> using daily. Suddenly when I try to run it I get a segmentation fault.
>>
>&g
ss is having a large, loving, caring,
close-knit family in another city."
-- George Burns
Rick Pasottor...@niof.nethttp://www.niof.net
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I'm looking to create a Python timed infinite loop (run foo, wait 1min, run
foo) that will monitor if a particular program is running under Win32, and
if it is not running to execute it. Can someone point me in the right
direction to look?
Thanks,
at is doubtful. So get as
much happiness out of what you are doing as you can and don't put off
being happy until some future date." -- Dale Carnegie
Rick Pasotto[EMAIL PROTECTED]http://www.niof.net
___
Tutor maillist - Tutor@
On Fri, Jul 25, 2008 at 03:11:57PM -0700, Dave Kuhlman wrote:
> On Fri, Jul 25, 2008 at 10:04:35AM -0400, Rick Pasotto wrote:
> > I have a script that works fine on my linux machine but bombs out when
> > run under windows using the exact same data files. The script downloads
send the error report?
--
"With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied chains us all
irrevocably." -- Judge Aaron Satie (As quoted by J.L. Picard)
Rick Pasotto[EMAIL PROTECTED]http://ww
pdatequery,(fqdn,ip))
connection.close()
Note that for these last two there is a comma between the arguments to
cursor.execute() rather than a percent.
--
"I am only one. But I am one. I cannot do everything but I can do
something. And I will not let what I cannot do interfere with what
I
sons.
Now type in: './shebangtest' and your program should run. Putting the
'./' in front tells bash to use the command in the current directory.
--
"Rousseau was convinced that God, nature and man were wrong. I know
that this opi
thing simple, but after trying many different things I still haven't
been able to figure out how to access my second sound card.
Any help is apprecaited.
Rick.
_
Experience Live Search from your PC or mobile devic
On Sun, Sep 04, 2005 at 03:28:11PM +0100, Alan G wrote:
> > Tix has actually been included since Python 2.2!
But there are still no *python* docs. The Tcl docs are very confusing.
--
"Happiness is the interval between periods of unhappiness."
-- Don Marquis
ring.
>Str.split() without any arguments looks for whitespace as splitting
> character. So, this doesn't serve the purpose.
> And str.split("") appears to be illegal.
list('Hans')
--
"History will be kind to me, for I intend to writ
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66473
Rick
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Apr 8, 2005, at 11:37 AM, [EMAIL PROTECTED] wrote:
From: joe_schmoe <[EMAIL PROTECTED]>
For example, this is what I am currently doing:
=code block
# generate unique numbers and append to list
nmbr01 = random.randrange( 1, 20 )
nmbr_list.append( n
code. You can waste a lot
of time deciding on a text format, implementing the
readers/writers, etc.
Rick
--- Eri Mendz
<"[EMAIL PROTECTED]"@bluebottle.com> wrote:
> Dear Tutor,
>
> I like to know what is the proper procedure (is
> algorithmn the right
> term?) in c
if eq.match(line):
key,val = eq.findall(line)[0][:2]
holder[key] = val
return
if __name__ == '__main__': main()
--- Max Noel <[EMAIL PROTECTED]> wrote:
>
> On Dec 3, 2004, at 21:34, Rick Muller wrote:
>
> > The file type you mention is al
.
>
> I am search:
>
> search = re.search ["_at")
>
>
> my question:
> how can i tell python to select some rows that have
> particular pattern such as [Name] or Name of [Unit].
>
> is there any way of doing this.
> please help me
>
> thanks
> kumar
>
>
31 matches
Mail list logo