[Tutor] Append to list

2018-05-09 Thread Rick Jaramillo
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

[Tutor] how do (or do I) do a list of variable names?

2014-02-02 Thread rick
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

Re: [Tutor] Comment on http://www.catb.org/esr/faqs/smart-questions.html

2013-08-27 Thread Rick Moen
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

[Tutor] BadPickleGet error

2011-06-25 Thread Rick Pasotto
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

Re: [Tutor] string encoding

2010-06-17 Thread Rick Pasotto
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

[Tutor] string encoding

2010-06-17 Thread Rick Pasotto
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

[Tutor] strange bidi requirement

2010-02-24 Thread rick
I need to read! thanks, Rick ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] working with email module

2010-02-21 Thread Rick Pasotto
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."

Re: [Tutor] interactive questions

2009-12-25 Thread rick
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

[Tutor] interactive mode questions

2009-12-25 Thread rick
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

Re: [Tutor] Tutor Digest, Vol 69, Issue 96

2009-11-20 Thread rick
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

[Tutor] pyce, scripts complete too fast

2009-11-16 Thread rick
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

Re: [Tutor] MySQLdb field type

2009-08-11 Thread Rick Pasotto
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,

Re: [Tutor] MySQLdb field type

2009-08-10 Thread Rick Pasotto
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

[Tutor] MySQLdb field type

2009-08-10 Thread Rick Pasotto
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@

Re: [Tutor] segmentation fault

2009-07-12 Thread Rick Pasotto
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

[Tutor] segmentation fault

2009-07-12 Thread Rick Pasotto
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

[Tutor] Having Python check a program in win32.

2008-09-08 Thread Rick Rune
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,

[Tutor] help with sorted()

2008-08-17 Thread Rick Pasotto
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@

Re: [Tutor] where to report a bug?

2008-07-26 Thread Rick Pasotto
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

[Tutor] where to report a bug?

2008-07-25 Thread Rick Pasotto
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

Re: [Tutor] Updating MySQL Database

2007-10-07 Thread Rick Pasotto
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

Re: [Tutor] shebang problem

2006-11-04 Thread Rick Pasotto
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

[Tutor] PyAlsaAudio with Multiple Sound Cards?

2006-10-20 Thread Rick Sterling
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

Re: [Tutor] New GUI module

2005-09-04 Thread Rick Pasotto
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

Re: [Tutor] Split a string into characters

2005-08-22 Thread Rick Pasotto
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

[Tutor] Re: Tutor Digest, Vol 14, Issue 32

2005-04-09 Thread Rick Muller
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66473 Rick ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Recursive list checking

2005-04-08 Thread Rick Muller
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

Re: [Tutor] Address book sort of

2004-12-04 Thread Rick Muller
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

Re: [Tutor] Python regular expression

2004-12-03 Thread Rick Muller
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

Re: [Tutor] Python regular expression

2004-12-03 Thread Rick Muller
. > > 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 > >