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: 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:

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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: How to inverse a particle emitter

2015-06-04 Thread Michael Torrie
On 06/04/2015 05:47 PM, stephenpprane...@gmail.com wrote: > On Thursday, June 4, 2015 at 4:15:29 PM UTC-7, stephenp...@gmail.com 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 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: 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: Can Python function return multiple data?

2015-06-04 Thread Michael Torrie
On 06/04/2015 11:26 AM, random...@fastmail.us 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: 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/03/2015 04:28 PM, sohcahto...@gmail.com 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: 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: 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: 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: 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, sohcahto...@gmail.com wrote: >>>> I think the logic you're really looking for is: >>>> >>>

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

2015-05-28 Thread Michael Torrie
On 05/28/2015 03:58 PM, sohcahto...@gmail.com 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: 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: 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: 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-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-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 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: 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, beliav...@aol.com 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: Jython from bathc file?

2015-05-09 Thread Michael Torrie
On 05/09/2015 03:04 PM, vjp2...@at.biostrategist.dot.dot.com 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: 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: 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: 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: 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: 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: 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: 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-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: 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-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: 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: 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: implementing pyshark

2015-04-06 Thread Michael S.
On 04/07/2015 03:55 AM, Steven D'Aprano wrote: On Mon, 6 Apr 2015 10:45 pm, Michael S. wrote: I am using kali-linux(debian based). i have installed all from repository. i haven't tried yet to use the source but i don't think it was compiled incorrectly. Kali's developers

Re: implementing pyshark

2015-04-06 Thread Michael S.
module named gevent_threading On 04/06/2015 03:11 PM, Peter Otten wrote: Michael S. wrote: Hi everyone. while trying to implement pyshark, i am getting this error: import pyshark capture = pyshark.LiveCapture(interface='wlan0') capture.sniff(timeout=50)

Re: implementing pyshark

2015-04-06 Thread Michael S.
n Mon, 6 Apr 2015 06:40 pm, Michael S. wrote: Hi everyone. while trying to implement pyshark, i am getting this error: [...] ImportError: No module named _threading Well that's awesome. I don't think I've seen that in Python 2.7 before. Apparently, you are using a version of

implementing pyshark

2015-04-06 Thread Michael S.
Hi everyone. while trying to implement pyshark, i am getting this error: import pyshark capture = pyshark.LiveCapture(interface='wlan0') capture.sniff(timeout=50) capture i have tried also to run it through interpreter yet, i got this error: import pyshark

Re: OOP for System Administrator

2015-04-04 Thread Michael Torrie
On 04/04/2015 09:56 AM, pankaj sharma wrote: > I'm a Linux system administrator and my work requires me to write > bash scripts (100-500 lines) for process monitoring, server health > check and automate some manual processes. Now I've started to learn > python as I want to write scripts in python r

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Michael Torrie
On 03/29/2015 04:58 PM, Ben Finney wrote: > You have provided none for your assertion that an unmaintained > third-party library is somehow a special failure of Python 3. A language is only as good as its libraries, either the standard library that ships with the language, or third-party libraries

Re: PiCxx

2015-03-29 Thread Michael Torrie
On 03/29/2015 04:20 AM, Robert Kern wrote: > On 2015-03-25 15:45, π wrote: >> Hello Python people, >> >> I've made a C++ wrapper for Python. >> I've called it PiCxx and put it up here: https://github.com/p-i-/PiCxx > > Please consider using a recognized open source license. Your project looks > i

Re: To Change A Pdf Ebook To Kindle

2015-03-24 Thread Michael Torrie
On 03/24/2015 08:27 AM, Mark Lawrence wrote: > On 24/03/2015 14:23, Michael Torrie wrote: >> Should I report this to SF as inappropriate content? > > Yes. Done. And yes I agree with alister, Calibre is an amazing program and it's all 100% python! And a large-scale app at th

Re: To Change A Pdf Ebook To Kindle

2015-03-24 Thread Michael Torrie
On 03/24/2015 01:05 AM, jeffreyciross wrote: > probable spam I'm wondering whether this is appropriate use of sourceforge. Hosting a proprietary program on SF's web site for free, doesn't seem honest to me. Should I report this to SF as inappropriate content? -- https://mail.python.org/mailman

Re: Automation of Windows app?

2015-03-22 Thread Michael Torrie
On 03/20/2015 12:10 PM, Grant Edwards wrote: > On 2015-03-20, Grant Edwards wrote: > >> I need to automate operation of a Windows application. > > I should have mentioned that I've found and am going to experiment > a bit with pywinauto-0.4.0, but if there is anything else I should > look at, su

Re: [PyQt] win32api.LoadKeyboardLayout; any solutions for OSX?

2015-03-19 Thread michael h
Did you see this: https://bitbucket.org/ronaldoussoren/pyobjc/issue/95/attributeerror-in-some-cases-when-checking On Thu, Mar 19, 2015 at 12:20 PM, Timothy W. Grove wrote: > A personal reply to my question sent me to the following link: > http://stackoverflow.com/questions/23729704/change-os

Re: [OT] Weaknesses of distro package managers - was Re: Python 2 to 3 conversion - embrace the pain

2015-03-19 Thread Michael Torrie
On 03/19/2015 04:16 PM, John Nagle wrote: > On 3/16/2015 6:46 PM, Michael Torrie wrote: >> Since Python 3's adoption is directly impacted by package managers and >> curated repos (or lack thereof), I feel justified in continuing this >> thread just a bit farther. > &

Re: Python+Glade+Gtk tutorial?

2015-03-17 Thread Michael Torrie
On 03/16/2015 10:13 AM, Dave Farrance wrote: > So am I understanding this correctly: If I use this include line: > > "from gi.repository import Gtk, Gdk, GObject, Pango" etc... > > ... I get, in effect, the libraries used in Gnome-3 even with python2? > Whatever "gi.repository" is? It's a bit h

Re: [OT] Weaknesses of distro package managers - was Re: Python 2 to 3 conversion - embrace the pain

2015-03-17 Thread Michael Torrie
On 03/17/2015 02:39 AM, Steven D'Aprano wrote: > On Tuesday 17 March 2015 12:46, Michael Torrie wrote: > >> Python3 can be installed from Software Collections (and that is somewhat >> reasonable), but it won't integrate by default, so you can't use >> #!/

Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
On 03/16/2015 09:04 PM, Mario Figueiredo wrote: > Are you saying this is a problem for any developer? Especially > considering this is a one-time operation... > > Or maybe you mean lazy developers. But lazy developers are an edge > case not worth being catered for. I guess I'm saying the package

Re: Package manager cooperation? (was Weaknesses of distro package managers)

2015-03-16 Thread Michael Torrie
On 03/16/2015 09:09 PM, Rustom Mody wrote: > OTOH many large-scale systems have sprouted their own packaging-systems And indeed PIP and CPAN are both forms of package managers to fit the special needs of those languages' developers. Sometimes that works well with the OS package manager, sometimes

Re: [OT] Weaknesses of distro package managers - was Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
On 03/16/2015 08:45 PM, Paul Rubin wrote: > Chris Angelico writes: >> On Tue, Mar 17, 2015 at 12:46 PM, Michael Torrie wrote: >>> But after 20 years, the package manager idea certain has revealed many >>> shortcomings (in short, it sucks in many ways). ... >> The

Re: [OT] Weaknesses of distro package managers - was Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
On 03/16/2015 09:01 PM, Mark Lawrence wrote: > Reading this makes me realise how lucky I am not having to worry about > such issues. How so? -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Weaknesses of distro package managers - was Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
On 03/16/2015 08:40 PM, Ben Finney wrote: > Thanks again. This is an important and difficult problem, with competing > forces at play, and I am not at all satisfied with the current state of > packaging. I agree. Though I like the concept of package managers and curated repos, compared to the dis

Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
On 03/16/2015 02:36 PM, Steven D'Aprano wrote: > I'm sorry, that makes no sense to me. What does it matter whether Python3 is > installed to /opt or /usr or /bin or /who/the/feck/cares, so long as your > application runs when you run it? It's just another dependency, and no more > than one call to

Re: [OT] Weaknesses of distro package managers - was Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
On 03/16/2015 07:57 PM, Chris Angelico wrote: > But the solution isn't necessarily to throw out the packaging system. > All you need is to expand it. Yes. And of course that's exactly what Poettering is talking about in his paper. Despite what many think of him, he's a deep thinker and it's wor

[OT] Weaknesses of distro package managers - was Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
Since Python 3's adoption is directly impacted by package managers and curated repos (or lack thereof), I feel justified in continuing this thread just a bit farther. On 03/16/2015 04:02 PM, Chris Angelico wrote: > It most assuredly does NOT suck for end users. Apart from issues of > naming (grab

Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Michael Torrie
On 03/16/2015 03:13 AM, INADA Naoki wrote: > I think application developers should use *only* Python 3 from this year. > If we start moving, more library developers will be able to start > writing Python 3 only code from next year. An admirable sentiment, but I'm currently running the latest RHEL

Re: Code hosting providers

2015-03-12 Thread Michael Torrie
On 03/12/2015 09:17 PM, Steven D'Aprano wrote: > Ben Finney wrote: >> Also worth watching is Kallithea, a new federated code hosting service >> https://kallithea-scm.org/>. It supports Mercurial and Git for VCS, >> code review, and integrates with existing issue trackers. Because it's >> federated,

Re: Use à Python 2 module with Python 3

2015-03-12 Thread Michael Torrie
On 03/11/2015 11:30 AM, Michael Parchet wrote: > Hello, > > Only one file of pyside project has update at 10 fob, > > What's your opinion > > Pyside is ded ? Qt 4 is very stable, with no new features. PySide works very well for me, and the few bugs/limitations th

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Torrie
On 03/11/2015 01:29 PM, Chris Warrick wrote: > On Wed, Mar 11, 2015 at 8:20 PM, Michael Torrie wrote: >> My biggest complaint with PySide is that for historical reasons (looking >> at you, PyQt), it does not use pep8 naming conventions, which makes for >> some really ugl

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Parchet
Hello, Only one file of pyside project has update at 10 fob, What's your opinion Pyside is ded ? Best regards mparchet Le 11.03.15 18:06, Ian Kelly a écrit : On Wed, Mar 11, 2015 at 4:54 AM, Steven D'Aprano wrote: Michael Parchet wrote: Hello, The pyside project is ded.

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Torrie
On 03/11/2015 04:54 AM, Steven D'Aprano wrote: >> Dose pyqt4 support Python 3 ? > > I can only repeat what I already wrote a few days ago: > > For PyQt specifically, googling suggests that PyQt does work with Python > 3, but the documentation is out of date and you may have difficulty > installin

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Torrie
On 03/11/2015 03:28 AM, Michael Parchet wrote: > The pyside project is ded. Why do you say PySide is dead? > Dose pyqt4 support Python 3 ? > Thanks for your answer > Best regards > mparchet Riverbank Computing has a web page that I'm sure has information on their PyQt pro

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Parchet
Hello, The pyside project is ded. Dose pyqt4 support Python 3 ? Thanks for your answer Best regards mparchet > Le 10 mars 2015 à 01:20, Michael Torrie a écrit : > >> On 03/09/2015 05:47 PM, Steven D'Aprano wrote: >> Michael Parchet wrote: >> >>> Hello

Re: Use à Python 2 module with Python 3

2015-03-09 Thread Michael Torrie
On 03/09/2015 05:47 PM, Steven D'Aprano wrote: > Michael Parchet wrote: > >> Hello, >> >> For a new project, a person recommande me to use Python 3 >> >> can I use Python 3 with a Python 2 y module ex : pyQt 4 ? > > Maybe. > > If the module i

Use à Python 2 module with Python 3

2015-03-09 Thread Michael Parchet
Hello, For a new project, a person recommande me to use Python 3 can I use Python 3 with a Python 2 y module ex : pyQt 4 ? Tanks for your answer Best regards mparchet -- https://mail.python.org/mailman/listinfo/python-list

Visual calendar like korganizer or evolution calendaar (outlook calendar) a print priview and enventualy an adressbook

2015-03-09 Thread Michael Parchet
> > Hello, > I am working with pyqt framework and i'm looking for a calendar (organizer) > like korganizer, evolution or outlook calendar that is OS indépendent with > recurrence event. writting in python with an UI framework (ex pyqt, pygtk, > wkpython, tkinter or other ui framwork) Where c

Visual kalendar like korganizer or evolution calendaar (outlook calendar) a print priview and enventualy an adressbook

2015-03-09 Thread Michael Parchet
Hello, I am working with pyqt framework and i'm looking for a calendar (organizer) like korganizer, evolution or outlook calendar that is OS indépendent with recurrence event. writting in python with an UI framework (ex pyqt, pygtk, wkpython, tkinter or other ui framwork) Where could I fin

Visual kalendar like korganizer or evolution calendaar (outlook calendar) a print priview and enventualy an adressbook

2015-03-08 Thread Michael Parchet
Hello, I am working with pyqt framework and i'm looking for a calendar (organizer) like korganizer, evolution or outlook calendar that is OS indépendent with recurrence event. writting in python with an UI framework (ex pyqt, pygtk, wkpython, tkinter or other ui framwork) Where could I find

Re: suggestions for functional style (singleton pattern?)

2015-03-02 Thread Michael Torrie
On 03/02/2015 03:19 AM, Fabien wrote: > On 01.03.2015 06:05, Michael Torrie wrote: >> A module*is* a singleton pattern, particularly one >> that maintains state. I use sometimes use this feature for sharing >> config and other data between other modules (global state

Re: Python Worst Practices

2015-03-01 Thread Michael Torrie
On 03/01/2015 09:58 AM, Marko Rauhamaa wrote: > Well, every nonnative strives for the standard Hollywoodese and does a > decent job at that. But when I hear a Brit speak their native tongue, I > just "smile and wave, smile and wave" because I usually have little idea > what they are trying to expla

Re: suggestions for functional style (singleton pattern?)

2015-02-28 Thread Michael Torrie
On 02/28/2015 09:11 PM, y...@zioup.com wrote: > On 2015-02-28 19:19, Michael Torrie wrote: >> You say you are trying to use a singleton pattern, but your code does >> not appear to implement a singleton. From what I can read of your code, > > I call it a singletone becaus

Re: suggestions for functional style (singleton pattern?)

2015-02-28 Thread Michael Torrie
On 02/28/2015 09:29 PM, y...@zioup.com wrote: >> Problem 4: >> You speak of a singleton. But you haven't implemented one. It is not >> clear from your code if this class should be a singleton. I'm guessing >> not. Singletons are in fact rare. Well, let me put it another way: >> Good reasons to code

Re: suggestions for functional style (singleton pattern?)

2015-02-28 Thread Michael Torrie
On 02/28/2015 04:12 PM, y...@zioup.com wrote: > For some scripts, I write in a a more functional way, using a lot of small > functions outside of any class. Although it makes the code clearer for > specific cases, I have found that it makes debugging and using the repl in > general difficult, as as

Re: Python Worst Practices

2015-02-25 Thread Michael Torrie
On 02/25/2015 10:21 PM, Ben Finney wrote: > document we're talking about, with many pages. I don't > want to sit navigating in my browser to read it, when it's certainly in > a form that could just be presented for download and viewed in a program > of my choice, while offline. > >> > I certainly

Re: Python Worst Practices

2015-02-25 Thread Michael Torrie
On 02/25/2015 09:08 PM, Ben Finney wrote: > Michael Torrie writes: > >> On 02/25/2015 04:45 PM, Ben Finney wrote: >>> Can someone direct us to a URL where the document can be downloaded >>> anonymously for offline viewing? >> >> Ahh, so you're ref

<    9   10   11   12   13   14   15   16   17   18   >