Re: Module urljoin does not appear to work with scheme Gemini

2025-04-23 Thread Henry S. Thompson via Python-list
es: it would be silly to expect anyone to actually check even just the other 81 Permanent schemes to see if they should be added to this list, much less the Provisional or Historical ones, and even sillier to expect that the list ought to be regularly synchronised with the IANA registry. ht [1] ht

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-22 Thread Henry S. Thompson via Python-list
Schimon Jehudah via Python-list writes: > Yesterday, I have added support for a new syndication format, Gemini > feed. I note that 'gemini' is not (yet?) a registered URI scheme: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml ht -- Henry S. Tho

Re: Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
[with link] Henry S. Thompson via Python-list writes: > I've spent several days trying to get this example [1] working, using > Python3.11 and Cython 3.0.11 of Debian. > > I've copied the example files as carefully as I can, renamed some to > avoid a name clash with the

Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
d although the Cython version compiles, it doesn't work. Before giving details, just checking first if anyone can simply point to a set of files, preferably Pure Python but failing that Cython, that actually work for them. Thanks, ht -- Henry S. Thompson, School of Informatics

Re: Swiss Ephemeris

2017-04-17 Thread Peter Henry
spreadsheet Happy Easter Peter On 10 April 2017 at 02:52, Deborah Swanson wrote: > Peter Henry wrote, on Sunday, April 09, 2017 10:53 AM > > > > I have a package that has been altered to imported in to > > python, however I tired to get is working but without success > > I b

Fwd: Swiss Ephemeris

2017-04-10 Thread Peter Henry
at your CSV, but I'm not sure what you would like to add to it, > probably because I'm totally unfamiliar with this type of project. > > Best in your endeavors, > > Deborah > > > Peter Henry wrote, on Monday, April 10, 2017 11:58 AM > > Hi Deborah, > &

Re: Swiss Ephemeris

2017-04-10 Thread Peter Henry
relationship information between markets and planetary positions. Whilst waiting for a solution can you advise of an efficient way of producing a a CSV file similar to the file attached, only planetary data required Many thanks Peter On 10 April 2017 at 02:52, Deborah Swanson wrote: > Peter Henry wr

Swiss Ephemeris

2017-04-09 Thread Peter Henry
Hi Group I have a package that has been altered to imported in to python, however I tired to get is working but without success I be missing something obvious The Swiss Ephemeris enable planetary coordinate to be imported and used in your program Files access https://pypi.python.org/pypi/pysw

Error in IDLE

2015-08-17 Thread Henry Quansah
I just installed python. But I'm unable to access IDLE after several clicks and double clicks. I even tried repairing by trying to reinstall but I have the same issue. -- https://mail.python.org/mailman/listinfo/python-list

Re: Program Translation - Nov. 14, 2013

2013-11-17 Thread Henry Law
code. I've got an idea; why not re-write it all in C? -- Henry LawManchester, England -- https://mail.python.org/mailman/listinfo/python-list

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Jarrod Henry
Nick, at this point, you need to hire someone to do your work for you. We are not here to do your job. I would suggest finding a coder for hire and letting them do this job correctly. Thanks. On Sat, Jun 15, 2013 at 2:38 PM, Nick the Gr33k wrote: > Hello, > > Trying to browse > http://superh

Re: Determine actually given command line arguments

2013-05-16 Thread Henry Leyh
On 16.05.2013 08:08, Jussi Piitulainen wrote: Henry Leyh writes: But now I would also like to be able to _write_ such a config file FILE that can be read in a later run. And FILE should contain only those arguments that were given on the command line. Say, I tell argparse to look for

Re: Determine actually given command line arguments

2013-05-15 Thread Henry Leyh
On 15.05.2013 17:29, Roy Smith wrote: In article , Henry Leyh wrote: On 15.05.2013 14:24, Roy Smith wrote: In article , Henry Leyh wrote: Is there a simple way to determine which command line arguments were actually given on the commandline, i.e. does argparse.ArgumentParser() know

Re: Determine actually given command line arguments

2013-05-15 Thread Henry Leyh
fault=None) I'd then have to check for string 'True' rather than for boolean True, though. Regards, Henry -- http://mail.python.org/mailman/listinfo/python-list

Re: Determine actually given command line arguments

2013-05-15 Thread Henry Leyh
On 15.05.2013 15:00, Oscar Benjamin wrote: On 15 May 2013 13:52, Henry Leyh wrote: On 15.05.2013 14:24, Roy Smith wrote: In article , Henry Leyh wrote: Is there a simple way to determine which command line arguments were actually given on the commandline, i.e. does

Re: Determine actually given command line arguments

2013-05-15 Thread Henry Leyh
On 15.05.2013 14:24, Roy Smith wrote: In article , Henry Leyh wrote: Is there a simple way to determine which command line arguments were actually given on the commandline, i.e. does argparse.ArgumentParser() know which of its namespace members were actually hit during parse_args(). I

Determine actually given command line arguments

2013-05-14 Thread Henry Leyh
place. Thanks && Greetings, Henry -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Henry Law
On 05/05/13 18:11, Ignoramus16992 wrote: According to CIO.com What an amusing thread; lightened my (non-programmer) day. -- Henry LawManchester, England -- http://mail.python.org/mailman/listinfo/python-list

Re: scope of function parameters (take two)

2011-05-31 Thread Henry Olders
On 2011-05-31, at 24:35 , Dan Stromberg wrote: > > On Mon, May 30, 2011 at 5:28 PM, Henry Olders wrote: > > Be careful not to conflate global scoping or global lifetime, with mutability > or pure, side-effect-free functions (callables). It sounds like what you > want is i

Re: scope of function parameters (take two)

2011-05-31 Thread Henry Olders
On 2011-05-30, at 20:52 , Benjamin Kaplan wrote: > On Mon, May 30, 2011 at 5:28 PM, Henry Olders wrote: >> >> On 2011-05-29, at 4:30 , Henry Olders wrote: >> > > Python doesn't have true globals. When we say "global" what we mean is > "modul

Re: scope of function parameters (take two)

2011-05-30 Thread Henry Olders
added in python 2.0, according to wikipedia. I like list comprehensions and use them all the time because they are powerful and concise. > > did you read the link Steven gave you? > http://mail.python.org/pipermail/tutor/2010-December/080505.html Yes, I did, thanks. Henry -- http://mail.pytho

Re: scope of function parameters (take two)

2011-05-30 Thread Henry Olders
On 2011-05-29, at 4:30 , Henry Olders wrote: > I just spent a considerable amount of time and effort debugging a program. > The made-up code snippet below illustrates the problem I encountered: > > def main(): > a = ['a list','with','three element

Re: scope of function parameters

2011-05-29 Thread Henry Olders
Henry On 2011-05-29, at 5:47 , Wolfgang Rohdewald wrote: > On Sonntag 29 Mai 2011, Henry Olders wrote: >> It seems that in Python, a variable inside a function is >> global unless it's assigned. > > no, they are local > >> I would have thou

scope of function parameters

2011-05-29 Thread Henry Olders
nd is to call a function with a copy of the list, eg in fnc1 I would have the statement "return fnc2(b[:]". But this seems ugly. Are there others who feel as I do that a function parameter should always be local to the function? Or am I missing something here? Henry -- http://mail.python.org/mailman/listinfo/python-list

Pushing for Pythoncard 1.0

2011-05-02 Thread John Henry
Attempt to push Pythoncard to a 1.0 status is now underway. A temporary website has been created at: http://code.google.com/p/pythoncard-1-0/ The official website continues to be http://pythoncard.sourceforge.net/ Pythoncard is such a wonderful package that it would be a shame to allow developm

Re: Reading Outlook .msg file using Python

2010-10-22 Thread John Henry
On Oct 21, 1:48 am, Tim Golden wrote: > On 21/10/2010 09:34, Jon Clements wrote: > > > Only just noticed this thread, and had something similar. I took the > > following approach:- > > > (I'm thinking this might be relevant as you mentioned checking whether > > your client'sOutlookcould export .EM

Re: Reading Outlook .msg file using Python

2010-10-20 Thread John Henry
On Oct 20, 9:01 am, John Henry wrote: > On Oct 20, 1:41 am, Tim Golden wrote: > > > > > On 19/10/2010 22:48, John Henry wrote: > > > > Looks like this flag is valid only if you are getting messages > > > directly from Outlook.  When reading the msg file,

Re: Reading Outlook .msg file using Python

2010-10-20 Thread John Henry
On Oct 20, 1:41 am, Tim Golden wrote: > On 19/10/2010 22:48, John Henry wrote: > > > Looks like this flag is valid only if you are getting messages > > directly from Outlook.  When reading the msg file, the flag is > > invalid. > > > Same issue when accessi

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 19, 2:46 pm, John Henry wrote: > On Oct 17, 4:45 am, Tim Golden wrote: > > > > > On 17/10/2010 6:39 AM, John Henry wrote: > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > > >> On 12/10/2010 4:59 PM, John Henry wrote: > > > >>> A

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/k

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/k

Re: Reading Outlook .msg file using Python

2010-10-18 Thread John Henry
On Oct 18, 4:09 am, Tim Golden wrote: > On 17/10/2010 20:25, John Henry wrote: > > > Not knowing anything about MAPI, I tried a number of the MAPI flags, > > the only one that works appears to be PR_SUBJECT. > > PR_CLIENT_SUBMIT_TIME, PR_CREATION_TIME and so forth doesn

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 11:37 am, John Henry wrote: > On Oct 17, 4:45 am, Tim Golden wrote: > > > > > On 17/10/2010 6:39 AM, John Henry wrote: > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > > >> On 12/10/2010 4:59 PM, John Henry wrote: > > > >>

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/k

Re: Reading Outlook .msg file using Python

2010-10-16 Thread John Henry
On Oct 12, 10:31 am, Tim Golden wrote: > On 12/10/2010 4:59 PM, John Henry wrote: > > > According to: > > >http://support.microsoft.com/kb/813745 > > > I need to reset my Outlook registry keys.  Unfortunately, I don't have > > my Office Install CD with me.

Re: Reading Outlook .msg file using Python

2010-10-12 Thread John Henry
On Oct 11, 8:54 am, Tim Golden wrote: > On 11/10/2010 4:39 PM, John Henry wrote: > > > I am trying your code but when it get to the line: > > >>     mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0)) > > > I got the error message: > > > Either there is

Re: Reading Outlook .msg file using Python

2010-10-12 Thread John Henry
On Oct 11, 8:54 am, Tim Golden wrote: > On 11/10/2010 4:39 PM, John Henry wrote: > > > I am trying your code but when it get to the line: > > >>     mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0)) > > > I got the error message: > > > Either there is

Re: Reading Outlook .msg file using Python

2010-10-11 Thread John Henry
On Oct 11, 3:56 am, Tim Golden wrote: > On 10/10/2010 22:51, John Henry wrote: > > > I have a need to read .msg files exported from Outlook.  Google search > > came out with a few very old posts about the topic but nothing really > > useful.  The email module in Python

Re: Reading Outlook .msg file using Python

2010-10-10 Thread John Henry
On Oct 10, 8:27 pm, Lawrence D'Oliveiro wrote: > In message > , John > > Henry wrote: > > I have a need to read .msg files exported from Outlook. > > Try using EML format instead. That’s plain text. Thanks for the reply. I would have to check to see if my clien

Reading Outlook .msg file using Python

2010-10-10 Thread John Henry
Hello all: I have a need to read .msg files exported from Outlook. Google search came out with a few very old posts about the topic but nothing really useful. The email module in Python is no help - everything comes back blank and it can't even see if there are attachments. Did find a Java libr

Class variable inheritance

2009-09-07 Thread Henry 'Pi' James
I've just found out that a subclass shares the class variables of its superclass until it's instantiated for the first time, but not any more afterwards: Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more inf

asyncore's lack of sendto(), recvfrom()

2009-07-11 Thread Henry 'Pi' James
Is there any good reason why sendto() and recvfrom() aren't wrapped by asyncore? Obviously, recvfrom() cannot be replaced by recv(), but even sendto() cannot be replace by connect() and send(), either: I'm writing a traceroute module, and I found out that under the current firewall configuration o

Re: Invoking CutePDF from within Python

2009-02-17 Thread John Henry
On Feb 13, 3:15 am, cm wrote: > Hi John,> All I need is to say "Print this to CUTEPDF and store as xyz.pdf". > > I can't answer you question but let me make a suggestion: Try > PdfCreator. It lets you control all the process using an activex > control. It has events to tell you when the jobs has f

Invoking CutePDF from within Python

2009-02-12 Thread John Henry
Hi all, I have a need to invoke CutePDF from within a Python program. The program creates an EXCEL spreadsheet and set the print area and properties. Then I wish to store the spreadsheet in a PDF file. xtopdf does not work well (text only). ReportLab is an overkill. PyPDF can only shuffle PDF p

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-08 Thread Henry Read
I don't think code duplication rate has strong relationship towards code quality. On Sun, Feb 8, 2009 at 9:12 AM, Terry wrote: > On 2月8日, 上午8时51分, Terry wrote: > > On 2月8日, 上午12时20分, Benjamin Peterson wrote: > > > > > Terry gmail.com> writes: > > > > > > On 2月7日, 下午7时10分, "Diez B. Roggisch"

struct unpack to pre-allocated array?

2009-01-09 Thread Rich Henry
Is there any way to struct.unpack or struct.unpack_from into an existing array.array or similar structure? I am unpacking file data in a loop and i was hoping to find something that performs better than simply unpacking into a new tuple each iteration. Thanks in advance, Rich -- http://mail.python

Re: How to Use ANSI for Remote Screen Scraping?

2008-11-02 Thread Henry Chang
ot;, "line 5 ABCDEFGHIJKL", "line 6 ABCDEFGHIJKL"] for i in head_output: crt.write(i + "\n") print crt.get_region(2, 6, 5, 10) Output from ANSI terminal region: ['2 ABC', '3 ABC', '4 ABC', '5 ABC'] On Sun, Nov

Re: How to Use ANSI for Remote Screen Scraping?

2008-11-02 Thread Henry Chang
ng the screen. What am I doing wrong? http://coding.derkeiler.com/Archive/Python/comp.lang.python/2005-03/1441.html Thanks for any help. On Sat, Nov 1, 2008 at 5:03 PM, Henry Chang <[EMAIL PROTECTED]> wrote: > Using the below script, I can use pexpect to correctly output the entire > re

How to Use ANSI for Remote Screen Scraping?

2008-11-01 Thread Henry Chang
Using the below script, I can use pexpect to correctly output the entire remote terminal content to screen. At this point, I am running into difficulty to scrap the screen, for the screen elements that I want. (Say: the screen region from the complete 3rd line to the 8th line.) I believe I need t

Re: Function to Add List Elements?

2008-10-22 Thread Henry Chang
Very nice, that works! Thanks so much, Chris! On Wed, Oct 22, 2008 at 1:06 PM, Chris Rebert <[EMAIL PROTECTED]> wrote: > On Wed, Oct 22, 2008 at 12:59 PM, Henry Chang <[EMAIL PROTECTED]> wrote: > > This seems like a simple problem, but I can't find a simple solution.

Function to Add List Elements?

2008-10-22 Thread Henry Chang
This seems like a simple problem, but I can't find a simple solution. Suppose I have two lists of integers. List A = [A1, A2, A3] List B = [B1, B2, B3] I just simply want a new list, such as: List C = [C1, C2, C3] where: C1 = A1 + B1 C2 = A2 + B2 C3 = A3 + B3 Is there a simple function to do

C API type issue

2008-10-03 Thread Rich Henry
Made a simple little test program as im learning to embed python, have a simple script that just sets x=10.0 in test.py and prints type(x). Python prints that x is a float but PyFloat_Check() returns false. If i removed the check and just force it to print the double value, its correct. Any ideas w

Re: How to Determine Name of the Day in the Week

2008-09-11 Thread Henry Chang
Awesome, that worked. Thanks so much! On Thu, Sep 11, 2008 at 10:16 AM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Henry Chang wrote: > > Instead of getting integers with weekday(), Monday == 0 ... Sunday == 6; >> is there a way to get the actual names, such as "Monda

How to Determine Name of the Day in the Week

2008-09-11 Thread Henry Chang
Instead of getting integers with weekday(), Monday == 0 ... Sunday == 6; is there a way to get the actual names, such as "Monday ... Sunday"? I would like to do this without creating a data mapping. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Command line arguements

2008-07-27 Thread Henry Chang
try optparse :) http://docs.python.org/lib/module-optparse.html On Sun, Jul 27, 2008 at 9:13 PM, aditya shukla <[EMAIL PROTECTED]>wrote: > Hello folks ,I have a program in which a text file is generated as an > output > eg > > C:\prog\ prog -x test.txt > Right now whenever i have to read the tes

Re: Editra

2008-07-11 Thread Henry Read
It has been already in wxpython-doc-demos package. On Fri, Jul 11, 2008 at 11:38 PM, Henry Read <[EMAIL PROTECTED]> wrote: > Editra is a multi-platform text editor with an implementation that focuses > on creating an easy to use interface and features that aid in code > developmen

Editra

2008-07-11 Thread Henry Read
Editra is a multi-platform text editor with an implementation that focuses on creating an easy to use interface and features that aid in code development. Currently it supports syntax highlighting and variety of other useful features for over 60 programming languages. Editra is freely available un

Re: Learning Python in a group

2008-06-22 Thread Henry Read
I'm a beginner, too.But python wasn't my first programming language. On Sun, Jun 22, 2008 at 6:43 PM, Jonathan Roberts <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm looking to learn Python (as my first programming language) and I'm > pretty sure I'd be more successful doing this with a group of ot

Re: What's the api tat I should use to connect python to a MS Access Db?

2008-05-18 Thread Henry Chang
A simple google search: http://bytes.com/forum/thread637384.html On Sun, May 18, 2008 at 10:57 AM, David Anderson <[EMAIL PROTECTED]> wrote: > Please answer me the question of the subject =) > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 3:42 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > On May 13, 1:49 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > > >> John Henry wrote: > > >>> Hi list, > > >>> I can't understan

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 1:49 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > Hi list, > > > I can't understand this. The following import statement works fine: > > > from PythonCard.templates.dialogs import runOptionsDialog &g

Re: Why can't I import this?

2008-05-13 Thread John Henry
On May 13, 1:18 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > John Henry schrieb: > > > Hi list, > > > I can't understand this. The following import statement works fine: > > > from PythonCard.templates.dialogs import runOpt

Why can't I import this?

2008-05-13 Thread John Henry
Hi list, I can't understand this. The following import statement works fine: from PythonCard.templates.dialogs import runOptionsDialog but this one fails: from PythonCard.tools.codeEditor.codeEditor import CodeEditor I've checked and rechecked to make sure that the spellings are prope

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-05-06 Thread John Henry
On May 5, 11:04 am, [EMAIL PROTECTED] wrote: > John, you are the man > > > during my search for perfection, I found Qooxdoo (http://qooxdoo.org/). > > > ... > > > I found QxTransformer > > (http://sites.google.com/a/qxtransformer.org/qxtransformer/Home) which is a > > XSLT toolkit that creats XML

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 1:16 pm, Panyasan <[EMAIL PROTECTED]> wrote: > On 29 Apr., 20:30, Panyasan <[EMAIL PROTECTED]> wrote: > > > On 29 Apr., 18:17, John Henry <[EMAIL PROTECTED]> wrote: > > > > There are a whole bunch of test programs that comes with Pythoncard.

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 8:28 am, Panyasan <[EMAIL PROTECTED]> wrote: > > Christian, > > > It appears you're missing a file. Where did you placed my program? I > > see that there are two places being mentioned: > > > > no resource file for /Users/bibliograph/Programme/PythonCard/tools/ > > > layoutEditor/multi

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 1:57 am, Panyasan <[EMAIL PROTECTED]> wrote: > Hi, > > I am one of the two developers working on the xml-to-javascript > converter (qxtransformer) John has mentioned and we are thrilled that > our project has found a use in the PythonCard community. > > However, we have a problem getting

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-28 Thread John Henry
On Apr 28, 12:41 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote: > > > > > Do keep us posted ! > > > TIA, > > fp > > Check it out now. > > Only one to be added is the Mult

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-28 Thread John Henry
On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote: > > Do keep us posted ! > > TIA, > fp Check it out now. Only one to be added is the Multicolumn List (table), and then menus. The other widgets (Togglebutton, BitmapCanvas, Gauge, Notebook, CodeEditor) will not be implemented initially

Re: How do I say "Is this a function"?

2008-04-27 Thread John Henry
On Apr 27, 10:49 am, Lie <[EMAIL PROTECTED]> wrote: > On Apr 27, 11:01 am, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Apr 26, 6:08 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > > > def f1(): > > > >print

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-27 Thread John Henry
On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote: > John Henry <[EMAIL PROTECTED]> said : > > > Welcome to the modernized world of Pythoncard!!! > > Hey, that's really neat ! > > I remember dabbling in Pythoncard in the early days, some years ag

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-27 Thread John Henry
On Apr 27, 11:36 am, Ron Stephens <[EMAIL PROTECTED]> wrote: > John, > > This is very interesting! Please do make this available. I love > PythonCard, but I am doing mainly web programming these days. > > I will mention this on my next podcast. Can you do a slider? > > Ron Stephens > Python411www.a

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-26 Thread John Henry
On Apr 26, 3:03 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Apr 26, 8:46 am, [EMAIL PROTECTED] (Aahz) wrote: > > > > > > > In article <[EMAIL PROTECTED]>, > > John Henry  <[EMAIL PROTECTED]> wrote: > > > >But then I looked closer.

Re: How do I say "Is this a function"?

2008-04-26 Thread John Henry
On Apr 26, 6:08 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > def f1(): > >    print "In f1" > > > def f3(): > >    print "In f3" > > > def others(): > >    print "In others" > > > for i in xrange(1,3): > >    fct = "f%d()"%(i+1) > >    try: > >       exec fct > >    except: > >       others

How do I say "Is this a function"?

2008-04-26 Thread John Henry
How do I determine is something a function? For instance, I don't want to relying on exceptions below: def f1(): print "In f1" def f3(): print "In f3" def others(): print "In others" for i in xrange(1,3): fct = "f%d()"%(i+1) try: exec fct except: others() I wish

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-26 Thread John Henry
On Apr 26, 4:05 pm, [EMAIL PROTECTED] wrote: > On Apr 26, 5:03 pm, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Apr 26, 8:46 am, [EMAIL PROTECTED] (Aahz) wrote: > > > > In article <[EMAIL PROTECTED]>, > > > John Henry <[EMAIL PROTECTED

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-26 Thread John Henry
On Apr 26, 8:46 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > John Henry <[EMAIL PROTECTED]> wrote: > > > > >But then I looked closer. It turns out the XML file created by > >QxTransformer is *very* similar in structure when

So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-25 Thread John Henry
For serveral years, I have been looking for a way to migrate away from desktop GUI/client-server programming onto the browser based network computing model of programming. Unfortunately, up until recently, browser based programs are very limited - due to the limitation of HTML itself. Eventhough

Re: multiple pattern regular expression

2008-04-25 Thread Chris Henry
On Apr 25, 8:37 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > micron_make <[EMAIL PROTECTED]> writes: > > I am trying to parse a file whose contents are : > > > parameter=current > > max=5A > > min=2A [snip] > If every line of the file is of the form name=value, then regexps are > indeed not ne

Re: 有中国人乎?

2008-04-14 Thread John Henry
On Apr 14, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Penny Y. wrote: > > Steve Holden 写道: > > >> 但学会从未是立即, 和将需要一点时间。 > > > What do you mean? > > If I understand you correctly, maybe it should be, > > > 学习python不可一日而成,需要循序渐进. > > > Am I right? > > I have no idea. Babelfish (from which I ob

Re: Graphs in Python

2008-04-11 Thread Henry Chang
Try Google Chart with python wrapper: http://pygooglechart.slowchop.com/ http://code.google.com/apis/chart/ On Thu, Apr 10, 2008 at 10:05 AM, Sanhita Mallick <[EMAIL PROTECTED]> wrote: > Hi. > > I am a newbie to Python. I am trying to implement a > Python code for graph manipulation. My graphs

Re: How is GUI programming in Python?

2008-04-10 Thread John Henry
On Apr 9, 6:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote: > I've always had an interest in Python and would like to dabble in it > further. I've worked on a few very small command line programs but > nothing of any complexity. I'd like to build a really simple GUI app > that will work across Ma

Re: Google App Engine

2008-04-08 Thread Henry Chang
This is very interesting. Thanks for sharing! On Tue, Apr 8, 2008 at 1:55 AM, Duncan Booth <[EMAIL PROTECTED]> wrote: > Google have announced a new service called 'Google App Engine' which may > be of interest to some of the people here (although if you want to sign > up you'll have to join the

Re: Python in High School

2008-04-03 Thread John Henry
On Apr 3, 10:17 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> Well I doubt it's the visual environment that makes it more easy, > >> color, shape and position can give some extra information though. > >> I think apriori domain knowledge and flattness of information are of far > >> more importanc

Re: Python in High School

2008-04-03 Thread John Henry
On Apr 3, 12:24 pm, ajaksu <[EMAIL PROTECTED]> wrote: > On Apr 2, 5:01 pm, John Henry <[EMAIL PROTECTED]> wrote: > > > However, once I start teaching him variables, expressions, loops, and > > what not, I found that (by surprise) he had great difficulties > > c

Re: Python in High School

2008-04-02 Thread John Henry
On Apr 2, 1:32 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > On Apr 1, 11:10 am, sprad <[EMAIL PROTECTED]> wrote: > > >> On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > > >>> Python needs no evangelizing but I ca

Re: Python in High School

2008-04-02 Thread John Henry
On Apr 2, 1:01 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Apr 1, 11:10 am, sprad <[EMAIL PROTECTED]> wrote: > > > On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > > > > Python needs no evangelizing but I can tell you that it is a powerfull &

Re: Python in High School

2008-04-02 Thread John Henry
On Apr 1, 11:10 am, sprad <[EMAIL PROTECTED]> wrote: > On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > > > Python needs no evangelizing but I can tell you that it is a powerfull > > tool. I prefer to think that flash is rather visualization tool than > > programing language, and java needs

Re: Basic class implementation question

2008-04-01 Thread Henry Chang
You might want to consult this. http://www.ibiblio.org/g2swap/byteofpython/read/object-methods.html On Tue, Apr 1, 2008 at 9:43 PM, <[EMAIL PROTECTED]> wrote: > I can't get call a class for some reason. This must be one of those > newbie questions I hear so much about: > > class wontwork: >

Re: Basic class implementation question

2008-04-01 Thread Henry Chang
Try this. class wontwork: def really(self): print "Hello World" wontwork().really() On Tue, Apr 1, 2008 at 9:43 PM, <[EMAIL PROTECTED]> wrote: > I can't get call a class for some reason. This must be one of those > newbie questions I hear so much about: > > class wontwo

Re: python scripts to standalone executable

2008-03-31 Thread John Henry
On Mar 31, 10:38 am, Amit Gupta <[EMAIL PROTECTED]> wrote: > On Mar 31, 10:37 am, John Henry <[EMAIL PROTECTED]> wrote: > > > > > On Mar 31, 10:24 am, Amit Gupta <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > I am looking for a some tool

Re: Of qooxdoo, qwt, and Python

2008-03-31 Thread John Henry
olive wrote: > On 31 mar, 18:05, John Henry <[EMAIL PROTECTED]> wrote: > > I was searching for a way to redevelop a desktop Pythoncard based > > program into a web-application. I understand what need to be done for > > all of the non-GUI code. For the GUI capabiliti

Re: python scripts to standalone executable

2008-03-31 Thread John Henry
On Mar 31, 10:24 am, Amit Gupta <[EMAIL PROTECTED]> wrote: > Hi > > I am looking for a some tool that can convert python scripts to > executable on Linux. > > I found freeeze.py as the only option so far. Couple of queries on > freeze: > > 1. Have anyone used the freeze utility and any experiences

Of qooxdoo, qwt, and Python

2008-03-31 Thread John Henry
I was searching for a way to redevelop a desktop Pythoncard based program into a web-application. I understand what need to be done for all of the non-GUI code. For the GUI capabilities, I stumbled across a package call qooxdoo (http://qooxdoo.org/). It appears to provide the GUI capabilities I

Re: How to Encode String of Raw UTF-8 into Unicode?

2008-03-06 Thread Henry Chang
Awesome, that works. Thank you so much! My confusion of the different format made this harder than it should. On Thu, Mar 6, 2008 at 4:53 PM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Thu, 06 Mar 2008 22:43:58 -0200, Henry Chang <[EMAIL PROTECTED]> > escribi�: > &

How to Encode String of Raw UTF-8 into Unicode?

2008-03-06 Thread Henry Chang
Hi everyone, Suppose I start out with a raw string of utf-8 code points. raw_string = "68656E727963" I can coerce it into proper unicode format by slicing out two characters at a time. unicode_string = u"\x68\x65\x6E\x72\x79\x63" >>> print unicode_proper

Re: Return value of an assignment statement?

2008-02-23 Thread John Henry
On Feb 23, 2:59 am, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Dennis Lee Bieber wrote: > > On Fri, 22 Feb 2008 11:23:27 -0800, Jeff Schwab <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > >> I'm about through with this discussion, but FWIW, this is a real gotcha > >> for me a

Re: global variables: to be or not to be

2008-02-22 Thread John Henry
On Feb 22, 9:20 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Fri, 22 Feb 2008 19:11:01 -0800 (PST), icarus <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > But how do I get around it? How do I update and access a variable > > anytime I want? Any easy-to-follow e

Re: Return value of an assignment statement?

2008-02-21 Thread John Henry
On Feb 21, 2:06 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > John Henry wrote: > > On Feb 21, 1:48 pm, John Henry <[EMAIL PROTECTED]> wrote: > >> On Feb 21, 1:43 pm, mrstephengross <[EMAIL PROTECTED]> wrote: > > >>> Hi all. In C, an a

Re: Return value of an assignment statement?

2008-02-21 Thread John Henry
On Feb 21, 1:48 pm, John Henry <[EMAIL PROTECTED]> wrote: > On Feb 21, 1:43 pm, mrstephengross <[EMAIL PROTECTED]> wrote: > > > > > Hi all. In C, an assignment statement returns the value assigned. For > > instance: > > > int x > > int y =

  1   2   3   >