Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
Nope, I have C:\Python27 (and C:\Python27\Scripts) in my PATH. C:\workingdir\pycrypto>where python C:\Python27\python.exe On Tue, Mar 13, 2012 at 4:44 PM, Case Van Horsen wrote: > On Mon, Mar 12, 2012 at 9:57 PM, Alec Taylor wrote: >> Hmm, I just tried that method, but the output I got was stil

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
Hmm, I just tried that method, but the output I got was still: C:\workingdir\pycrypto>python setup.py install running install running build running build_py running build_ext building 'Crypto.Random.OSRNG.winrandom' extension Traceback (most recent call last): File "setup.py", line 452, in

Re: A Plausible Promise of Abundant Educational Resources

2012-03-12 Thread John Graves
OK. Do you have an presentation prepared? I've put the one with the photographsonto Dropbox. On Tue, Mar 13, 2012 at 5:06 PM, John Graves wrote: > The warning from Google should be fixed by now. A server outside my > control had been

Re: A Plausible Promise of Abundant Educational Resources

2012-03-12 Thread John Graves
The warning from Google should be fixed by now. A server outside my control had been infected with malware, so I shifted servers, but the warning message remained attached to the domain name. The address http://slidespeech.org leads to http://code.google.com/p/slidespeech/ the source code repositor

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread casevh
On Monday, March 12, 2012 1:38:29 PM UTC-7, Alec Taylor wrote: > On a brand new Windows install now, with a brand new VS8 installed > with new YASM and MPIR in c:\usr\src\include and c:\usr\src\lib. > > But it still isn't working: > This was a little challenging. I looked through the setup.py to

Re: Fast file data retrieval?

2012-03-12 Thread Jon Clements
On Monday, 12 March 2012 20:31:35 UTC, MRAB wrote: > On 12/03/2012 19:39, Virgil Stokes wrote: > > I have a rather large ASCII file that is structured as follows > > > > header line > > 9 nonblank lines with alphanumeric data > > header line > > 9 nonblank lines with alphanumeric data > > ... > >

Re: How to break long method name into more than one line?

2012-03-12 Thread Chris Angelico
On Tue, Mar 13, 2012 at 3:24 AM, Dennis Lee Bieber wrote: > On 12 Mar 2012 00:30:08 GMT, Steven D'Aprano > declaimed the following in > gmane.comp.python.general: >> I expect that naming rule was invented by either people who have heard of >> test driven development, but never actually done it, o

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
FYI: When running "vcvarsall" manually, I get a variety of linker errors, even though I have the SDK and everything else installed: running build_ext building 'Crypto.Random.OSRNG.winrandom' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DND

RE: Fast file data retrieval?

2012-03-12 Thread Prasad, Ramit
> > header line > > 9 nonblank lines with alphanumeric data > > header line > > 9 nonblank lines with alphanumeric data > > ... > > ... > > ... > > header line > > 9 nonblank lines with alphanumeric data > > EOF > > > > where, a data set contains 10 lines (header + 9 nonblank) and there can > > be

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
On a brand new Windows install now, with a brand new VS8 installed with new YASM and MPIR in c:\usr\src\include and c:\usr\src\lib. But it still isn't working: C:\workingdir\pycrypto>python setup.py build_ext -Ic:\usr\src\include -Lc:\usr\src\lib install running build_ext warning: GMP or MPIR lib

Re: Fast file data retrieval?

2012-03-12 Thread Dan Stromberg
If the ID's are sorted, you could probably rig a binary search using seek. This'll be easier if the records have a constant length, but it's still possible for variable-length, just messier. Otherwise you could stash them all in a dictionary (in memory) or anydbm (on disk) to get indexed access.

Re: Fast file data retrieval?

2012-03-12 Thread Arnaud Delobelle
On 12 March 2012 19:39, Virgil Stokes wrote: > I have a rather large ASCII file that is structured as follows > > header line > 9 nonblank lines with alphanumeric data > header line > 9 nonblank lines with alphanumeric data > ... > ... > ... > header line > 9 nonblank lines with alphanumeric data

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: In article<4f5df4b3$0$1375$4fafb...@reader1.news.tin.it>, Kiuhnm wrote: On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c). Using xxx-associativ

Re: Fast file data retrieval?

2012-03-12 Thread MRAB
On 12/03/2012 19:39, Virgil Stokes wrote: I have a rather large ASCII file that is structured as follows header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ... header line 9 nonblank lines with alphanumeric data EOF where, a data set

Fast file data retrieval?

2012-03-12 Thread Virgil Stokes
I have a rather large ASCII file that is structured as follows header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ... header line 9 nonblank lines with alphanumeric data EOF where, a data set contains 10 lines (header + 9 nonblank) and

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Albert van der Horst
In article <4f5df4b3$0$1375$4fafb...@reader1.news.tin.it>, Kiuhnm wrote: >On 3/12/2012 12:27, Albert van der Horst wrote: >> Interestingly in mathematics associative means that it doesn't matter >> whether you use (a.b).c or a.(b.c). >> Using xxx-associativity to indicate that it *does* matter is

Re: New Science Discovery: Perl Detractors Remain Idiots After A Decade

2012-03-12 Thread Raymond Wiker
Shmuel (Seymour J.) Metz writes: > In , on 03/12/2012 >at 11:27 AM, Albert van der Horst said: > >>You're confused. > > No, s/h/it is just an acephalic troll with delusions of adequacy. Another way to put it is to say that Xah is a legend in his own mind. -- http://mail.python.or

Re: How Python empowers Java?

2012-03-12 Thread Terry Reedy
On 3/12/2012 1:39 AM, Ashish Aggarwal wrote: I am a Java developer but new to Python. I am trying to assess, as what are new capabilities that Python will provide me if I use it with Java. Guys can you please help me? 1. Jython is a Python interpreter (older version) implemented in Java. It a

Re: html5lib not thread safe. Is the Python SAX library thread-safe?

2012-03-12 Thread John Nagle
On 3/12/2012 3:05 AM, Stefan Behnel wrote: John Nagle, 11.03.2012 21:30: "html5lib" is apparently not thread safe. (see "http://code.google.com/p/html5lib/issues/detail?id=189";) Looking at the code, I've only found about three problems. They're all the usual "cached in a global without lock

Re: Raise X or Raise X()?

2012-03-12 Thread Stefan Behnel
Steven D'Aprano, 12.03.2012 16:08: > On Mon, 12 Mar 2012 14:52:49 +0100, Stefan Behnel wrote: >>> "raise X" is a special case of the 3-args raise. Effectively it just >>> raises an instance of X which is constructed with an empty argument >>> list. Therefore, "raise X()" is equivalent, as far as I

Re: Raise X or Raise X()?

2012-03-12 Thread Steven D'Aprano
On Mon, 12 Mar 2012 14:52:49 +0100, Stefan Behnel wrote: >> "raise X" is a special case of the 3-args raise. Effectively it just >> raises an instance of X which is constructed with an empty argument >> list. Therefore, "raise X()" is equivalent, as far as I know. > > Not completely, although tha

Re: Raise X or Raise X()?

2012-03-12 Thread Stefan Behnel
Irmen de Jong, 11.03.2012 21:37: > On 11-3-2012 20:04, bvdp wrote: >> Which is preferred in a raise: X or X()? I've seen both. In my specific case >> I'm dumping out of a deep loop: >> >> try: >> for ... >> for ... >> for ... >> if match: >>raise StopInteration() >>

Re: What's the best way to parse this HTML tag?

2012-03-12 Thread Roy Smith
In article , John Salerno wrote: > Well, I had considered exactly that method, but I don't know for sure > if the titles and names will always have links like that, so I didn't > want to tie my programming to something so specific. But perhaps it's > still better than just taking the first two

Re: Raise X or Raise X()?

2012-03-12 Thread Chris Angelico
On Tue, Mar 13, 2012 at 12:06 AM, James Elford wrote: > I wonder whether you need to use an exception here rather than a yield > statement? Or a return statement, if you're not needing multiple responses. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Kiuhnm
On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c). Using xxx-associativity to indicate that it *does* matter is a bit perverse, but the Perl people are not to blame if they use a term in their u

Re: Raise X or Raise X()?

2012-03-12 Thread James Elford
On 11/03/12 19:04, bvdp wrote: > Which is preferred in a raise: X or X()? I've seen both. In my specific case > I'm dumping out of a deep loop: > > try: > for ... > for ... > for ... > if match: >raise StopInteration() > else ... > > except StopInteration

Re: Raise X or Raise X()?

2012-03-12 Thread Robert Kern
On 3/12/12 10:37 AM, Jean-Michel Pichavant wrote: bvdp wrote: Which is preferred in a raise: X or X()? I've seen both. In my specific case I'm dumping out of a deep loop: try: for ... for ... for ... if match: raise StopInteration() else ... except StopInteration: print "found it" I prefer t

Re: New Science Discovery: Perl Detractors Remain Idiots After A Decade

2012-03-12 Thread Seymour J.
In , on 03/12/2012 at 11:27 AM, Albert van der Horst said: >You're confused. No, s/h/it is just an acephalic troll with delusions of adequacy. >"left-associativity" and "right-associativity" are computer >languages concept and their definitions are not from mathematics. Don't confuse the go

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Albert van der Horst
In article <0078bbfb-5dfc-48fc-af1a-69de3cf15...@b1g2000yqb.googlegroups.com>, Xah Lee wrote: >New Science Discovery: Perl Idiots Remain Idiots After A Decade! > >A excerpt from the new book =E3=80=88Modern Perl=E3=80=89, just published, = >chapter 4 >on =E2=80=9COperators=E2=80=9D. Quote: > >=C2

Re: Raise X or Raise X()?

2012-03-12 Thread Jean-Michel Pichavant
bvdp wrote: Which is preferred in a raise: X or X()? I've seen both. In my specific case I'm dumping out of a deep loop: try: for ... for ... for ... if match: raise StopInteration() else ... except StopInteration: print "found it" I prefer the r

Re: html5lib not thread safe. Is the Python SAX library thread-safe?

2012-03-12 Thread Stefan Behnel
John Nagle, 11.03.2012 21:30: >"html5lib" is apparently not thread safe. > (see "http://code.google.com/p/html5lib/issues/detail?id=189";) > Looking at the code, I've only found about three problems. > They're all the usual "cached in a global without locking" bug. > A few locks would fix that.

Re: html5lib not thread safe. Is the Python SAX library thread-safe?

2012-03-12 Thread Paul Rubin
John Nagle writes: >But html5lib calls the XML SAX parser. Is that thread-safe? > Or is there more trouble down at the bottom? According to http://xmlbench.sourceforge.net/results/features200303/index.html libxml and expat both purport to be thread-safe. I've used the python expat librar

Re: newb __init__ inheritance

2012-03-12 Thread hyperboogie
On Thursday, March 8, 2012 5:25:06 PM UTC+2, hyperboogie wrote: > Hello everyone. > > This is my first post in this group. > I started learning python a week ago from the "dive into python" e- > book and thus far all was clear. > However today while reading chapter 5 about objects and object > ori

Fwd: Launching A Truly Disjoint Process

2012-03-12 Thread Ami Tavory
-- Forwarded message -- From: Cameron Simpson Date: Mon, Mar 12, 2012 at 1:04 AM Subject: Re: Launching A Truly Disjoint Process To: Dave Angel Cc: Ami Tavory , python-list@python.org On 11Mar2012 17:34, Dave Angel wrote: | On 03/11/2012 05:01 PM, Ami Tavory wrote: | >I'm e

Re: A Plausible Promise of Abundant Educational Resources

2012-03-12 Thread Calvin Kim
Google search for slidespeech returns with a warning, "This site may harm your computer." -- http://mail.python.org/mailman/listinfo/python-list