Re: Trying out Kivy

2015-11-13 Thread Michael Torrie
On 11/13/2015 09:33 AM, Cecil Westerhof wrote: > I tried to install pygame and PIL with pip3, but that did not find > anything. The replacement for PIL is called Pillow. I'm not sure if it's a drop-in replacement or not. If it's not, then you'd have to modify Kivy to import from Pillow. Pillow

Re: Trying out Kivy

2015-11-13 Thread Michael Torrie
On 11/13/2015 11:30 AM, Cecil Westerhof wrote: > On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote: > >> On 11/13/2015 09:33 AM, Cecil Westerhof wrote: >>> I tried to install pygame and PIL with pip3, but that did not find >>> anything. >> >> The rep

Re: More tkinter Madness

2015-11-13 Thread Michael Torrie
On 11/13/2015 12:14 PM, Tim Daneliuk wrote: > On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >> Apfelkiste:Sources chris$ > > Well, I get window and when I do this: > > pack [button .b -text Hello -command exit] > > Nothing appears. > > tkinter appears borked > > I have reinstalled once a

Re: Question about math.pi is mutable

2015-11-13 Thread Michael Torrie
On 11/10/2015 03:03 AM, Antoon Pardon wrote: > Op 10-11-15 om 00:29 schreef Ben Finney: >> >> Who is doing what to whom? The user of the library isn't doing anything >> to the library author, so what is it the library author would consent >> to? Instead, you seem to be trying to assert a *power* of

Re: Trying out Kivy

2015-11-14 Thread Michael Torrie
On 11/14/2015 04:51 AM, Cecil Westerhof wrote: > I tried to install v1.8.0 with: > pip3 install -I kivy==1.8.0 Why are you trying to install the non-current version of kivy? Did you install pygame successfully? -- https://mail.python.org/mailman/listinfo/python-list

Re: What meaning is of '#!python'?

2015-11-14 Thread Michael Torrie
On 11/14/2015 06:54 PM, fl wrote: > Hi, > > I see an example Python code has such a line at the file beginning: > > #!python > > > Is there some meaning about it? Supposed to be, yes, but the line you've pasted there wouldn't work on any system I know of. https://en.wikipedia.org/wiki/Shebang

Re: Writing a Financial Services App in Python

2015-11-19 Thread Michael Torrie
On 11/19/2015 04:59 AM, Cai Gengyang wrote: > > From YCombinator's new RFS, This is the problem I want to solve as it > is a severe problem I face myself and something I need. I want to > write this app in Python as I heard that Python is a great language > that many programmers use ... How / wher

Re: Writing a Financial Services App in Python

2015-11-19 Thread Michael Torrie
On 11/19/2015 08:24 AM, Cai Gengyang wrote: > It will be a web-based application. Contract it out. Or attract people who are interested in making an open source application. What you are thinking of is a massive undertaking. Web-based application design is even more complicated than desktop app

Re: non-blocking getkey?

2015-11-19 Thread Michael Torrie
On 11/19/2015 08:48 AM, Ulli Horlacher wrote: > > The focus is moved to another, unrelated window, but not back to the > window in which the python scripts run. > Same behaviour on Linux (XFCE) and windows 7. That's because an app that communicates with standard in and standard out could be runn

Re: Writing a Financial Services App in Python

2015-11-19 Thread Michael Torrie
On 11/19/2015 09:20 AM, Cai Gengyang wrote: > Sure ... is this : https://www.codecademy.com/learn/python a good > place to learn Python ? Why not have a look first at the many tutorials, including the ones on Python's web site? You need to explore feasibility first before you go too far. Python i

Re: What is a function parameter =[] for?

2015-11-19 Thread Michael Torrie
On 11/19/2015 02:21 PM, BartC wrote: > (Python returns 42; so that means my languages are more dynamic than > Python? That's hard to believe!) It tells me your language does late binding for default arguments, which does mean the default argument can dynamically change at call time, which would s

Re: How can I export data from a website and write the contents to a text file?

2015-11-20 Thread Michael Torrie
On 11/19/2015 12:17 PM, Patrick Hess wrote: > ryguy7272 wrote: >> text_file = open("C:/Users/rshuell001/Desktop/excel/Text1.txt", "wb") >> [...] >> It doesn't seem like the '\n' is doing anything useful. All the text is >> jumbled together. >> [...] >> I finally got it working. It's like this: >

Re: OT: This Swift thing

2014-06-05 Thread Michael Torrie
On 06/05/2014 08:10 AM, Sturla Molden wrote: > Perhaps, perhaps not. My experience is that only a small percentage of > the CPU time is spent in the Python interpreter. Depends greatly on the type of application. While it's true that most apps that aren't CPU bound are idle most of the time, the

Re: OT: This Swift thing

2014-06-05 Thread Michael Torrie
On 06/05/2014 10:09 AM, Sturla Molden wrote: > On 05/06/14 16:33, Michael Torrie wrote: > > > In any case I'm a bit surprised by people comparing Python to Swift at > > all, implying that Python would have worked just as well and Apple > > should have cho

Re: Automating windows media player on win7

2014-06-06 Thread Michael Torrie
On 06/06/2014 07:39 AM, Deogratius Musiige wrote: > Thanks a lot mate. > > You just made my day. > I have looked around the net but cannot find the controls available. > > I would like to be able to: > - get current playing track > - get wmplayer state (playing/paused/stopped) > - get the sele

Re: Python 3.2 has some deadly infection

2014-06-06 Thread Michael Torrie
On 06/06/2014 08:10 AM, Marko Rauhamaa wrote: > Ethan Furman : >> ASCII is *not* the state of "this string has no encoding" -- that >> would be Unicode; a Unicode string, as a data type, has no encoding. > > Huh? It's this very fact that trips of JMF in his rants about FSR. Thank you to Ethan fo

Re: OT: This Swift thing

2014-06-06 Thread Michael Torrie
On 06/06/2014 12:28 AM, Travis Griggs wrote: > > >> On Jun 5, 2014, at 1:14, Alain Ketterlin >> wrote: >> >> Swift's memory management is similar to python's (ref. counting). >> Which makes me think that a subset of python with the same type >> safety would be an instant success. > > Except th

Re: OT: This Swift thing

2014-06-07 Thread Michael Torrie
On 06/07/2014 09:23 AM, Dennis Lee Bieber wrote: > On 07 Jun 2014 04:57:19 GMT, Steven D'Aprano > declaimed the following: > >> >> Swift is intended as a new generation *systems language*. The old >> generation of systems languages are things like C, Objective-C, C#, C++, >> Java, Pascal, Algol

Re: OT: This Swift thing

2014-06-07 Thread Michael Torrie
On 06/07/2014 12:11 PM, Roy Smith wrote: > Several language constructs in C are there specifically to diddle bits > in hardware. Bit fields were in the earliest implementations of the > language to allow you to address individual bit control and status bits > in memory-mapped device controllers

Re: OT: This Swift thing

2014-06-09 Thread Michael Torrie
On 06/08/2014 10:20 PM, Steven D'Aprano wrote: > A typical desktop computer uses less than 500 watts for *everything* > except the screen. Hard drives. DVD burner. Keyboard, mouse, USB devices, > network card, sound card, graphics card, etc. (Actually, 350W is more > typical.) > > Moore's Law o

Re: Python's re module and genealogy problem

2014-06-11 Thread Michael Torrie
On 06/11/2014 06:23 AM, BrJohan wrote: > For some genealogical purposes I consider using Python's re module. > > Rather many names can be spelled in a number of similar ways, and in > order to match names even if they are spelled differently, I will build > regular expressions, each of which is

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-11 Thread Michael Torrie
On 06/10/2014 01:43 PM, alister wrote: > On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: >> BTW, very easy to explain. Yeah he keeps saying that, but he never does explain--just flails around and mumbles "unicode.org." Guess everyone has to have his or her windmill to tilt at. -- https://

Re: parsley parsing question, how to make a variable grammar

2014-06-14 Thread Michael Torrie
On 06/13/2014 03:05 PM, Eric S. Johansson wrote: > I appreciate any insight before I go too far off track. > --- eric Perhaps this is off-topic, and doesn't answer your question, but is Parsley a natural language parsing tool? If not, and if it is natural language that you're trying to parse, may

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Michael Torrie
On 06/18/2014 11:20 AM, cutey Love wrote: > I'm trying to read in 10 lines of text, use some functions to > edit them and then return a new list. > > The problem is my program always goes not responding when the amount > of lines are a high number. > > I don't care how long the program takes

Re: subprocess can not kill when app exit()

2014-06-25 Thread Michael Torrie
On 06/25/2014 06:07 PM, Jason Friedman wrote: >> code in below, when close the app window. the two ping process can not >> kill auto and keep in the windows 7 task list. >> >> During running, ping process under Python.exe as two thread. When app exit, >> this two process move the system proces

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Michael Torrie
On 06/26/2014 12:44 PM, CM wrote: > Huh. I learned two new Python facts this week: > > 1. print statements were slowing down my code enough to > really notice a particular transition. It went from about > 2-3 seconds to a bit under 1 second. What at first seemed > unresponsive now seems almost sna

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Michael Torrie
On 06/26/2014 02:36 PM, CM wrote: >> What I do find Heisenbergian are bugs that show >> up when debugging and profiling stuff are removed, >> but completely gone when present. IE profiling and >> debugging slow it down enough that often subtle race >> conditions are masked. > > Would never ha

Re: What can Nuitka do?

2014-06-27 Thread Michael Torrie
On 06/27/2014 09:06 PM, CM wrote: > On Friday, June 27, 2014 7:44:39 PM UTC-4, Paul Sokolovsky wrote: >> Yes, you can. So, please try that, and report >> how that went. We're eager to know how that would >> go very much. But unlike you, we don't have need >> to transform wxPython GUI application

Re: What can Nuitka do?

2014-06-27 Thread Michael Torrie
On 06/27/2014 09:44 PM, CM wrote: >> Additionally, in most GUI apps (although not all), >> the main bottleneck is usually not the programming >> language but the user. GUI apps tend to spend >> 95% of their time idling, waiting for the user. Its >> been a *long* time since the GUI framework its

Re: [OT] What can Nuitka do?

2014-06-30 Thread Michael Torrie
On 06/28/2014 09:16 AM, Chris Angelico wrote: >> I remember approx. 10 years ago a neighboring dept. at my work effectively >> killed our 10 MB/s Ethernet segment with such traffic (due to a >> misconfigured switch/router?). Running an ethernet analyzer showed a single >> X11 host-server session oc

Re: Translation of Python!

2014-06-30 Thread Michael Torrie
On 06/30/2014 12:37 PM, Doriven Basha wrote: > I want to translate it into my language like the chinese python > https://code.google.com/p/zhpy/w/list?q=label:Chinese can you help > me? I don't understand chinese, so I am not sure what this web page is about. Do you want to translate Python's mess

Re: [OT] What can Nuitka do?

2014-06-30 Thread Michael Torrie
On 06/30/2014 07:36 AM, Chris Angelico wrote: > Hmm. I'm not sure that it's necessarily that bad; I've done 3G-based > X11 forwarding fairly successfully on occasion. Yes, it's potentially > quite slow, but it certainly works - I've used SciTE, for instance, > and I've used some GTK2 apps without p

Re: [OT] What can Nuitka do?

2014-06-30 Thread Michael Torrie
I highly recommend the talk by Daniel Stone who used to be a core X.org developer. He explains it quite well how X is used currently, and why it has problems and why they are considered so hard to fix that Wayland (and Mir) was created. https://www.youtube.com/watch?v=RIctzAQOe44 One interesting

Re: PEP8 and 4 spaces

2014-07-05 Thread Michael Torrie
On 07/04/2014 08:54 AM, Marko Rauhamaa wrote: > Grant Edwards : > >> Definitely. Indenting with tabs vs. spaces is mostly personal >> preference (though spaces are better!). But, mixing the two is right >> out, and should be stomped on hard. > > Often one person writes the code and another person

Re: Python 3 is killing Python

2014-07-14 Thread Michael Torrie
On 06/03/2014 12:12 AM, wxjmfa...@gmail.com wrote: > I was myself really suprised to fall on such a case and > after thinking no, such cases may logically happen. Putting in this comment not for JMF but for poor souls who find this thread on a search and are led astray by jmf's trolling. Either i

Re: Python 3 is killing Python

2014-07-14 Thread Michael Torrie
On 05/31/2014 09:48 AM, jmf wrote: > Absolutely FALSE. Python 3.3 and up can handle any and all unicode characters you want to throw at it, without surprises such as what you get in javascript. Python 3 uses UTF-4 encoding under the hood, with a compression optimization that removes leading zer

Re: Python 3 is killing Python

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

Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Michael Torrie
On 07/24/2014 01:11 PM, Glenn Linderman wrote: > Not knowing any of these GUI platforms (although I've read some about > Tk), I have some questions. > > * Which of them use UTF-8 as their native Unicode interface? > > * Which makes it easiest to discover and adjust font metrics such as > kernin

Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Michael Torrie
On 07/24/2014 12:51 PM, Chris Angelico wrote: > On Fri, Jul 25, 2014 at 4:33 AM, Zachary Ware > wrote: >>> On other platforms, it also is not 100% >>> native. >> >> On Windows, at least, ttk comes very very close to it. > > What exactly does that mean? The Windows default UI changed > significant

Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Michael Torrie
On 07/24/2014 01:32 PM, Ian Kelly wrote: > On Thu, Jul 24, 2014 at 1:02 PM, Chris “Kwpolska” Warrick > wrote: >> AFAIK, Qt follows the system style properly, and it looks quite native >> on every Windows OS. No idea about ttk though. > > My understanding is that Qt merely emulates the native LAF

Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Michael Torrie
On 07/24/2014 10:46 AM, Chris Angelico wrote: > On Fri, Jul 25, 2014 at 2:29 AM, Noble Bell wrote: >> I was leaning toward Python 3 and Tkinter. I suppose the best way to do the >> GUI with Tkinter is to just roll-up my sleeves and do it via code rather >> than with the aid of a GUI editor. > >

Re: .Net Like Gui Builder for Python?

2014-07-25 Thread Michael Torrie
On 07/25/2014 08:55 AM, Orochi wrote: > Hi, This Question may sound lame ,but I am searching for .Net Like > Gui Builder for Python. I tried PyQt Designer' and 'Glade', No doubt > its great but it created only interface. I have to code all the > things in separate file. what I was searching for is

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Michael Torrie
On 07/27/2014 12:32 PM, Sturla Molden wrote: > Chris “Kwpolska” Warrick wrote: > >> And Publisher could work out for a home user, except Word can do the >> same, equally well (at least for a home user). Why would they play >> with a more complicated program, when they have a good enough thing in

Re: What is best way to learn Python for advanced developer?

2014-07-31 Thread Michael Torrie
On 07/30/2014 02:20 PM, guirec.cor...@gmail.com wrote: > Hello, > > I am a Ruby developer and I want to program in Python. I know how to > do simple things like create classes, methods, variables and all the > basics. I want to know more. I want to know what is the Python > philosophy, how to test

Re: Python and IDEs [was Re: Python 3 is killing Python]

2014-08-01 Thread Michael Torrie
On 08/01/2014 08:39 AM, Chris Angelico wrote: > The installer has basically three choices. > 1) Install libnettle inside the application directory > 2) Install libnettle to some system library directory > 3) Don't install libnettle, and demand that someone else (perhaps the > user, or the system pa

Re: attendance system in pybluez

2014-08-11 Thread Michael Torrie
On 08/09/2014 09:07 PM, luofeiyu wrote: > in the http://homepages.ius.edu/rwisman/C490/html/PythonandBluetooth.htm > > *Discovery* That only works for phones if the phones are manually switched to discoverable mode, which is off by default for security reasons. By default they are not going to s

Re: Captcha identify

2014-08-15 Thread Michael Torrie
On 08/13/2014 02:18 PM, Ian Kelly wrote: > On Wed, Aug 13, 2014 at 2:01 PM, Tim Chase > wrote: >> On 2014-08-13 12:24, Chris Kaynor wrote: >>> Many of the better captchas also include options for an audio cue in >>> addition to the default visual one. >> >> Have you actually tried to use the audio

Re: Python vs C++

2014-08-21 Thread Michael Torrie
On 08/21/2014 07:39 AM, Burak Arslan wrote: > For my day job, I chose Qt on C++ for a classic desktop app that needs > to be deployed on Windows (among other platforms) with an installation > package that is as small as possible. > > All I need to do deployment-wise is to create an NSIS script put

Re: Python vs C++

2014-08-22 Thread Michael Torrie
On 08/21/2014 06:54 AM, David Palao wrote: > Hello, > I consider myself a python programmer, although C++ was one of the > first languages I learned (not really deeply and long time ago). > > Now I decided to retake C++, to broaden my view of the business. > However, as I progress in learning C++,

Re: Installing Problems - 'Key not valid for use in specified state.'

2014-08-22 Thread Michael Torrie
On 08/22/2014 05:51 AM, FreddieH wrote: > I am having trouble installing Python on my Windows 7 (x64) Laptop. > The MSI file for Python 3.4.1 that I have downloaded got to the set up page > containing 'Please wait while the Installer installs Python 3.4.1' and asks > for administrator permission

Re: Som confusion about the python library installation

2014-08-22 Thread Michael Torrie
On 08/22/2014 09:46 AM, Jiafan Zhou wrote: > I guess it must be the 1.3.3 version being used in the system, but > why apt-get still reports 1.1.2-3 and this worries me a little. > > Another separate question in relation, do I really need to install > the python-nose in ubuntu. Can I not just go di

Re: Python vs C++

2014-08-22 Thread Michael Torrie
On 08/22/2014 02:06 PM, Marko Rauhamaa wrote: > I tend to think the opposite: C++ barely has a niche left. I definitely > wouldn't want to use C++ very far from its (very narrow) sweet spot. I agree that it's niche is narrowing. But it's still pretty wide and widely used. Many adobe products are

Re: Python vs C++

2014-08-22 Thread Michael Torrie
On 08/22/2014 03:49 PM, Chris Angelico wrote: > My main issue with callbacks in either C or C++ is that functions > aren't first-class objects. You can pass function pointers around (and > you don't need (void *) to do it, you can use typed function pointers > just fine), but you can't actually con

Re: Why can not initialize the class?

2014-08-23 Thread Michael Torrie
On 08/23/2014 11:25 AM, CHIN Dihedral wrote: > Well, an object in python can add > properties in the run-time to evolve > steadily and stealthly. > > Those unnessary set-get-C++ methods > are not very important in PYTHON. That's the most coherent thing I've seen from Dihedral in years! -- htt

Re: Som confusion about the python library installation

2014-08-24 Thread Michael Torrie
On 08/24/2014 03:17 AM, Heinz Schmitz wrote: > Don't forget to mention the hardware requirements for 14.04. > Me thinks that a single core CPU and a medium class graphics > card won't make the user happy with it. > Wouldn't it be friendly to the resources of our world if at least > some software

Re: GO vs Python

2014-08-25 Thread Michael Torrie
On 08/25/2014 06:24 AM, Rustom Mody wrote: >> ... I wouldn't care much if I could only print 7-bit ascii. >> If I was writing code to serve music on the web and had to >> display artist names like M�tley Cr�e and Beyonc�, I would be more >> concerned about the character model. > > Funny!! > Your

Re: This could be an interesting error

2014-08-31 Thread Michael Torrie
On 08/31/2014 03:02 PM, Seymore4Head wrote: > def pigword(test): > for x in range(len(test)): > if test[x] in "AEIOUaeiou": > stem = test [x:] > prefix = test [:x] > pigword = stem + prefix + "ay" > print ("Stem ",stem) > print

Re: This could be an interesting error

2014-08-31 Thread Michael Torrie
On 08/31/2014 06:04 PM, Seymore4Head wrote: >>for x,letter in enumerate(word): >># x is index (position), letter is the value at that index >>if letter in "AEIOUaeiou": > I tried changing: > for x in range(len(test)): > to > for x in enumerate(test): Read my example again. You

Re: This could be an interesting error

2014-08-31 Thread Michael Torrie
On 08/31/2014 10:15 PM, Michael Torrie wrote: > On 08/31/2014 06:04 PM, Seymore4Head wrote: >>>for x,letter in enumerate(word): >>># x is index (position), letter is the value at that index >>>if letter in "AEIOUaeiou": >> I tried

Re: weakref, memory management and execution slow down in PyQt4

2014-09-07 Thread Michael Torrie
On 09/07/2014 01:11 PM, kjs wrote: > Thanks for the advice. I commented out the graph generation and PyQt call > self.app.processEvents() > > where in the class __init__ > self.app = QtGui.QApplication(sys.argv) > > This stopped the weakref proliferation. All other objects grow and >

Re: weakref, memory management and execution slow down in PyQt4

2014-09-08 Thread Michael Torrie
On 09/07/2014 02:39 PM, kjs wrote: > The code is minimal[0]. The only other widgets are a start button that > fires off the plotting and a stop button that calls sys.exit(). Unfortunately there are no data files in your git repository so I can't run it. > > Lines 112-114 appear to be causing the

Re: pip install PyOpenGL have problem

2014-09-08 Thread Michael Torrie
On 09/06/2014 11:15 PM, วรรณพงษ์ ภัททิยไพบูลย์ wrote: > pip install -U PyOpenGL PyOpenGL_accelerate > :( I don't recognize that particular error message... If you require assistance you need to copy and paste the output from the command so people can know exactly what failed. -- https://mail.p

Re: pip install PyOpenGL have problem

2014-09-08 Thread Michael Torrie
On 09/08/2014 08:18 PM, Michael Torrie wrote: > On 09/06/2014 11:15 PM, วรรณพงษ์ ภัททิยไพบูลย์ wrote: >> pip install -U PyOpenGL PyOpenGL_accelerate >> :( > > I don't recognize that particular error message... > > If you require assistance you need to co

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
Reposting to list, instead of directly to kjs On 09/08/2014 08:45 PM, kjs wrote: > Thanks for the consideration Michael. If you do get the data, and are > able to run the code, let me know if you notice anything interesting. Yeah I don't think I'll be able to have the time to download a 3 GB file

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
On 09/08/2014 08:45 PM, kjs wrote: > You're right, a dictionary can do everything I need and more. Actually I am wrong in suggesting a dictionary. A list or an array would probably be more appropriate. Thinking about it this morning, one additional reason why getattr and setattr aren't appropria

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
On 09/09/2014 09:37 AM, Chris Angelico wrote: > On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie wrote: >> Yes you're correct. It is the equivalent. But it always involves >> lookup in the object's dictionary, which is big O order O(n log n) >> complexity for each

Re: Example of python service running under systemd?

2014-09-11 Thread Michael Torrie
On 09/11/2014 03:29 PM, Ervin Hegedüs wrote: >> It basically creates two threads, one which does some local processing and >> control, the other which periodically does reporting via udp packets. I use >> the dual threads because they both work with a shared serial port at times, >> so I have to

Re: Example of python service running under systemd?

2014-09-11 Thread Michael Torrie
On 09/11/2014 08:29 PM, Chris Angelico wrote: > On Fri, Sep 12, 2014 at 12:03 PM, Michael Torrie wrote: >> No, you you don't need to do this. Systemd can handle all of that for >> you. Read up on the docs on creating systemd services. Here's a little >> blog p

Re: Example of python service running under systemd?

2014-09-12 Thread Michael Torrie
On 09/12/2014 02:05 PM, CHIN Dihedral wrote: > Please check the examples in wxpython and boa. Oh funny. Just when I think the bot is ready to pass a turing test we get a regression. -- https://mail.python.org/mailman/listinfo/python-list

Re: Shuffle

2014-09-13 Thread Michael Torrie
On 09/13/2014 05:47 PM, Seymore4Head wrote: > Here is a screenshot of me trying Dave Briccetti's quiz program from > the shell and it (the shuffle command) works. > https://www.youtube.com/watch?v=VR-yNEpGk3g > http://i.imgur.com/vlpVa5i.jpg > > Two questions > If you import random, do you need to

Re: PyCli : Need some reference to good books or tutorials on pycli

2014-09-26 Thread Michael Torrie
On 09/26/2014 06:54 AM, vijna...@gmail.com wrote: > Hi Folks, > > I need to develop a CLI (PyCli or similar)on Linux. > To be more specific to develop Quagga(open source routing software) like > commands using python instead of C. > > Need some good reference material for the same. > > P.S googl

Re: PyCli : Need some reference to good books or tutorials on pycli

2014-09-26 Thread Michael Torrie
On 09/26/2014 06:54 AM, vijna...@gmail.com wrote: > Hi Folks, > > I need to develop a CLI (PyCli or similar)on Linux. > To be more specific to develop Quagga(open source routing software) like > commands using python instead of C. > > Need some good reference material for the same. > > P.S googl

Re: Want to win a 500 tablet?

2014-09-28 Thread Michael Torrie
On 09/26/2014 05:03 PM, Seymore4Head wrote: > On Fri, 26 Sep 2014 18:55:54 -0400, Seymore4Head > wrote: > >> I am taking "An Introduction to Interactive Programming in Python" at >> coursera.org. From their announcments page: >> >> Week one of the video contest is open >> >> For those of you tha

Re: tkinter and gtk problem

2014-09-28 Thread Michael Torrie
On 09/26/2014 12:15 PM, Paula Estrella wrote: > Hello, we are working on ubuntu 12.04 LTS; we use gtk to take screenshots > and we added a simple interface to select a file using tkFileDialog but it > doesn't work; is it possible that tkinter and gtk are incompatible? a test > script to open a file

Re: Representing mathematical equations

2014-10-06 Thread Michael Torrie
On 10/06/2014 07:07 AM, varun...@gmail.com wrote: >> Okay, I forgot to explain them. L is a set of links, dist is a >> number (distance), bd is the bandwidth and hc is a number as well >> (hopcount)...different bandwidths, hopcounts and distances for different >> links... b(i,x) is what i intend to

Re: Representing mathematical equations

2014-10-06 Thread Michael Torrie
On 10/06/2014 10:45 AM, Peter Pearson wrote: > I don't think the OP is interested in complex numbers. I think this > is a question about organizing loops. But I can't tell for sure. Poor choice of words on my part. I meant complicated. This is exactly the kind of thing that people use numpy and

Re: Python 3.4.1 on W2K?

2014-10-07 Thread Michael Torrie
On 10/05/2014 06:04 PM, Pal Acreide wrote: > BTW, the reason I run VBox is that I belong to a group of diehard > users of the classic DOS word-processor XyWrite. I've devised a way > to use Python as an extension of XyWrite's built-in Programming > Language (XPL): http://users.datarealm.com/xywwweb

Re: Python 3.4.1 on W2K?

2014-10-07 Thread Michael Torrie
On 10/07/2014 02:33 PM, random...@fastmail.us wrote: > On Tue, Oct 7, 2014, at 16:27, Michael Torrie wrote: >> That's really interesting. I looked briefly at the page. How does your >> python extension work with xywrite? Does it manipulate xywrite >> documents or does

Re: Flask and Django

2014-10-13 Thread Michael Torrie
On 10/10/2014 04:22 PM, Juan Christian wrote: > Maybe that's because I feel the Django doc a bit confuse, I tried reading > (and practicing!) tutorials, official doc, books, and so on, but I can't > quite understand the whole thing. > > Is Flask really underestimated? Can you guys mention "big nam

Re: while loop - multiple condition

2014-10-13 Thread Michael Torrie
On 10/13/2014 11:12 AM, Rustom Mody wrote: > On Monday, October 13, 2014 10:13:20 PM UTC+5:30, Rob Gaddi wrote: >> On Mon, 13 Oct 2014 09:26:57 -0700 (PDT) >> Rustom Mody wrote: > >>> On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote: On Mon, 13 Oct 2014 09:56:02 +1100 St

Re: How to install and run a script?

2014-10-13 Thread Michael Torrie
On 10/12/2014 08:05 PM, ryguy7272 wrote: > Ah!!! I didn't know I needed to run it from the command prompt! Ok, not > it makes sense, and everything works. > > Thanks to all! You don't have to run python apps from the command line. Apps that throw up windows can usually be run by double-cl

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-23 Thread Michael Torrie
On 11/22/2011 09:14 AM, W. eWatson wrote: > On 11/21/2011 7:00 PM, alex23 wrote: >> "W. eWatson" wrote: >>> Comments? >> >> Please don't start multiple threads on the same issue. > Your joking, right, or do you just prefer 500 line threads wandering all > over the place? Most of us use threaded

Re: what does 'a=b=c=[]' do

2011-12-23 Thread Michael Torrie
On 12/23/2011 03:31 AM, rusi wrote: > In Fortran, if the comma in the loop > DO 10 I = 1,10 > is misspelt as '.' it becomes the assignment > DO10I = 1.0 > > Do you consider it a bug or a feature? > Does Fortran consider it a bug or feature? Non sequitor. Nothing at all to do with the issue at ha

Re: Which libraries for Python 2.5.2

2011-12-28 Thread Michael Torrie
On 12/28/2011 08:04 PM, W. eWatson wrote: > I'm going to save the msvcp71.dll from the Python laptop somewhere, then > insert the one from my other XP laptop. Finally, I'll register it. > regsvr32. Just to review, I presume not from cmd, but Run? Seems like the bulk of your problems are coming f

Re: ERROR:root:code for hash md5 was not found

2012-01-13 Thread Michael Torrie
On 01/13/2012 07:14 AM, mike wrote: > pysibelius is a lib that we use. > > I am not sure that is the problem since the python program works on > SuSE but not on RH server. And AFAIK > the only difference ( well that I can see) is the OpenSSL version. > > According to code it uses openssl: > > >

Re: PyWarts: time, datetime, and calendar modules

2012-01-15 Thread Michael Torrie
On 01/14/2012 10:27 PM, Rick Johnson wrote: > Face it, Guido has broken Python's cherry. She is no longer pure. > You're acting like some over- protective father. WAKE UP! Python is a > promiscuous little whore and she's on girls gone wild (Volume 4000) > shaking her little money maker. We should a

Re: Problem while doing a cat on a tabbed file with pexpect

2012-01-15 Thread Michael Torrie
On 01/15/2012 05:11 PM, Saqib Ali wrote: > > Very good question. Let me explain why I'm not opening me.txt directly > in python with open. > > The example I have posted is simplified for illustrative purpose. In > reality, I'm not doing pexpect.spawn("/bin/tcsh"). I'm doing > pexpect.spawn("ssh m

Re: Please don't use "setuptools", the "rotten .egg" install system.

2012-01-20 Thread Michael Torrie
On 01/19/2012 10:05 AM, John Nagle wrote: > I can do it, I just have better things to do than system > administration. The fact that Python doesn't "just work" is > part of why it's losing market share. Yes you keep saying that. Of course you are complaining on the wrong list. You should b

Re: Looking under Python's hood: Will we find a high performance or clunky engine?

2012-01-22 Thread Michael Torrie
On 01/22/2012 08:50 AM, Rick Johnson wrote: > > What does Python do when presented with this code? > > py> [line.strip('\n') for line in f.readlines()] > > If Python reads all the file lines first and THEN iterates AGAIN to do > the strip; we are driving a Fred flintstone mobile. If however Pyth

Re: Trouble with internationalized path under windows

2012-01-22 Thread Michael Torrie
On 01/22/2012 01:52 PM, Rick Johnson wrote: > On Jan 22, 2:08 pm, Jacob Hallén wrote: > >> If I store these two files in say C:\Users\Admin\test everything works fine. >> >> If I store them in C:\Users\Admin\testф, I get an import error when running >> foo.py. The letter at the end of test is a

Re: Looking under Python's hood: Will we find a high performance or clunky engine?

2012-01-22 Thread Michael Torrie
On 01/22/2012 06:04 PM, Rick Johnson wrote: > That's just the point. If an expert such as myself can make a simple > mistake as this, then one can only expect that the neophytes are going > to suffer greatly. I wonder how many tutorials are out there in WWW > still teaching old ways of writing Pyth

Re: Floating point calculation problem

2013-02-02 Thread Michael Torrie
On 02/02/2013 08:48 AM, Schizoid Man wrote: > Also, if the cast is necessary, then now exactly does the dynamic typing > work? Dynamic typing isn't referring to numeric type coercion. It refers to the fact that a name can be bound to an object of any type. So if you made a function like this:

Re: mySQLdb

2013-02-02 Thread Michael Torrie
On 02/02/2013 03:19 AM, Luuk wrote: > On 02-02-2013 11:01, Armin Karner wrote: >> MySQLdb for python versions 3.3 or higher > > http://lmgtfy.com/?q=MySQLdb+for+python+versions+3.3+or+higher Embarrassingly, most of the links on the google search results page are about people asking the same quest

Re: Floating point calculation problem

2013-02-02 Thread Michael Torrie
On 02/02/2013 06:25 PM, Steven D'Aprano wrote: > Michael Torrie wrote: > >> def squeeze_duck (duck): >> // return the quack >> return duck.squeeze() > > I'm curious, what language were you thinking of when you wrote the comment > using // in

Re: Please provide a better explanation of tuples and dictionaries

2013-02-02 Thread Michael Torrie
On 02/02/2013 10:20 PM, Rick Johnson wrote: > *school-bell* I'm already regretting typing this, but really? The term, "tuple," was used rather consistently all through my university years. And Python's use of it is consistent with how it is used all through computer science. And for that matter

Re: how to change system-wide proxy settings by Python ?

2013-02-03 Thread Michael Torrie
On 02/03/2013 08:34 AM, iMath wrote: > I have already known a valid proxy server(63.141.216.159)and > port(8087) which support both http and https protocols ,so how to > change system-wide proxy settings to this proxy by Python ? I use > WinXP ,can you show me an example of this ? thanks in advanc

Re: Opinion on best practice...

2013-02-04 Thread Michael Torrie
On 02/04/2013 09:14 PM, Anthony Correia wrote: > I need to pick up a language that would cover the Linux platform. I use Powershell for a scripting language on the Windows side of things. Very simple copy files script. Is this the best way to do it? > > import os > > objdir = ("C:\\temp2") >

Re: Opinion on best practice...

2013-02-05 Thread Michael Torrie
On 02/05/2013 08:32 PM, Nobody wrote: > A shell script is only the better option if (almost) the *only* thing the > script needs to do is to execute commands. > > The moment you start trying to "process" data, it's time to put up with > the verbosity of subprocess.Popen() so that you can use a wel

Re: Help about finding a python script on geographic masking

2013-02-06 Thread Michael Torrie
On 02/06/2013 09:37 AM, tkhan10 wrote: > Hello Everyone > > I am new to python and trying to understand this programming > language. But right now I need to find a script on geographic masking > methods. This is an emergency. These masking methods are to hide a > specific location so that the iden

Re: Help about finding a python script on geographic masking

2013-02-06 Thread Michael Torrie
Let's keep this on the mailing list. Replying to back to the list. On 02/06/2013 10:47 AM, tkhan10 wrote: > Yes I have some shapefiles where some locations are geocoded. You can > think it as a layer containing some points. I need to hide the actual > point locations and create a new locations in

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