Re: Intsalling wxPython

2015-04-06 Thread Michael Torrie
On 04/06/2015 09:29 PM, Sepi Gh wrote: >> I got the answer! Just using python 3 instead of python in the command line > > But I get this error now: File > "/Users//Library/Python/3.3/lib/python/site-packages/wx_py/PyWrap.py", line 27 > print "Please specify a module name." >

Re: Automate deployment of Python application from multiple VCS repositories

2015-04-08 Thread Michael Herman
Hi Ben, I would start with Fabric. -> http://www.fabfile.org/. It's "low-level", but super straightforward. Here's a blog post on how to setup deployment -> https://realpython.com/blog/python/kickstarting-flask-on-ubuntu-setup-and-deployment/ On Tue, Apr 7, 2015 at 7:24 PM, Ben Finney wrote: >

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Michael Torrie
On 04/16/2015 08:52 AM, Blake McBride wrote: > Thanks for all the responses. I especially like the Pike pointer. > To be clear: > > 1. I don't think languages should depend on invisible elements to > determine logic. > > 2. Having been an employer, it is difficult to force programmers to > use

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Michael Torrie
On 04/17/2015 11:05 AM, BartC wrote: > He wanted to know if there was a simple syntax wrapper for it. That > seems reasonable enough. > > (Actually *I* would quite like to know why languages don't have > switchable syntax anyway to allow for people's personal preferences.) There was a version o

Re: New to Python - block grouping (spaces)

2015-04-19 Thread Michael Torrie
On 04/18/2015 01:00 AM, Marko Rauhamaa wrote: > Ben Finney : > >> If you only write programs that will only ever be read by you and >> no-one else, feel free to maintain a fork of Python (or any other >> language) that suits your personal preferences. > > It would be possible to define a canonica

Re: python : timeit - Tool for measuring execution time

2015-04-22 Thread Michael Torrie
On 04/21/2015 09:31 PM, Ganesh Pal wrote: > Iam not able to understand what why only 10 loops were run ? what > does this mean and how does this work ? I have a hunch you're mistakenly thinking that Python is only running through ten iterations of your for i in range(100) loop. This is not

Re: New to Python - block grouping (spaces)

2015-04-24 Thread Michael Torrie
On 04/24/2015 01:31 AM, Mark Lawrence wrote: > On 16/04/2015 15:52, Blake McBride wrote: >> So, Python may be a cute language for you to use as an individual, but it >> is unwieldy in a real development environment. >> > > First paragraph from > http://www.talkpythontome.com/episodes/show/4/ent

Re: Not possible to hide local variables

2015-04-29 Thread Michael Torrie
On 04/29/2015 12:16 AM, Cecil Westerhof wrote: >> Prefix those names with a single leading underscore, which is the >> convention for private variables. > > Done. > >> This way, if some user (maybe you! ;) has a good reason to change >> those values in can be done, but it is quite clear that said

Re: Python is not bad ;-)

2015-04-30 Thread Michael Torrie
On 04/30/2015 01:07 AM, Cecil Westerhof wrote: > When I do that the computer is freezed a few times. That is a little > less nice. Does not happen with Clojure when it gets an out of memory. A system freeze is probably due to thrashing by your operating system as a process (in this case Python) us

Re: l = range(int(1E9))

2015-05-01 Thread Michael Torrie
On 04/30/2015 10:19 PM, Cecil Westerhof wrote: >> I must also confess to being highly impressed, it's a breath of >> fresh air having an apprentice Pythonista who is looking at doing >> things the Pythonic way :) > > When in Rome, do as the Romans do. > > Besides: there probably is a reason for t

Re: l = range(int(1E9))

2015-05-02 Thread Michael Torrie
On 05/02/2015 04:33 PM, BartC wrote: > OK, so it's just an irritation then, as a workaround has been available > for a long time. (For example, if you use xrange, it won't work on 3.x. > If you use range, then it might be inefficient on 2.x.) In both Python 2.7 and 3.3+, you can use the 3rd-part

Re: Is it normal to cry when given XML?

2015-05-05 Thread Michael Torrie
On 05/05/2015 03:28 AM, Sayth Renshaw wrote: > Hi > > Just checking if the reaction to cry when given XML is normal. I'd say it is normal. XML is like violence. If it doesn't solve your problems, you're not using enough of it[1]. [1] Can anyone tell me who originated this line? -- https://mai

Re: Jython from bathc file?

2015-05-09 Thread Michael Torrie
On 05/09/2015 03:04 PM, [email protected] wrote: > Thanks.. I suspected it wasn't meant to be taken as in the file > > THe one thing I'm not sure if Jython is suppsosedto keep running > after the initisl stuff is loaded in.. > > > To put the question in purely DOS terms if you

Re: Instead of deciding between Python or Lisp for a programming intro course...What about an intro course that uses *BOTH*? Good idea?

2015-05-11 Thread Michael Torrie
On 05/11/2015 08:04 PM, Steven D'Aprano wrote: > On Tue, 12 May 2015 05:01 am, [email protected] wrote: > >> Yale has taken the unusual step of outsourcing its introductory CS class >> to Harvard, which uses C as the main language in its CS50 class. > > And another generation of new programmers w

Re: Ah Python, you have spoiled me for all other languages

2015-05-22 Thread Michael Torrie
On 05/22/2015 05:00 PM, Paul Rubin wrote: > Steven D'Aprano writes: >> the impression I get after a couple of hours is that Javascript tries >> really hard to do everything it can for you except what you actually want. > > Javascript is like C++ in that it's a lot of layers of legacy cruft, but >

Re: Ah Python, you have spoiled me for all other languages

2015-05-22 Thread Michael Torrie
On 05/22/2015 07:54 PM, Terry Reedy wrote: > On 5/22/2015 5:40 PM, Tim Daneliuk wrote: > >> Lo these many years ago, I argued that Python is a whole lot more than >> a programming language: >> >> https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/ > > Perhaps something at tundrawa

Re: Ah Python, you have spoiled me for all other languages

2015-05-22 Thread Michael Torrie
On 05/22/2015 10:10 PM, Ian Kelly wrote: > On Fri, May 22, 2015 at 9:31 PM, Michael Torrie wrote: >> On 05/22/2015 07:54 PM, Terry Reedy wrote: >>> On 5/22/2015 5:40 PM, Tim Daneliuk wrote: >>> >>>> Lo these many years ago, I argued that Python is a whole lo

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Michael Torrie
On 05/23/2015 05:40 AM, Chris Angelico wrote: > On Sat, May 23, 2015 at 9:34 PM, Tim Chase > wrote: >> A self-signed certificate may be of minimal worth the *first* time you >> visit a site, but if you return to the site, that initial >> certificate's signature can be used to confirm that you're t

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Michael Torrie
On 05/23/2015 06:44 AM, Marko Rauhamaa wrote: > Johannes Bauer : > >> I dislike CAs as much as the next guy. But the problem of distributing >> trust is just not easy to solve, a TTP is a way out. Do you have an >> alternative that does not at the same time to providing a solution >> also opens up

Re: different types of inheritence...

2015-05-26 Thread Michael Torrie
On 05/26/2015 08:57 AM, zipher wrote: > Comprende? I'm not trying to be cryptic here. This is a bit of OOP > theory to be discussed. No, sorry. Maybe an actual example (with use case) would spur discussion. -- https://mail.python.org/mailman/listinfo/python-list

Re: Logic problem: need better logic for desired thruth table.

2015-05-28 Thread Michael Torrie
On 05/28/2015 03:58 PM, [email protected] wrote: > I think the logic you're really looking for is: > > return BotWaitForCooldown or (not (BotWaitForCooldown or CooldownDetected)) Yes this is the simplest form. For more complicated truth tables you can create a K map and then apply a reductio

Re: Logic problem: need better logic for desired thruth table.

2015-05-28 Thread Michael Torrie
On 05/28/2015 05:03 PM, Grant Edwards wrote: > On 2015-05-28, Grant Edwards wrote: >> On 2015-05-28, Michael Torrie wrote: >>> On 05/28/2015 03:58 PM, [email protected] wrote: >>>> I think the logic you're really looking for is: >>>> >>>

Re: Parser needed.

2015-06-01 Thread Michael Torrie
On 06/01/2015 06:29 PM, Skybuck Flying wrote: > The parser should be able to parse a textfile of somewhere between 20.000 > lines to 50.000 lines in about 1 to 2 seconds. > > My environment is SikuliX 1.1 I don't have any inclination to examine your input files, but you could certainly mock up a

Re: Parser needed.

2015-06-01 Thread Michael Torrie
On 06/01/2015 07:19 PM, Skybuck Flying wrote: > How hard would it be to encode that into pyparser ? Check out the docs and you probably will get an idea. The only real way to find out is to try it. Is this file from a certain program? If so, it's possible someone has already written a python li

Re: Everything is an object in python - object class and type class

2015-06-03 Thread Michael Torrie
On 06/03/2015 10:00 AM, BartC wrote: > The others all give True in all cases. It seems that older Python > versions have a purer object model. No. It's just an under-the-hood optimization that the interpreter is making. It's an implementation detail that you should never rely on. It says nothin

Re: Can Python function return multiple data?

2015-06-04 Thread Michael Torrie
On 06/03/2015 04:28 PM, [email protected] wrote: > > People actually argue that Python passes by value? This is easily > proven wrong by passing a mutable object to a function and changing > it within the function. Sure but if you reassign the variable that was passed it, it has no effect w

Re: Parser needed.

2015-06-04 Thread Michael Torrie
On 06/04/2015 11:14 AM, Steven D'Aprano wrote: > On Fri, 5 Jun 2015 03:02 am, Skybuck Flying wrote: > >> Yeah... my first nice parser for this kind of stuff... >> >> Python is really nice for this stuff... >> >> Piece a cake.. now I just need to stuff it in some dictionary and I am >> done or so ;

Re: Can Python function return multiple data?

2015-06-04 Thread Michael Torrie
On 06/04/2015 11:26 AM, [email protected] wrote: > Of course, in CPython, the type of an object reference is PyObject *. > Which isn't invisible, unknown, or unknowable, either. > > If the value really were 23, the "is vs ==" problem wouldn't exist. Surely two objects can hold the same value,

Re: Find in ipython3

2015-06-04 Thread Michael Torrie
On 06/02/2015 10:13 AM, Cecil Westerhof wrote: > I am thinking about using ipython3 instead of bash. When I want to > find a file I can do the following: > !find ~ -iname '*python*.pdf' > but is there a python way? No more than there is a bash-native way of doing find. Bash scripts use a myri

Re: Find in ipython3

2015-06-04 Thread Michael Torrie
On 06/04/2015 09:12 AM, Cecil Westerhof wrote: >> Can't IPython just call the find and du utilities? > > That is what > !find ~ -iname '*python*.pdf' > does. But I do not find that aesthetically. Like I said, I find ipython to be hackish, but invoking find this way is no more hackish than wri

Re: How to inverse a particle emitter

2015-06-04 Thread Michael Torrie
On 06/04/2015 05:47 PM, [email protected] wrote: > On Thursday, June 4, 2015 at 4:15:29 PM UTC-7, [email protected] wrote: >> hey, i really need help, im a straight up beginner in scripting and i need >> to figure out how to make an inverted particle emitter using python in maya > >

Re: Find in ipython3

2015-06-04 Thread Michael Torrie
On 06/04/2015 05:04 PM, Cameron Simpson wrote: > On 04Jun2015 13:09, Michael Torrie wrote: >> Why not use Python for what it's good for and say pipe the results of >> find into your python script? Reinventing find poorly isn't going to >> buy you anything. >

Re: Keypress Input

2015-06-06 Thread Michael Torrie
On 06/06/2015 12:28 PM, John McKenzie wrote: > > Laura and Gary, thank you for your replies. I have three physical > buttons connected to a Kade device emulating a keyboard. These buttons > control an LED light strip. So there is no screen, so a GUI did not cross > my mind. I thought it made s

Re: Parser needed.

2015-06-09 Thread Michael Torrie
On 06/09/2015 06:20 AM, Skybuck Flying wrote: > Euhm... > > My parser is already done... since today > > Loving it too > > Wrote it myself... based on the c# code technique explained somewhere in > this thread too I'm glad you're having fun, and making good progress. And it's good to hear of

Re: How to find number of whole weeks between dates?

2015-06-10 Thread Michael Torrie
On 06/10/2015 02:11 PM, Sebastian M Cheung via Python-list wrote: > On Wednesday, June 10, 2015 at 6:06:09 PM UTC+1, Sebastian M Cheung wrote: >> Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May >> would be 5th, 12th and 19th. So expecting 7 whole weeks in total > > Wha

Re: I don't like the OO part of python. In particular the "self" keyword everywhere.

2015-06-11 Thread Michael Torrie
On 06/11/2015 05:19 AM, Skybuck Flying wrote: > I haven't written much OO code yet in Python... and don't plan on doing it > too... Except that you already have written OO code in Python with your parser. Or at least code that interacts heavily with OO. Anytime you call a method on a string lik

Re: Java to Python autoconverters

2015-06-12 Thread Michael Torrie
On 06/12/2015 05:36 AM, Sebastian M Cheung via Python-list wrote: > Are these available? Any good ones to recommend? The only use case for such a program that I can think of is a compiler that is just using another language as an intermediate step, and that language is usually going to be compiled

Re: OT ish Blocking telemarketers

2015-06-12 Thread Michael Torrie
On 06/12/2015 04:20 PM, Seymore4Head wrote: > Is there a program what runs on Windows that uses a national blacklist > to block phone calls? I'm sure you could install and use the Asterisk PBX software, and I bet people have made scripts for it to block calls in this way. You'll need to take your

Re: OT ish Blocking telemarketers

2015-06-13 Thread Michael Torrie
On 06/12/2015 04:20 PM, Seymore4Head wrote: > Is there a program what runs on Windows that uses a national blacklist > to block phone calls? You could port your number into Google Voice and then forward that to your cell phone or land line. You can screen all calls if you want (direct them to voi

Re: OT ish Blocking telemarketers

2015-06-13 Thread Michael Torrie
On 06/13/2015 08:42 AM, alister wrote: > On Fri, 12 Jun 2015 19:47:18 -0600, Michael Torrie wrote: > >> On 06/12/2015 04:20 PM, Seymore4Head wrote: >>> Is there a program what runs on Windows that uses a national blacklist >>> to block phone calls? >> >&

Re: Set a flag on the function or a global?

2015-06-16 Thread Michael Torrie
On 06/15/2015 06:20 PM, Ben Finney wrote: > I'm surprised by your assertion. To my mind, outside callers get simple > and direct access to the attribute, whereas the code of the function > itself does not have such easy access; unlike ‘self’ for the current > instance of a class, there's no obvious

Re: Set a flag on the function or a global?

2015-06-16 Thread Michael Torrie
On 06/15/2015 06:19 PM, Ethan Furman wrote: > Setting a global on the module (which I may not have, and probably > didn't, import) for only one function is overkill. What do you mean? Even if you pull in just one function from the module on an import, the module's initialization code still runs.

Re: Keypress Input

2015-06-16 Thread Michael Torrie
On 06/14/2015 11:23 PM, John McKenzie wrote: > Thank to the others who joined in and posted replies. > > Michael, your assumption is correct. To quote my original post, "and I > want this working on a Raspberry Pi." Doing a superficial look at curses > and g

Re: Keypress Input

2015-06-16 Thread Michael Torrie
On 06/16/2015 02:49 PM, Grant Edwards wrote: > On 2015-06-16, John McKenzie wrote: > >> It never occurred to me something so simple as keystrokes would not >> be present in Python, a language rated as being terrific by everyone >> I know who knows it. > > Ah, but in reality "keystrokes" is not s

Re: mix-in classes

2015-06-16 Thread Michael Torrie
On 06/16/2015 07:55 PM, Dr. John Q. Hacker wrote: > Interesting. This brings up an issue another poster brought up: In my > usage of the term "parent", I use it to mean the class that is a product of > object composition: > > class Parent(child1, child2): pass Hmm. This is a definition of "par

Re: operations on types

2015-06-17 Thread Michael Torrie
On 06/17/2015 09:42 AM, Steven D'Aprano wrote: > On Thu, 18 Jun 2015 12:26 am, Ned Batchelder wrote: > >> On Wednesday, June 17, 2015 at 7:52:05 AM UTC-4, Steven D'Aprano wrote: > >>> At the moment, I'm still willing to give Dr Hacker the benefit of the >>> doubt re the sockpuppet suspicion. >> >

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-17 Thread Michael Torrie
On 06/16/2015 12:19 PM, Chris Warrick wrote: > On Tue, Jun 16, 2015 at 8:14 PM, Néstor Boscán wrote: >> I tried that but it didn't work. >> >> I had to change /etc/selinux/config and reboot to make it work. It would be >> nice if the wsgi module generated some log that explains why you get the >>

Re: Posting gzip'd image file - server says Malformed Upload?

2015-06-17 Thread Michael Torrie
On 06/17/2015 06:45 PM, Paul Hubert wrote: > On Wednesday, June 17, 2015 at 8:24:17 PM UTC-4, Chris Angelico wrote: > >> Are you sure you want iteration and writelines() here? I would be >> inclined to avoid those for any situation that isn't plain text. If >> the file isn't too big, I'd just read

Re: Posting gzip'd image file - server says Malformed Upload?

2015-06-17 Thread Michael Torrie
On 06/17/2015 09:48 PM, Paul Hubert wrote: > Same result - server says malformed upload. :/ You may want to run a sniffer like wireshark and see what the difference is between the packets coming from your C# program and coming from Python. -- https://mail.python.org/mailman/listinfo/python-list

Re: CLI Arguments That Call Functions?

2015-06-18 Thread Michael Torrie
On 06/18/2015 12:08 PM, Tony the Tiger wrote: > Forgot to add, I don't read or see anything posted from outside of the > groups. Posting from the mailing list here. I assume the nntp gateway is two-way. Unless you're manually blocking message originating in google groups, I don't see why you w

Re: Keypress Input

2015-06-18 Thread Michael Torrie
On 06/18/2015 01:35 PM, Oscar Benjamin wrote: > I use the following. I found in testing that when you push the button it > prints 'Button pressed' 10 times a second (in actual use it calls poweroff > so I guess bounce isn't an issue there). Is there some reason it needs to > be cleverer in this cas

Re: Keypress Input

2015-06-20 Thread Michael Torrie
On 06/20/2015 09:02 AM, John McKenzie wrote: > > Guys, thanks for the various code examples for GPIO and the warning > about debouncing issues. I am still considering going the route of more > complex wiring and doing it a more traditional GPIO way. You can wire up the button without a little

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Michael Torrie
On 06/21/2015 02:58 PM, Marko Rauhamaa wrote: > Laura Creighton : > >> In a message of Sun, 21 Jun 2015 12:32:46 -0700, "C.D. Reimer" writes: >> >>> Do I need to release my scripts under a license? If so, which one? >> >> You should, because if you don't you could pop up some day and assert >> cop

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Michael Torrie
On 06/21/2015 03:52 PM, C.D. Reimer wrote: > The copyright applies to the book ("Do not redistribute, mirror, or copy > this *online book*.") and any derivative work is based on the book. > Using the video output from the BASIC games in the book could fall > underneath the fair use provision, wh

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Michael Torrie
On 06/21/2015 08:27 PM, Steven D'Aprano wrote: > Public domain is not a licence, and many places (including the US) do not > allow individuals to put works into the public domain. (US government works > are a special case.) Some places will not recognise a public domain > dedication, and will treat

Re:

2015-06-25 Thread Michael Torrie
On 06/24/2015 09:56 AM, Knss Teja via Python-list wrote: > I WANT TO install 4.3 version ... but the MSI file is giving a DLL error .. > what should I do :/ > please use REPLY ALL .. so that I get the mail to my gmail inbox No idea what you mean about wanting to get mail to your gmail inbox... I

Re: windows and file names > 256 bytes

2015-06-25 Thread Michael Torrie
On 06/25/2015 06:34 AM, Tim Golden wrote: > On 25/06/2015 13:04, Joonas Liik wrote: >> It sounds to me more like it is possible to use long file names on windows >> but it is a pain and in python, on windows it is basically impossible. > > Certainly not impossible: you could write your own wrapper

Re: HOPE: A Python just-in-time compiler for astrophysical computations

2015-06-26 Thread Michael Torrie
On 06/23/2015 10:53 AM, Laurent Pointal wrote: > Mark Lawrence wrote: > >> Another beasty I've just stumbled across which you may find interesting >> http://www.sciencedirect.com/science/article/pii/S2213133714000687 > > Why use a JIT complation when you could use some C++ generation then > com

Re: Pure Python Data Mangling or Encrypting

2015-06-27 Thread Michael Torrie
On 06/26/2015 03:11 PM, Johannes Bauer wrote: > You misunderstand. This is now how it works, this is not how any of this > works. Steven does not *at all* have to prove to you your system is > breakable or show actual attacks. YOU have to prove that your system is > secure. Ahh the holy grail of

Re: Pure Python Data Mangling or Encrypting

2015-06-27 Thread Michael Torrie
On Jun 27, 2015 11:51 AM, "Paul Rubin" wrote: > > Michael Torrie writes: > > Furthermore you cannot prove a negative, which is what proving > > security is for anything but the trivial case. Are you saying this is > > untrue? > > I've always thought

Re: Linear time baseconversion

2015-06-30 Thread Michael Torrie
Do you have some Python code to show us? -- https://mail.python.org/mailman/listinfo/python-list

Re: Linear time baseconversion

2015-06-30 Thread Michael Torrie
On 06/30/2015 10:24 AM, [email protected] wrote: > Den tisdag 30 juni 2015 kl. 18:12:46 UTC+2 skrev Michael Torrie: >> Do you have some Python code to show us? > > No i just thought you would find the digit search algorithm interesting. Yeah it is interesting, although

Re: Bug in floating point multiplication

2015-07-02 Thread Michael Poeltl
hi Steven, I'm running python-3.4.2 on a linuxmint16 box and CANNOT reproduce it is just that int(i*x) == i is never True! hope that helps regards Michael * Steven D'Aprano [2015-07-02 16:56]: > Despite the title, this is not one of the usual "Why can't Python do

Re: Trying to import numpy

2015-07-06 Thread Michael Torrie
On 07/06/2015 09:17 PM, ryguy7272 wrote: > I followed the instructions here. > https://pip.pypa.io/en/latest/installing.html > > > In the c-prompt, I get this error. > C:\>python get-pip.py > python: can't open file 'get-pip.py': [Errno 2] No such file or directory Is get-pip.py located in c:\?

ANN: python-ldap 2.4.20

2015-07-07 Thread Michael Ströder
.4.20.tar.gz 4b8891539a3171d993cf7896b632ff088a4c707ae85ac3c77db1454f7949f3e2 Ciao, Michael. Released 2.4.20 2015-07-07 Changes since 2.4.19: * New wrapping of OpenLDAP's function ldap_sasl_bind_s() allows to intercep

Re: (side-)effects and ...

2015-07-09 Thread Michael Torrie
On 07/09/2015 08:05 PM, Chris Angelico wrote: >> I thought so at first add well. It looks like the Mailman system handles the >> X-No-Archive and/or Archive headers. I couldn't find his name in this >> month's archive. > > Even if it respects that, there's no way that Mailman can know to > respect

Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?

2015-07-09 Thread Michael Torrie
On 07/09/2015 02:42 PM, Marko Rauhamaa wrote: > Skip Montanaro : > >> It makes perfect sense to me that TAB and Ctrl-TAB would generate the >> same keycode, as TAB is itself a control character (Ctrl-I). As the >> Ctrl modifier bit is effectively already set, I don't think you can >> really set it

Re: beginners choice: wx or tk?

2015-07-11 Thread Michael Torrie
On 07/11/2015 11:39 AM, Chris Angelico wrote: >> I'm happy with PyQt. I haven't created standalone executable files with it, >> though. Do they necessarily have to be large? I would think that >> well-written import statements would cut down on the file size. Just import >> the objects you n

Re: beginners choice: wx or tk?

2015-07-13 Thread Michael Torrie
On 07/13/2015 08:42 AM, Grant Edwards wrote: > If it didn't have to run on Windows, I'd pick pygtk over wx. I've > never tried qt. PyQt is very nice to work with. In some respects it's not as Pythonic as PyGTK. It feels a lot like transliterated C++ code, which it is. But it's a powerful toolki

Re: beginners choice: wx or tk?

2015-07-14 Thread Michael Torrie
On 07/14/2015 08:06 AM, Grant Edwards wrote: > On 2015-07-14, Michael Torrie wrote: >> On 07/13/2015 08:42 AM, Grant Edwards wrote: >>> If it didn't have to run on Windows, I'd pick pygtk over wx. I've >>> never tried qt. >> >> PyQt is

Re: Keypress Input

2015-07-15 Thread Michael Torrie
On 07/15/2015 01:05 PM, John McKenzie wrote: > Hello, all. > > Thanks to everyone who responded to my post. > > I decided to make sure I had something that worked with what I have now > and used Curses to finish it. However, it turns out that the extra work > and problems with using GPIO pin

Re: Keypress Input

2015-07-15 Thread Michael Torrie
On 07/15/2015 07:03 PM, Rick Johnson wrote: > I think you've missed the whole point of the OP's project. He doesn't want to make a GUI. He simply wants to have his program do something like blink an LED when someone presses a big red button. He just wanted a quick way to test things out since

Re: Keypress Input

2015-07-16 Thread Michael Torrie
On 07/16/2015 11:22 AM, Rick Johnson wrote: > On Wednesday, July 15, 2015 at 11:30:40 PM UTC-5, Michael Torrie wrote: >> On 07/15/2015 07:03 PM, Rick Johnson wrote: >>> >> >> I think you've missed the whole point of the OP's project. > > Obviously

Re: Keypress Input

2015-07-16 Thread Michael Torrie
On 07/16/2015 01:10 AM, Terry Reedy wrote: > On 7/16/2015 12:30 AM, Michael Torrie wrote: >> On 07/15/2015 07:03 PM, Rick Johnson wrote: >>> >> >> I think you've missed the whole point of the OP's project. He doesn't >> want to make a GUI

Re: Need assistance

2015-07-16 Thread Michael Torrie
On 07/16/2015 08:15 PM, [email protected] wrote: > I need help writing a homework program. > > I'll write it, but I can't figure out how to incorporate what I have > read in the book to work in code. Can you post the code that you are currently working with? > The assignment wants us to take

Re: Need assistance

2015-07-16 Thread Michael Torrie
On 07/16/2015 08:44 PM, Joseph Lee wrote: > Hi Michael, > I have talked to this guy offlist (basically you gave him the answer > (smiles)). > Cheers, > Joseph Sounds good. I had hoped to merely point him in the right way, and that he would put things together. I hope this is

Re: Need assistance

2015-07-18 Thread Michael Torrie
On 07/18/2015 03:44 PM, Dennis Lee Bieber wrote: > The new units (HP28, 48, 49, 50, etc.) no longer use the 4-register > stack; the stack is whatever is available in memory. As a result, the Roll > instructions now need an argument for how many stack entries are in play. > > The HP50g

Re: Need assistance

2015-07-19 Thread Michael Torrie
On 07/19/2015 05:06 PM, [email protected] wrote: > def main(): name= input('Enter your full name: ') > split=name.split() > Full_name=split[2],split[0], split[1] > print(Full_name[2],',', Full_name[0], Full_name[1]) > > main() > > Sorry it took so long to get back to you guys an

Re: Need assistance

2015-07-19 Thread Michael Torrie
On 07/19/2015 06:21 PM, Rick Johnson wrote: > On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, [email protected] wrote: >> def main(): >> name= input('Enter your full name: ') >> split=name.split() >> Full_name=split[2],split[0], split[1] >> print(Full_name[2],',', Full_name[0], Full

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Michael Torrie
On 07/19/2015 06:27 PM, Mark Lawrence wrote: > On 20/07/2015 00:23, Cecil Westerhof wrote: >> No use replying anymore. You make a caricature of what I am saying and >> put words in my mouth I never said. Just stay in your cosy ivory >> tower. But please do not pretend that you are open for discussi

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Michael Torrie
On 07/19/2015 11:33 PM, Michael Torrie wrote: > For the most part, > it's been good to hear from Cecil (there have been a few snarky posts) > as he has learned python and really run with it. I don't understand > where your apparent frustration with Cecil is coming from.

Generating type annotations by tracing execution runs

2015-07-20 Thread Michael Williamson
f anybody knows if anybody else has done anything similar? Thanks Michael -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to install ALL Python packages?

2015-07-20 Thread Michael Torrie
On 07/20/2015 08:57 PM, ryguy7272 wrote: > I'd like to install ALL Python packages on my machine. Even if it > takes up 4-5GB, or more, I'd like to get everything, and then use it > when I need it. Now, I'd like to import packages, like numpy and > pandas, but nothing will install. I figure, if

Re: Can I copy/paste Python code?

2015-07-21 Thread Michael Torrie
On 07/21/2015 03:47 PM, Grant Edwards wrote: > I'm trying to switch from acroread to evince, bit it has a few serious > usability problems for me: > > 1) You can't copy/paste text from evince _at_all_. At least it works > right most of the time with acroread. I really like being able >

Re: Can I copy/paste Python code?

2015-07-21 Thread Michael Torrie
On 07/21/2015 06:12 PM, Grant Edwards wrote: > > I don't want to close the TOC panel. I want to collapse all the > entries in the TOC tree widget _in_ the TOC panel. Ahh. Atril does not do this either. It can collapse the TOC to the first level items but not the tree itself. I'm curious as to

Re: [OT] Can I copy/paste Python code?

2015-07-22 Thread Michael Torrie
On 07/22/2015 01:35 PM, Grant Edwards wrote: > That must be using something other than the standard X11 clipboard > copy/paste mechnism. You shouldn't have to "right click copy", and > many of the apps I paste into don't even have a "right click paste". > > It sounds like evince has abandoned the

Re: Integers with leading zeroes

2015-07-23 Thread Michael Torrie
On 07/22/2015 07:51 AM, Grant Edwards wrote: > On 2015-07-22, Ben Finney wrote: >> Laura Creighton writes: >> >>> The biggest use I have for decimal numbers that begin with 0 is in >>> credit card numbers, account numbers and the like where the first >>> check you do is 'does this thing have the

Re: Authenticate users using command line tool against AD in python

2015-07-28 Thread Michael Ströder
ind_s Check whether password is non-zero before because most LDAP servers consider an empty password as anon simple bind even if the bind-DN is set. Ciao, Michael. -- https://mail.python.org/mailman/listinfo/python-list

Re: Authenticate users using command line tool against AD in python

2015-07-31 Thread Michael Ströder
Prasad Katti wrote: > On Tuesday, July 28, 2015 at 12:56:29 AM UTC-7, Michael Ströder wrote: >> Prasad Katti wrote: >>> I am writing a command line tool in python to generate one time >>> passwords/tokens. The command line tool will have certain sub-commands like >

Re: Most Pythonic way to store (small) configuration

2015-08-04 Thread Michael Torrie
On 08/04/2015 01:59 PM, Ben Finney wrote: > [email protected] writes: > >> Why not use Python files itself as configuration files? > > Because configuration data will be user-editable. (If it's not > user-editable, that is itself a poor design choice.) > > If you allow executable code to b

Re: Most Pythonic way to store (small) configuration

2015-08-04 Thread Michael Torrie
On 08/04/2015 08:44 PM, [email protected] wrote: > On Tue, Aug 4, 2015, at 21:32, Michael Torrie wrote: >> In many of my projects I put basic config variables in a file like >> config.py and import that in each module that needs it. The config >> module doubles as a

Re: Most Pythonic way to store (small) configuration

2015-08-04 Thread Michael Torrie
On 08/04/2015 08:19 PM, Cameron Simpson wrote: > So on the whole I am against python code as the config file format. Really, > who > needs a Turing complete configuration file? In Django's case, since you're intimately referring to certain classes and methods, particularly in the url mapping sec

Re: QUEST: does HACKING make FOR loop quicker.

2015-08-05 Thread Michael Torrie
On 08/05/2015 03:39 PM, Mark Lawrence wrote: > On 05/08/2015 21:00, John Doe wrote: > > Three strikes and you're out, good bye troll. While the original post is incomprehensible to me, I see only one post. What were the other two strikes? -- https://mail.python.org/mailman/listinfo/python-list

Re: python for barcode

2015-08-06 Thread Michael Torrie
On 08/06/2015 12:27 PM, Xxx Ooo wrote: > I try to do a program to modify barcode which kind of like "Msoffice" > if you suggestion? You'll have to explain better what you're looking for and what you've done so far. Also explain how this relates to Python. I have no idea what "like 'Msoffice'" me

Re: Is Django the way to go for a newbie?

2015-08-09 Thread Michael Torrie
On 08/08/2015 10:08 PM, Dwight GoldWinde wrote: > I am both new to Python and I haven¹t even touched Django yet. > > I understand I that I need Django or something like it to develop my > website. > > From what I have read, Python and Django somewhat go together. > > Is that true? > > Or is the

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Michael Torrie
On 08/10/2015 07:49 PM, Dwight GoldWinde wrote: > Thank you, Gary, for this new information. > > I will be looking into virtualenv and vertualenvwrapper. > > I thought that Django was an IDE. But, it seems that an IDE is one more > thing that I need that I didn¹t know I needed!? Django is a prog

Re: Real-time recoding of video from asx to non-Windows formats

2015-08-13 Thread Michael Torrie
On 08/12/2015 12:04 AM, Montana Burr wrote: > I'm interested in using Python to create a server for streaming my > state's traffic cameras - which are only available as Windows Media streams > - to devices that do not natively support streaming Windows Media content > (think Linux computers & i

[OT] unwritten list etiquette ate, was Re: Hooking Mechanism when Entering and Leaving a Try Block

2015-08-13 Thread Michael Torrie
On 08/13/2015 12:26 AM, Sven R. Kunze wrote: > > Btw. to me, the *context is the entire post*, not just two lines. You're a very rare person indeed. Most people seem to not read any of the post except the first and last lines. At least posting inline shows me they've read and understood the porti

[Back off topic] - Re: Hooking Mechanism when Entering and Leaving a Try Block

2015-08-13 Thread Michael Torrie
On 08/13/2015 12:28 AM, Sven R. Kunze wrote: > On 12.08.2015 20:44, Sven R. Kunze wrote: >> On 12.08.2015 18:11, Chris Angelico wrote: >>> Sounds to me like you want some sort of AST transform, possibly in an >>> import hook. Check out something like MacroPy for an idea of how >>> powerful this sor

Re: Is Django the way to go for a newbie?

2015-08-13 Thread Michael Torrie
On 08/10/2015 10:08 PM, Rustom Mody wrote: > On Tuesday, August 11, 2015 at 8:59:47 AM UTC+5:30, Michael Torrie wrote: >> On 08/10/2015 07:49 PM, Dwight GoldWinde wrote: >>> Thank you, Gary, for this new information. >>> >>> I will be looking into virtual

<    22   23   24   25   26   27   28   29   30   31   >