Re: smtplib with Google

2010-09-13 Thread member thudfoo
On Mon, Sep 13, 2010 at 9:20 AM, narke narkewo...@gmail.com wrote: Hi, Can anyone please show me a workable example that can let me use google's smtp server to send out a message?  Thanks. Go here: http://code.activestate.com/recipes/langs/python/ and search for this gmail --

Re: looping through possible combinations of McNuggets packs of 6, 9 and 20

2010-08-14 Thread member thudfoo
On 8/14/10, Baba raoul...@gmail.com wrote: On Aug 13, 8:25 pm, Ian Kelly ian.g.ke...@gmail.com wrote: It's not. You're not just trying to find the sixth value that can be bought in exact quantity, but a sequence of six values that can all be bought in exact quantity. The integers [6, 9, 12,

Re: Python as a scripting language. Alternative to bash script?

2010-07-06 Thread member thudfoo
On Tue, Jul 6, 2010 at 6:40 AM, Michael Torrie torr...@gmail.com wrote: On 07/06/2010 04:12 AM, sturlamolden wrote: On 28 Jun, 19:39, Michael Torrie torr...@gmail.com wrote: In python I could simply take the output of ps ax and use python's own, superior, cutting routines (using my module):

using the netflix api

2010-07-05 Thread member thudfoo
Has anyone had success using the netflix api with Netflix.py? Especially getting access? -- http://mail.python.org/mailman/listinfo/python-list

Re: bash-style auto completion in command line program. use rlcomplete?

2010-05-22 Thread member thudfoo
On Sat, May 22, 2010 at 11:01 AM, ntwrkd ntw...@gmail.com wrote: I am trying to create a bash-style auto completion in a simple command-line and script-based program i created using cmd. I saw http://docs.python.org/library/rlcompleter.html, which I'm thinking is the way to go for my program

Re: What's the matter with docs.python.org?

2010-05-19 Thread member thudfoo
On Wed, May 19, 2010 at 9:23 AM, Christian Mertes cmer...@techfak.uni-bielefeld.de wrote: by kjon 2010-03-24T16:40:21+00:00. In Philip Semanchuk writes: On Mar 24, 2010, at 12:05 PM, kj wrote: In the last couple of weeks, docs.python.org has been down repeatedly (like right now). Has anyone

Re: how to preserve hex value

2010-05-19 Thread member thudfoo
On Wed, May 19, 2010 at 11:38 AM, Back9 backgoo...@gmail.com wrote: Hi, When converting a hex value, I'd like to preserve the decimal position. For example, 0x0A is converted to 0A not just A in string. How do I do this? TIA -- http://mail.python.org/mailman/listinfo/python-list |109

Re: Writing an assembler in Python

2010-03-03 Thread member thudfoo
On Tue, Mar 2, 2010 at 10:52 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: In article xns9d28186af890cfdnbgui7uhu5h8hrn...@127.0.0.1, Giorgos Tzampanakis  g...@hw.ac.uk wrote: I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate

Re: [Tutor] Sending an email alert

2009-08-28 Thread member thudfoo
On Fri, Aug 28, 2009 at 12:00 PM, Marc m...@marcd.org wrote: [...]     s = smtplib.SMTP('smtp.marcd.org') AttributeError: 'module' object has no attribute 'SMTP' The code I am trying to use is: import smtplib [...] Make sure you do not have a file called smtplib.py on the your python

Re: Is feedparser deprecated?

2009-08-08 Thread member thudfoo
On Fri, Aug 7, 2009 at 6:10 PM, Gabriel Genellina gagsl-...@yahoo.com.arwrote: En Fri, 07 Aug 2009 16:07:48 -0300, John Nagle na...@animats.com escribió: Feedparser requires SGMLlib, which has been removed from Python 3.0. Feedparser hasn't been updated since 2007. Does this mean

Re: can i write a assemly language programs in python

2009-07-10 Thread member thudfoo
On Fri, Jul 10, 2009 at 5:37 AM, Tim Chasepython.l...@tim.thechases.com wrote: m.reddy prasad reddy wrote: can any one tell me how to write assembly language programs in python...if no is there any other way to write the programs in python Bah, writing assembly language is easy in Python:  

Re: Open Source RSS Reader in Python?

2009-07-02 Thread member thudfoo
On Wed, Jul 1, 2009 at 4:18 PM, Alexalex.lavoro.pro...@gmail.com wrote: I am looking for an open source RSS reader (desktop, not online) written in Python but in vain. I am not looking for a package but a fully functional software. Google: python open source (rss OR feeds) reader Any clue ?

Re: Check module without import it

2009-06-22 Thread member thudfoo
On Mon, Jun 22, 2009 at 3:06 AM, Klessjonas@googlemail.com wrote: Is there any way to check that it's installed a module without import it directly? I'm using the nex code but it's possible that it not been necessary to import a module - try:   import module except

Re: Good books in computer science?

2009-06-15 Thread member thudfoo
On 6/15/09, Terry Reedy tjre...@udel.edu wrote: Phil Runciman wrote: Gain access to one of the IEEE or ACM web sites and their resources. I used to sneak into my local university library before the 'Net to read this stuff. Beyond that I check up on the reading lists for CS students

Re: Generating all combinations

2009-05-31 Thread member thudfoo
On 5/31/09, Scott David Daniels scott.dani...@acm.org wrote: Johannes Bauer wrote: Hello group, I'm trying to write a function in Python which does the following: For a number of arguments which are all lists, return a list (or generator) which yields all tuples of combination. E.g:

Re: Please help with problem creating class

2009-04-18 Thread member thudfoo
On 4/18/09, auzarski2...@gmail.com auzarski2...@gmail.com wrote: Hi I have been working on a homework assignment that I am having a lot of trouble with. I am so frustrated because every time I think I am getting close to figuring it out there is another problem. If you could look at this

Re: Please help with problem creating class

2009-04-18 Thread member thudfoo
Correction: On 4/18/09, member thudfoo thud...@opensuse.us wrote: On 4/18/09, auzarski2...@gmail.com auzarski2...@gmail.com wrote: Hi I have been working on a homework assignment that I am having a lot of trouble with. I am so frustrated because every time I think I am getting close

Re: ANN: PyGUI 2.0

2009-04-14 Thread member thudfoo
On Tue, Apr 14, 2009 at 10:02 AM, Terry Reedy tjre...@udel.edu wrote: greg wrote: [...] fwiw, the following python script could be used, when run from the Tests directory, to selectively run the numbered tests: - runtests.py import glob import os

Re: ANN: PyGUI 2.0

2009-04-11 Thread member thudfoo
Line 25 of setup.py should be: packages.append(GUI.Gtk) -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: SuPy - Script Sketchup with Python

2009-02-06 Thread member thudfoo
On Fri, Feb 6, 2009 at 8:27 AM, Gary Herron gher...@islandtraining.com wrote: greg wrote: SuPy 1.0 SuPy is a plugin for the Sketchup 3D modelling application that lets you script it in Python. http://www.cosc.canterbury.ac.nz/SuPy/ That URL fails with a 404 - not found. (At

Re: ctypes with Compaq Visual Fortran 6.6B *.dll (Windows XP), passing of integer and real values

2009-01-29 Thread member thudfoo
On Thu, Jan 29, 2009 at 1:08 PM, alex ale...@bluewin.ch wrote: Duncan Thank you for your explanation of the relationship between calling convention and stack management. I will try to understand better this topic in the CVF and ctypes documentation (not so easy). Regards Alex --

Is there a best linux distro for a python hobbyist?

2009-01-05 Thread member thudfoo
One with all the major python GUIs: pyQT, pyGtk, pyKde, wxPython, And so on. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not Ruby?

2008-12-31 Thread member thudfoo
2008/12/31 Giampaolo Rodola' gne...@gmail.com: On 31 Dic, 18:55, Xah Lee xah...@gmail.com wrote: Just spent 3 hours looking into Ruby today. Here's my short impression [...] --- Giampaolo http://code.google.com/p/pyftpdlib Hey, Giampaolo: I had gone to the trouble to filter out the posts

Re: Equivalent of 'wget' for python?

2008-12-11 Thread member thudfoo
On Mon, Dec 8, 2008 at 8:22 AM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm looking for a portable way to download ZIP files on the internet through Python. I don't want to do os.system() to invoke 'wget', since this isn't portable on Windows. I'm hoping the core python library has a

Re: Where can I get Lucid Toolkit?

2008-11-13 Thread member thudfoo
On 11/11/08, est [EMAIL PROTECTED] wrote: Hi guys, I tried to grab source code for Lucid Toolkit http://www.clarographics.org/svn_details which was mentioned http://wiki.python.org/moin/GuiProgramming So is this project abandoned? Is there any backup that I can get the code? Any

Re: ctypes shared object FILE*

2008-11-13 Thread member thudfoo
On 11/8/08, Dog Walker [EMAIL PROTECTED] wrote: I need to call a function in a shared object with this signature: init_dialog(FILE *input, FILE *output) The FILE*'s are to stdin and stdout. The call from python is libdialog.init_dialog( x, y) I need to define x and y so that they will

Re: very large dictionary

2008-08-03 Thread member thudfoo
On 3 Aug 2008 20:40:02 GMT, Jorgen Grahn [EMAIL PROTECTED] wrote: On 3 Aug 2008 20:36:33 GMT, Jorgen Grahn [EMAIL PROTECTED] wrote: On Fri, 1 Aug 2008 01:05:07 -0700 (PDT), Simon Strobl [EMAIL PROTECTED] wrote: ... If there is no other way to do it, I will have to learn how to use

Re: QOTW [was Re: Attack a sacred Python Cow]

2008-07-28 Thread member thudfoo
On 28 Jul 2008 14:07:44 GMT, Steven D'Aprano [EMAIL PROTECTED] wrote: On Sun, 27 Jul 2008 21:42:37 -0700, Russ P. wrote: +1 QOTW Do you realize what an insult that is to everyone else who has posted here in the past week? Actually I don't. I hadn't realised that when a person

Re: chm file for download?

2008-06-10 Thread member thudfoo
On 6/10/08, John Salerno [EMAIL PROTECTED] wrote: Is the chm doc file available for download from the Python website? I can't seem to find it. It would be nice to read through while I'm at work (where I don't have Python installed). Also, is it possible to use a chm file on Linux? [...]

Re: Bring object 'out of' Class?

2008-06-01 Thread member thudfoo
On 6/1/08, Arnaud Delobelle [EMAIL PROTECTED] wrote: dave [EMAIL PROTECTED] writes: [..] def deal_cards(self, num_of_hands, num): '''deals x amount of cards(num) to each hand''' for i in range(num_of_hands): handname = Hand('hand%d' % i)

Re: list object

2008-05-10 Thread member thudfoo
On 5/10/08, Gandalf [EMAIL PROTECTED] wrote: my manual contain chapter about lists with python. when i try to copy paste : li = [a, b, mpilgrim, z, example] (1) it i get this errore: TypeError: 'list' object is not callable i was wondering if their is any special module I should

Re: function that accepts any amount of arguments?

2008-04-24 Thread member thudfoo
On 4/24/08, Jonathan Gardner [EMAIL PROTECTED] wrote: On Apr 24, 5:28 am, malkarouri [EMAIL PROTECTED] wrote: What's wrong with raising ZeroDivisionError (not stopping the exception in the first place)? Because when I use your module, call avg (or mean) without args, I should see

Re: Code to send RSS news by Sendmail

2008-03-16 Thread member thudfoo
On 3/15/08, Ulysse [EMAIL PROTECTED] wrote: Hello, I'm searching a code which allow you to parse each item in the RSS feed, get the news page of each item, convert it to text and send it by mail. Do you know if it exists ? Thanks --

Re: Better grammar.txt

2008-03-06 Thread member thudfoo
On 3/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: It includes three corrections to grammar.txt (imagnumber, xor_expr and and_expr) that I've reported. Make that four corrections. Add augop. -- http://mail.python.org/mailman/listinfo/python-list An error

Re: Trouble writing to database: RSS-reader

2008-01-23 Thread member thudfoo
On 1/23/08, Arne [EMAIL PROTECTED] wrote: On Jan 21, 11:25pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Mon, 21 Jan 2008 18:38:48 -0200, Arne [EMAIL PROTECTED] escribi�: [...] This look very interesting! But it looks like that no documents is well-formed! I've tried several