Re: Why Python 3?

2014-04-20 Thread Michael Torrie
On 04/20/2014 12:02 PM, Bernd Waterkamp wrote: > Michael Torrie schrieb: > >> For example, RHEL 6 is Red Hat's most current enterprise distribution and >> it does not yet even ship Python 2.7, to say nothing of Python 3. RHEL >> 7 has python 2.7 as the default sys

Re: Unicode in Python

2014-05-01 Thread Michael Torrie
Can't help but feed the troll... forgive me. On 04/28/2014 02:57 AM, [email protected] wrote: > Python 2.7 + cp1252: > - Solid and coherent system (nothing to do with the Euro). Except that cp1252 is not unicode. Perhaps some subset of unicode can be encoded into bytes using cp1252. But if it

Re: Unicode 7

2014-05-02 Thread Michael Torrie
On 05/02/2014 10:50 AM, Rustom Mody wrote: > Python just barfs: > fine = 1 > File "", line 1 > fine = 1 > ^ > SyntaxError: invalid syntax > > The point of that example is to show that unicode gives all kind of > "Aaah! Gotcha!!" opportunities that just dont exist in the old wor

Re: Glade on Windows using Python

2014-05-04 Thread Michael Torrie
On 05/04/2014 01:51 PM, [email protected] wrote: > So...it turns out that Glade support for Python 2.7 is pretty difficult. > I ended up rewriting the whole thing using Tkinter and ttk.Treeview. > It would have been good to reuse the Glade XML...less code, better looking, > etc. etc. Both Gt

Re: Pass variable by reference

2014-05-06 Thread Michael Torrie
On 05/05/2014 06:39 PM, Satish Muthali wrote: > I want to nuke /var/lib/postgresql/9.3.4/main/data , however > programatically I want it to be as: /var/lib/postgresql/ pgversion>/main/data > > Any help is appreciated. Not sure really. But if you want to pass a some data around that can be manip

Re: The “does Python have variables?” debate

2014-05-08 Thread Michael Torrie
On 05/08/2014 07:18 AM, Steven D'Aprano wrote: > Nobody has suggested flogging anyone, not even figuratively. Unless you > believe that correcting a misapprehension, no matter how gently it is > done, is a flogging, I don't see how you draw the conclusion that Ben is > talking about flogging any

Re: trailing underscores naming convention_

2014-05-09 Thread Michael Torrie
On 05/08/2014 11:49 PM, Metallicow wrote: > I guess to be more clear here is a small code snippet that shows what > is happening more readably. Hence the underscores question. In a case like this I'd probably prefer to number the methods rather than add underscores to the end of the names. My cur

Re: Loading modules from files through C++

2014-05-19 Thread Michael Torrie
On 05/17/2014 08:01 AM, Stefan Behnel wrote: > please avoid top-posting. Trimming quoted material where appropriate is always welcome too! -- https://mail.python.org/mailman/listinfo/python-list

Re: All-numeric script names and import

2014-05-23 Thread Michael Torrie
On 05/23/2014 03:28 AM, Chris Angelico wrote: > On Fri, May 23, 2014 at 7:22 PM, Wolfgang Maier > wrote: >> I see, so what you should propose then is a change to import, so that when >> it can't find a module it will try to import an alternative that's >> pronounced the same way. Then you could si

Re: Windows automatic rebooting due to faulty code

2014-05-23 Thread Michael Torrie
On 05/23/2014 09:26 AM, Ronak Dhakan wrote: > Even I am surprised, python errors should stay in python. But I am > sure that the reboot is triggered exactly when I run some faulty > code. And usually I change the code after reboot, so I haven't > checked whether the same code is able to repeat the

Re: OT: This Swift thing

2014-06-03 Thread Michael Torrie
On 06/03/2014 03:01 PM, Chris Angelico wrote: > On Wed, Jun 4, 2014 at 6:43 AM, Sturla Molden wrote: >> A Python with static typing would have been far better, IMHO. It seems they >> have created a Python-JavaScript bastard with random mix of features. >> Unfortunately they retained the curly brac

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Michael Torrie
On 06/04/2014 12:50 AM, [email protected] wrote: > Like many, you are not understanding unicode because > you do not understand the coding of characters. If that is true, then I'm sure a well-written paragraph or two can set him straight. You continually berate people for not understanding unic

Re: OT: This Swift thing

2014-06-04 Thread Michael Torrie
On 06/03/2014 03:49 PM, Mark H Harris wrote: > I have been engaged in a minor flame debate (locally) over block > delimiters (or lack thereof) which I'm loosing. Locally, people hate > python's indentation block delimiting, and wish python would adopt curly > braces. Yeah people do have strong

Re: Python script help

2013-08-04 Thread Michael Torrie
On 08/02/2013 03:46 AM, [email protected] wrote: > I do know some Python programming, I just dont know enough to put > together the various scripts I need...I would really really > appreciate if some one can help me with that... Seems like your first task, then, is to become proficient at python

Re: Python Basic Doubt

2013-08-10 Thread Michael Torrie
On 08/10/2013 09:09 PM, Krishnan Shankar wrote: > i.e. Is this code possible > > if a is False: > print 'Yes' > if b is False: > print 'No' > > Because i recommended this should not be done. But my colleagues say it is > correct. You are probably correct in your believe that this idiom

Re: Could you verify this, Oh Great Unicode Experts of the Python-List?

2013-08-11 Thread Michael Torrie
On 08/11/2013 09:34 AM, MRAB wrote: > If twitter counts characters, not codepoints, you could then ask > whether it passes the codepoints through as given. If it does, then you > experiment to see how much data you could send encoded as a sequence of > combining codepoints. (You might want to check

Re: Could you verify this, Oh Great Unicode Experts of the Python-List?

2013-08-12 Thread Michael Torrie
On 08/11/2013 11:54 PM, Gregory Ewing wrote: > Michael Torrie wrote: >> I've always wondered if the 160 character limit or whatever it is is a >> hard limit in their system, or if it's just a variable they could tweak >> if they felt like it. > > Isn't it

Re: Am I not seeing the Error?

2013-08-13 Thread Michael Torrie
On 08/13/2013 04:31 AM, Devyn Collier Johnson wrote: > For me, this style is easier to read. I have tried the "typical" style, > but I find this one to be easier. One thing I do know is that your style makes it very hard to find errors, even when the parser flags them. And the fact that you post

Using PyQT with QT Designer

2013-08-21 Thread Michael Staggs
I'm learning Python and I have a problem. I've asked the question everywhere and no one helps me, so I'm hoping someone here will. I am making a program that shows album covers and you click on the album cover in the top window. In the bottom window, the list of songs appear and you can click th

Re: c# async, await

2013-08-22 Thread Michael Torrie
On 08/22/2013 05:29 AM, Neal Becker wrote: > So my son is now spending his days on c# and .net. He's enthusiastic about > async and await, and said to me last evening, "I don't think python has > anything > like that". I'm not terribly knowledgeable myself regarding async > programming > (si

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
I tried that this morning and it destroyed my form. So, right now, that's probably not what I'm looking for. But, if you look at that picture, the app isn't resized to 800x600 like it says in the ui file. The pixmaps aren't on the buttons like I set them up in the ui file. It's not using the ui fi

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
point me to something that would explain what I'm doing wrong, I'll read it from front to back. If it's too advanced it will lose mebut I would like to learn to do this. On Aug 23, 2013 12:17 PM, "Phil Thompson" wrote: > On Fri, 23 Aug 2013 08:00:29 -0500, Michael Sta

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
doesn't seem to even notice my ui file...and certainly isnt acting on it. I posted my code above where I was trying anything just to get it to use that ui I designed in qt designer.so far to no avail -- Forwarded message -- From: "Michael Staggs" Date: Aug 23, 20

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
il Thompson" wrote: > On Fri, 23 Aug 2013 12:30:41 -0500, Michael Staggs > wrote: > > Right. I know that if I redesign it I have to run pyuic4 again and that > I > > shouldn't change that file...let qt designer do its job. > > > > But, that's exactl

Re: python interface to iMacros

2013-08-24 Thread Michael Torrie
On 08/23/2013 09:13 AM, inq1ltd wrote: > Python help, > > I am running iMacros from linux/firefox > and doing most of what I want. > > But, there are times when I want to do > something of the net and then back > to the iMacros script. > > Are there any projects out there > that will conne

Re: New way of writing socket servers in #Linux kernel 3.9 (and in #Python too)

2013-08-24 Thread Michael Torrie
#Linux, #Python? This this hash tag stuff is getting out of hand, don't you think? -- http://mail.python.org/mailman/listinfo/python-list

Re: New way of writing socket servers in #Linux kernel 3.9 (and in #Python too)

2013-08-24 Thread Michael Torrie
On 08/24/2013 10:06 PM, Benjamin Kaplan wrote: > On Sat, Aug 24, 2013 at 7:08 PM, Michael Torrie wrote: >> #Linux, #Python? This this hash tag stuff is getting out of hand, don't >> you think? > > Didn't you hear? In an effort to redefine itself for the mode

Python Weekend Challenge - $$

2013-08-30 Thread Michael Herman
https://gist.github.com/mjhea0/6390724 Check it out!:) Have a great labor day weekend. -- http://mail.python.org/mailman/listinfo/python-list

Re: gethostbyname_ex(hostname) extremely slow (crossposted from stackoverflow)

2013-08-31 Thread Michael Torrie
On 08/31/2013 10:51 PM, [email protected] wrote: > It is the call to gethostbyname_ex that is very slow. The call to > gethostname is quick (and returns the same string as > /usr/bin/hostname). What gethostbyname_ex and /usr/bin/hostname do are very different things. gethostbyname_ex does a

Re: file handling issues

2013-09-06 Thread Michael Torrie
On 09/06/2013 09:05 PM, Leo Carnovale wrote: > Ah and one other thing! What is this crypto algorithm you speak of? I > desperately need some sort of encryption as at the moment anyone can > simply open the text file and change the numbers to numbers that > work! Where can I learn more about it? Th

Re: Can I trust downloading Python?

2013-09-07 Thread Michael Torrie
On 09/07/2013 07:17 PM, Aaron Martin wrote: > Hi, I am thinking about getting a software but it requires python, so that > brought up a few questions. Is it safe do download python, and does it come > with spam or advertisements? If it doesn't then should I get the latest > version? I mostly want t

Re: Help - Python syntax - repeats script through subordinate folders

2013-09-07 Thread Michael Torrie
On 09/07/2013 09:09 PM, BlueFielder wrote: > I 'think' I did as you instructed …. but that too failed. :( > > > CiMac:ddd camforx$ find -type d -execdir bash -c 'cd {}; python > ./fxp2aupreset.py ./ aumu Alb3 LinP vstdata' \; > find: illegal option -- t > usage: find [-H | -L | -P] [-EXdsx] [-f

Re: Can I trust downloading Python?

2013-09-09 Thread Michael Torrie
On 09/09/2013 05:02 AM, Anthony Papillion wrote: > But (and this is stepping into *really* paranoid territory here. But > maybe not beyond the realm of possibility) it would not be so hard to > compromise compilers at the chip level. If the NSA were to strike an > agreement with, say, Intel so that

Re: Chardet, file, ... and the Flexible String Representation

2013-09-09 Thread Michael Torrie
On 09/09/2013 08:28 AM, [email protected] wrote: > Comment: Such differences never happen with utf. But with utf, slicing strings is O(n) (well that's a simplification as someone showed an algorithm that is log n), whereas a fixed-width encoding (Latin-1, UCS-2, UCS-4) is O(1). Do you understan

Re: Can I trust downloading Python?

2013-09-09 Thread Michael Torrie
On 09/09/2013 10:40 AM, William Ray Wing wrote: > I think that is pretty far fetched. It requires recognition that a > compiler is being compiled. I'd be REALLY surprised if there were a > unique sequence of hardware instructions that was common across every > possible compiler (current and futur

Re: Monitor key presses in Python?

2013-09-09 Thread Michael Torrie
On 09/09/2013 11:39 AM, [email protected] wrote: > Is there a way to detect if the user presses a key in Python that > works on most OS's? I've only seen 1 method, and that only works in > Python 2.6 and less. If you get the key, can you store it in a > variable? > > Also, is there a way to cre

Re: Python TUI that will work on DOS/Windows and Unix/Linux

2013-09-10 Thread Michael Torrie
On 09/04/2013 05:41 AM, James Harris wrote: > Naturally, all of these are centred on curses. I have been reading up on it > and must say that the whole curses approach seems rather antiquated. I > appreciate the suggestions and they may be what I need to do but from what I > have seen of curses

Re: Python GUI?

2013-09-11 Thread Michael Torrie
On 09/11/2013 02:55 PM, [email protected] wrote: > PyQT -- You have a GUI designer, so I'm not going to count that What do you mean? Gtk has a GUI designer too. what of it? > I, personally, really like wxPython, but I also really like Tkinter. > I've messed with PyGTK, but I'd choose wxPython

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 10:03 AM, [email protected] wrote: > I didn't realise GTK has a GUI designer too :( > > I don't like it when you can D&D to position things. I don't > understand why someone wouldn't want to write the positioning code, > and have fun with the debugging. That's the best part about w

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 09:02 PM, Michael Torrie wrote: > In any event I think you should give both Glade-3 and Qt Designer a > serious look. I think your hate of gui designers is about 10 years out > of date now, even if you still prefer not to use them. This is a bit old but still how Qt wor

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 09:39 PM, Peter wrote: > I stuck with Tkinter combined with PMW for a very long time, but the > lack of extra widgets finally drove me to look elsewhere. > > I tried PyQT but didn't have a good experience. I can't remember > details, but things just seemed to have little "gotchas" -

Re: Python GUI?

2013-09-13 Thread Michael Torrie
On 09/13/2013 12:23 PM, [email protected] wrote: > On Friday, September 13, 2013 4:02:42 AM UTC+1, Michael Torrie > wrote: >> On 09/12/2013 10:03 AM, [email protected] wrote: I think your >> hate of gui designers is about 10 years out of date now, even if >> you stil

Is %z broken for return values of time.gmtime()?

2013-09-16 Thread Michael Schwarz
gt;>> time.strftime("%F %T %z", time.gmtime(40.5 * 365 * 86400)) '2010-06-22 12:00:00 +0100' Why is my OS’s time zone used for formatting a struct_time with the UTC time zone? I’m running OS X 10.8.4, my OS’s time zone is set to CET/CEST. Regards Michael smime.p7s Description: S/MIME cryptographic signature -- https://mail.python.org/mailman/listinfo/python-list

Re: How is this list comprehension evaluated?

2013-09-16 Thread Michael Torrie
On 09/16/2013 07:43 AM, Arturo B wrote: > It uses a list comprenhension to generate the Latin Square, I'm am a newbie > to Python, and I've tried to figure out how this is evaluated: > > a = [1, 2, 3, 4] > n = len(a) > [[a[i - j] for i in range(n)] for j in range(n)] > > I don't und

Re: Is %z broken for return values of time.gmtime()?

2013-09-16 Thread Michael Schwarz
On 2013-W38-1, at 19:56, [email protected] wrote: > On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote: >> According to the documentation of time.gmtime(), it returns a struct_time >> in UTC, but %z is replaced by +0100, which is the UTC offset of my OS’s >> time zone

Re: Python GUI?

2013-09-18 Thread Michael Torrie
On 09/17/2013 10:19 AM, Benjamin Kaplan wrote: > Sure. Every platform provides its own GUI library (Cocoa on Mac OS X, > Win32 on Windows). Other programs that want to hook into yours, such > as screen readers, are familiar with the platform's native GUI > elements- it knows what a Win32 combo box

Re: Python GUI?

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:34 PM, Metallicow wrote: > I prefer wx over qt for these reasons. Robin works for qt now. *Funny > isn't it...* Basically, To change qt(PySide) you need to pretty much > need to be employed by qt, not the case with wx(is not a *For > profit*, but you can donate.). In my opinion, in

Re: Python GUI?

2013-09-20 Thread Michael Torrie
On 09/20/2013 01:58 PM, Metallicow wrote: > Sorry about that, nokia is/was. qt was developed(IIRC) for phones. > Someone made money. And a lot of it. wx is a more or less a "free" > project. I don't use a phone anymore. If I had a touch screen phone > and was a developer, I still wouldn't use one.

Re: pyGTK Help Needed Please

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:30 PM, [email protected] wrote: > Hi folks, > > I'm trying to run a program called Nicotine+ on my Mac which is running > 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have > all of these installed via Macports (please see here - > http://pastebin.c

Re: Stop posting HTML [was Re: I haev fixed it]

2013-10-01 Thread Michael Torrie
On 10/01/2013 08:40 PM, Steven D'Aprano wrote: > On Tue, 01 Oct 2013 22:02:36 -0400, Joel Goldstick wrote: > >> On Tue, Oct 1, 2013 at 9:52 PM, Steven D'Aprano < >> [email protected]> wrote: >> >>> Joel, you've been asked repeatedly to please stop posting HTML. > [...] > >> > c

Running code from source that includes extension modules

2013-10-02 Thread Michael Schwarz
will find the built extension module? Do I pass the output directory on the command line manually or is there some other solution? I would like to still be able to run the code from the source directory as I'm using PyCharm to edit and debug the code. Many thanks! Michael -- https://mail

Re: Running code from source that includes extension modules

2013-10-02 Thread Michael Schwarz
On 2013-W40-3, at 19:15, "Gisle Vanem" wrote: > "Michael Schwarz" wrote: > >> So how do I run my code so it will find the built extension module? Do I >> pass the output directory on the command line manually or is there some >> other solution? I

Re: Running code from source that includes extension modules

2013-10-02 Thread Michael Schwarz
On 2013-W40-3, at 21:15, Stefan Behnel wrote: > Michael Schwarz, 02.10.2013 17:38: >> I've just started looking into distutils because I need to write an >> extension module in C (for performance reasons) and distutils seems to be >> the most straight-forward wa

Re: How to manage Git or Mercurial repositories

2013-10-15 Thread Michael Ströder
advertising to me. Ciao, Michael. -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem calling script with arguments

2013-10-15 Thread Michael Speer
> "/usr/sbin/ftpasswd" "--hash" You're missing a comma, and python automatically concatenates adjacent strings. On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner wrote: > Hello, > > I have a 3rd party perl script: > > head -n 1 /usr/sbin/ftpasswd > #!/usr/bin/perl > > I want to write data to s

Re: Python Front-end to GCC

2013-10-22 Thread Michael Torrie
On 10/22/2013 12:28 PM, Mark Janssen wrote: > Thank you. You may be seated. Ranting Rick, is that you? -- https://mail.python.org/mailman/listinfo/python-list

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Michael Torrie
On 10/30/2013 10:08 AM, [email protected] wrote: > My comment had nothing to do with Python, it was a > general comment. A diacritical mark just makes a letter > a different letter; a "ï " and a "i" are "as > diferent" as a "a" from a "z". A diacritical mark > is more than a simple ornementation.

Re: Python wart

2013-10-31 Thread Michael Torrie
On 10/31/2013 07:45 PM, Mark Lawrence wrote: > Quite often I type this > > print('Total of accounts %.2f', total) > > when I meant to type this > > print('Total of accounts %.2f' % total) > > Do I have to raise a PEP to get this stupid language changed so that it > dynamically recognises what

Re: Python wart

2013-10-31 Thread Michael Torrie
On 10/31/2013 08:56 PM, Mark Lawrence wrote: > On 01/11/2013 02:41, Michael Torrie wrote: >> On 10/31/2013 07:45 PM, Mark Lawrence wrote: >>> Quite often I type this >>> >>> print('Total of accounts %.2f', total) >>> >>> when I m

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-03 Thread Michael Torrie
On 11/03/2013 12:09 AM, Mark Janssen wrote: >>> Congratulations Jonas. My kill file for this list used to have only one >>> name, but now has 2. >> >> You have more patience than I! Jonas just made mine seven. :) > > Gosh, don't kill the guy. It's not an obvious thing to hardly anyone > but co

Re: suggestions for functional style (singleton pattern?)

2015-02-28 Thread Michael Torrie
On 02/28/2015 04:12 PM, [email protected] 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: suggestions for functional style (singleton pattern?)

2015-02-28 Thread Michael Torrie
On 02/28/2015 09:29 PM, [email protected] 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 09:11 PM, [email protected] 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: 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-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

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

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

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

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

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

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

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

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

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

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