Re: Comparisons of incompatible types

2010-12-08 Thread geremy condra
nches would be taken > and the final bogus results might not contain NaNs. > >   I personally think that comparing NaN with numbers or other > NaNs should raise an exception.  There's no valid result for > such comparisons. This, in big letters. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: run a function in another processor in python

2010-12-09 Thread geremy condra
de-python3ify it just change the line at the top and cast your nums to floats, otherwise you'll get integer division (which I again assume you don't want). #! /usr/bin/env python3 import time import multiprocessing def functionTester(num): return ((num+2)/(num-2))**2 num_args = [61,62,33,7,12,16,19,35,36,37,38,55,56,57,63] num_processes = multiprocessing.cpu_count() pool = multiprocessing.Pool(num_processes) start = time.time() results = pool.map(functionTester, num_args) end = time.time() # is this what you meant to do with the results? max_result = max(results) print("Result " + str(max_result)) elapsed = end - start print("Took", elapsed, "seconds to execute") Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: run a function in another processor in python

2010-12-10 Thread geremy condra
t seem to use lambda or a decorator to do this, which would have been my first instinct. Pickle apparently chokes, although marshall wouldn't. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: python only prints integers

2011-01-06 Thread geremy condra
On Thu, Jan 6, 2011 at 2:49 PM, francesco wrote: > I'm pretty new in Python language. I have a problem with numbers: it > seems python doesn't know any more how to count! > I get only the down rounded integer > 20/8 = 2 > 8/3=2 > I probably changed some option to round the numbers, but I don't > r

Re: Trying to decide between PHP and Python

2011-01-06 Thread geremy condra
e's problem.  If PHP breaks on shared hosting, > enough users will be screaming that it gets fixed. > >                                John Nagle I'm not exactly a god unto sysadmins and I've had no problems with either bargain-basement Python managed hosting or VPS's. I'd encourage anybody looking at the differences between PHP and Python to try both and get some hosting that lets you use either. I'm pretty confident that in the long run Python will win out. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-14 Thread geremy condra
ell as on the desktop. > > Hmm, this is like two double edged swords smashing one another in > battle. Seriously, get off of WoW and go write some code. If you'd spent the last year programming instead of doing your best Xah Lee impression you might have actually made some progre

Re: After C++, what with Python?

2011-01-15 Thread geremy condra
accepted you'll be able to tell that to potential employers. At this point you'll probably have a much better idea of what you'd like to do moving forward- you'll probably have found out what kinds of problems you find interesting, which ones you have an aptitude for, and what kin

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread geremy condra
a company like Google that is capable of the > push required to move the language into the mainstream. You might be right, but I doubt we'll know one way or the other in the next 5 years. Personally, I'm hoping that functional language use continues to grow. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 4:12 PM, rantingrick wrote: > > I don't have the energy to chase my tail like you do. Hahahahahahahaha. Troll. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 5:50 PM, rantingrick wrote: > On Jan 16, 6:59 pm, geremy condra wrote: >> Hahahahahahahaha. Troll. > > > Coming from someone who actually gives advice on how to troll more > efficiently.

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread geremy condra
On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: > On 2011-01-16, geremy condra wrote: >> On Sun, Jan 16, 2011 at 3:03 AM, Tim Harig wrote: >>> On 2011-01-16, Steven D'Aprano wrote: >>>> If the author thinks that Go is a "tried and true" (his word

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread geremy condra
On Mon, Jan 17, 2011 at 1:07 PM, Tim Harig wrote: > On 2011-01-17, geremy condra wrote: >> On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: >>> On 2011-01-16, geremy condra wrote: >>> I wouldn't say Go is narrowly targeted.  It's a systems language that ca

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-18 Thread geremy condra
structures using function pointers, and languages like Python only provide encapsulation by convention. There's no reason why that couldn't be true for C as well. Ergo, if Go is OO, then C is OO. > defer/panic/recover is conceptually a world closer to exceptions then is > setjm

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-18 Thread geremy condra
 I am rather amazed at >        the number of things that can be accomplished in Python without >        having to bind to C. Again, you don't know what you're talking about WRT PyPy. > 2. There is a difference in binding to a solution that is already written >        in another language so as to not reinvent a wheel and implementing >        a *new* library in another language to be used exclusively >        with Python. Even if that binding is done for performance reasons? Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: move to end, in Python 3.2 Really?

2011-01-18 Thread geremy condra
to > "solve" itself? There's no chain of command here, genius. It's a mailing list. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-19 Thread geremy condra
yptographic solution to a problem in which the attacker and intended recipient are the same person. Schemes like this are at most an annoyance to people willing to reverse engineer your code. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread geremy condra
wants to push for this is in for a hard, multi-year slog. Nobody has stepped up to the plate to do any real work towards that goal. > Do they have to pay to license it or is this all freely contributed software? I can't imagine non-free code making it in. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread geremy condra
On Wed, Jan 19, 2011 at 11:37 AM, geremy condra wrote: > No, it's about other operating systems too, but what it comes down to > is that rantingrick has been on the warpath about tkinter for a while, > and hasn't proposed a particularly viable alternative. The sad thing > is

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread geremy condra
On Wed, Jan 19, 2011 at 3:04 PM, rantingrick wrote: > > On Wed, Jan 19, 2011 at 1:40 PM, geremy condra > wrote: >> On Wed, Jan 19, 2011 at 11:37 AM, geremy condra wrote: >>> No, it's about other operating systems too, but what it comes down to >>> is th

Re: move to end, in Python 3.2 Really?

2011-01-19 Thread geremy condra
so long ago that has now waxed cold-- is > somehow less important than Steve's or anyones work is a little > condescending to say the least. Condescending or not, it's true. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread geremy condra
ent that pervades this community as > a whole. A fear of outsiders. A xenophobia if you will. We need to > change this now! There's a difference between 'we should' and 'we must'. One implies that you are trying to convince, which is what communities of equals do. The other implies that you are trying to command, which is what idiots think they can do to communities of equals. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-19 Thread geremy condra
black guys have > stereotypical huge cucumbers. Congratulations; you are the second person better than a decade to land in my bozo bin. Don't bother replying- I won't be hearing from you. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: CRC 16bit function

2011-01-20 Thread geremy condra
http://efreedom.com/Question/1-1767910/Checksum-Udp-Calculation-Python Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Krippendorff's alpha

2011-01-21 Thread geremy condra
example of how to use it, and a link to an excellent description of how it works and when to use it. Geremy Condra [0]: http://cswww.essex.ac.uk/Research/nle/arrau/alpha.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Need GUI pop-up to edit a (unicode ?) string

2011-01-22 Thread geremy condra
x27;zenity' mode = '--entry' text = "--text='Please confirm or edit the following string:'" title = "--title='confirm or edit'" entry = "--entry-text='%s'" % s cmd = ' '.join([zenity, mode, text,

Re: WxPython versus Tkinter.

2011-01-25 Thread geremy condra
d unless you're using Java, and even if that weren't the case Qt itself would require an enormous effort to port. Perhaps you meant MeeGo? Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-25 Thread geremy condra
On Tue, Jan 25, 2011 at 11:40 AM, CM wrote: > On Jan 25, 2:33 pm, geremy condra wrote: >> On Tue, Jan 25, 2011 at 11:16 AM, CM wrote: >> > I guess for Android one can already develop with PyQt >> > and it will run on desktop or phone? >> >> No. It

Re: WxPython versus Tkinter.

2011-01-25 Thread geremy condra
oth, and it doesn't do you a lot of favors. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-25 Thread geremy condra
On Tue, Jan 25, 2011 at 1:03 PM, Octavian Rasnita wrote: > From: "geremy condra" >> On Tue, Jan 25, 2011 at 11:24 AM, Octavian Rasnita >> wrote: >> >>> Yes, I know, that's life, which is not right, that's faith, bla bla, but it &

Re: WxPython versus Tkinter.

2011-01-26 Thread geremy condra
On Tue, Jan 25, 2011 at 11:10 PM, Octavian Rasnita wrote: > From: "geremy condra" >> >> There's a difference between what you say and how you say it. If a >> friend came up to you and said "give me $100 right now!", you probably >> wouldn&#x

Re: WxPython versus Tkinter.

2011-01-26 Thread geremy condra
feeling good about the experience and eager to not make the same mistake again. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Securing files

2011-02-23 Thread geremy condra
for your help. I don't know much about your system, but just as a hunch I'd say that if this is a major requirement you're screwed. The old maxim: there is no cryptographic solution to the problem in which the attacker and intended recipient are the same person. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption source code with md5

2010-04-04 Thread geremy condra
py comes up in every discussion of cryptography in python on this list and, AFAICT, has yet to come under significant cryptanalytic scrutiny. That doesn't make it a bad example in this case, but I would caution the OP that it probably doesn't make it a good candidate for your encryption needs. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption source code with md5

2010-04-04 Thread geremy condra
On Sun, Apr 4, 2010 at 8:42 PM, Robert Kern wrote: > On 2010-04-04 17:44 , geremy condra wrote: >> >> On Sun, Apr 4, 2010 at 6:03 PM, Robert Kern  wrote: >>> >>> On 2010-04-03 20:21 , Lawrence D'Oliveiro wrote: >>>> >>>> In me

Re: Striving for PEP-8 compliance

2010-04-07 Thread geremy condra
s not an option, you could run the whole thing through dis and check that the bytecode is identical. There's probably an easier way to do this though. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: obfuscate 0.2.2

2010-04-10 Thread geremy condra
red. >> >> Certainly no one should never use obfuscate's rot13 function for high >> security.  Use at least double-rot13 instead, or maybe even quadruple >> rot13 ;-). > > Ha ha, that's funny! I've never heard that one before! *wink* I think I

Re: ANN: obfuscate 0.2.2

2010-04-10 Thread geremy condra
On Sun, Apr 11, 2010 at 3:44 AM, Steven D'Aprano wrote: > On Sun, 11 Apr 2010 03:00:50 +, geremy condra wrote: > >> On Sun, Apr 11, 2010 at 1:17 AM, Steven D'Aprano >> wrote: >>> On Sat, 10 Apr 2010 13:34:17 -0700, Paul Rubin wrote: >>>

Re: ANN: obfuscate 0.2.2

2010-04-10 Thread geremy condra
On Sun, Apr 11, 2010 at 4:37 AM, Aahz wrote: > In article , > geremy condra   wrote: >>On Sun, Apr 11, 2010 at 1:17 AM, Steven D'Aprano >> wrote: >>> On Sat, 10 Apr 2010 13:34:17 -0700, Paul Rubin wrote: >>>> Steven D'Aprano writes: >>&

Re: "ssl" module doesn't validate that domain of certificate is correct

2010-04-19 Thread geremy condra
gt;                (('serialNumber', u'2497886'),), >                (('countryName', u'US'),), >                (('postalCode', u'94043'),), >                (('stateOrProvinceName', u'California'),), >  

Re: python glibc crypt() function

2010-04-20 Thread geremy condra
/mailman/listinfo/python-list > http://docs.python.org/py3k/library/crypt.html#module-crypt Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: python glibc crypt() function

2010-04-20 Thread geremy condra
; '$1$abcdefgh$G//4keteveJp0qb8z2DxG/' > > Is that what it's supposed to return? > > Peter Seems like my posts are dropping off of the net all of a sudden. In case this didn't go through the first time... http://docs.python.org/py3k/library/crypt.html#module-crypt Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: python glibc crypt() function

2010-04-20 Thread geremy condra
pescrypto does not appear to be maintained, but I've started a similar project called evpy (http://gitorious.org/evpy) that also provides envelope encryption. Comments are welcome- we're probably going to be doing our first release sometime towards the middle of next month. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: python glibc crypt() function

2010-04-21 Thread geremy condra
like that's the old-style MD5-based hash. It's far from 'broken', but it has a few issues. Better would be to move to the SHA512-based $6$ if your platform supports it. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: assigning multi-line strings to variables

2010-04-27 Thread geremy condra
of text to a variable w/out special formatting. > Thanks. The '...' is the interpreter's way of telling you that you are in a block, e.g. a function definition, with statement, etc. The '\n' you see in the middle of the string is the newline character. If you try to print the string, the expected happens: >>> d = """ ... ddd""" >>> d '\nddd' >>> print(d) ddd Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

open(False) in python3

2010-05-11 Thread geremy condra
ck (most recent call last): File "", line 1, in TypeError: coercing to Unicode: need string or buffer, bool found >>> Should I chalk this up to stupid coder syndrome or file a bug report? Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: open(False) in python3

2010-05-12 Thread geremy condra
interesting to know. > > Standard Unix behaviour dictates that 0 is stdin, 1 is stdout, and 2 is > stderr. So you can only read() from 0. > > Stefan Nitpicking, but open(1).read() and open(2).read() both succeed (for small values of success) the same way that open(0).read() does. Thanks for the advice, everybody. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Lightweight Python

2010-05-17 Thread geremy condra
c, and I doubt tkinter is doing you much good. I also recall someone at pycon talking about importing modules from a .zip archive. I'm not sure how easy/hard that is, but you may want to look at PEP 302. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Lightweight Python

2010-05-17 Thread geremy condra
On Mon, May 17, 2010 at 1:05 PM, Nima wrote: > Well, I tried to run Python with -v option. It seems that python26.zip is > partially loaded but can't be used, because zlib is "unavailable". is the zlib module among the files you've compressed? Geremy Condra -- http

Re: Multi-Threading in Python

2010-05-18 Thread geremy condra
s probably best to use multiple processes to take advantage of multiple cores. Take a look at the threading and multiprocessing modules. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: where are the program that are written in python?

2010-05-21 Thread geremy condra
t python is acting only as "quick > and dirty work" nothing more ! Yeah, there's not really a lot of industry support. If only we could get a huge search engine like bing to use python extensively we'd be in a lot better shape. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritable Slots Metaclass

2010-05-26 Thread geremy condra
the standard library that makes slots > more transparent, but since slots are intended as an optimization, it > doesn't really need (and might be detrimental to have) transparency > for ordinary objects. > > However, Aahz will be by shortly to tell you never to use slots. Ok,

Re: Drawing Multigraphs

2010-06-01 Thread geremy condra
should draw the graph and print out the solution. We use Dot in Graphine, and it works well. It's also very easy to output to. Geremy Condra (sent to the list this time) -- http://mail.python.org/mailman/listinfo/python-list

Re: Drawing Multigraphs

2010-06-01 Thread geremy condra
On Tue, Jun 1, 2010 at 11:24 AM, Nima wrote: > 2010/6/1 geremy condra >> >> We use Dot in Graphine, and it works well. It's also very easy to >> output to. > > >> Graphine is a flexible, easy-to-use graph library for Python 3. > > I always knew a day w

Re: Syntax question

2010-06-02 Thread geremy condra
t; b = a >>> c = [:] >>> b[0] = 5 >>> b [5,2,3,4] >>> # here's the issue >>> a [5,2,3,4] >>> # and the resolution >>> c [1,2,3,4] Hope this helps. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Forum

2010-06-03 Thread geremy condra
o here from the remnants of > USENET!! > >> and never get answers... > > You mean like how I never get answers, to my super-easy GED-level > questions, here??! I agree. This proves conclusively that a web forum is the right place for you. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Forum

2010-06-03 Thread geremy condra
On Thu, Jun 3, 2010 at 3:40 PM, Phlip wrote: > On Jun 3, 3:20 pm, geremy condra wrote: > >> > You mean like how I never get answers, to my super-easy GED-level >> > questions, here??! >> >> I agree. This proves conclusively that a web forum is the right >

Re: Python Forum

2010-06-03 Thread geremy condra
On Thu, Jun 3, 2010 at 4:11 PM, Phlip wrote: > On Jun 3, 3:58 pm, geremy condra wrote: >> On Thu, Jun 3, 2010 at 3:40 PM, Phlip wrote: >> > On Jun 3, 3:20 pm, geremy condra wrote: >> >> >> > You mean like how I never get answers, to my super-easy GED-leve

Re: Python Forum

2010-06-03 Thread geremy condra
three weeks ago. Has something changed since then? Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Forum

2010-06-04 Thread geremy condra
on getting permission from the authors first this is a totally invalid comparison. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: FIle transfer over network - with Pyro?

2010-06-05 Thread geremy condra
ice unless you need really extreme performance. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-05 Thread geremy condra
defined) > - As small as possible in its default form > > If so, what are the next steps? > > The Python SIG on GUIs closed years ago. Should that be revived? > > This is "A Modest Proposal" (J. Swift). In a sense, I am suggesting > that > we eat o

Re: GUIs - A Modest Proposal

2010-06-06 Thread geremy condra
king on it > to make it really good. > 2c) Start from scratch. With a project supported by the Community as a > whole, with the agreed objective of being the default. > > None of these is easy. All require strong leadership and great > committment. I take it you're volunteering? Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-08 Thread geremy condra
ution; so why complain that python included a Tcl > expression engine in its standard distribution. This is a silly argument. REs are not full programming languages, even from a theoretical point of view, aMSN is written in Tcl, as wikipedia would have told you, and having to depend on the tools of another language to get commonly desired functionality is not a good thing for a programming language. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-08 Thread geremy condra
On Tue, Jun 8, 2010 at 4:46 PM, Steven D'Aprano wrote: > On Tue, 08 Jun 2010 15:40:51 -0700, geremy condra wrote: > >> On Tue, Jun 8, 2010 at 3:09 PM, Lie Ryan wrote: > >>> Nobody complains that python included a regular expression engine in >>> its stand

Re: GUIs - A Modest Proposal

2010-06-08 Thread geremy condra
On Tue, Jun 8, 2010 at 6:20 PM, Adam Tauno Williams wrote: > On Tue, 2010-06-08 at 18:12 -0700, geremy condra wrote: >> > * IronPython relies on the .Net environment for everything >> Since .Net (effectively) depends on Windows, > > 100% False;  not "effectively"

Re: GUIs - A Modest Proposal

2010-06-08 Thread geremy condra
On Tue, Jun 8, 2010 at 9:29 PM, Steven D'Aprano wrote: > On Tue, 08 Jun 2010 18:12:05 -0700, geremy condra wrote: > >> I didn't argue that Tcl is bad. I argued that a dependency on it is bad >> for python. Would you argue that Python should ship with Perl and Java

Re: GUIs - A Modest Proposal

2010-06-08 Thread geremy condra
before these meddling forces can >> take hold of him. He is so fearful of seeing the light in an opposing >> argument that blinding himself from reality is easier than facing >> reality. > > Ah, so you are a psychoanalyst, too? Amazing! How do you think he mad so many incor

Re: Non Sequitur: Re: Python Forum

2010-06-09 Thread geremy condra
On Wed, Jun 9, 2010 at 1:19 AM, Gregory Ewing wrote: > rantingrick wrote: >> >> I ate >> three fishes just sounds wrong to me. What's the plural of sheep >> Stephen :-D > > It's sheepses, isn't it? Am I missing something? Shyp. Pronounced the sa

Re: GUIs - A Modest Proposal

2010-06-09 Thread geremy condra
On Wed, Jun 9, 2010 at 2:38 AM, Adam Tauno Williams wrote: > On Tue, 2010-06-08 at 18:49 -0700, geremy condra wrote: >> On Tue, Jun 8, 2010 at 6:20 PM, Adam Tauno Williams >> wrote: >> > On Tue, 2010-06-08 at 18:12 -0700, geremy condra wrote: >> >> > * Ir

Re: How to read source code of python?

2010-06-09 Thread geremy condra
the interpreter, or the stdlib, or trying to make some specific change, or...? Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Jobs

2010-06-09 Thread geremy condra
the wrong places. > Thanks for any input! its just like anything else- the pickier you are about what you do, the further afield you're likely to have to go. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: capitalize() NOT the same as var[0].upper _ var[1:]

2010-06-10 Thread geremy condra
#x27;s wrong with helping people?  And what's it to you if > others do? Its not the helping. Its the asking for help. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:24 PM, Stephen Hansen wrote: > On 6/10/10 3:17 PM, geremy condra wrote: >> I mostly agree with you, but as Stephen points out you can't exactly >> count on it being present now either, which more or less renders any >> guarantee of backwards com

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:57 PM, rantingrick wrote: > On Jun 10, 5:17 pm, geremy condra wrote: > >> Whats the practical >> difference between telling somebody that either tkinter works out of >> the box or they'll have to satisfy an extra dependency and just telling

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
now either, which more or less renders any guarantee of backwards compatibility moot IMO. Whats the practical difference between telling somebody that either tkinter works out of the box or they'll have to satisfy an extra dependency and just telling them that they'll have to satisfy an

Re: GUIs - A Modest Proposal

2010-06-11 Thread geremy condra
ing. Then and *only* then can we move forward with facts. > Or you could just keep living in your self-aggrandizing fantasy world > of "I'm always right and everyone else is the moron". I'm currently doing an analysis of pypi data to see what modules are being used and how much. If you're so interested in knowing how widely used tkinter is, please contact me- we could certainly use some additional processor time. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-11 Thread geremy condra
changes just from pure spite. This is the important part of life where you find out you aren't everybody else's boss. > So let me hear of ANY improvements and/or suggestions for Tkinter/IDLE > docs, code, or whatever. If you don't know of anything wrong with it, why raise this huge stink? If you do, why are you asking us? Just go fix it. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-12 Thread geremy condra
e to a drop in replacement extension module? I did a similar thing using Java and the JNI, so this seems pretty plausible to me. Having said that, it turned into a time sink very quickly, and there were cases that I never got ironed out- I suspect the same would be true here. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

math.erfc OverflowError

2010-06-12 Thread geremy condra
cutoff for the use of the continuing fraction approximation of erfc beginning when abs(x) > 30, but I'm not sure. Is this desired behavior or should I file a bug report? Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: math.erfc OverflowError

2010-06-12 Thread geremy condra
On Sat, Jun 12, 2010 at 4:40 PM, Robert Kern wrote: > On 2010-06-12 17:49 , geremy condra wrote: >> >> In Python3.2, calling math.erfc with a value in [-27.2, -30) raises >> an OverflowError: math range error. This is inconsistent with the >> erfc function from scipy (

Re: math.erfc OverflowError

2010-06-12 Thread geremy condra
On Sat, Jun 12, 2010 at 11:05 PM, Steven D'Aprano wrote: > On Sat, 12 Jun 2010 15:49:37 -0700, geremy condra wrote: > >> In Python3.2, calling math.erfc with a value in [-27.2, -30) raises an >> OverflowError: math range error. This is inconsistent with the erfc

Re: Python on Android Mobile?

2010-06-13 Thread geremy condra
each Jython to emit Dalvik bytecode, etc, etc. Something I haven't seen is whether Cython could be used indirectly; I don't have the knowledge or skill with it to do more than speculate, but that might be a profitable avenue for investigation. Wish I had better news for you, Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python OpenSSL library

2010-06-13 Thread geremy condra
interface to OpenSSL, although it is by design limited to doing things the right way, so it may not meet your needs. Full disclosure, I'm its author. Geremy Condra [1]: http://gitorious.org/evpy -- http://mail.python.org/mailman/listinfo/python-list

Re: efficiently create and fill array.array from C code?

2010-06-13 Thread geremy condra
to simplify >> the migration ;). > > The latest SVN of numpy works in Python 3.1 already. There are still some > things to be fixed, but it's mostly done. This is excellent news, thanks for pointing this out. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread geremy condra
anticipation for the inevitably snarky replies of their inferiors. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-13 Thread geremy condra
two = input('enter two numbers: ').split() >> print(int(one) + int(two)) >> >> I like names over subscripts, but that's just me :) > > Fore! > >   print(sum(map(int, input('enter two numbers: ').split( > > Jean-Paul I prefer football to golf: print(sum([sum([(ord(j)-48)*10**pos for pos,j in enumerate(reversed(i))]) for i in raw_input().split()])) Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: math.erfc OverflowError

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 6:44 PM, Ben Finney wrote: > a...@pythoncraft.com (Aahz) writes: > >> In article , >> geremy condra   wrote: >> > >> >Bug filed, http://bugs.python.org/issue8986. >> >> Please don't put extraneous punctuation on URLs. &

Re: math.erfc OverflowError

2010-06-14 Thread geremy condra
On Sun, Jun 13, 2010 at 10:36 PM, Ben Finney wrote: > geremy condra writes: > >> You know, I've never been a part of a community in which the URL >> format was the most contentious part of filing a bug report. > > Heck no, the bug report is already filed, and conte

Re: Python on Android Mobile?

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 1:55 AM, Shashwat Anand wrote: > Well, AFAIK Nokia N900 supports python fully. Yup, my code has to run on these before it passes build tests. I almost never have to do anything crazy to it. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Community (A Modest Proposal)

2010-06-14 Thread geremy condra
have to learn to live without the pats on the back. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 10:08 AM, Antoine Pitrou wrote: > On Sun, 13 Jun 2010 14:13:32 -0700 > geremy condra wrote: >> On Sun, Jun 13, 2010 at 1:29 PM, astral >> wrote: >> > I am looking for Python OpenSSL library, for Python version 2.5.4 (on >> > Win

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 10:25 AM, Antoine Pitrou wrote: > Le lundi 14 juin 2010 à 13:18 -0400, geremy condra a écrit : >> >> >> >> Evpy[1] is designed to be a very easy-to-use interface to OpenSSL, >> >> although it is by design limited to doing things the r

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
in fact doesn't. > >> is convenient, but insecure. > > In which case, it isn't actually convenient, in any meaningful sense of > the word. As one of my friends is fond of saying, it lets you talk encrypted to your attacker ;) Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard Library SSL Module (was: Python OpenSSL library)

2010-06-14 Thread geremy condra
routines, perhaps a new module or > package is best. In any case, feel free to open a entry at > http://bugs.python.org and we can discuss it. Issue opened: http://bugs.python.org/issue8998 Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: biopython

2010-06-14 Thread geremy condra
and hoping for people to CC > you in their replies? That was beautiful. I think I've got something in my eye. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Community (A Modest Proposal)

2010-06-15 Thread geremy condra
. Then I got to know gedit's latex plugin better, and started doing literate code. Pretty much all gedit now. Still feels slightly dirty. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python OpenSSL library

2010-06-15 Thread geremy condra
ly. Both the lead for M2Crypto and the authors of zc.ssl have publicly stated that this needs to be fixed. Geremy Condra [0] http://mail.python.org/pipermail/python-list/2010-April/1242166.html [1] http://bugs.python.org/issue1589 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python OpenSSL library

2010-06-15 Thread geremy condra
to provide a patch for > the py3k ssl module, and will gladly review it. I'm not sure what this fixes if it doesn't get used in the higher-level modules, but I can ask if anybody is interested. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python OpenSSL library

2010-06-15 Thread geremy condra
d bug report: http://bugs.python.org/issue9003 Just for the record, I'd rather see this fixed than note the need for a workaround. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: INCONTROVERTIBLE PROOF of the Incompetence of FBI

2010-06-15 Thread geremy condra
On Tue, Jun 15, 2010 at 7:22 PM, Mark Young wrote: > HAHA. I apologize for my apparently incorrect criticism nanothermite. I made the mistake of asking him not to put all of this in his .sig, which has apparently been taken to mean that he should just post it instead. Apologies. Geremy Con

<    1   2   3   4   5   >