Re: Fwd: Sorry, but . . .

2020-04-28 Thread Michael Torrie
On 4/28/20 2:41 PM, Ganesha Sharma wrote: > When I was installing Python 3.8.2, The installer gave me a BSoD. Is there > a way to fix that? I tried 3.6.2 but with Add to Path, with > environment variables off, it did not work. I just want the full Python, > but can you ask the developers to fix tha

Re: phyton hata

2020-05-04 Thread Michael Torrie
On 5/4/20 4:15 AM, HÜSEYİN KOÇ wrote: > Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile > karşılaştınız diyerek hata veriyor > > > Windows 10 için Posta ile > gönderildi > Please ensure Windows is up to date using Windows Update

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-11 Thread Michael Torrie
On 5/11/20 8:33 PM, Buddy Peacock wrote: > I am trying to install python on my surface with windows 10, version 1903, > build 18362.778. The installer seems to think everything worked. But there > is no Python folder anywhere on the system. I looked in the root directory > as well as "Program Fil

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-11 Thread Michael Torrie
On 5/11/20 9:25 PM, Michael Torrie wrote: > On 5/11/20 8:33 PM, Buddy Peacock wrote: >> I am trying to install python on my surface with windows 10, version 1903, >> build 18362.778. The installer seems to think everything worked. But there >> is no Python folder anywhere on

Re: Python not running

2020-05-20 Thread Michael Torrie
On 2020-05-20 8:22 a.m., Supriyo Roy wrote: > I have installed the latest version of python which is 3.8.3. However, when > I try to run a sample program, a small python icon appears on my taskbar > for a split second and then disappears. Nothing else happens. Please advise > me on how to get pytho

Re: Division issue with 3.8.2 on AIX 7.1

2020-06-04 Thread Michael Torrie
On 6/3/20 10:37 PM, Sherry L. West wrote: > I need off this list please. I don’t even have this. Unsubscribe here: https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: How can I build embeddable zip python on Linux

2020-06-04 Thread Michael Torrie
On 6/4/20 2:47 AM, Filip Bascarevic wrote: > When I tried to build GDB with Python support on Linux, I realized I > couldn’t find embeddable python for Linux. > > Please, can you give me some instructions how can I build embeddable Python > from source in Linux? Is it possible in the Linux environ

Re: ctypes & allocated memory

2020-06-07 Thread Michael Torrie
On 6/7/20 7:15 AM, Miki Tebeka wrote: > Hi, > > Does ctypes, when using restype, frees allocated memory? > > For example, will the memory allocated by "strdup" be freed after the "del" > statement? If not, how can I free it? I don't think so. I did a quick google search and came up with this d

Re: ctypes & allocated memory

2020-06-07 Thread Michael Torrie
On 6/7/20 2:25 PM, Barry wrote: >> Does ctypes, when using restype, frees allocated memory? >> >> For example, will the memory allocated by "strdup" be freed after the "del" >> statement? If not, how can I free it? > > See https://linux.die.net/man/3/strdup that tells you to use free() to delete

Re: repair modify uninstall

2020-06-10 Thread Michael Torrie
On 6/10/20 2:09 PM, DL Neil via Python-list wrote: > On 10/06/20 11:26 PM, Silvia Aminul wrote: >> I tried installing Python for windows 10 (the latest version of python >> for >> windows ) >> >> And after downloading and trying to launch it keeps saying repair modify >> uninstall

Re: Problems with python383.dll

2020-06-17 Thread Michael Torrie
On 6/16/20 11:18 AM, Manuel Fernandez - Università wrote: > Dear Sirs, > I tried to install the software Python 3.8.3 (32 bit), but after it > finished and I tried to start it, there appeared a message in which it > was written that it couldn't find the file python383.dll and stopped. > What can

Re: Pycharm Won't Do Long Underscore

2020-06-25 Thread Michael Torrie
On 6/24/20 7:38 PM, Grant Edwards wrote: > On 2020-06-24, Peter J. Holzer wrote: > >> There is U+FF3F Fullwidth Low Line. >> >>> If there were, Python would not know what to do with it >> >> You can use it in variable names, but not at the beginning, and it isn't >> equivalent to two underscores,

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 11:11 AM, Dieter Maurer wrote: > In the replaced sentence > `When writing English, follow Strunk and White` > I interpret "Strunk and White" as a reference to some > document containing rules for readable English and "Strunk and White" > are likely the authors of this document. I do not a

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 1:26 PM, Jon Ribbens via Python-list wrote: > On 2020-07-02, Michael Torrie wrote: >> Agreed. She just needs to fix her commit message to remove the sentence >> about the relics of white supremacy. The fact she would conflate an >> author's name with some kin

Re: FW: Pycharm Won't Do Long Underscore

2020-07-02 Thread Michael Torrie
On 7/2/20 2:55 PM, Danilo Coccia wrote: > Il 30/06/2020 23:46, Joe Pfeiffer ha scritto: >> "Peter J. Holzer" writes: >>> I agree. Although there are some fonts with special ligatures for >>> programming. I have never used one, but that seems like an interesting >>> concept. >> >> I've never heard

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 4:46 PM, Random832 wrote: > It's possible that this wasn't explained clearly enough in the commit > message itself (though I would argue it was definitely adequately > explained in the ensuing on-list discussion, and wonder how much of > that discussion you've actually read), but the poin

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-03 Thread Michael Torrie
On 7/3/20 10:57 AM, Jon Ribbens via Python-list wrote: > On 2020-07-03, Ethan Furman wrote: >> On 07/02/2020 07:42 PM, Jon Ribbens via Python-list wrote: >>> She didn't - you did. >> >> Please keep the discourse civil. Petty taunts are not helpful. > > Sorry, I don't understand what you are gett

Re: Need to 'import gtk' on Ubuntu 20.04, what do I need?

2020-07-25 Thread Michael Torrie
On 7/23/20 2:41 PM, Chris Green wrote: > I have recently upgraded my desktop system from ubuntu 19.10 to ubuntu > 20.04. I have some Oki printer/scanner driver software that is > written in Python 2 and, although python 2 is still installed on my > system it's no longer the default python and the

Re: LittleRookie

2020-08-18 Thread Michael Torrie
On 8/18/20 4:26 PM, Jamelaumn wrote: > i would say i'm new at programing i have a year of experience in python(but > i'm tottaly a noob) i guess i'm starting to learn SQL now.What should i do to > learn better and faster? The only way is to build something with it. Solve a problem with Python.

Re: Program chaining on Windows

2020-08-24 Thread Michael Torrie
On 8/24/20 1:30 AM, Rob Cliffe via Python-list wrote: >> Hmm. Python isn't really set up to make this sort of thing easy. > I guess this sentence pretty well answers my whole post. :-( After reading Eryk Sun's posts, it doesn't appear that Python is the issue here, but rather Windows does not make

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Michael Torrie
On 8/26/20 9:27 AM, Alexa Oña wrote: > Don’t send me more emails > > https://mail.python.org/mailman/listinfo/python-list ^ Please unsubscribe from the mailing list. Click on the link above. Thank you. -- https://mail.python.org/mailman/listinfo/pyth

Re: Replacement for pygtk?

2020-09-03 Thread Michael Torrie
On 9/3/20 1:17 PM, Grant Edwards wrote: > On 2020-09-03, Grant Edwards wrote: >> [...] >> >> Is pygobject the replacement for pygtk? > > It seems to be. I've started porting my pygtk app, and it's going > pretty smoothly. I've already got my two custom widgets working. > Oddly, the main module

Re: Replacement for pygtk?

2020-09-05 Thread Michael Torrie
On 9/4/20 3:24 PM, Grant Edwards wrote: > I assume that difference is because pygtk was hand-written and gi is > built auto-magically using SWIG or something like that? Essentially, yes. Although pygobject does not use a tool like swig to generate static wrappers. Rather it uses the GTK introspec

Re: newbie

2020-09-09 Thread Michael Torrie
On 9/8/20 7:24 PM, Grant Edwards wrote: > On 2020-09-08, Don Edwards wrote: > >> I may need. My aim is to write a program >> that simulates croquet - 2 balls colliding with the strikers (cue) ball >> going into the hoop (pocket), not the target ball. I want to be able to >> move the balls around

Re: Your confirmation is required to join the Python-list mailing list

2020-09-10 Thread Michael Torrie
On 9/10/20 10:48 AM, LZ Lian wrote: > Dear Python Team, > > I've subscribed as requested. I've attached the subscription email > for your reference too > > Now, for the issue I’ve tried to download and install the latest > version of Python software a few times. However, each time I run the >

Re: Problem

2020-09-30 Thread Michael Torrie
On 9/29/20 4:31 PM, Ron Villarreal via Python-list wrote: > Tried to open Python 3.8. I have Windows 10. Icon won’t open. Did you read the documentation? https://docs.python.org/3/using/windows.html Seems like this comes up several times a week. Perhaps the installer should automatically open thi

Re: Python's carbon guilt

2020-10-11 Thread Michael Torrie
On 10/10/20 9:58 AM, Peter Pearson wrote: > Python advocates might want to organize their thoughts on > this subject before their bosses spring the suggestion: > > From > https://www.sciencemag.org/news/2020/10/we-re-part-problem-astronomers-confront-their-role-and-vulnerability-climate-change >

Re: Python for Windows

2020-10-14 Thread Michael Torrie
On 10/14/20 11:29 AM, Ana María Pliego San Martín wrote: > I've tried to install Python a couple of times on my computer. Although it > works fine when first downloaded, every time I turn off my computer and > then back on Python says it has a problem that needs fixing. After "fixing" > it, I still

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Michael Torrie
On 10/18/20 11:07 AM, Mladen Gogala via Python-list wrote: > The fundamental > difference between the two languages is that Perl is procedural while > Python is a fully OO language. Discussion of Perl vs Python necessarily > devolves into the discussion of procedural vs OO paradigms. Python cert

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Michael Torrie
On 10/18/20 5:37 PM, Mladen Gogala via Python-list wrote: > On Sun, 18 Oct 2020 12:19:18 -0600, Michael Torrie wrote: > >> Python certainly is procedural. A script starts at the top and executes >> through to the bottom and ends, barring any flow control in the middle. >>

Re: Help with the best practice to learn python

2020-10-19 Thread Michael Torrie
On 10/19/20 9:12 AM, Azhar Ansari wrote: > Hello Python Community, > Kindly help me with the best practice to learn python. > Lots of material over net but its very confusing. What is your goal? Python is a tool. What do you want to do with it? If you don't have any particular thing in mind, it'

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Michael Torrie
On 10/22/20 12:58 PM, Lammie Jonson wrote: > > I have been a rails developer as well as JS/react. I had wanted to > look at python a bit due to it's popularity. > > I looked at tkinter which seems to have quite a few examples out > there, but when I searched indeed.com for tkinter and wxpython it

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Michael Torrie
On 10/31/20 5:42 PM, Greg Ewing wrote: > On 1/11/20 9:44 am, Barry Scott wrote: > >> It does not appear to me that use native widgets is important for a tool kit. > > It's not strictly necessary. However, recreating the exact appearance > and behaviour of native widgets is a lot of work, and diff

Re: Error

2020-12-06 Thread Michael Torrie
On 12/5/20 11:41 AM, Barry Fitzgerald via Python-list wrote: > Good day," > > I purchased a book for my son and followed the directions to a T. (Coding > Games in Python) > Whenever I got to the point of of moving the "hello" file over to pgzrun is > where my trouble began. > Its not finding a p

Re: Error

2020-12-06 Thread Michael Torrie
On 12/5/20 11:41 AM, Barry Fitzgerald via Python-list wrote: > Good day," > > I purchased a book for my son and followed the directions to a T. > (Coding Games in Python) Whenever I got to the point of of moving the > "hello" file over to pgzrun is where my trouble began. Its not > finding a path

Re: Error

2020-12-07 Thread Michael Torrie
On 12/7/20 11:07 AM, Barry Fitzgerald wrote: > I did the pip install I did the pip install pygameThe pip install > pgzero I get this error C:\Users\barol>pip install pgzeroDefaulting > to user installation because normal site-packages is not > writeableCollecting pgzero Using cached pgzero-1.2-py3

Re: Error

2020-12-07 Thread Michael Torrie
On 12/7/20 11:30 AM, MRAB wrote: > There's no need to remove Python 3.9 first; Python 3.8 can be installed > alongside it. Since the original poster is invoking python.exe directly, probably as per the instructions in the book he's following, I fear having two versions of python installed will ju

Re: Review, suggestion etc?

2020-12-17 Thread Michael Torrie
On 12/17/20 9:10 AM, Bischoop wrote: > Could you expand here, I rather don't know how I could do it different > way apart from if maritals == 'Yes' or maritals == 'No' or is it what > you meant? I think he's hinting at using a loop instead. while maritals != 'Yes' and maritals != 'No': marita

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Michael Torrie
On 12/22/20 8:10 AM, Chris Green wrote: > I have (as discussed here) a printer utility that uses Python 2 and I > can't update it to Python 3 because it has a .so library file which is > compiled for Python 2. I think I have exhausted all the possibilities > for converting it to Python 3 so now I'

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Michael Torrie
On 12/22/20 9:44 AM, Chris Green wrote: > I have it running on 20.04 (with a couple of compatibility packages > from a PPA) but I know I start hitting problems as soon as I move to > 20.10. So that does sound like an excellent idea. Where can I find > information about building container type thi

Re: Which method to check if string index is queal to character.

2020-12-28 Thread Michael Torrie
On 12/28/20 10:37 AM, Bischoop wrote: > A valid email address consists of an email prefix and an email domain, > both in acceptable formats. The prefix appears to the left of the @ symbol. > The domain appears to the right of the @ symbol. > For example, in the address exam...@mail.com, "example" i

Re: Which method to check if string index is queal to character.

2020-12-28 Thread Michael Torrie
On 12/28/20 10:46 AM, Marco Sulla wrote: > On Mon, 28 Dec 2020 at 17:37, Bischoop wrote: >> >> I'd like to check if there's "@" in a string and wondering if any method >> is better/safer than others. I was told on one occasion that I should >> use is than ==, so how would be on this example. >> >>

Re: Which method to check if string index is queal to character.

2020-12-28 Thread Michael Torrie
On 12/28/20 1:27 PM, Richard Damon wrote: > Validating that it meets the SYNTAX of an email address isn't THAT hard, > but there are a number of edge cases to worry about. Yes one would think that, but in my experience half of all web sites get it wrong, insisting that my perfectly valid and RFC-c

Re: Excute script only from another file

2013-11-24 Thread Michael Torrie
On 11/24/2013 06:55 PM, Himanshu Garg wrote: > I want that a script should only be executed when it is called from > another script and should not be directly executable through linux > command line. > > Like, I have two scripts "scrip1.py" and "script2.py" and there is a > line in "script1.py" t

Re: python for everyday tasks

2013-11-25 Thread Michael Torrie
I only respond here, as unicode in general is an important concept that the OP will to make sure his students understand in Python, and I don't want you to dishonestly sow the seeds of uncertainty and doubt. On 11/25/2013 03:12 AM, wxjmfa...@gmail.com wrote: > Your paragraph is mixing different co

Re: Access and write .mp3 metadata/tags using Python 3

2013-11-26 Thread Michael Torrie
On 11/26/2013 08:41 AM, andonefi...@gmail.com wrote: > I'm trying to figure out how to get python to access the properties > section of an mp3 file. When you right click an mp3 file and go to > properties you can edit the title, album, and things like that. I > also want to be able to read the len

Re: Access and write .mp3 metadata/tags using Python 3

2013-11-26 Thread Michael Torrie
On 11/26/2013 10:10 AM, andonefi...@gmail.com wrote: > I'm still a bit new to this. When I download a module like Mutagen > and unzip it I have a folder and tons of files within folders? I see > no file simply called mutagen? So how can I import the module? Also you can install many things usin

Re: How to determine whether client and server are on the same host

2013-11-26 Thread Michael Torrie
On 11/25/2013 12:35 PM, Malte Forkel wrote: > I have a Python application that communicates with a server via telnet. > Host and port of the server are supplied by the user when the > application is started. > > How can I determine from within the application whether the server's > host actually i

Re: Python String Formatting - passing both a dict and string to .format()

2013-11-26 Thread Michael Torrie
On 11/26/2013 05:01 PM, Victor Hooi wrote: > Hi, > > I'm trying to use Python's new style string formatting with a dict > and string together. > > For example, I have the following dict and string variable: > > my_dict = { 'cat': 'ernie', 'dog': 'spot' } foo = 'lorem ipsum' > > If I want to jus

Re: python for everyday tasks

2013-11-27 Thread Michael Torrie
On 11/27/2013 11:05 AM, Pavel Volkov wrote: > Thanks for all those references. > There's this statement in the first article: > > "Got a switch statement? The Python translation is a hash table, not a bunch > of if-then statments. Got a bunch of if-then's that wouldn't be a switch > statement in

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
On 11/28/2013 08:08 AM, Chris Angelico wrote: > Which is easier, fiddling around with your setup so you can post > reasonably on Google Groups, or just getting a better client? With > your setup, you have to drop out to another editor and press F9 for it > to work. With pretty much any other newsre

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
On 11/28/2013 10:23 AM, Ned Batchelder wrote: > Funny, I thought the sentiment of many here was, "let's just keep this > as a newsgroup, why do we need the mailing list also?" but I'll admit to > being confused about what people have been proposing for alternate > topologies. That may well be t

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
On 11/28/2013 11:37 AM, rusi wrote: > Do you realize that that person was not using GG? I do but he was using usenet. > IOW we are unfortunately conflating two completely unrelated things: > 1. GG has some technical problems which are fairly easy to solve > 2. All kinds of people hop onto the lis

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
My point was that the list problems in general seem to be related to usenet. GG formatting, spam, trolls. I guess I should have changed the subject line. Ditching usenet solves the GG problem and a number of other problems as well. >> IOW we are unfortunately conflating two completely unrelated

Re: [OT] Managing Google Groups headaches

2013-12-02 Thread Michael Torrie
On 12/02/2013 06:03 AM, Neil Cerutti wrote: > I wish they'd never bought dejanews. I wish Google hadn't bought a lot of things. Seems like they bye up a lot of cool, nerd-centric apps and companies and then turned them into apps that do less and do it poorly, but in a slick way that appeals to th

Re: [OT] Managing Google Groups headaches

2013-12-02 Thread Michael Torrie
On 12/02/2013 06:43 PM, Roy Smith wrote: > In article , > Michael Torrie wrote: > >> I wish Google hadn't bought a lot of things. Seems like they bye up a >> lot of cool, nerd-centric apps and companies and then turned them into >> apps that do less and do it

Re: Python for microcontrollers

2013-12-03 Thread Michael Torrie
On 12/03/2013 07:18 AM, Colin J. Williams wrote: > On 03/12/2013 7:58 AM, Mark Lawrence wrote: >> I thought this might be of interest >> Http://www.kickstarter.com/projects/214379695/micro-python-python-for-microcontrollers >> >> > Is this intended to be better than the Raspberry PI? RPi handles P

Re: Python for microcontrollers

2013-12-03 Thread Michael Torrie
On 12/03/2013 09:04 AM, Travis Griggs wrote: > Having forayed into the world of small small micro controllers myself > this last year and a half, I’m kind of torn on whether this is a good > idea or not. But I think it’s cool they’re trying. And I’d definitely > try it to see how it worked out. I'

Re: Input without line break, is it possible?

2013-12-04 Thread Michael Torrie
On 12/04/2013 08:38 AM, geezl...@gmail.com wrote: > my question, can i make it in just a single line like, > > 1 2 3 4 5 6 (and so forth) > > Can I? Yes of course. raw_input() is going to give you a string that you can then parse any way you want. -- https://mail.python.org/mailman/listinfo/py

Re: Input without line break, is it possible?

2013-12-05 Thread Michael Torrie
On 12/04/2013 09:36 AM, Mark Lawrence wrote: > On 04/12/2013 16:23, Michael Torrie wrote: >> On 12/04/2013 08:38 AM, geezl...@gmail.com wrote: >>> my question, can i make it in just a single line like, >>> >>> 1 2 3 4 5 6 (and so forth) >>> >>>

Re: Embedding multiple interpreters

2013-12-05 Thread Michael Torrie
On 12/05/2013 07:34 PM, Garthy wrote: > - My fallback if I can't do this is to implement each instance in a > dedicated *process* rather than per-thread. However, there is a > significant cost to doing this that I would rather not incur. What cost is this? Are you speaking of cost in terms of wh

Re: One liners

2013-12-06 Thread Michael Torrie
On 12/06/2013 04:54 PM, Dan Stromberg wrote: > Does anyone else feel like Python is being dragged too far in the direction > of long, complex, multiline one-liners? Or avoiding temporary variables > with descriptive names? Or using regex's for everything under the sun? > > What happened to using

Re: One liners

2013-12-06 Thread Michael Torrie
On 12/06/2013 05:14 PM, Dan Stromberg wrote: > I'm thinking mostly of stackoverflow, but here's an example I ran into (a > lot of) on a job: > > somevar = some_complicated_thing(somevar) if > some_other_complicated_thing(somevar) else somevar > > Would it really be so bad to just use an if statem

Re: One liners

2013-12-07 Thread Michael Torrie
On 12/07/2013 09:13 AM, Rotwang wrote: > On 07/12/2013 12:41, Jussi Piitulainen wrote: >> [...] >> >>if tracks is None: >> tracks = [] > > Sorry to go off on a tangent, but in my code I often have stuff like > this at the start of functions: > > tracks = something if tracks is Non

Re: One liners

2013-12-07 Thread Michael Torrie
On 12/06/2013 08:27 PM, Roy Smith wrote: > In article <52a287cb$0$30003$c3e8da3$54964...@news.astraweb.com>, > Steven D'Aprano wrote: > >> The ternary if is slightly unusual and unfamiliar > > It's only unusual an unfamiliar if you're not used to using it :-) > Coming from a C/C++ background,

Re: One liners

2013-12-07 Thread Michael Torrie
On 12/07/2013 09:56 AM, Michael Torrie wrote: >> extracols = sorted(set.union(*(set(t.data.keys()) for t in tracks))) if >> tracks else [] > > This is a generator expressions, and ternary ifs are common and often > needed in generator expressions. Oops. This is not a genera

Re: Does Python optimize low-power functions?

2013-12-07 Thread Michael Torrie
On 12/06/2013 12:32 PM, Nick Cash wrote: > Nope: > > Python 3.3.0 (default, Sep 25 2013, 19:28:08) > [GCC 4.7.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import dis dis.dis(lambda x: x*x) > 1 0 LOAD_FAST0 (x) >

Re: Movie (MPAA) ratings and Python?

2013-12-10 Thread Michael Torrie
On 12/10/2013 01:26 PM, Ben Finney wrote: >> Movie ratings. EG G, PG, PG-13, etc. > > That tells me only that you want short strings. Based on what you've > said so far, your requirements can be met with code like this: > > movie_ratings = ["G", "PG", "PG-13", …] > > which doesn't need a l

Re: python import error

2013-12-10 Thread Michael Torrie
On 12/10/2013 08:56 PM, smilesonisa...@gmail.com wrote: > Traceback (most recent call last): > File "aaa.py", line 5, in > from ccc.ddd import sss > ImportError: No module named ccc.ddd > > directory structure as follows: > > ccc > | > ddd >| > aaa.py > sss.py This is because

Re: python import error

2013-12-10 Thread Michael Torrie
On 12/10/2013 09:25 PM, Michael Torrie wrote: > On 12/10/2013 08:56 PM, smilesonisa...@gmail.com wrote: >> Traceback (most recent call last): >> File "aaa.py", line 5, in >> from ccc.ddd import sss >> ImportError: No module named ccc.ddd >> &

Re: Movie (MPAA) ratings and Python?

2013-12-11 Thread Michael Torrie
On 12/11/2013 04:39 PM, Dan Stromberg wrote: >> If you can, would you please turn off rich text posting when you post >> here please? > Apologies. I didn't realize gmail was doing this. I had thought it would > only do so if I used the formatting options in the composer, but perhaps it > does s

Re: Tree library - multiple children

2013-12-12 Thread Michael Torrie
On 12/12/2013 11:14 AM, Ricardo Aráoz wrote: > I need to use a tree structure. Is there a good and known library? > Doesn't have to be binary tree, I need to have multiple children per node. There are lots of types of tree structures that may or may not be applicable to your problem. And it depen

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-14 Thread Michael Torrie
On 12/14/2013 10:05 AM, Wolfgang Keller wrote: > Tkinter is a bit "special" to use since it's not just a library, but > uses some kind of RPC. It seems that "look and feel" have been greatly > improved lately. I know Tkinter originated with the Tcl/Tk language. With Tkinter in Python is it still

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-14 Thread Michael Torrie
On 12/14/2013 10:05 AM, Wolfgang Keller wrote: > PyQt looks native everywhere, but it might be a bit overweight, > depending on what you want to do and where your applications need to > run. > > And then there's the licensing issue, since PyQt, unlike Qt itself, is > not available under LGPL afaik

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-14 Thread Michael Torrie
On 12/14/2013 10:42 AM, ru...@yahoo.com wrote: > The other big, widely-used GUI toolkit is PyQt. It runs on > both Python2 and Python3. There is another version of it > called PySide which is API compatible with PyQt but has > different licensing terms. PyQt comes with a very good > drag-and-

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-15 Thread Michael Torrie
On 12/15/2013 08:33 AM, Wolfgang Keller wrote: >> I think PyQt is slowly being pushed aside in favor of PySide, which is >> more license-friendly for use in closed or open projects. I would >> recommend using PySide unless PyQt is a requirement for your project. > > Except the issue that Pyside a

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-15 Thread Michael Torrie
On 12/15/2013 05:34 PM, Tamer Higazi wrote: > For wxPython there is a good book. > You will feel convinient. > > > But to be honest, I don't believe that Python is the best choice for GUI > development, but it's only an opinion. > Otherwise I would advise you going into C++ and code with wxWidge

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-15 Thread Michael Torrie
On 12/15/2013 09:09 PM, Tamer Higazi wrote: > However, I believe according wxWidgets it would be better coding in the > native language the system had been developed. > The other thing, specially if you would make a customer project, I don't > know how to pack the app written in python in an inst

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-15 Thread Michael Torrie
On 12/15/2013 09:51 PM, Michael Torrie wrote: > And all modern web apps are a combination of many languages and > domains, most of which are "compiled" in the traditional sense. Meant to say, *not* compiled. -- https://mail.python.org/

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-17 Thread Michael Torrie
On 12/17/2013 08:00 AM, Wolfgang Keller wrote: >> Python is sooo slow when it waits for the human. > > With Windows systems, I waste something like 90% of my work time waiting > for that system to stop "Not Responding". > > And no, it's not a matter of hardware. Something is wrong then. Win

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-17 Thread Michael Torrie
On 12/17/2013 08:00 AM, Wolfgang Keller wrote: >> Please check JYTHON and those ready-for-novice GUI tools in java. > > All Java GUI frameworks I know of are ridiculous garbage. > > Not only that Java per se is obscenely fat (and unresponsive), but the > GUI frameworks leak like bottomless barrel

Re: HOW TO HANDLE CAPTCHA WHILE PARSING A WEB SITE

2013-12-18 Thread Michael Torrie
On 12/18/2013 02:37 AM, Jai wrote: > All capital letters, at least in English, is considered to be angry yelling. As to you question, you won't find help with that here. Please don't ask again. -- https://mail.python.org/mailman/listinfo/python-list

Re: how to handle captcha through machanize module or any module

2013-12-18 Thread Michael Torrie
On 12/18/2013 07:51 AM, Chris Angelico wrote: > On Thu, Dec 19, 2013 at 1:48 AM, Joel Goldstick > wrote: >> So, what you need to do is show a small coding example of the problem you >> are having. Give the OS, the python version, and copy the traceback if >> there is an error. > > And give a goo

Re: Why Python is like C++

2013-12-20 Thread Michael Torrie
On 12/20/2013 02:44 PM, Gregory Ewing wrote: > Serhiy Storchaka wrote: >> 20.12.13 16:19, Roy Smith написав(ла): >> >>> http://xkcd.com/1306/ >> >> QBASIC$, not $QBASIC. > > Or just QB$. (Most BASICs of that era only regarded > the first two characters as significant.) Maybe BASIC's of the 70s.

Re: Why Python is like C++

2013-12-21 Thread Michael Torrie
On 12/21/2013 01:17 AM, Chris Angelico wrote: > GW-BASIC is what you're describing. Q-BASIC isn't the same as > QuickBasic, though. Q-BASIC had subs and functions and stuff, but it > was still, at its heart, BASIC. And you could DIM something with a > type, but normally it was the adorning suffix t

Re: [OT] vnc-problem with idle running as sudo on raspberry pi

2013-12-22 Thread Michael Torrie
On 12/22/2013 06:27 AM, Jean Dubois wrote: > I was wrong writing idle_as_root worked this way. As a matter of fact, > this method also does not work as expected, as can be seen from this > message: > > X11 connection rejected because of wrong authentication. > > New 'X' desktop is raspberrypi:1 >

Re: BLANK PAGE when i try Filtering Adsense with abpy

2013-12-22 Thread Michael Torrie
On 12/22/2013 10:20 AM, em rexhepi wrote: > When I use my code it just displays nothing > > My code: > #!/usr/local/bin/python3.1 > > import cgitb;cgitb.enable() > > import urllib.request > response = urllib.request.build_opener() > response.addheaders = [('User-agent', 'Mozilla/5.0')] > respons

Re: Airplane mode control using Python?

2013-12-22 Thread Michael Torrie
On 12/22/2013 08:20 PM, Kevin Peterson wrote: > Hi, > > I am trying to control Aeroplane mode on Android using Python code. > I am running QPyPlus python. When I execute this code(that is widespread > in the net), > > #!/usr/bin/python > import android droid = android.Android() > #

Re: [OT] vnc-problem with idle running as sudo on raspberry pi

2013-12-23 Thread Michael Torrie
On 12/23/2013 07:06 AM, Jean Dubois wrote: > I thought this would be something python-people are familiar with, after > all idle is a Python IDE and running it as a root sometimes is necessary. On most desktop distros like Fedora, sudo idle would indeed work. The fact that it's not working on you

Re: Variables in a loop, Newby question

2013-12-25 Thread Michael Torrie
On 12/24/2013 11:27 AM, vanommen.rob...@gmail.com wrote: > Indeed this is code what I found on the web to read temperatures from > 10 DS18B20 singlewire sensors. > > My only programming (little) experience is VBA (Excel mostly). > Definitely you'll want to learn python before you go much farther

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/05/2014 04:30 PM, Ben Finney wrote: > In short: Everything that was good about OpenOffice is now called > LibreOffice, which had to change its name only because the owners of > that name refused to let it go. Your information is a year or two out of date. OpenOffice.org is alive and well, u

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/06/2014 08:53 AM, Grant Edwards wrote: > Yea, I think laying out a book with something like MS Word or > LibreOffice is nuts. Depending on her formatting needs, a > lighter-weight mark-up language (something like asciidoc) might suite: I've laid out a book with LibreOffice and it actually

Re: [way OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/07/2014 09:58 AM, Chris Angelico wrote: > On Wed, Jan 8, 2014 at 3:45 AM, Michael Torrie wrote: >> I tend to add my own [styles] >> for quotes, captions, etc. After composing the document, >> then you modify the styles to set the spacings, fonts, indentations, >&

Re: [way OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/07/2014 10:14 AM, Chris Angelico wrote: > On Wed, Jan 8, 2014 at 4:10 AM, Michael Torrie wrote: >> LO does reference images if you would like. But I find embedding the >> whole works is just more self-contained. And with multiple file >> documents the chances of l

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
Apologies to the list for the noise! Should have replied off-list. -- https://mail.python.org/mailman/listinfo/python-list

Re: Bytes indexing returns an int

2014-01-08 Thread Michael Torrie
On 01/08/2014 09:08 AM, wxjmfa...@gmail.com wrote: > Byte strings (encoded code points) or native unicode is one > thing. Byte strings are not necessarily "encoded code points." Most byte streams I work with are definitely not unicode! They are in fact things such as BER-encoded ASN.1 data struct

Re: Re : Python GTK GUI struck when process is going on.

2014-01-09 Thread Michael Torrie
On 01/09/2014 08:15 AM, MRAB wrote: > On 2014-01-09 11:53, Prapulla Kumar wrote: >> Hi all, >> I'm using python gtk to upload file to S3 service by boto API , >> GUI struck when uploading file and releases the GUI after completed download >> I'm using thread to show progress of upload in GUI but it

Re: How to get Mac address of ethernet port?

2014-01-11 Thread Michael Torrie
On 01/11/2014 07:35 AM, Andriy Kornatskyy wrote: > Sam, > > How about this? > > from uuid import getnode as get_mac > '%012x' % get_mac() This seems to work if you have only one ethernet adapter. Most computers have two (wired and wireless) adapters. Getting a mac address is platform-specific,

Re: 'Straße' ('Strasse') and Python 2

2014-01-13 Thread Michael Torrie
On 01/13/2014 02:54 AM, wxjmfa...@gmail.com wrote: > Not at all. I'm afraid I'm understanding Python (on this > aspect very well). Are you sure about that? Seems to me you're still confused as to the difference between unicode and encodings. > > Do you belong to this group of people who are nai

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Michael Torrie
On 01/27/2014 02:32 AM, me wrote: > You feel better now that you too have vented? Sorry but the emotional intent you're reading in to Chris's post is completely misplaced. I don't know why you chose to be offended by it. Chris's comments about C++ are accurate, but not intended to be a personal

<    4   5   6   7   8   9   10   11   12   13   >