SCons build tool speed
How does the speed of the Scons build tool compare with Ant? Right now with out Ant builds take around an hour. Hoping to speed that up. TIA, Ted -- http://mail.python.org/mailman/listinfo/python-list
BeautifulSoup fetch help
Hi, I'm using the BeautifulSoup module and having some trouble processing a file. It's not printing what I'm expecting. In the code below, I'm expecting cells with only "bgcolor" attributes to be printed, but I'm getting cells with other attributes and some without any attributes. Any help appreciated. Thanks, Ted import re from BeautifulSoup import BeautifulSoup text = open('yahoo.html').read() soup = BeautifulSoup(text) tables = soup('table', {'border':re.compile('.+')}) for table in tables: cells = table.fetch('td', {'bgcolor':re.compile('.+')}) for cell in cells: print cell print "" -- http://mail.python.org/mailman/listinfo/python-list
Re: BeautifulSoup fetch help
Thanks Mike, works like a charm. -Ted "Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "ted" <[EMAIL PROTECTED]> writes: > >> I'm using the BeautifulSoup module and having some trouble processing a >> file. It's not printing what I'm expecting. In the code below, I'm >> expecting >> cells with only "bgcolor" attributes to be printed, but I'm getting cells >> with other attributes and some without any attributes. > > BeatifulSoups matching is for any tag with a matching attribute, not > tags that only match that attribute. That's why you're getting tags > with other attributes. > > However, you can use a callable as the tag argument to check for what > you want: > > def findtagswithly(name, attr): >return (lambda tag: tag.name == name and >len(tag.attrs) == 1 and >tag.attrs[0][0] == attr) > > ... > >cells = table.fetch(findtagswithonly('a', 'bgcolor')) > > > Or, because I wrote it to check out: > > def findtagswithoneattrib(name): >return lambda tag: tag.name == name and len(tag.attrs) == 1 > > ... > cells = table.fetch(findtagswithoneattrib('a', {bgcolor: > re.compile('.+)})) > > I'm not sure why you're getting tags without attributes. If the above > code does that, post some sample data along with the code. > > -- > Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more > information. -- http://mail.python.org/mailman/listinfo/python-list
Re: Programming newbie coming from Ruby: a few Python questions
I have always liked this tutorial for beginners: http://www.ibiblio.org/obp/thinkCSpy/ Cheers, Ted -- http://mail.python.org/mailman/listinfo/python-list
Re: OS X install confusion
On Jun 14, 1:31 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: > John Fisher wrote: > > Hi Groupies, > > > I have an Intel Macbook running OS X 10.4. > > > It came installed with Python 2.3.5. I have since installed MacPython > > with version 2.4.4, cool. > > > When I open a bash terminal session and type python, it brings up > > version 2.3.5. If I type IDLE it brings up version 2.4.4. > > > My question: what do I have to do to get it to bring up 2.4.4 with the > > "python" command? > > > Thanks for bringing light to my ignorance. > > > JF > > Sounds like a path problem. Apple's system Python is installed in > /usr/bin. Your installation is probably in /usr/local/bin. Edit your > profile or use the full path. > > -- > Kevin Walzer > Code by Kevinhttp://www.codebykevin.com The default python on tiger (2.3.5) is sym-linked to /usr/bin/python and /usr/bin/pythonw. I found it easier to relink to the new installation path. This also leaves /usr/bin/python23 and /usr/bin/pythonw23 still linked to the original version if you want to quickly check something. Cheers, Ted -- http://mail.python.org/mailman/listinfo/python-list
Re: which is better, string concatentation or substitution?
Thank you Roy. It seems if you lurk here long enough you eventually get all you questions answered without even asking! ;-) Roy Smith wrote: > John Salerno <[EMAIL PROTECTED]> wrote: > >Roy Smith wrote: > > > >> One may be marginally faster, but they both require copying the source > >> string, and are thus both O(n). > > > >Sorry, I'm not familiar with the O(n) notation. > > OK, here's a quick tutorial to "big-oh" notation. It's a way of > measuring algorithmic complexity. The O stands for "on the Order > of". > > For any algorithm, if you process n things (in the case of the strings > we're talking about, n would be the total number of characters in all > the strings), you can compute the number of steps it takes to complete > all the processing as some function of n. > > For example, let's say a given algorithm took 4n^2 + 5n + 17 steps to > complete. It doesn't take much experimentation to prove to yourself > that for all but the very smallest values of n, the constant 17 is > completely insignificant. In fact, n doesn't have to get very big > before the 5n term becomes insignificant too. To a reasonable > approximation, you could say that the algorithm takes 4n^2 steps and > be close enough. For small values of n, this will be a bad > approximation, but it doesn't really matter for small values of n. > For large values of n (think hundreds, thousands or even millions), > it's just fine. > > So, the first rule of O() notation is that when looking at how fast an > algorithm runs, you need only consider the highest order term > (i.e. the one with the biggest exponent). > > But, it gets even better. Let's compare two algorithms, the one > above, which takes (approximately) 4n^2 steps, and another one which > takes 10n steps, for varous values of n: > > n 10n4n^2 >--- -- -- > 1 10 4 > 2 20 16 > 3 30 36 > 4 40 64 > 5 50 100 > 6 60 144 > 7 70 196 > 8 80 256 > 9 90 324 >10100 400 >11110 484 >12120 576 >13130 676 >14140 784 >15150 900 >161601024 >171701156 >181801296 >191901444 >202001600 > > Notice that it doesn't take long for the fact that n^2 grows a lot > faster than n to swamp the fact that 10 is bigger than 4. So the next > step in simplification is to say that not only don't the lower-order > terms matter, but the coefficient on the highest order term doesn't > even matter. For a large enough n, all that matters is the exponent > (for the moment, I'm making a further simplification that all > algorithms can be described by polynomials with integer exponents). > > So, we get things like: > > O(n^0), which is almost always written as O(1). This is a "constant > time" algorithm, one which takes the same amount of steps to execute > no matter how big the input is. For example, in python, you can > write, "x = 'foo'". That assignment statement takes the same amount > of time no matter how long the string is. All of these execute in the > same number of steps: > > x = '' > x = 'foo' > x = 'a very long string with lots and lots of characters' > > We can say that "assignment is constant time", or "assignment is > O(1)". > > The next step up is O(n). This is "linear time" algorithm. It takes > a number of steps which is directly proportional to the size of the > input. A good example might be "if 'x' in 'bar'". The obvious way to > implement this (and, I assume, the way it is implemented in Python), > is to loop over the string, comparing 'x' to each character in 'bar', > one by one. This takes as many steps as there are characters in the > string. > > Next comes O(n^2), also knows as "quadratic time". This means if your > input is of size n, the algorithm will take n^2 steps to run. > Quadratic algorithms are generally considered very slow, and to be > avoided if at all possible. > > Once you get used to thinking like this, it's easy to look at a piece > of code and say, "oh, that's quadratic", or "that's linear", and > instantly know which is faster for some some large input. And once > you've started thinking like that, you've made one of the big jumps > from thinking like a coder to thinking like a computer scientist (or, > if you prefer, like a software engineer). > > Google "algorithmic complexity" or "big o notation" (perhaps spelled > "big oh") for more info. I would normally recommend Wikipedia, but I > just took a quick look at their "Big O notation" article, and noticed > it's full of formal mathematical gobbledygook which just serves to > obscure what is really a fairly easy concept. -- http://mail.python.org/mailman/
Financial aid for PyCon 2009 is now available
I'm happy to announce that the Python Software Foundation has allocated some funds to help people attend PyCon 2009! If you would like to come to PyCon but can't afford it, the PSF may be able to help you pay for registration, lodging/hotel costs and transportation (flight etc.). Please see http://us.pycon.org/2009/registration/financial-aid/ for full details, or email pycon-...@python.org with any questions. -- http://mail.python.org/mailman/listinfo/python-list
Re: New python.org website
Hear hear! I like it. It's not perfect but is much better than the old one in all ways. A huge improvement. Thanks to the website team. -- http://mail.python.org/mailman/listinfo/python-list
python gui ide under linux..like visual studio ;) ?
Hi at all... Can someone please give me some advice, about a good IDE with control GUI under Linux ? Actually i know QT Creator by Nokia which i can use with Python (but i don't know how). And, a good library for access to database (mysql, sql server, oracle) ? Thank you very much ! bye -- http://mail.python.org/mailman/listinfo/python-list
Re: python gui ide under linux..like visual studio ;) ?
Il 18/01/2010 21:59, Mike Driscoll ha scritto: > On Jan 18, 8:32 am, ted wrote: >> Hi at all... >> Can someone please give me some advice, about a good IDE with control >> GUI under Linux ? >> >> Actually i know QT Creator by Nokia which i can use with Python (but i >> don't know how). >> >> And, a good library for access to database (mysql, sql server, oracle) ? >> >> Thank you very much ! >> >> bye > > Check out Dabo for the database stuff: http://dabodev.com/ > > There is nothing like Visual Studio. The closest I've found are things > like the QT Creator and wxGlade / Boa Constructor / wxFormBuilder. I > know I've heard of another one that was commercial, but I can't recall > the name at the moment. > > --- > Mike Driscoll > > Blog: http://blog.pythonlibrary.org > > PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/ Thank you very much. Bye! -- http://mail.python.org/mailman/listinfo/python-list
lambda closure question
What I want to do is pre-load functions with arguments by iterating through a list like so: >>>class myclass: ...pass >>>def func(self, arg): ...print arg >>>mylist = ["my", "sample", "list"] >>>for item in mylist: ...setattr(myclass, item, lamdba self: func(self, item)) This attaches a list of functions to the class, making them bound methods when called from a class instance. The functions are all similar except that they know their name through the item argument. The lambda takes the underlying function and preloads it with its name, and since lambdas support closures, it remembers the item variable that was used to create it when it is actually called like so: >>>obj = myclass() >>>obj.list() list That's great, since I can write a generic function that just needs to know its name to make a slight modification to its behavior, then attach it a bunch of times to a class under different names. Unfortunately, it doesn't work. It seems the closure keeps track of the variable fed to it dynamically - if the variable changes after the lambda is created, the lambda still references the _variable_ not the original _value_ and so gets the new value like so: >>>obj.sample() list >>>obj.my() list At least, that's the explanation I'm deducing from this behavior. Assuming that's the way Guido intended it to be (about as dynamic as it can get), I'm at a loss to do what _I_ want it to do. In fact, I don't think there's any way to generate the lambdas properly without coding in the name as a literal string, since any attempt to use a variable reference will always get modified as the loop iterates. Am I missing something? Help. -- http://mail.python.org/mailman/listinfo/python-list
Re: lambda closure question
Wow, a lot of great discussion. Almost a bit too much for me to grasp...I do see two or more nuggets that really address my issue. As a side note, I'm familiar with the term currying from a friend who learned ML and Scheme quite some time ago. Not sure if that's the true origin, but it was a sufficiently different context from Python (or at least I thought) that I didn't want to rely on its meaning. I was also sufficiently unsure of it's _exact_ meaning, since we're talking about two slightly different models, that I didn't want to use the term for that reason as well. It's gratifying to know that it was a relevant concept afterall, the partial function application discussion notwithstanding. It's also gratifying to see such a strong community versed in functional programming styles. Although I've only started working with FP in Python, it's been a useful tool for making my programming simpler. The first useful nugget is the crystalization method. I spent some time thinking about the problem after I posted it and came up with the same workaround, in fact, the exact same syntax. It's a bit inelegant, but it gets the job done for what I want to do. I won't even attempt to take a position in the debate about whether Python should work by default the way it does or the way I want to use it. ;) Seems we have well-spoken advocates for both sides. The other nifty nugget is Kent's suggestion for using old-style Python default arguments to capture the variable value. Since it looks slightly more elegant I'm going to give it a shot. I have to say, I was happily surprised by the volume and quality of response to my little issue. Thanks everyone! Ted -- http://mail.python.org/mailman/listinfo/python-list
Re: lambda closure question
I replied a few minutes ago thanking everyone for their pointers. Very interesting reading. I don't see my post yet, so I do hope it comes through. I'm using a new newsreading service and don't yet have confidence in it. In any case, the addition of the default-setting argument in the lambda works famously and is only a slight modification to my code. While I don't think it's particularly intuitive (I would hate to be a hypothetical programmer trying to puzzle out what my code does), it gets the job done and is a heck of a lot easier than attaching the list of attributes manually as I would've done without Python's FP capabilities. Thanks again, Ted -- http://mail.python.org/mailman/listinfo/python-list
Python xmlrpc servers?
I have a project for which being able to write xmlrpc server code in python would be vastly preferable to the second choice solution for a number of reasons. Unfortunately, pretty much everything I see on the net in the way of documentation appears either insufficient or outdated. The example given in the Python documentation for SimpleXMLRPCServer is more or less incomprehensible. That example is as follows: class MyFuncs: def div(self, x, y) : return div(x,y) handler = CGIXMLRPCRequestHandler() handler.register_function(pow) handler.register_function(lambda x,y: x+y, 'add') handler.register_introspection_functions() handler.register_instance(MyFuncs()) handler.handle_request() I don't see where the "div(x,y)" which is returned in the class function definition comes from. I don't see any relationship between the class MyFuncs and the rest of the program. I don't see where the returned function "pow" comes from or what its relevance is. I don't see what "lambda" is or how a lambda function is supposed to be construed as adding two numbers together. I don't see how this server is supposed to be used. I also find an example written by Dave Warner: http://www.onlamp.com/pub/a/python/2001/01/17/xmlrpcserver.html which is about four years old and dated. In particular, the include file xmlrpcserver which he imports no longer exists. And then, I find one example in an IBM reference which actually does work as stated on a single computer: http://www-106.ibm.com/developerworks/webservices/library/ws-pyth10.html The test client provided looks like: mport xmlrpclib server = xmlrpclib.ServerProxy("http://localhost:";) month = server.getMonth(2002, 8) print month which actually works. Nonetheless I need this thing to work across machines. I have a primitive network here usingVerizon DMS and a Linksys router which sees the three computers on it as 192.168.1.100, 192.168.1.101, and 192.168.1.102 as usual. Question is, what does it take to run the server on 102 and a client on 100? Changing the obvious line in the client program to: server = xmlrpclib.ServerProxy("http://192.168.1.102:";) doesn't work. Aside from that, I'd like to get the CGI version of the thing which uses .py files in the CGI bin to work as well and again the only example I see of that (in the Python documentation) is undecipherable. I'd appreciate any suggestions or info anybody might have. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python xmlrpc servers?
Skip Montanaro wrote: > ted> I don't see what "lambda" is or how a lambda function is supposed > ted> to be construed as adding two numbers together. > > Lambda is a keyword in Python used to create and return very simple > (single-expression) functions. Lambda expressions can be used anywhere > you'd normally use a function object. See: > > http://www.python.org/doc/current/ref/lambdas.html > > The line containing the lambda expression: > > server.register_function(lambda x,y: x+y, 'add') > > could be recast as: > > def add(x, y): > return x+y > > server.register_function(add, 'add') That's a whole lot easier to digest. I'd have assumed lambda was some sort of stat function... > The server listens to "localhost" on port . To allow it to listen for > external connections change "localhost" to the name or IP address of the > server. Before you do that make sure you understand the ramifications of > exposing your XML-RPC server to a broader class of potential clients, some > of which are bound to be malicious. > > Skip Many thanks, that's the part I was missing in the case of standalone servers. The only other real question is what about the cgi servers? I'd assume I'd take the example given: class MyFuncs: def div(self, x, y) : return div(x,y) handler = CGIXMLRPCRequestHandler() handler.register_function(pow) handler.register_function(lambda x,y: x+y, 'add') handler.register_introspection_functions() handler.register_instance(MyFuncs()) handler.handle_request() Stuff that into a file in the cgi-bin dir on the server, and then try to use something like: server = xmlrpclib.Server("http://192.168.1.102/testserver.py";) or server = xmlrpclib.Server("http://192.168.1.102/cgi-bin/testserver.py";) That still hasn't worked, so far at least. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python xmlrpc servers?
Jaime Wyant wrote: > Mark Pilgrim wrote a really neat piece of python code that did XML-RPC > over CGI. It seems to have disappeared from his website, though > (http://diveintomark.org/public/webservices.txt). > > If you can't dig it up, I have a working copy that I use. I'll post > it / email it if you want. > Thanks, couldn't hurt anything to post it. Again the real problem seems to be the cnostant state of flux of open software and the attempts to have machines and software write documentation don't really seem to help much. Ted -- http://mail.python.org/mailman/listinfo/python-list
Re: Python xmlrpc servers?
Skip Montanaro wrote: > If so, you need to qualify the reference to the handler class like > > SimpleXMLRPCServer.CGIXMLRPCRequestHandler Again thanks, that works. If I weren't worried about jinxing myself I'd say I seem to be in pretty good shape at this point... Ted -- http://mail.python.org/mailman/listinfo/python-list
RE: php and python: how to unpickle using PHP?
Thanks for everyone who replied my question. I could not access to the messages from this list Until today. I will look up the solutions you guys suggested. Ted zeng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Arnold Sent: Tuesday, October 03, 2006 8:07 AM To: python-list@python.org Subject: Re: php and python: how to unpickle using PHP? <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ted Zeng: >> I store some test results into a database after I use python >> To pickle them (say, misfiles=['file1','file2']) >> Now I want to display the result on a web page which uses PHP. >> How could the web page unpickle the results and display them? >> Is there a PHP routine that can do unpickle ? > > Instead of pickling, maybe you can save the data from python in json > format: > http://www.json.org/ > Then you can read it from PHP. wddx format is a workable solution as well http://pyxml.sourceforge.net/ plus http://us2.php.net/wddx -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: John Bokma harassment
On 31 May 2006, [EMAIL PROTECTED] wrote: > Most languages stay blindly in their own community, oblivious to the > nature or facts of computing languages outside of their world. If > there are more relevant cross-posting, then this problem can be > lessened. (cross-posted to c.l.perl.misc and c.l.python only because they are named in Xah Lee's discourse) That's interesting. So to "correct" the attitude of several communities *you* believe are insular and opinionated (most people would disagree with you, but that's besides the point) you took it upon yourself to cross-post your thoughts to all those communities. Do you really believe this is ethically correct? (I'm sure you believe it's morally correct, but that's also besides the point. I hope you at least understand the difference between morals and ethics, and which of the two apply when you deal with a community.) You mention philosophers, cooperation, and open-mindedness. You also use loaded terms like "hot air," "brainlessness," call Python people "militant" and "poor in knowledge," and name a "Perl cult." I hope you see how this is at best inconsistent (I would call it hypocritical), and makes you and your postings unwelcome with the communities you've peppered with your opinions. Ted -- http://mail.python.org/mailman/listinfo/python-list
Could not build MySQLdb on PowerMac (PPC)
Hi, I am new to Python. I am trying to build MySQLdb for my PowerPC PowerMac. I just downloaded the source last week and tried to build it. But I got the error messages as follow. I checked and there is no such files as mysql_config mysql.h my_config.h ... Did I download the wrong source? python setup.py build sh: line 1: mysql_config: command not found ...(same as above for a few lines) running build running build_py copying MySQLdb/release.py -> build/lib.macosx-10.4-fat-2.4/MySQLdb running build_ext building '_mysql' extension gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _mysql.c -o build/temp.macosx-10.4-fat-2.4/_mysql.o -Dversion_info="(1,2,1,'final',2)" -D__version__="1.2.1_p2" _mysql.c:39:19:_mysql.c:39:19: error: mysql.h: No such file or directory _mysql.c:40:23: error: my_config.h: No such file or directory _mysql.c:41:26: error: mysqld_error.h: No such file or directory _mysql.c:42:20: error: error: mysql.h: No such file or directory _mysql.c:40:23: error: my_config.h: No such file or directory errmsg.h: No such file or directory _mysql.c:41:26:_mysql.c:72: error: parse error before 'MYSQL' _mysql.c:72: warning: no semicolon at end of struct or union _mysql.c:75: error: parse error before '}' token _mysql.c:75: warning: data definition has no type or storage class _mysql.c:86: error: parse error before 'MYSQL_RES' Ted Zeng Adobe Systems Incorporated -- http://mail.python.org/mailman/listinfo/python-list
RE: Could not build MySQLdb on PowerMac (PPC)
Thank. I got it installed by following your instructions. I also needed to add the path to $PATH in the shell to make it work. ted -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Diez B. Roggisch Sent: Monday, September 18, 2006 11:38 AM To: python-list@python.org Subject: Re: Could not build MySQLdb on PowerMac (PPC) Ted Zeng schrieb: > Hi, > > I am new to Python. I am trying to build MySQLdb for my PowerPC > PowerMac. > I just downloaded the source last week and tried to build it. > But I got the error messages as follow. I checked and there is no such > files as > mysql_config > mysql.h > my_config.h > ... > > Did I download the wrong source? You need the mysql development files. You could e.g. use fink to install mysql and the development files package. On my machine it's called mysql14-dev. Diez -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
access to xml_rpc server problem
HI, I run a xml_rpc server like the following:(sample code from internet) server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000)) server.serve_forever() If my client is on the same machine, I use :(also from internet sample code) server = xmlrpclib.Server('http://localhost:8000') print server.chop_in_half('I am a confidant guy') This works fine. But if I use server's ip address instead of localhost in the client, then it could not access the server. server = xmlrpclib.Server('http://machine_ip_address:8000') print server.chop_in_half('I am a confidant guy') How can my client (runs on other machine) access the server? The server runs on a machine with dynamic IP. But my client knows the IP address. Ted Zeng -- http://mail.python.org/mailman/listinfo/python-list
RE: access to xml_rpc server problem
Good question. I will check this out. When I run the server on a machine with static IP, I need to run the server with SimpleXMLRPCServer.SimpleXMLRPCServer(("machine_domain.mycompany.com", 8000)) server.serve_forever() then client can access the server with server = xmlrpclib.Server('http:// machine_domain.mycompany.com:8000') If the server uses "localhost" such as the following instead, then the client still could not access the server: SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000)) server.serve_forever() ted -Original Message- From: Gabriel Genellina [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 5:38 PM To: Ted Zeng Cc: Eric Smith; python-list@python.org Subject: Re: access to xml_rpc server problem At Wednesday 20/9/2006 21:30, Ted Zeng wrote: >But if I use server's ip address instead of localhost in the client, >then it could not access the server. Maybe you have a firewall blocking access? Gabriel Genellina Softlab SRL -- http://mail.python.org/mailman/listinfo/python-list
php and python: how to unpickle using PHP?
Hi, I store some test results into a database after I use python To pickle them (say, misfiles=['file1','file2']) Now I want to display the result on a web page which uses PHP. How could the web page unpickle the results and display them? Is there a PHP routine that can do unpickle ? Ted zeng -- http://mail.python.org/mailman/listinfo/python-list
Awesome PySIG meeting last night
Ten folks attended the monthly Python Special Interest Group meeting, held monthly at the Amoskeag Business Incubator in Manchester. Ben was harassed. Announcements were made. Several Python gotchas were discussed. Paul Koning demonstrated a remarkable reinvention of the TECO (Tape Edit and COrrection system) in Python code. Interesting discussions on using a class definition as a dictionary to invoke single- and double-letter commands, even those not allowed as method names. Why exceptions are exceptional. Using wxPython to create a GUI screen for TECO like the PDP-11 VDT peripherals. The bang-up finale was running pi.tec - an inscrutable TECO macro that calculates Pi one digit at a time - to demonstrate his TECO compliance. Amazing. Regulars noted it ran much faster on Paul's laptop than it used to on a PDP-11, too. Next Month's meeting is May 25th and Ray Cote may demonstrate a recent application he's developed in Python. Stay tuned for details. Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Awesome PySIG meeting last night
On Apr 28, 2006, at 10:31 AM, Ben Scott wrote: > I must say, the level of harrassment was fairly low. I expect a > higher quality of heckling from this group. Don't let it happen > again. Be careful what you wish for! Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com -- http://mail.python.org/mailman/listinfo/python-list
Financial aid for PyCon 2009 is now available
I'm happy to announce that the Python Software Foundation has allocated some funds to help people attend PyCon 2009! If you would like to come to PyCon but can't afford it, the PSF may be able to help you pay for registration, lodging/hotel costs and transportation (flight etc.). Please see http://us.pycon.org/2009/registration/financial-aid/ for full details, or email pycon-...@python.org with questions. -- http://mail.python.org/mailman/listinfo/python-list
DictReader and fieldnames
Is it possible to grab the fieldnames that the csv DictReader module automatically reads from the first line of the input file? Thanks, Ted To -- http://mail.python.org/mailman/listinfo/python-list
email questions
I tried to get a message to the below email address and this information was sent back to me. Can you help me find out why it would not go through, or send it to the place that may help me? Thank you, Irma Slage [EMAIL PROTECTED] The error that the other server returned was: 553 553 5.3.0 <[EMAIL PROTECTED] >... Addressee unknown, relay=[64.233.182.185] (state 14).-- http://mail.python.org/mailman/listinfo/python-list
SEC proposes the use of Python and XML
This week the SEC proposed new requirements for asset-backed securities that include the use of XML and Python: "The asset-level information would be provided according to proposed standards and in a tagged data format using eXtensible Markup Language (XML). In addition, we are proposing to require, along with the prospectus filing, the filing of a computer program of the contractual cash flow provisions expressed as downloadable source code in Python, a commonly used open source interpretive programming language." See: http://www.sec.gov/news/press/2010/2010-54.htm http://kelloggfinance.wordpress.com/2010/04/08/the-sec-gets-one-right Ted -- http://mail.python.org/mailman/listinfo/python-list