Re: Try Python update

2006-01-01 Thread Mike Meyer
"Devan L" <[EMAIL PROTECTED]> writes: >> > On a side note, my brother has tinkered with the C internals and now >> > __subclasses__ is restricted and many, many os and posix commands are >> > restricted (not that you can get them anyways, since importing is >> > broken!) >> I got import to work by

Re: Pyrex on Darwin, gcc 3.3 optimization trouble

2006-01-01 Thread Will Ware
In case anybody else has this problem, the solution is to add "-O" in extra_compile_args, which will override the "-O3" normally used. This is done in the setup.py file. -- http://mail.python.org/mailman/listinfo/python-list

idle with -n switch

2006-01-01 Thread rbt
What impact does the -n option have on idle.py on Windows? -- http://mail.python.org/mailman/listinfo/python-list

python-dev Summary for 2005-11-16 through 2005-11-30

2006-01-01 Thread Tony Meyer
[The HTML version of this Summary is available at http://www.python.org/dev/summary/2005-11-16_2005-11-30.html] = Summary Announcements = -- Reminder: Python is now on Subversion! --

New Python.org website ?

2006-01-01 Thread Bugs
I thought I read here that a new website design was in the works for python.org in time for the new year? Is that still true and of so, anyone know what is it's status? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-01 Thread Peter Hansen
Bugs wrote: > I thought I read here that a new website design was in the works for > python.org in time for the new year? Is that still true and of so, > anyone know what is it's status? Which year? If 2007, it might still be true... -- http://mail.python.org/mailman/listinfo/python-list

Re: Hypergeometric distribution

2006-01-01 Thread Scott David Daniels
Steven D'Aprano wrote: > On Sun, 01 Jan 2006 14:24:39 -0800, Raven wrote: > >> Thanks Steven for your very interesting post. >> >> This was a critical instance from my problem: >> >from scipy import comb > comb(14354,174) >> inf > > Curious. It wouldn't surprise me if scipy was using flo

Re: how to scrape url out of href

2006-01-01 Thread [EMAIL PROTECTED]
mike's code worked like a charm. i have one more question. i have an href which looks like this: http://www.cnn.com";> i thought i would use this code to get the href out but it fails, gives me a keyerror: for incident in row('td', {'class':'all'}): n = incident.f

Re: Problem overriding sys.excepthook

2006-01-01 Thread Patrick Maupin
Lunchtimemama wrote: > Forgive my ignorance, but I'm not quite sure what you mean. I tried > importing the traceback module at the beginning of the script, but that > didn't make a difference. Could you provide example code to illustrate > your comment? Thanks. Assume your main module has your ex

Re: New Python.org website ?

2006-01-01 Thread Aahz
In article <[EMAIL PROTECTED]>, Bugs <[EMAIL PROTECTED]> wrote: > >I thought I read here that a new website design was in the works for >python.org in time for the new year? Is that still true and of so, >anyone know what is it's status? Dunno about "in time for the new year", but there is a n

Re: PYTHONDOCS

2006-01-01 Thread J. D. Leach
Mike Meyer wrote: > Chris Smith <[EMAIL PROTECTED]> writes: >>> "J" == J D Leach <[EMAIL PROTECTED]> writes: >> I'm stupider; I can't ATFQ for you. >> But last night I stayed at a Holiday Inn Express, and can recommend >> >> http://projects.edgewall.com/python-sidebar/ >> >> Which, assuming

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2006-01-01 Thread alex . gman
http://en.wikipedia.org/wiki/Image:Dattebayo.jpg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or Java or maybe PHP?

2006-01-01 Thread NOKs
Thanks! That's really useful. I'm not sure if I'm a "dynamically typed" guy - coming form C#, very strict language, and C++, statically typed, but i definetly searched and see the debate going strong. Not try to start it here, but do you think that statically typed - namely, if I undertood correctl

Re: Getting terse tracebacks?

2006-01-01 Thread skip
Roy> Is there any way to make the traceback printer built into the Roy> interpreter elide all the directories in pathnames (like Roy> strip_dirs() does for the profiler)? There's a compact traceback printer in asyncore (compact_traceback). I used it as the basis for a compact stack p

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-01 Thread Ilias Lazaridis
Alex Martelli wrote: > Anton Vredegoor <[EMAIL PROTECTED]> wrote: >... > >>Google's not a nice company (yeah, I know I'm posting from a google >>account). If you look at their job requirements it's clear they will >>only hire people with long backstabbing histories. > > Such as...? Guido van

Re: scrape url out of brackets?

2006-01-01 Thread [EMAIL PROTECTED]
so here is the syntax folks!!! for anchor in soup.fetch('a', {'target': '_blank'}): print anchor['href'] [EMAIL PROTECTED] wrote: > so you recommend using some sort of for statement with the html parser > where i tell it to only parse stuff found in the tag for instance? > > Ravi Teja

Re: Amara (XML) problem on Solaris

2006-01-01 Thread uche . ogbuji
Doru-Catalin Togea wrote: > import amara > > doc = amara.create_document() > doc.xml_append(doc.xml_create_element(u"units")) > > print "OK" > > On Windows XP Pro it runs like this: > > C:\owera\test\xaps2-test>python amara-test1.py > OK > > C:\owera\test\xaps2-test> > > On Solaris it runs like thi

Re: Rss/xml namespaces sgmllib, sax, minidom

2006-01-01 Thread uche . ogbuji
Sakcee wrote: > I want to build a simple validator for rss2 feeds, that checks basic > structure and reports channels , items , and their attributes etc. > > I have been reading Mark Pilgrims articles on xml.com, diveintopython > and someother stuff on sgmllib, sax.handlers and content handlers, >

How can Python write BBcode modules?

2006-01-01 Thread 如履薄冰
BBcode reference: http://www.phpbb.com/phpBB/faq.php?mode=bbcode I want write a BBcode module in Python, but I'v not idea for this. Who can tell me about this arithmetic? ( I'm so sorry for my poor englist) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or Java or maybe PHP?

2006-01-01 Thread Alex Martelli
NOKs <[EMAIL PROTECTED]> wrote: > Thanks! That's really useful. I'm not sure if I'm a "dynamically typed" > guy - coming form C#, very strict language, and C++, statically typed, C#'s pretty close to Java, typing-wise, and C++'s not that far away. I did mention one GOOD statically typed language

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-01 Thread Alex Martelli
Ilias Lazaridis <[EMAIL PROTECTED]> wrote: ... > >>only hire people with long backstabbing histories. > > > > Such as...? Guido van Rossum? Greg Stein? Vint Cerf? Ben Goodger? ... > The employees you've mentioned should have most possibly the basic > google employment requirement: BS or

Re: reading files into dicts

2006-01-01 Thread Alex Martelli
rbt <[EMAIL PROTECTED]> wrote: ... > Thanks to everyone for the tips on eval and repr. I went with the > cPickle suggestion... this is awesome! It was the easiest and quickest > solution performance-wise. Just makes me think, "Wow... how the heck > does pickle do that?!" pickle.py implements

Re: python coding contest

2006-01-01 Thread Claudio Grondi
Michael Spencer wrote: > Claudio Grondi wrote: > >> ...I analysed the outcome of it and have >> come to the conclusion, that there were two major factors which >> contributed to squeezing of code: >> >>(1). usage of available variants for coding of the same thing >>(2). sqeezing the size

<    1   2