Re: I need an idea for practise!

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 2:06 PM, Rick Johnson wrote: > On Thursday, July 17, 2014 10:23:50 PM UTC-5, Chris Angelico wrote: >> And be sure *not* to colorize built-ins (but *do* colorize >> keywords) in contexts where the tokens are actually >> identifiers, like "x.open = 1". > > Just check for word

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 1:37 PM, Rick Johnson wrote: > I'm also just "gushing with exuberance" when i open a new > block and i get *EIGHT SPACE INDENTION*! Actually, you don't. And it wouldn't be a bug if you did. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 is killing Python

2014-07-17 Thread Marko Rauhamaa
Rick Johnson : > On Thursday, July 17, 2014 1:44:20 PM UTC-5, Marko Rauhamaa wrote: >> Rick Johnson : >> > Sure, IDLE is not *useless*, however, it is in fact woefully >> > inadequate and should be embarrassing to the whole community, both >> > in it's buggy-ness and it's poorly written source cod

Re: Python package index in elasticsearch

2014-07-17 Thread Ned Deily
In article , Maciej Dziardziel wrote: > Being frustrated with speed and inflexibility of pip search, I played with > elasticsearch and set up my own index. > Maybe someone will find it useful too. > > Site:http://pypisearch.linuxcoder.co.uk > > Code: https://github.com/Fiedzia/pypisearch

OT - information theory thing...

2014-07-17 Thread Modulok
I'm trying to remember something I read one night to do with information theory to vague for Google to help much. If anyone could help me remember that would be wonderful! It had something to do with the fact that, given a transmission medium, you can control whether information flows or not, but

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 10:23:50 PM UTC-5, Chris Angelico wrote: > And be sure *not* to colorize built-ins (but *do* colorize > keywords) in contexts where the tokens are actually > identifiers, like "x.open = 1". Just check for word boundaries on all your keywords and built-ins and you're *DO

Re: Python 3 is killing Python

2014-07-17 Thread Michael Torrie
On 07/17/2014 08:24 PM, Rick Johnson wrote: > i *STILL* use IDLE > to this very day! -- although not as much as i have written > my own IDE. Maybe you should release it so we can make demands of you without bothering to contribute to it's development, either in code, or in bug reports. -- http

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 9:15:15 PM UTC-5, Chris Angelico wrote: > For myself, though, I completely do not use the editor half of [IDLE]; but > it's spectacularly useful (with limitations) as my primary interactive > interpreter. Yes Chris, i also think that the IDLE shell is "spectacular" when

Re: Python 3 is killing Python

2014-07-17 Thread Dan Stromberg
On Thu, Jul 17, 2014 at 7:49 PM, alex23 wrote: > On 17/07/2014 1:14 PM, Steven D'Aprano wrote: >> >> There will never be a Python 2.8. When push comes to shove, the people >> bitching about Python 3 will not do the work necessary to fork Python 2.7 >> and make a version 2.8. > > > +1 > > The idea

Re: I need an idea for practise!

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 1:07 PM, Rick Johnson wrote: > For me, only the following targets need colorizing: > > Keywords > Built-ins And be sure *not* to colorize built-ins (but *do* colorize keywords) in contexts where the tokens are actually identifiers, like "x.open = 1". Plus, if y

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 9:03:40 PM UTC-5, Chris Angelico wrote: > [colorizers] might well be able to *utilize* regexps [...] > but very few modern programming languages can be fully and > correctly defined within the limits of regexp syntax. We're not talking about "defining" or "interpreting"

Re: Python 3 is killing Python

2014-07-17 Thread alex23
On 18/07/2014 10:45 AM, Andrew Berg wrote: Maybe he's too busy working on RickPy 4000 (or whatever it was called). I believe the new working name is PypeDream. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 is killing Python

2014-07-17 Thread alex23
On 18/07/2014 10:26 AM, Mark Lawrence wrote: I'm looking forward to see the massive number of fixes that come from rr I'm still waiting for RickPython, the One True Python. Remember when he used to rant as if he was actually working on it and not just pissing in the wind? -- https://mail.py

Re: Python 3 is killing Python

2014-07-17 Thread alex23
On 17/07/2014 1:14 PM, Steven D'Aprano wrote: There will never be a Python 2.8. When push comes to shove, the people bitching about Python 3 will not do the work necessary to fork Python 2.7 and make a version 2.8. +1 The idea that forking and maintaining Python 2.8 is somehow _less effort_ t

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 11:29 AM, Roy Smith wrote: > In article , alex23 > wrote: > >> On 18/07/2014 9:44 AM, Roy Smith wrote: >> > In article , >> > Ned Batchelder wrote: >> >> Virtualenv is definitely the right way to isolate different Python >> >> environments from each other. >> > >> > Abs

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 12:24 PM, Rick Johnson wrote: > I would even venture to say, and the comments on this list > have supported my evidence for years, that i may be the > *SOLE* heavy user of IDLE in the *ENTIRE* community. > ... > > If *ANYBODY* in this damn community has a *RIGHT* to > compl

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 1:44:20 PM UTC-5, Marko Rauhamaa wrote: > Rick Johnson : > > Sure, IDLE is not *useless*, however, it is in fact > > woefully inadequate and should be embarrassing to the > > whole community, both in it's buggy-ness and it's poorly > > written source code. > This is benea

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 7:30 AM, Terry Reedy wrote: > That is something of a problem as people 'graduate' to multi-language > environments. However, while I have programmed in about 20 languages during > my lifetime, I have now 'contracted' to using only Python (except for the > occasional .bat fi

Re: I need an idea for practise!

2014-07-17 Thread Nicholas Cannon
When I say i suck at finding good creative ideas I dont mean like I can think of anything its more like i cant think of anything that is within my scope of skill. These ideas are great guys thanks. Also the gui tool kit i used for the apps is tkinter because i am reading a book about python and

Re: I need an idea for practise!

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 7:46 AM, Terry Reedy wrote: > # self.file = open("file") : > # 1st 'file' colorized normal, 2nd as builtin, 3rd as string Is this pair of comments a hold-over from when it was common to use the file() constructor? Looks like it got searched-and-replaced. ChrisA --

Re: I need an idea for practise!

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 5:30 AM, Rick Johnson wrote: > But don't tell me for a *SECOND* that a colorizer, and a > damn good one, can not be written utilizing regexps, because > you're either wrong, or you're scared, or you're ignorant, > or you're all of the above! It might well be able to *utili

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Roy Smith
In article , alex23 wrote: > On 18/07/2014 9:44 AM, Roy Smith wrote: > > In article , > > Ned Batchelder wrote: > >> Virtualenv is definitely the right way to isolate different Python > >> environments from each other. > > > > Absolutely. Don't even consider any other alternative. Just do i

Re: Multiple python versions, one dev environment???

2014-07-17 Thread alex23
On 18/07/2014 9:44 AM, Roy Smith wrote: In article , Ned Batchelder wrote: Virtualenv is definitely the right way to isolate different Python environments from each other. Absolutely. Don't even consider any other alternative. Just do it. Not even buildout? :) -- https://mail.python.org

Re: Python 3 is killing Python

2014-07-17 Thread Andrew Berg
On 2014.07.17 19:26, Mark Lawrence wrote: > I'm looking forward to see the massive number of fixes that come from > rr, assuming of course that he signs the CLA to make this possible. Or > has he already done so? > Maybe he's too busy working on RickPy 4000 (or whatever it was called). -- http

Re: Python 3 is killing Python

2014-07-17 Thread Mark Lawrence
On 18/07/2014 01:13, Terry Reedy wrote: On 7/17/2014 2:15 PM, Rick Johnson wrote: a partial disinformation rant again Idle that repeats things said before, more than once. Still more facts ;-). About three (four?) years ago, you posted a similar rant. Being wise, I encouraged your participation

Re: I need an idea for practise!

2014-07-17 Thread Paul McNett
On 7/17/14, 12:30 PM, Rick Johnson wrote: You know, you would fit in nicely in the American public school system, since American teachers are not only free of the requirement of "teaching", they are actually*COMPELLED* not to do so by the greedy unions. Hi Rick, I know a lot of American public

Re: Python 3 is killing Python

2014-07-17 Thread Terry Reedy
On 7/17/2014 2:15 PM, Rick Johnson wrote: a partial disinformation rant again Idle that repeats things said before, more than once. In general, your rants seem to serve the social purpose of providing cover to other people to join in loose, off-topic discussions. In this one, you align yourself

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Roy Smith
In article , Ned Batchelder wrote: > On 7/17/14 11:32 AM, Joep van Delft wrote: > > Hello! > > > > The condensed version of the question would probably be: How does one > > deal with multiple interpreters and one package where you want to try > > some changes? > Virtualenv is definitely the rig

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Ian Kelly
On Thu, Jul 17, 2014 at 5:00 PM, Ian Kelly wrote: > On Thu, Jul 17, 2014 at 3:08 PM, Marko Rauhamaa wrote: >> Ian Kelly : >> >>> Well, 0**0 is usually defined as 1, despite the limits being >>> ambiguous. >> >> https://www.math.hmc.edu/funfacts/ffiles/10005.3-5.shtml> >> >> But if it could be

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Ian Kelly
On Thu, Jul 17, 2014 at 3:08 PM, Marko Rauhamaa wrote: > Ian Kelly : > >> Well, 0**0 is usually defined as 1, despite the limits being >> ambiguous. > > https://www.math.hmc.edu/funfacts/ffiles/10005.3-5.shtml> > > But if it could be defined, what "should" it be? 0 or 1? I did say "usually".

Re: Python 3 is killing Python

2014-07-17 Thread Mark Lawrence
On 17/07/2014 02:16, Rick Johnson wrote: On Wednesday, July 16, 2014 6:00:16 PM UTC-5, Mark Lawrence wrote: Further the number of people assisting on the bug tracker at the moment appears to me to be going up, not down. It therefore strikes me that Python is extremely tenable, thus indicating

L-system equations drawing tool

2014-07-17 Thread Yaşar Arabacı
Hi, I wrote a small program to draw L-system equations using tkinter. You can find it on https://github.com/yasar11732/tklsystem It is still under development, but seems to be working nice so far. I could only try it on windows, but it should work on Linux too. You will need Python 3.x to run it

Re: Python package index in elasticsearch

2014-07-17 Thread Никола Вукосављевић
On 18.7.2014 0:01, Maciej Dziardziel wrote: Hi Being frustrated with speed and inflexibility of pip search, I played with elasticsearch and set up my own index. Maybe someone will find it useful too. Site:http://pypisearch.linuxcoder.co.uk Code: https://github.com/Fiedzia/pypisearch Fu

Python package index in elasticsearch

2014-07-17 Thread Maciej Dziardziel
Hi Being frustrated with speed and inflexibility of pip search, I played with elasticsearch and set up my own index. Maybe someone will find it useful too. Site:http://pypisearch.linuxcoder.co.uk Code: https://github.com/Fiedzia/pypisearch Full lucene syntax is allowed. Note: indexing i

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Javier
> I can work with this (have not tried though), but there must be a > more elegant solution than symlinking my way forward... I don't really understand what you are trying to do, but I would advise to use environment variables to control the behaviour of the fake scripts in /usr/local/bin In ba

Re: I need an idea for practise!

2014-07-17 Thread Terry Reedy
On 7/17/2014 1:20 PM, Chris Angelico wrote: By the way, one specific point about RR's advice: A colorizer should *not* be written using regexps. It'd make for an absolute nightmare of impossible-to-debug regexp strings, plus there are fundamental limitations on what you can accomplish with them.

Re: Python 3 is killing Python

2014-07-17 Thread Terry Reedy
On 7/17/2014 3:22 PM, Emile van Sebille wrote: I imagine those that would be in a position to improve idle don't see the point of it. IMO, idle was never intended as a production development editor but more as an extensive example of gui programming with python. Yes, you _can_ use it to edit,

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Marko Rauhamaa
Ian Kelly : > Well, 0**0 is usually defined as 1, despite the limits being > ambiguous. https://www.math.hmc.edu/funfacts/ffiles/10005.3-5.shtml> But if it could be defined, what "should" it be? 0 or 1? Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Ian Kelly
On Thu, Jul 17, 2014 at 1:10 PM, Marko Rauhamaa wrote: > Mathematically, there are undefined operations, for a good reason. > That's because the limits are not unambiguous and that's why 0/0, 0**0, > 1/0 and inf-inf are undefined. Well, 0**0 is usually defined as 1, despite the limits being ambig

Re: Python 3 is killing Python

2014-07-17 Thread Mark Lawrence
On 17/07/2014 20:22, Emile van Sebille wrote: On 7/17/2014 11:15 AM, Rick Johnson wrote: Sadly, all of my calls to improve IDLE have been meet with rebukes about me "whining". The "powers that be" would wise to *UTILIZE* and *ENCOURAGE* my participation instead of *IGNORING* valuable talent and

Re: patch request for os.urandom()

2014-07-17 Thread Christian Heimes
On 17.07.2014 20:34, Paul Rubin wrote: > Could os.urandom() be patched to use the new Linux getrandom() system > call on systems where it is available? Further info: > > http://lists.openwall.net/linux-kernel/2014/07/17/235 > > I've stopped posting to the Python bug tracker because the password

Re: Mac python py2app problem

2014-07-17 Thread Russell E. Owen
In article , Gregory Ewing wrote: > Nicholas Cannon wrote: > > I do like the idea of making a .dmg file > > because i have used them downloading other apps and it works great but i > > dont > > know how to make them! > > In Disk Utility, use File>New>Disk Image from Folder. Or...open Disk Uti

Re: patch request for os.urandom()

2014-07-17 Thread Sturla Molden
On 17/07/14 20:34, Paul Rubin wrote: Could os.urandom() be patched to use the new Linux getrandom() system call on systems where it is available? /dev/urandom exists on other Unix-like systems as well. Right now os.urandom only uses special system calls on Windows. Sturla -- https://mail.

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Joep van Delft
On Thu, 17 Jul 2014 15:41:44 -0400 Ned Batchelder wrote: > > For testing one project on multiple versions of Python, use tox. > Its entire reason for being is to test Python code against multiple > environments, generally for different Python versions, but possibly > for other reasons, like diffe

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Joep van Delft
Hello Javier! Thanks, those links are helping a bit. And: yes, I am using Archlinux. But still those links assume that there are totally separate site-packages* directories installed for both. I am not sure how I would surpass this distinction between py-X.P and py-Y.Q. Should I really create

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Ned Batchelder
On 7/17/14 11:32 AM, Joep van Delft wrote: Hello! The condensed version of the question would probably be: How does one deal with multiple interpreters and one package where you want to try some changes? The background: I made a trivial change to some package (docutils) to scratch a personal it

Re: patch request for os.urandom()

2014-07-17 Thread Ned Deily
In article <7xlhrrkf6h@ruckus.brouhaha.com>, Paul Rubin wrote: > I've stopped posting to the Python bug tracker because the password > management issues became too annoying. Can you elaborate on the problems you are having? -- Ned Deily, n...@acm.org -- https://mail.python.org/mailman/

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 12:20:13 PM UTC-5, Chris Angelico wrote: > By the way, one specific point about RR's advice: A > colorizer should *not* be written using regexps. It'd make > for an absolute nightmare of impossible-to-debug regexp > strings Just because *YOU* harbor irrational fears of r

Re: Python 3 is killing Python

2014-07-17 Thread Emile van Sebille
On 7/17/2014 11:15 AM, Rick Johnson wrote: Sadly, all of my calls to improve IDLE have been meet with rebukes about me "whining". The "powers that be" would wise to *UTILIZE* and *ENCOURAGE* my participation instead of *IGNORING* valuable talent and *IMPEDING* the expansion of this "private boys

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Marko Rauhamaa
Chris Angelico : > numerical calculations might overflow to +inf or -inf, and then > further calculations can result in a nan, etc, etc. Those are the > sorts of examples that you'd find among SciPy users and such. There is some inconsistency. Mathematically, there are undefined operations, for

Re: Python 3 is killing Python

2014-07-17 Thread Mark Lawrence
On 17/07/2014 19:15, Rick Johnson wrote: On Thursday, July 17, 2014 5:12:23 AM UTC-5, Fabien wrote: Sadly, all of my calls to improve IDLE have been meet with rebukes about me "whining". The "powers that be" would wise to *UTILIZE* and *ENCOURAGE* my participation instead of *IGNORING* valuable

Re: Blocked thread

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:50 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> It's more what the client library supports, rather than the server, >> but sure. If it doesn't do async queries, that settles it. > > The server can't control that. At the networking/OS level, it's all > asynchronous.

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:49 AM, Johann Hibschman wrote: > In > principle, (NA == 1.0) should be a NA (missing) truth value, as should > (NA == NA), but in practice having it be False is more useful. This is actually fairly easily implemented, if you ever want it. class NAType: def __repr__(

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:49 AM, Johann Hibschman wrote: > Chris Angelico writes: > >> But you also don't know that he hasn't. NaN doesn't mean "unknown", it >> means "Not a Number". You need a more sophisticated system that allows >> for uncertainty in your data. > > Regardless of whether this i

Re: Blocked thread

2014-07-17 Thread Marko Rauhamaa
Chris Angelico : > It's more what the client library supports, rather than the server, > but sure. If it doesn't do async queries, that settles it. The server can't control that. At the networking/OS level, it's all asynchronous. I would recommend a process pool for blocking DB queries. Marko

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Johann Hibschman
Chris Angelico writes: > But you also don't know that he hasn't. NaN doesn't mean "unknown", it > means "Not a Number". You need a more sophisticated system that allows > for uncertainty in your data. Regardless of whether this is the right design, it's still an example of use. As to the design

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:38 AM, Rick Johnson wrote: >> This is a truly amazing demonstration. You have outdone >> Gaelmaen for comprehensibly incorrect use of English. > > Of all my impassioned pleas, astute logical reasoning, and > empathetic motivational speeches, of all of that "gold", all > y

Re: Python 3 is killing Python

2014-07-17 Thread Marko Rauhamaa
Rick Johnson : > Sure, IDLE is not *useless*, however, it is in fact woefully > inadequate and should be embarrassing to the whole community, both in > it's buggy-ness and it's poorly written source code. This is beneath trolling. Redeem yourself by apologizing. Marko -- https://mail.python.or

Re: patch request for os.urandom()

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:34 AM, Paul Rubin wrote: > Could os.urandom() be patched to use the new Linux getrandom() system > call on systems where it is available? Further info: > > http://lists.openwall.net/linux-kernel/2014/07/17/235 Uhm... does that even exist in kernel trunk yet? That's pret

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
> On Fri, Jul 18, 2014 at 3:36 AM, Rick Johnson > This is a truly amazing demonstration. You have outdone > Gaelmaen for comprehensibly incorrect use of English. Of all my impassioned pleas, astute logical reasoning, and empathetic motivational speeches, of all of that "gold", all you can muster i

patch request for os.urandom()

2014-07-17 Thread Paul Rubin
Could os.urandom() be patched to use the new Linux getrandom() system call on systems where it is available? Further info: http://lists.openwall.net/linux-kernel/2014/07/17/235 I've stopped posting to the Python bug tracker because the password management issues became too annoying. -- https://

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:15 AM, Rick Johnson wrote: > Sadly, all of my calls to improve IDLE have been meet with > rebukes about me "whining". The "powers that be" would wise > to *UTILIZE* and *ENCOURAGE* my participation instead of > *IGNORING* valuable talent and *IMPEDING* the expansion of >

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 5:12:23 AM UTC-5, Fabien wrote: > For non-informatic students [...] I don't think that's true. > Less general languages like Matlab appear much easier to > me: unified doc, unified IDE, unified debugger I'll agree that the lack of a "quality" IDE in Python is a point of

Re: Blocked thread

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:19 AM, Larry Martell wrote: > I do not think Oracle support async or non-blocking queries as > Postgres does. But what I think I can do is not call join(), and just > start monitoring the server when I kick off the thread with the mail > sql it in. It's more what the cli

Re: Blocked thread

2014-07-17 Thread Larry Martell
On Thu, Jul 17, 2014 at 2:09 PM, Chris Angelico wrote: > On Fri, Jul 18, 2014 at 4:03 AM, Larry Martell > wrote: >> On Thu, Jul 17, 2014 at 2:01 PM, Chris Angelico wrote: >>> On Fri, Jul 18, 2014 at 3:55 AM, Larry Martell >>> wrote: I can have as many connections to the db server as I wa

Re: Blocked thread

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:13 AM, Larry Martell wrote: > But every once it a while it takes 2 minutes. It will be hard > to detect that manually. What I was trying to do in my threaded code > was detect when it was taking more than 5 seconds, and then start > monitoring it. Fair enough. In that ca

Re: Blocked thread

2014-07-17 Thread Larry Martell
On Thu, Jul 17, 2014 at 2:04 PM, Chris Angelico wrote: > On Fri, Jul 18, 2014 at 4:00 AM, Larry Martell > wrote: >> I did ask my DBA - he said "Blocking is a normal part of database >> operations. It's only a problem when it's a deadlock, in which case >> the server will detect that, kill one of

Re: I need an idea for practise!

2014-07-17 Thread Orochi
Brother,I had same views and after creating some small projects I directly tried to jump over large projects (went for data mining using neural network) and FAILED. I realized small things really matter. So I suggest just couple of GUI projects are not enough go for more. start with anything. he

Re: Blocked thread

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:03 AM, Larry Martell wrote: > On Thu, Jul 17, 2014 at 2:01 PM, Chris Angelico wrote: >> On Fri, Jul 18, 2014 at 3:55 AM, Larry Martell >> wrote: >>> I can have as many connections to the db server as I want, that's not >>> the issue. The issue is that my main thread se

Re: Blocked thread

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 4:00 AM, Larry Martell wrote: > I did ask my DBA - he said "Blocking is a normal part of database > operations. It's only a problem when it's a deadlock, in which case > the server will detect that, kill one of the processes and log it." > > My situation is not a deadlock -

Re: Blocked thread

2014-07-17 Thread Larry Martell
On Thu, Jul 17, 2014 at 2:01 PM, Chris Angelico wrote: > On Fri, Jul 18, 2014 at 3:55 AM, Larry Martell > wrote: >> I can have as many connections to the db server as I want, that's not >> the issue. The issue is that my main thread seems to be blocked in the >> join(), so I guess I'm going to n

Re: Blocked thread

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 3:55 AM, Larry Martell wrote: > I can have as many connections to the db server as I want, that's not > the issue. The issue is that my main thread seems to be blocked in the > join(), so I guess I'm going to need a separate script. I was trying > to avoid that. Right, but

Re: Blocked thread

2014-07-17 Thread Larry Martell
On Thu, Jul 17, 2014 at 1:46 PM, Skip Montanaro wrote: > > On Thu, Jul 17, 2014 at 12:32 PM, Chris Angelico wrote: >> >> I don't know Oracle specifically, but if it's anything like >> PostgreSQL, you'll probably do better with a completely separate >> connection to the server > > > Agreed. We use

Re: Blocked thread

2014-07-17 Thread Larry Martell
On Thu, Jul 17, 2014 at 1:32 PM, Chris Angelico wrote: > On Fri, Jul 18, 2014 at 2:26 AM, Larry Martell > wrote: >> I have a python cx_Oracle script that does a delete from a table. >> Usually this takes well under 1 second. But sometimes it takes 1 to 2 >> minutes. I wanted to monitor that dele

Re: Blocked thread

2014-07-17 Thread Skip Montanaro
On Thu, Jul 17, 2014 at 12:32 PM, Chris Angelico wrote: > I don't know Oracle specifically, but if it's anything like > PostgreSQL, you'll probably do better with a completely separate > connection to the server > Agreed. We use Sybase, and our DBA uses their tools extensively to identify proble

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 3:36 AM, Rick Johnson wrote: > they're already loathing in agony, so why would they seek to > acerbate it? This is a truly amazing demonstration. You have outdone Gaelmaen for comprehensibly incorrect use of English. ChrisA -- https://mail.python.org/mailman/listinfo/pyt

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 12:48:38 AM UTC-5, alex23 wrote: > PHP regularly breaks compatibility between _minor_ version > releases: [...] more so with major releases: [...] yet I > never see anywhere near as much angst and agony as Python > 3.x has caused. Because you *IGNORE* the fact that peopl

Re: Blocked thread

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 2:26 AM, Larry Martell wrote: > I have a python cx_Oracle script that does a delete from a table. > Usually this takes well under 1 second. But sometimes it takes 1 to 2 > minutes. I wanted to monitor that delete and if it's taking too long I > want to see what is blocking

Re: I need an idea for practise!

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 2:34 AM, Rick Johnson wrote: > If the text editor is simply an app that allows: opening raw > text files, editing them, and then saving the changes, you > have a *whole* universe of functionality you could add to > that. > > How about writing a colorizer for source code,

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 4:59:11 AM UTC-5, Nicholas Cannon wrote: > Ok I would say I am almost a intermediate python > programer. I have made 2 programs(with GUI). And basically > they are quite boring(a text editor and calculator). I > love programming but i am lost of ideas i actually suck at >

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Akira
Joep van Delft wrote: > Hello! > > The condensed version of the question would probably be: How does one > deal with multiple interpreters and one package where you want to try > some changes? You could use tox to test a package using different Python versions. -- Akira -- https://mail.pyt

Blocked thread

2014-07-17 Thread Larry Martell
I have a python cx_Oracle script that does a delete from a table. Usually this takes well under 1 second. But sometimes it takes 1 to 2 minutes. I wanted to monitor that delete and if it's taking too long I want to see what is blocking it. I run the delete sql in a thread and I do this: while sel

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Javier
Are you using arch linux. I deal with multiple interpreters putting fake executables in /usr/local/bin for everything: (python, sphinx, virtualenv, pydoc, idle, python-config...) selecting 2 or 3. You can do the same for selecting 2.3, 2.5, 2.7. What the scripts do is to detect whether it is

New to Python and Python mail List

2014-07-17 Thread lavanya addepalli
Hello Everyone I am very much new to python scripting and i am here for knowledge exchange. I am trying to read a file with node pairs and weight. I have to find the neighbours of each pair individual and combined both also count them. Later find the ratio of the neighbours that each node has. I

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Chris Angelico
On Fri, Jul 18, 2014 at 1:12 AM, Johann Hibschman wrote: > Well, I just spotted this thread. An easy example is, well, pretty much > any case where SQL NULL would be useful. Say I have lists of borrowers, > the amount owed, and the amount they paid so far. > > nan = float("nan") > borrow

Multiple python versions, one dev environment???

2014-07-17 Thread Joep van Delft
Hello! The condensed version of the question would probably be: How does one deal with multiple interpreters and one package where you want to try some changes? The background: I made a trivial change to some package (docutils) to scratch a personal itch, and I want to offer this back to the c

Re: NaN comparisons - Call For Anecdotes

2014-07-17 Thread Johann Hibschman
"Anders J. Munch" <2...@jmunch.dk> writes: > So far I received exactly the answer I was expecting. 0 examples of > NaN!=NaN being beneficial. > I wasn't asking for help, I was making a point. Whether that will > lead to improvement of Python, well, I'm not too optimistic, but I > feel the point w

Re: Iterating through set

2014-07-17 Thread Thomas Rachel
Am 15.07.2014 02:10 schrieb LJ: Hi All. I'm coding a Dynamic Programming algorithm to solve a network flow problem. At some point in the algorithm I have to iterate through a set of nodes, while adding and/or removing elements, until the set is empty. I know a regular set() object does not wo

Re: I need an idea for practise!

2014-07-17 Thread Chris Angelico
On Thu, Jul 17, 2014 at 7:59 PM, Nicholas Cannon wrote: > I have made 2 programs(with GUI). And basically they are quite boring(a text > editor and calculator). Just for reference, those may be simple concepts, but they're anything but boring. Most of us use text editors all the time, and I have

Re: I need an idea for practise!

2014-07-17 Thread Abhiram R
On Thu, Jul 17, 2014 at 3:29 PM, Nicholas Cannon wrote: I have made 2 programs(with GUI). And basically they are quite boring(a > text editor and calculator). > -- > https://mail.python.org/mailman/listinfo/python-list > ​What library did you use for the GUI?​ -- Abhiram.R -- https://mail.p

Python3+Vim dev environment

2014-07-17 Thread Shiyao Ma
Hi. Anyone with working experience on setting up Python3 dev with vim? functionalities needed: code completion and jump to defintion YCM suffices but only with py2. Any vim (plugin) for py3? Or do you have any experience both running YCM and jedi-vim(for py3) ? How's that going? Regards --

Re: Mac python py2app problem

2014-07-17 Thread Gregory Ewing
Nicholas Cannon wrote: I do like the idea of making a .dmg file because i have used them downloading other apps and it works great but i dont know how to make them! In Disk Utility, use File>New>Disk Image from Folder. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 is killing Python

2014-07-17 Thread MRAB
On 2014-07-17 04:15, Chris Angelico wrote: On Thu, Jul 17, 2014 at 12:51 PM, Steven D'Aprano wrote: Most programming languages are written for J. Random Hacker, not Jランダムハッカー. I had to paste that into Google Translate to be able to understand what you meant (although I could guess just fine).

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Thu, Jul 17, 2014 at 8:12 PM, Fabien wrote: > On 17.07.2014 06:47, Rick Johnson wrote:> Even though i will freely admit > that Python is the easiest >> language to learn (IMHO) > > For non-informatic students (i.e the vast majority of science/engineering > students) I don't think that's true. L

Re: I need an idea for practise!

2014-07-17 Thread alister
On Thu, 17 Jul 2014 02:59:11 -0700, Nicholas Cannon wrote: > Ok I would say I am almost a intermediate python programer. I have made > 2 programs(with GUI). And basically they are quite boring(a text editor > and calculator). I love programming but i am lost of ideas i actually > suck at finding g

Re: Python 3 is killing Python

2014-07-17 Thread Fabien
On 17.07.2014 06:47, Rick Johnson wrote:> Even though i will freely admit that Python is the easiest > language to learn (IMHO) For non-informatic students (i.e the vast majority of science/engineering students) I don't think that's true. Less general languages like Matlab appear much easier t

Re: Mac python py2app problem

2014-07-17 Thread Nicholas Cannon
On Wednesday, July 16, 2014 9:56:56 AM UTC+8, Nicholas Cannon wrote: > Hey i have made an app and i have made a .msi for windows with py2exe and i > have also exported it with py2app on mac. No problems here they all work > fine. I then put the .msi on sourceforge and it works great but when i pu

I need an idea for practise!

2014-07-17 Thread Nicholas Cannon
Ok I would say I am almost a intermediate python programer. I have made 2 programs(with GUI). And basically they are quite boring(a text editor and calculator). I love programming but i am lost of ideas i actually suck at finding good creative ideas. Now i am not looking to use these ideas make

Re: Python 3 is killing Python

2014-07-17 Thread Chris Angelico
On Thu, Jul 17, 2014 at 5:09 PM, Frank Millman wrote: > He quotes some stats from PyPi, which shows number of downloads over a > period, broken down by version. Over a recent period, Python2 downloads > exceed Python3 downloads by a factor of 10:1 (subject to my memory ...) These kinds of stats a

Re: Python 3 is killing Python

2014-07-17 Thread Steven D'Aprano
On Thu, 17 Jul 2014 07:18:54 +0200, Frank Millman wrote: > "Steven D'Aprano" wrote in > message news:53c66ba8$0$9505$c3e8da3$54964...@news.astraweb.com... >> >> E.g. having b"abc"[0] return 97 instead of b"a" was probably a mistake, >> but there are four versions of Python 3.x that do it that way

  1   2   >