Re: UI toolkits for Python

2005-10-18 Thread Mark Roseman
> You elided the paragraph where I pointed out the third alternative: > provide a better experience for the 95%, and an ok experience for the > 5%. WWW technologies are designed to degrade gracefully - it's easy to > take advantage of that. What I'm suggesting is taking the effort you'd put to the

connect to https unpossible. Please help.

2005-10-19 Thread Mark Delon
)? Thank u very much ! sincerely mark Code: == import urllib2 theurl='https://brokerjet.ecetra.com/at/' # username = 'username' password = 'password' passman = urllib2.HTTPPasswordMgrWithDefaultRealm() passman.add_password(None, theurl, username, password) authhand

Searching for txt file and importing to ms access

2005-10-20 Thread Mark Line
elp me with this? I've also managed to connect to my access database, and just print out a field in a table, but I cant find anywhere on the web that will help me to import data? Any help would be great?! By the way I'm running on windows, and have installed the windows add on

Re: Searching for txt file and importing to ms access

2005-10-21 Thread Mark Line
Once i have this working i was planing to kept all the txt files as logs, i'd have to give them a real name and stuff. But thanks for you help so far Mark "Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Mark Line" <[EMAIL PROT

Re: connect to https unpossible. Please help.

2005-10-21 Thread Mark Delon
... WHY? r = opener.open("https://brokerjet.ecetra.com/at/trading/wt.phtml?isin=NL24&exid=ETR";) # h = r.readlines() g = open("test.html","w") g.writelines(h) g.close() os.system("test.html") Thans realy for all ideas! sincerely mark > ---

RE: [python-win32] simulate DoEvents by python/wxpython

2005-10-26 Thread Mark Hammond
essing). If you do truly only need VB DoEvents style processing (which is not MFC aware), win32gui.Pump(Waiting)Messages should be fine though. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of James Hu Sent: Thursday, 27 October 2005 4:10 AM To: Python

Shed Skin Python-to-C++ compiler 0.0.5 released!

2005-11-07 Thread Mark Dufour
tandard library - Better error messages for things SS doesn't handle (Finally?!) Shed Skin can be downloaded here: http://shedskin.sourceforge.net. I also maintain a blog about the project: http://shed-skin.blogspot.com. Thanks!! Mark. -- http://mail.python.org/mailman/listinfo/python-list

Any help with PLY?

2005-11-17 Thread mark . green
Hi folks, I've been trying to write a PLY parser and have run into a bit of bother. At the moment, I have a RESERVEDWORD token which matches all reserved words and then alters the token type to match the reserved word that was detected. I also have an IDENTIFIER token which matches identifiers t

Re: Adding through recursion

2005-11-18 Thread Mark Jackson
y > else: > x -= 1 > y += 1 > add(x, y) > > print add(2, 4) > > result: > 6 > None Perhaps this hint will help: >>> print add(0,6) 6 6 -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson Of course a weed-puller isn&

Web functions idea

2005-11-29 Thread Mark Carter
I was musing recently about how one could, for example, set up a really simple mailing subscription list. It occurred to me that a really simple way to implement it would be to use xmlrpc. So there could be a function subscribe(emailAddress), which would send an email for confirmation, and anothe

Re: Web functions idea

2005-11-29 Thread Mark Carter
bruno at modulix wrote: > Mark Carter wrote: > Congratulations, you've just rediscovered REST !-) Huzzah! > Turbogears is probably what you're looking for (if not quite what you > describe). Thanks. It looks quite interesting. -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation suggestions

2005-12-07 Thread Mark Jackson
only > user. But are those 10 modules the same 10 modules that other folks > need? I don't know... > > Of course, the only way to find out is to try... Or you can just look up the module you need to write a 'bot to constantly look up the

Re: Mutability of function arguments?

2005-12-07 Thread Mark Tolonen
7;m comprehensible. > Python isn't C++ and there is no need to return multiple values by modifying function parameters: >>> def funct(a,b): ... return a+1,b+1 ... >>> foo,bar=1,2 >>> print foo,bar 2 3 >>> foo,bar=funct(foo,bar) >>> print foo,bar 3 4 >>> -Mark -- http://mail.python.org/mailman/listinfo/python-list

Which blog tool

2005-01-01 Thread Mark Carter
I currently use python to automatically summarise a certain newsgroup daily, and post the findings that it makes. Someone has suggested that they would like a to see a blog of the posts. I wondered if there was a python tool/library that could automate the blog postings. Any ideas? Some details

Re: Which blog tool

2005-01-01 Thread Mark Carter
Premshree Pillai wrote: You can use the Blogger API to post to your Blogger account. There's a Python interface to the API -- PyBlogger -- available here: http://beetle.cbtlsl.com/archives/category/pyblogger Hey, it Just Works! I got the whole basic thing working in a few minutes. It was exactly w

Re: Looping using iterators with fractional values

2005-01-01 Thread Mark McEahern
drife wrote: Hello, Making the transition from Perl to Python, and have a question about constructing a loop that uses an iterator of type float. How does one do this in Python? Use a generator: >>> def iterfloat(start, stop, inc): ... f = start ... while f <= stop: ... yield

Re: What can I do with Python ??

2005-01-01 Thread Mark Nenadov
you make a full-screen game with it? Yes, most certainly--providing you have the skill/knowledge to program a full-screen game. But then again that is rarely a matter of having the right programming language, but rather a matter of having the right libraries. -- ~Mark Nenadov On Sat, 01 Jan 2005 21:5

Readline configuration

2005-01-01 Thread Mark Roach
then just hit down+enter to reenter the rest of the code. Thanks, Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2005-01-02 Thread Mark Carter
> It might be nice if it was widely understood (in IT) that Python was a language any competent > programmer could pick up in an afternoon I am a programmer who works for a firm of engineers, where they program in VBA, badly. I've often mentioned Python, whereupon I'm usually dismissed as a cra

Re: The Industry choice

2005-01-02 Thread Mark Carter
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Mark Carter <[EMAIL PROTECTED]> wrote: >. >[tale of *very* >typical experience >with non-software >engineers] >. >

Re: Rebinding stdout

2005-01-02 Thread Mark McEahern
Ron Garret wrote: But this topic does bring up a legitimate question: I have a bunch of code that generates HTML using PRINT statements. I need to convert all this code to return strings rather than actually printing them (so I can use the results to populate templates). In Lisp I could do thi

Re: ? about file() and open()

2005-01-02 Thread Mark McEahern
Sean wrote: Was wondering if there was any difference between these two functions. None, as shown here: D:\Python23>python Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> file == open

Re: How can engineers not understand source-code control?

2005-01-04 Thread Mark Carter
> Cameron Laird wrote: > >> I've seen the infatuation for Excel (and so on) for years, True story: when I began working for my current employer, there was a guy there doing some work with a spreadsheet. He was given two weeks to perform the task. It was a loss-leader to get some real work from th

Re: How can engineers not understand source-code control?

2005-01-04 Thread Mark Carter
;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, first visit that file with C-x C-f, ;; then enter the text in that file's own buffer. Cameron Laird wrote: > Well *that* certainly made my morning unpleasant. Then let's see if I can spoil

Re: How can engineers not understand source-code control?

2005-01-04 Thread Mark Carter
Mark Carter wrote: I'm thinking that the I-Ching is a vast untapped resource for programming wisdom, plus it makes it funny. Well, carrying on in the same frivilous and some might say off-topic mood, I did a bit of a Google, and found that you can generate your very own I-Ching reading:

Re: Building unique comma-delimited list?

2005-01-05 Thread Mark McEahern
Roy Smith wrote: You've got a list of words (actually, they're found by searching a data structure on the fly, but for now let's assume you've got them as a list). You need to create a comma-delimited list of these words. There might be duplicates in the original list, which you want to eliminate

Re: printing line numbers for debugging purpose

2005-01-08 Thread Mark McEahern
Philippe C. Martin wrote: Hi, All of the methods from my program return None on error (i.e; I do not want to assert and have the program exit). Is it possible to print the current source file name/line number ? ex: in C/C++ I would use the macros __FILE__ and __LINE__. Consider something like this:

Port blocking

2005-01-10 Thread Mark Carter
Supposing I decide to write a server-side application using something like corba or pyro. What's the chance that in big corporations, the client's ports (in both senses of the word: fee-paying, and application) will be blocked, thereby immediately scuppering whatever I have written? Has this p

Re: Port blocking

2005-01-10 Thread Mark Carter
Paul Rubin wrote: Mark Carter <[EMAIL PROTECTED]> writes: Supposing I decide to write a server-side application using something like corba or pyro. Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly

Re: Datetime module

2005-01-10 Thread Mark McEahern
[EMAIL PROTECTED] wrote: I am writing a script that acts as an AIM bot [using twisted.IM's base scripts] and I want to add a logging feature. I got it to log who sends what to whom, but what I want to add is the date and time that the message was sent (or recieved by the bot), I tried to look at da

Re: Port blocking

2005-01-10 Thread Mark Carter
Mark Carter wrote: Paul Rubin wrote: Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly for the precise purpose of not getting blocked by firewalls. I'm not sure if we're talking at cross-pu

Re: Port blocking

2005-01-11 Thread Mark Carter
Ed Leafe wrote: On Jan 10, 2005, at 8:00 PM, Steve Holden wrote: There isn't, IMHO, anything with the polish of (say) Microsoft Access, or even Microsoft SQL Server's less brilliant interfaces. Some things Microsoft *can* do well, it's a shame they didn't just stick to the knitting. Though

Re: Time script help sought!

2005-01-11 Thread Mark McEahern
PE_1611:5812:10 Item_3TAPE_1712:1512:45Defect in analog tape sound. Item_3TAPE_1812:5824:20Defect in analog tape sound. This is all a single sound file and these separate times mark where there was a break, defect, or edit in the individual item

Re: Best way to trap errors in ftplib?

2005-01-11 Thread Mark McEahern
Peter A.Schott wrote: Using ftplib.FTP object for a project we have here to upload/download files. I know that I can wrap everything in try/except blocks, but I'm having trouble getting the exact error messages out of the Exceptions. Consider using the traceback a la: try: [... whatever ...]

Re: counting items

2005-01-12 Thread Mark McEahern
It's me wrote: Okay, I give up. What's the best way to count number of items in a list [that may contain lists]? a = [[1,2,4],4,5,[2,3]] def iterall(seq): for item in seq: try: for subitem in iterall(item): yield subitem except TypeError: yie

Re: readline, rlcompleter

2005-01-12 Thread Mark Asbach
;ll find the information needed at: http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html#SEC10 Yours, Mark -- http://mail.python.org/mailman/listinfo/python-list

GTK libs don't get events when wrapped for Python

2005-01-12 Thread Mark Asbach
who could help me, please? FYI: the library used is Intel's OpenCV / HighGui, OS is debian/Sarge, python2.3 Thanks in advance, Mark -- Dipl.-Ing. Mark Asbach Tel +49 (0)241 80-27677 Institute of Communications Engineering RWTH Aachen University, Germany

Re: deleting from tarfile

2005-01-15 Thread Mark McEahern
Uwe Mayer wrote: Hi, is it possible to delete a file from a tar-archive using the tarfile module? Thanks Uwe It doesn't appear so. A workaround, of course, is to create a new file with the subset of files from the old file: #!/usr/bin/env python import tarfile import os def removeFile(filena

Re: accessing class variables of private classes

2005-01-16 Thread Mark McEahern
Uwe Mayer wrote: Hi, I need to access class variables of a class I'd like to make private: Use single underscores instead of double underscores--you won't have to workaround the name mangling. Besides, nothing's really private anyway. // m -- http://mail.python.org/mailman/listinfo/python-lis

Re: Newbie inheritance question.

2005-01-16 Thread Mark McEahern
bwobbones wrote: Hi all, I'm a java programmer struggling to come to terms with python - bear with me! Welcome! I'm trying to subclass a class, and I want to be able to see it's attributes also. Here are my classes: [snip] class two(one): def __init__(self): print "two" The problem i

Re: Assigning to self

2005-01-17 Thread Mark McEahern
Frans Englich wrote: Hello, I am having trouble with throwing class instances around. Perhaps I'm approaching my goals with the wrong solution, but here's nevertheless a stripped down example which demonstrates my scenario: [snip] The basic problem seems to be that you're trying to avoid creat

Re: FTPLIB - retry files?

2005-01-17 Thread Mark McEahern
Peter A.Schott wrote: Is there any way to retry sending files with some delay up to a set number on failure? Sometimes we encounter a locked file on our server or the destination server and we want to retry that file in X seconds. In general, what's wrong with this: import time retryCount = 1

Re: Zen of Python

2005-01-19 Thread Mark McEahern
Timothy Fitz wrote: While I agree that the Zen of Python is an amazingly concise list of truisms, I do not see any meaning in: Flat is better than nested. I strive for balance between flat and nested. Does anyone have a good example of where this is applied? (specifically to python, or in general)

Re: list item's position

2005-01-19 Thread Mark McEahern
Bob Smith wrote: Hi, I have a Python list. I can't figure out how to find an element's numeric value (0,1,2,3...) in the list. Here's an example of what I'm doing: Use enumerate() (new in Python 2.3, IIRC). Otherwise: for i in range(len(sequence)): item = sequence[i] ... for bar in bars:

Class introspection and dynamically determining function arguments

2005-01-20 Thread Mark English
I'd like to write a Tkinter app which, given a class, pops up a window(s) with fields for each "attribute" of that class. The user could enter values for the attributes and on closing the window would be returned an instance of the class. The actual application I'm interested in writing would eithe

Re: Print a string in binary format

2005-01-20 Thread Mark McEahern
neutrino wrote: Greetings to the Python gurus, I have a binary file and wish to see the "raw" content of it. So I open it in binary mode, and read one byte at a time to a variable, which will be of the string type. Now the problem is how to print the binary format of that charater to the standard o

RE: Class introspection and dynamically determining function arguments

2005-01-21 Thread Mark English
> From: "Mark English" <[EMAIL PROTECTED]> > > I'd like to write a Tkinter app which, given a class, pops up a > window(s) with fields for each "attribute" of that class. The > user could enter values for the attributes and on closing the > windo

RE: Class introspection and dynamically determining function arguments

2005-01-21 Thread Mark English
Diez B. Roggisch wrote: > According to this > http://www-106.ibm.com/developerworks/library/l-pyint.html > > not really - and there are no special moduls neccessary, as > everything is at your hands using __dict__ and so on. Thanks for the link. I'd read that article but found it was too introd

best way to do a series of regexp checks with groups

2005-01-23 Thread Mark Fanty
In perl, I might do (made up example just to illustrate the point): if(/add (\d+) (\d+)/) { do_add($1, $2); } elsif (/mult (\d+) (\d+)/) { do_mult($1,$2); } elsif(/help (\w+)/) { show_help($1); } or even do_add($1,$2) if /add (\d+) (\d+)/; do_mult($1,$2) if /mult (\d+) (\d+)/; show_help($1

RE: Class introspection and dynamically determining function arguments

2005-01-24 Thread Mark English
Thanks for the pointers to traits, BasicProperty, and harold fellermann's sample code... --- The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosur

Re: Finding a script's home directory?

2005-01-24 Thread Mark McEahern
Gabriel Cooper wrote: In one of my python programs has a data file I need to load. My solution was to say: if os.path.exists(os.path.join(os.getcwd(), "config.xml")): self.cfgfile = os.path.join(os.getcwd(), "config.xml") Which works fine... as long as you're *in* the script's h

Re: best way to do a series of regexp checks with groups

2005-01-24 Thread Mark Fanty
This is the kind of thing I meant. I think I have to get used to writing small, light-weight classes. You inspired this variation which is a little more verbose in the class definition, but less so in the use: class Matcher: def search(self, r,s): self.value = re.search(r,s) return

threading.py Condition wait overflow error

2005-01-25 Thread Mark English
uot;, line 222, in wait delay = min(delay * 2, remaining, .05) OverflowError: long int too large to convert to int Delay: 0.016 Remaining: 8.0789619 Delay: 0.032 Remaining: 8.0163242 Delay: 0.05 Remaining: 7.9539619 Done Message response handler got message ---

Re: threading.py Condition wait overflow error

2005-01-26 Thread Mark English
I wrote. It could certainly be one of them (although which one could be an interesting challenge to find out). It may even have something to do with moving to the VC7.1 compiler. Thank you very much for your suggestion. Without it I would never have thou

Re: exclude binary files from os.walk

2005-01-27 Thread Mark McEahern
The OP wrote: > Is there an easy way to exclude binary files (I'm working on Windows XP) from the file list returned by os.walk()? Sure, piece of cake: #!/usr/bin/env python import os def textfiles(path): include = ('.txt', '.csv',) for root, dirs, files in os.walk(path): for name in

Re: Question: "load"ing a shared object in python

2005-01-27 Thread Mark Rowe
tricky matter, due to the lack of standards for C++ ABI's covering name mangling and vtable layout etc. See the thread starting at <http://mail.python.org/pipermail/python-list/2004-November/ 249513.html> for more information. Regards, Mark Rowe <http://bdash.net.nz/> -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding user's home dir

2005-02-02 Thread Mark Nenadov
tried your function in my environment (Python 2.3.3 on Linux) and it returned the home directory properly - - Mark Nenadov Python Byte Solutions http://www.pythonbyte.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting a module's byte code, how?

2005-02-02 Thread Mark Nenadov
de() ;-) > > --Irmen The inspect API documentation says that code objects have "co_code", which is a string of raw compiled bytecode. Hope that helps! - - Mark Nenadov Python Byte Solutions http://www.pythonbyte.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: global variables

2005-02-03 Thread Mark Jackson
7;ll just have to put > up with the ambiguities. Or perhaps, given my (lack of) typing skill, I > should just start signing myself "Stvev"? What's this doing *here*? I thought the discussion of the pitfalls of name rebinding was taking place in the "variable declaration&q

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-30 Thread Mark Lawrence
accent, so start with one in Welsh or Gaelic, once they've mastered this then try English. Kindest Regards. Mark Lawrence. p.s. this is why I love c.l.py. -- http://mail.python.org/mailman/listinfo/python-list

best options for oracle/python?

2005-07-05 Thread Mark Harrison
Any recommendations for Oracle bindings for the DB-API 2.0 specification? This is for Oracle 10g if that makes any difference. Also, any other Oracle related goodies that might be useful? Many TIA! Mark -- Mark Harrison Pixar Animation Studios -- http://mail.python.org/mailman/listinfo

Re: Tricky Dictionary Question from newbie

2005-07-11 Thread Mark Jackson
turn a new dict with string keys and lists containing the > previous keys for repeated values. > > NewDict = {'This is repeated':['rt','sr'],'This is not':['gf']} NewDict = {} for x in Dict.keys(): try: NewDict[Dic

Re: Interleave merge pdf files

2005-07-22 Thread Mark Jackson
I would be interested in an alternative approach which does not generate a ton of intermediate pdfs. -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson It is difficult for men in high office to avoid the malady of self-delusion.- Calvin Coolidge -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting the --options of configure on installed python

2005-07-25 Thread Mark Rowe
gt; import distutils.sysconfig >>> distutils.sysconfig.get_config_var('CONFIG_ARGS') "'--prefix=/opt/local' '--enable-shared' '--mandir=/opt/local/share/ man' '--bindir=/opt/local/bin' '--with-readline' '--enable-framework' '--enable-

Re: Wheel-reinvention with Python

2005-08-01 Thread Mark Roseman
http://tktable.sourceforge.net/tile/index.html I think the message is, Tk has been moving forward in a coherent and focused way (finally) in terms of look and feel, which will certainly be of great benefit to Tkinter. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-08-01 Thread Mark Roseman
g curve increase substantially. This is because you end up needing to do a lot more fiddling, looking at or using any of a large number of add-on packages, etc.). Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-08-01 Thread Mark Roseman
flawed in comparison. Switch "wxPython" and "Tk" around in the above argument and I think the statements equally hold of course. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: How to obtain GMT offset?

2005-08-16 Thread Mark Thalman
According to <http://www.python.org/doc/2.4.1/lib/module-time.html> it is in seconds. -- Mark On Aug 16, 2005, at 9:35 AM, Peter Hansen wrote: > Erik Max Francis wrote: > >> time.timezone gives you the timezone offset in minutes. >> > > Dang, that mea

Speed quirk: redundant line gives six-fold speedup

2005-08-25 Thread Mark Dickinson
elow, with some trepidation, since it's not a work of art and wasn't really intended to be seen by other human beings. It's necessarily quite long: any attempt to shorten it significantly seems to cancel the speed gain. Any clues as to what might be going on would be greatly apprecia

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-25 Thread Mark Dickinson
e speed itself, but I'd dearly like to understand what's at work here. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-25 Thread Mark Dickinson
whole thing properly instead of using the cheap trick I did. Thanks again for clearing up this confusion. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-25 Thread Mark Dickinson
different `random' choice in the min, and choosing to eunumerate all 3 possibilities for position 5,7 instead of the 3 possibilities for position 2, 1 (say) makes a huge diffference to the running time. I'm still surprised by the magnitude of the differences, though. I've learnt my lesson :) Thank you for your help, and apologies for wasting other people's time with this as well as my own! Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-30 Thread Mark McIntyre
On Tue, 30 Aug 2005 11:30:19 GMT, in comp.lang.c , [EMAIL PROTECTED] wrote: >Why do I think of a Dutch expression 'mieren neuker' with regards to >Balmer's posts? Its a complete mystery. Just as is the reason why you are x-posting complete garbage to comp.lang.c... --

Re: Jargons of Info Tech industry

2005-08-30 Thread Mark McIntyre
On 30 Aug 2005 18:06:48 GMT, in comp.lang.c , John Bokma <[EMAIL PROTECTED]> wrote: >Mark McIntyre <[EMAIL PROTECTED]> wrote: > >>Its a complete mystery. Just as is the reason why you are x-posting >>complete garbage to comp.lang.c... > >A similar mystery as i

close/popen issues (bug?)

2005-08-31 Thread Mark Sandler
dows/linux machines. mark -- http://mail.python.org/mailman/listinfo/python-list

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-10 Thread Mark Dufour
After nine months of hard work, I am proud to introduce my baby to the world: an experimental Python-to-C++ compiler. It can convert many Python programs into optimized C++ code, without any user intervention such as adding type declarations. It uses rather advanced static type inference techniques

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread Mark Dufour
any programs of the type I usually write (algorithms, compilers..), so it's also a case of scratching my own itch. thanks! mark. -- http://mail.python.org/mailman/listinfo/python-list

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-12 Thread Mark Dufour
>Obviously, neither the 0 nor the message following should have been >displayed. It's a pity that this assumption was made, but given the short >time the project's been going I can understand it, hopefully Mark will >continue towards greater python compliance :) The latter i

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-12 Thread Mark Dufour
start of my path) > >6. Run ./ss test.py > >7. Compile the resulting cpp file with: g++ -L. test.cpp -lss -lgc > >8. Run ./a.out and watch in awe. thanks! mark. -- http://mail.python.org/mailman/listinfo/python-list

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-12 Thread Mark Dufour
On 9/12/05, Brian Quinlan <[EMAIL PROTECTED]> wrote: > Mark Dufour wrote: > > The latter is certainly my goal. I just haven't looked into supporting > > exceptions yet, because I personally never use them. I feel they > > should only occur in very bad situ

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-12 Thread Mark Dufour
like code), I really don't need the full flexibility of Python. It's just great to be able to leave out type declarations, and to use the beautiful Python syntax. >;-) >All the best, thanks! mark. Fuzzyman http://www.voidspace.org.uk/python/index.shtml > > thanks! > mark. -- http://mail.python.org/mailman/listinfo/python-list

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-12 Thread Mark Dufour
es, and therein lies the problem. It would be nice if somebody would come up with a complete package, because I have no access to Windows nor would I know how to approach that.. thanks! mark. -- http://mail.python.org/mailman/listinfo/python-list

Using Shed Skin under Windows or OSX

2005-09-13 Thread Mark Dufour
system (there are still some problems with the unit tests..) http://mail.python.org/pipermail/python-list/2005-September/298697.html http://www.blogger.com/comment.g?blogID=14063458&postID=112636132130703717 thanks! mark. Mark. -- http://mail.python.org/mailman/listinfo/python-list

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Mark Dufour
any case, exceptions are not really dynamic (I think..) so, yeah, they should be supported.. >How easy is it going to be to call your c++ code from Python (and vice >versa) ? I haven't really thought deeply about this, but I guess it shouldn't be too hard to use existing C++/Pyt

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Mark Dufour
C source, you'll notice that probably 50% of > the code is devoted to error handling (that was a guess). That's a lot of error handling.. thanks! mark. -- http://mail.python.org/mailman/listinfo/python-list

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Mark Dufour
f programs I usually write, I'm still not sure if they will ever be very useful. I guess I have just naturally ignored them.. :-) Thank you for stressing the importance of exceptions in Python in general. I'm always happy to learn more about the language and its philosophy.. thanks! ma

Shed Skin under Windows and OSX

2005-09-17 Thread Mark Dufour
t and follow some simple steps in the README file. I would really like to know about anything that doesn't work, or is unclear! BTW, I also fixed all OSX problems, but I'm waiting for a friend to give it a final test. What kind of program would you like to compile? thanks! mark. -- http:

Re: Shed Skin under Windows and OSX

2005-09-18 Thread Mark Dufour
could look into this.. :) Have you tried compiling any code of your own yet..? thanks! mark. -- http://mail.python.org/mailman/listinfo/python-list

Release of Shed Skin 0.0.2: Easy Windows/OSX Installation

2005-09-20 Thread Mark Dufour
cases, that the compiler has problems with. Thanks to everyone who has helped me out, especially Khalid, Leonardo and Luis here on python-list, and Denis de Leeuw Duarte right here in the street :-) http://shedskin.sourceforge.net http://shed-skin.blogspot.com thanks! mark. -- http

Release of Shed Skin 0.0.2: Easy Windows/OSX Installation

2005-09-20 Thread Mark Dufour
-skin.blogspot.com thanks! mark. -- http://mail.python.org/mailman/listinfo/python-list

Re: negative integer division

2005-02-07 Thread Mark Jackson
Q: What multiple of 7 did I add to the critical expression in the Zeller algorithm so it would remain nonnegative for the next few centuries? -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson People who write obscurely are either unskilled in writing or up to mischie

Re: negative integer division

2005-02-10 Thread Mark Jackson
[EMAIL PROTECTED] (John Machin) writes: > [EMAIL PROTECTED] (Mark Jackson) wrote in message news:<[EMAIL PROTECTED]>... > > > > A: 42 > > > > Q: What multiple of 7 did I add to the critical expression in the Zeller > > algorithm so it would remain

Re: check if object is number

2005-02-14 Thread Mark English
Not sure if anyone's mentioned this yet, but just in case they haven't: Start bit o' Python >>> import operator >>> operator.isNumberType(1) True >>> operator.isNumberType(1.01) True >>> operator.isNumberType('a') False >>> operator.isNumberType('1') False End bit o' Python Have

Re: msnp, friends list

2005-02-17 Thread Mark Rowe
int 'Got friend list update:', friend_list.lists msn = msnp.Session(MsnListener()) msn.login('[EMAIL PROTECTED]', 'xxx') msn.sync_friend_list() while True: msn.process() time.sleep(1) Any info would be great. Thanks. Hope this helps, Mark Rowe <http://

Re: msnp, friends list

2005-02-17 Thread Mark Rowe
at with msnp as it always changes your state after sign-in, and it fails to group the buddy list state into a single transaction so that you can tell when the entire list has been retrieved... It should be relatively simple to adapt the code to fix the problem. Regards, Mark Rowe <http://b

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-20 Thread Mark Lawrence
ut that, forgot to engage brain before doing cut and paste. At least I can learn, unlike some well known people.:) Regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamically pass a function arguments from a dict

2005-02-23 Thread Mark McEahern
Dan Eloff wrote: How can you determine that func2 will only accept bar and zoo, but not foo and call the function with bar as an argument? Let Python answer the question for you: >>> def func2(bar='a', zoo='b'): ... pass ... >>> for name in dir(func2): ... print '%s: %s' % (name, getattr(func2, na

Re: remove strings from source

2005-02-26 Thread Mark McEahern
qwweeeit wrote: For a python code I am writing I need to remove all strings definitions from source and substitute them with a place-holder. To make clearer: line 45 sVar="this is the string assigned to sVar" must be converted in: line 45 sVar=s1 Such substitution is recorded in a file under:

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread Mark Rowe
" extension. A better method would be something along the lines of: plugin = __import__(pluginName) plugin.someMethod() This avoids the potential security problem that `exec' poses as well as the need to parse + interpret the string. Regards, Mark Rowe <http://bdash.net.nz/> -- http://mail.python.org/mailman/listinfo/python-list

quick question

2005-03-07 Thread Leeds, Mark
I have a string variable say “8023 “ and I want to get rid of the beginning And ending quotes.   I’ve tried different things But haven’t had any success.   I’m definitely a python hacker and Not an expert. Thanks.        Mark -- http

<    6   7   8   9   10   11   12   13   14   15   >