Re: Newbie, homework help, please.

2012-04-21 Thread Michael Torrie
On 04/21/2012 02:14 PM, someone wrote: > Thanks for your reply Mr. Roy Smith. Also, thanks for the tip. Maybe > I did not make myself as clear or maybe you did not understand my > post. It states homework help, and I am doing this post to get help > before I pay somebody to show me how to do it,

Re: Some posts do not show up in Google Groups

2012-05-02 Thread Michael Torrie
On 05/01/2012 12:12 AM, Frank Millman wrote: > I have had a look at this before, but there is one thing that Google > Groups does that no other reader seems to do, and that is that > messages are sorted according to thread-activity, not original posting > date. This makes it easy to see what has ch

Re: John Carmack glorifying functional programing in 3k words

2012-05-02 Thread Michael Torrie
On 05/02/2012 09:31 AM, Tomasz Rola wrote: > On Wed, 2 May 2012, jaialai.technol...@gmail.com wrote: >> OP lives out of his car and his main source of income seems to be ad >> revenue from his website. I'm always curious about this sort of thing. Do you know this for a fact, jaialai.technology?

Re: syntax for code blocks

2012-05-02 Thread Michael Torrie
On 05/02/2012 04:52 AM, Kiuhnm wrote: > The problem is always the same. Those functions are defined at the > module level so name clashing and many other problems are possible. Only functions defined at the module level are in fact in the module's namespace. For example, this works fine, and the

Re: syntax for code blocks

2012-05-02 Thread Michael Torrie
On 05/02/2012 10:26 PM, Michael Torrie wrote: > If you are experiencing name clashes you need to start dividing your > code up logically instead of keeping everything in the global namespace > of your module. I shouldn't have used the word "global" here as it's n

Re: syntax for code blocks

2012-05-04 Thread Michael Torrie
On 05/04/2012 05:12 AM, Kiuhnm wrote: >> Hand-wavy, no real example, doesn't make sense. > > Really? Then I don't know what would make sense to you. Speaking as as an observer here, I've read your blog post, and looked at your examples. They don't make sense to me either. They aren't real examp

Re: parallel programming in Python

2012-05-10 Thread Michael Torrie
On 05/10/2012 06:46 AM, Devin Jeanpierre wrote: > On Thu, May 10, 2012 at 8:14 AM, Jabba Laci wrote: >> What's the best way? > >>From what I've heard, http://scrapy.org/ . It is a single-thread > single-process web crawler that nonetheless can download things > concurrently. Yes, for i/o bound t

Re: How to call and execute C code in Python?

2012-05-14 Thread Michael Torrie
On 05/13/2012 11:27 AM, Mark Lawrence wrote: > Stefan, you appear to have a lot to do with Cython. It would be polite > to mention this when replying. > Why? Do you think this is some sort of weird conflict of interest? As anyone who follows this list for several years would know, Cython is a

Re: bash/shell to python

2012-05-19 Thread Michael Torrie
On 05/16/2012 08:16 PM, Rita wrote: > I currently build a lot of interfaces/wrappers to other applications > using bash/shell. One short coming for it is it lacks a good method > to handle arguments so I switched to python a while ago to use > 'argparse' module. Actually there is a great way of pa

Re: python's future?

2012-06-15 Thread Michael Torrie
On 06/15/2012 01:04 AM, Yesterday Paid wrote: > I'm very new to programing though I learn very little of java,C > I love python and have fun to do something with it > but some people said python's future perhaps not that bright. > I know this question maybe looks like an idiot:( > I really hope the

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread Michael Torrie
On 07/20/2011 07:17 PM, rantingrick wrote: > Please everyone, do not change the subject of someone's thread > because it's considered rude. Thank you. Too funny. Says who? Changing the subject line to reflect the direction this part of the thread (a branch if you will) is going is definitely ap

Re: list comprehension to do os.path.split_all ?

2011-07-30 Thread Michael Torrie
On Jul 29, 2011 6:33 PM, "Michael Poeltl" wrote: > > what about this? > >>> ' '.join('/home//h1122/bin///ghi/'.split('/')).split() > ['home', 'h1122', 'bin', 'ghi'] > >>> Doesn't work on filenames with spaces in them. -- http://mail.python.org/mailman/listinfo/python-list

Re: Word Perfect integration

2011-08-22 Thread Michael Torrie
On 08/18/2011 01:24 PM, Ethan Furman wrote: > Alec Taylor wrote: >> wow, people still use WordPerfect? > > Them's fightin' words right there! :) > > Yes, we still use Word Perfect, and will as long as it is available. > The ability to see the codes in use (bold, margins, columns, etc) has so >

Re: I'm happy with Python 2.5

2011-03-06 Thread Michael Torrie
On 02/27/2011 06:57 AM, n00m wrote: > Steve, see a list of accepted langs there, in bottom dropdown: > http://www.spoj.pl/submit/ There *was* Python 2.6. > Then admins shifted back to 2.5. People vote by their legs. rr, is that you? -- http://mail.python.org/mailman/listinfo/python-list

Re: dynamic assigments

2011-03-25 Thread Michael Torrie
On 03/25/2011 06:29 AM, Seldon wrote: > Because I'm in this situation. My current code is of the form: > > var1 = func(arg=value1, *args) > .. > varn = func(arg=valuen, *args) > > where var1,..varn are variable names I know in advance and > value1,..valuen are objects known in advance, too; fun

Re: Running Websites with Python

2011-04-01 Thread Michael Torrie
On 04/01/2011 04:34 PM, Westley Martínez wrote: > I discovered this yesterday, and finished watching today. Just an > interesting video. > > Thank heavens for flashblock. -- http://mail.python.org/mailman/listinfo/python-list

Re: Questions about GIL and web services from a n00b

2011-04-16 Thread Michael Torrie
On 04/16/2011 02:53 PM, Jean-Paul Calderone wrote: > On Apr 16, 10:44 am, a...@pythoncraft.com (Aahz) wrote: >> In article >> , >> Raymond Hettinger wrote: >> >> >> >>> Threading is really only an answer if you need to share data between >>> threads, if you only have limited scaling needs, and a

Re: What other languages use the same data model as Python?

2011-05-04 Thread Michael Torrie
On 05/04/2011 08:44 AM, sturlamolden wrote: > On May 3, 6:33 pm, Mel wrote: > >> def identify_call (a_list): >> a_list[0] = "If you can see this, you don't have call-by-value" >> a_list = ["If you can see this, you have call-by-reference"] > > > The first one is a mistake. If it were pass-b

Re: checking if a list is empty

2011-05-08 Thread Michael Torrie
On 05/08/2011 05:36 PM, Dan Stromberg wrote: > Just what is an inductive algorithm? >From what I can remember, it's just an implementation of a proof essentially. Any algorithm that can be inductively proven can be implemented with recursion and specific base cases. In other words you program ju

Re: Questions.

2017-09-08 Thread Michael Torrie
On 09/08/2017 08:35 PM, V Vishwanathan wrote: > Hi, From what I see in the recent 4/5 digests, this forum seems to be for > advanced > > and professional programmers. > > So wondering if a newbie can post some questions to understand errors in his > code > > or will it look silly? Yes you may

Re: Using Python 2

2017-09-10 Thread Michael Torrie
On 09/10/2017 09:20 AM, Marko Rauhamaa wrote: > Been there. I'm afraid this is not a joke: > > https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition> Wow that's pretty amazing! Thanks for sharing that link. > Python, COBOL for the next generation. I guess we'll have to see. CO

Re: Design: method in class or general function?

2017-09-10 Thread Michael Torrie
On 09/10/2017 06:16 PM, Leam Hall wrote: > The Career seems to be a "Decorator" pattern given my limited > understanding of design patterns. Concur? If so I'll go study that some > more. A career seems to be something one "has." So a classic "has a" characteristic, which means it should be an a

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Michael Torrie
On 09/11/2017 02:35 AM, Chris Angelico wrote: > Do a quick poll here on the list. Who sees async functions as an > alternative to Twisted? Who here has even *used* Twisted? (How many > even know what it is?) /me raises hand, slowly, cautiously looking around. I don't think of twisted so much as a

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Michael Torrie
On 09/11/2017 08:36 AM, Dennis Lee Bieber wrote: > On Mon, 11 Sep 2017 18:35:02 +1000, Chris Angelico > declaimed the following: > >> >> Do a quick poll here on the list. Who sees async functions as an >> alternative to Twisted? Who here has even *used* Twisted? (How many >> even know what it is?

Re: Using Python 2

2017-09-11 Thread Michael Torrie
On 09/10/2017 09:38 PM, Dennis Lee Bieber wrote: > It ain't dead yet... Fujitsu still has a COBOL compiler/IDE for Windows > and/or .NET (and maybe even other systems)... (I should see if Win10 can > install the Fujitsu COBOL 4 that came with my Y2K era text books... WinXP > could not install

Re: Fw: Problems Installing Python36

2017-09-13 Thread Michael Torrie
On 09/12/2017 03:05 AM, Thomas Jollans wrote: > Other people on this list: > This isn't the first time I've someone with this issue here. It's > probably putting off plenty of potential new users who don't make as > much effort to find a solution. I can't say I understand the ins and > outs of inst

Re: People choosing Python 3

2017-09-13 Thread Michael Torrie
On 09/10/2017 03:25 AM, Leam Hall wrote: > From a non-rpm perspective Python 3.6.2 compiles nicely on CentOS 6. > Once compiled it seems easy to use pip3 to install stuff without > trampling on the OS's Python 2 install. In the last place I worked, our servers usually did not have compilers inst

Re: People choosing Python 3

2017-09-13 Thread Michael Torrie
On 09/11/2017 01:47 AM, Stephan Houben wrote: > Op 2017-09-10, Marko Rauhamaa schreef : >> Stephan Houben : >>> >>> Why not bundle the Python interpreter with your application? >>> It seems to work for Windows developers... >> >> I've seen that done for Python and other technologies. It is an >> ex

Re: People choosing Python 3

2017-09-13 Thread Michael Torrie
On 09/11/2017 06:00 AM, Pavol Lisy wrote: >> Debian follows PEP 394, which recommends that "python" point to python2, >> and I don't see that changing any time soon (certainly not before RHEL >> includes python3 by default. > > Which part of third party ecosystem surrounding Python 3 is not (and >

Re: Change project licence?

2017-09-14 Thread Michael Torrie
On 09/14/2017 11:22 AM, Kryptxy via Python-list wrote: > Hi, > I have an opensource (python) project under GPL3 licence. I wish > switch to MIT licence so as to make it more permissive. I know how to > change the licence, but I want to know is it fine and wise to change > the licence at this point?

Re: Which database system?

2017-09-15 Thread Michael Torrie
On 09/15/2017 12:04 PM, Stefan Ram wrote: > When one is building an in-memory database that has a single > table that is built at the start of the program and then one > writes some complex queries to the table, what can be expected ^^ How do you pla

Re: Which database system?

2017-09-15 Thread Michael Torrie
On 09/15/2017 03:10 PM, Dennis Lee Bieber wrote: > "single table" so no join logic needed. And I suspect the relational > algebra "project" would be considered the same as SQL "select" by most > folks As Stefan has said, it's sometimes useful to join a table with itself, though I have neve

Re: Change project licence?

2017-09-23 Thread Michael Torrie
On 09/23/2017 03:07 AM, Kryptxy via Python-list wrote: > Thank you all! I opened a ticket about the same (on github). > I got response from most of them, and all are agreeing to the change. > However, one contributor did not respond at all. I tried e-mailing, but no > response. > Can I still proce

Re: PyQt: viewport vs window - how do you translate co-ordinates?

2017-09-23 Thread Michael Torrie
On 09/23/2017 05:38 AM, Veek M wrote: > I didn't understand any of that - could someone expand on that para? > Is there a reading resource that explains the Viewport and translations? I am > not a CS student so I did not study computer graphics. I'm sure there are lots of things that might help.

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-24 Thread Michael Torrie
On 09/24/2017 09:56 AM, Dennis Lee Bieber wrote: > "Binding" itself tends to be Python specific terminology Not so. How it's used in Python terminology is fairly closely aligned with how the word was used in my programming language theory class at uni, where it was defined in mathematical t

Re: Running a GUI program haults the calling program (linux)

2017-09-25 Thread Michael Torrie
On 09/25/2017 06:38 PM, Kryptxy via Python-list wrote: > Is there any way that the GUI program is opened, and immediately the > control returns to calling program, instead of keeping the terminal > busy? Yes. This is a classic situation where you want to first fork() the process, then exec() the n

Re: The "loop and a half"

2017-10-05 Thread Michael Torrie
On 10/05/2017 06:08 PM, bartc wrote: > then it stinks. You wouldn't think much of a shell prompt that literally > showed nothing at all instead of something like: Indeed many programs do go to extra effort to detect if the connecting stream is an interactive device (a tty), and if so they do emit

Re: The "loop and a half"

2017-10-05 Thread Michael Torrie
On 10/05/2017 10:38 PM, Dan Sommers wrote: > On Thu, 05 Oct 2017 19:14:33 -0600, Michael Torrie wrote: > >> It all depends on what the command's purpose is for, and how it's >> designed to be chained with other commands (cat for example). > > They're almos

Re: The "loop and a half"

2017-10-07 Thread Michael Torrie
On 10/06/2017 07:24 AM, bartc wrote: > On 06/10/2017 14:11, Peter J. Holzer wrote: >> I regularly use at least cat, wc and od this way (plus a few of my own >> utilities like utf8dump). I'm sure I've used sort this way, too, though >> rather rarely. I usually don't type the input but paste it in, >

Re: django project avoid reload page where work algorithm

2017-10-08 Thread Michael Torrie
On 10/08/2017 02:46 PM, Xristos Xristoou wrote: > Τη Κυριακή, 8 Οκτωβρίου 2017 - 10:48:38 μ.μ. UTC+3, ο χρήστης Richard Damon > έγραψε: >> It sounds like the fundamental problem is that you are doing the >> calculation in the web page handler. This means that the browser will be >> stuck in the

Re: FW: Printing to a file and a terminal at the same time

2017-10-10 Thread Michael Torrie
On 10/10/2017 10:09 AM, Vail, Rick wrote: > I have a script for Cisco devices that will do configuration or any CLI > command. What I would like to do is print the output to my terminal(windows) > and to a file. I can come up with stdout parameters > To print to a file but not to the screen and

Re: Unable to run pip in Windows 10

2017-10-11 Thread Michael Torrie
On 10/11/2017 08:46 AM, Michael Cuddehe wrote: > - What exactly did you install? >>> Latest install: Python 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC > v.1900 64 bit (AMD64)] on win32 ^^^ So your OS is 32 bit? If so, you can't run 64-bit software on it. This v

Re: how to read in the newsreader

2017-10-15 Thread Michael Torrie
On 10/15/2017 08:50 PM, Andrew Z wrote: > Gents, > how do i get this group in a newsreader? The digest i'm getting is not > workable for me - i can't reply , can only read the replies from the > members of the group. Or. maybe, it shouldn't be a news reader > please advise.. > > P.S. Oh the c

Re: how to read in the newsreader

2017-10-16 Thread Michael Torrie
On 10/16/2017 08:52 AM, Paul Moore wrote: > For that situation, reading mailing lists as mails in gmail is the > best option I've been able to find (not ideal, but adequate). > Paul Gmail's web interface is completely broken as far as mailing lists are concerned. Conversation view in no way is ad

Re: why del is not a function or method?

2017-10-16 Thread Michael Torrie
On 10/16/2017 11:21 AM, bartc wrote: > del x effectively removes it from the namespace so trying to use it on > line 4 generates the same 'undefined' error. > > However, the byte-code still needs to be aware of x: at the time when > line 1 is executed, the byte-code for line 3 already exists and

Re: read_table € symbol

2017-10-26 Thread Michael Torrie
On 10/26/2017 09:04 AM, Davide Dalmasso wrote: > Dear all, > I'm trying to read a txt file with read_table but in the file there are some > string that contain the € symbol and the procedure returns me an error. > I tried with encoding='utf-8' but the problem is still there: > pd.read_table('filen

Re: replacing `else` with `then` in `for` and `try`

2017-11-03 Thread Michael Torrie
On 11/03/2017 11:44 AM, Jon Ribbens wrote: > And that's leading you into confusion, as you've demonstrated. And indeed I've been led into considerable confusion about the else: clause over the years. Every time I need to use it, I run a python shell and try it out to remind myself how it works. H

Re: replacing `else` with `then` in `for` and `try`

2017-11-03 Thread Michael Torrie
On 11/03/2017 07:09 PM, Steve D'Aprano wrote: > On Sat, 4 Nov 2017 06:15 am, Michael Torrie wrote: > >> In fact if you have no break you may as well drop the >> else entirely, because the block will always execute. > > That's incorrect. There are multiple way

Re: replacing `else` with `then` in `for` and `try`

2017-11-03 Thread Michael Torrie
On 11/03/2017 09:06 PM, Chris Angelico wrote: > On Sat, Nov 4, 2017 at 1:57 PM, Michael Torrie wrote: >> On 11/03/2017 07:09 PM, Steve D'Aprano wrote: >>> On Sat, 4 Nov 2017 06:15 am, Michael Torrie wrote: >>> >>>> In fact if you have no break you may

Re: Ideas about how software should behave

2017-11-08 Thread Michael Torrie
On 11/08/2017 11:29 AM, Chris Angelico wrote: > If that's true, then it's not possible for software to be > "opinionated" either, because that definitely implies something human. > And it's illogical to say "Windows is feeling cranky today" when > something inexplicably fails. Nor should you talk a

Re: Ideas about how software should behave

2017-11-09 Thread Michael Torrie
On 11/09/2017 09:33 AM, Chris Angelico wrote: > On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list > wrote: >> On 11/08/2017 11:29 AM, Chris Angelico wrote: >>> [...] >>> Please, Jon, accept that we were not deliberately trying >>> to put you down. Steve, if you can clearly state your position

Re: Should constants be introduced to Python?

2017-11-16 Thread Michael Torrie
On 11/15/2017 11:16 PM, Saeed Baig wrote: > - Do you guys think it would be a good idea? Why or why not? Do you > think there’s a better way to do it? I’d like to know what others > think about this idea before making any formal submission. Except for forcing it to be read-only, there's absolutely

Re: How to Generate dynamic HTML Report using Python

2017-11-20 Thread Michael Torrie
Your thoughts on scope are interesting, if unorthodox. There is a problem with your deleting names after use, which is why we rarely delete names. The problem is that deleting a name does not not necessarily or immediately destroy an object. This can lead to great confusion for programmers comin

Re: Posts by Stefan Ram

2017-11-21 Thread Michael Torrie
On 11/21/2017 07:50 AM, Ethan Furman wrote: > Everyone else, please do not quote Stefan's messages as they may then > end up on the mailing list possibly violating his copyright. The good news is, at least, that quoting his messages with attribution is certainly fair use in all jurisdictions I'm a

Re: Pros and cons of Python sources?

2017-11-25 Thread Michael Torrie
On 11/25/2017 02:20 AM, Martin Schöön wrote: > Some time ago I was advised that having a Python installation > based on several sources (pip and Debian's repos in my case) > is not a good idea. I need to tidy up my installation and I > don't know what to opt for and what to opt out. > > What are t

Re: connect four (game)

2017-11-25 Thread Michael Torrie
On 11/25/2017 06:00 AM, bartc wrote: > And there's a quite lot left of the rest of the program to worry about too! > > If you add 'window()' at the end of the program, then it seems to run on > Python 3. I'd play around with it first before thinking up strategies > for testing it. Actually, no.

Re: connect four (game)

2017-11-26 Thread Michael Torrie
On 11/26/2017 07:11 AM, bartc wrote: >> You may argue that testing doesn't matter for his small game, written >> for his own education and amusement. The fact is that software in >> general is of abysmal quality across the boards, and promoting a habit >> of unit testing is good, even for trivial,

Re: connect four (game)

2017-11-26 Thread Michael Torrie
On 11/26/2017 08:39 AM, bartc wrote: > The problem was traced to two lines that were in the wrong order (in the > original program). I can't see how unit tests can have helped in any way > at all, and it would probably have taken much longer. What makes you think that? Surely other decoders wer

Re: connect four (game)

2017-11-26 Thread Michael Torrie
On 11/25/2017 12:58 PM, namenobodywa...@gmail.com wrote: > the idea is that there should be exactly one object posinf (positive > infinity) that compares as strictly greater than any number ever considered, > and exactly one object neginf that compares as strictly less; as the code > stands now

[OT] - Re: Has anyone worked on docker with windows

2017-11-30 Thread Michael Torrie
Marking this message as off topic, since it has nothing much to do with Python and Python programming. In fact this whole thread should have been started on a Docker-specific forum, mailing list, or USENET group. To the original poster: you should visit the Docker web site and access the community

Re: Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-04 Thread Michael Torrie
On 12/04/2017 04:49 AM, Thomas Jollans wrote: > On 2017-12-04 10:48, dhananjaysingh091...@gmail.com wrote: >> Respected Sir/Mam, >> I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am >> double click in python program (Dhananjay.py),it is opening in Text Editor >> by Default i

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Michael Torrie
On 12/09/2017 08:01 PM, Chris Angelico wrote: > Been a long time since I had an Ubuntu, but is it really the case that > you can't install Ubuntu without a GUI? Of course not. Ubuntu is used in headless server situations all the time. -- https://mail.python.org/mailman/listinfo/python-list

Re: Processing Game Help

2017-12-11 Thread Michael Torrie
On 12/11/2017 07:27 AM, Dennis Lee Bieber wrote: > On Sun, 10 Dec 2017 16:05:37 -0800 (PST), Lauren Porter > declaimed the following: > >> Hello all! I've been trying to create a game in Python Processing Seems like most of the

[OT] Re: has sourceforge exposed the dirty little secret ?

2018-01-05 Thread Michael Torrie
On 01/05/2018 10:56 AM, Kim of K. wrote: > wow! Yup that's what I said when I read your ramblings. > even you are defensive about publishing non-working garbage. Absolutely. You have absolutely no right to make demands of any of the folks who toss their half-baked personal projects up on source

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 09:16 AM, oliver wrote: > Pyqt without hesitation. Except that people are forgetting the OP is not asking about a GUI library. The subject line reads "Simple graphic[s] library for beginners." He just wants a simple graphics drawing library for beginners. Create a canvas of a certa

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 10:22 AM, Igor Korot wrote: > Hi, > wxPython/Phoenix. > It can do everything you need and more But the OP isn't looking for a full-blown GUI toolkit. I went back and re-read his post to be sure I wasn't misunderstanding. Therefore I don't think the suggestion to use wxPython o

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 01:13 PM, bartc wrote: > I couldn't see anything obviously simple there. A lot seems to do with > interaction which is always much more complicated than just drawing stuff. Yes the link didn't have the simple examples I hoped for. How's this: - import py

Re: Simple graphic library for beginners

2018-01-11 Thread Michael Torrie
On 01/11/2018 06:38 AM, bartc wrote: > Although I can't run it because 'pygame' is not available. I think > installing this library is likely to be a bigger obstacle than > programming any graphics! > > (If I try and download it as a ready-built library for Windows, it has a > range of .msi fil

Re: Simple graphic library for beginners

2018-01-12 Thread Michael Torrie
On 01/11/2018 11:48 PM, Jan Erik Moström wrote: > On 10 Jan 2018, at 13:40, Jan Erik Moström wrote: > >> I'm looking for a really easy to use graphic library. The target users >> are teachers who have never programmed before and is taking a first >> (and possible last) programming course. > > T

Re: Fwd: Problem during setup

2018-02-05 Thread Michael Torrie
On 02/05/2018 07:53 AM, Денис Олегович wrote: > I tried to install python 3.5 and python 3.6, but the same mistake > interrupt process > "Windows 7 Service Pack 1 applicable updates are required" Log file > attached. I tried to install some updates for Windows, but unsuccessully, > may be I don' t

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-17 Thread Michael Torrie
On 02/17/2018 06:31 PM, bartc wrote: > It could well do all that. But it surely cannot need 18,000 lines' worth > to do it; that much should be obvious to anyone. And in fact, for > building with MS's Visual Studio, it doesn't use that file at all, but > something smaller. (Although the MS build

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Michael Torrie
On 02/18/2018 05:45 AM, Anders Wegge Keller wrote: > På Sun, 18 Feb 2018 07:34:03 -0500 > Richard Damon skrev: > >> Python is much stronger typed than PHP, because in PHP you can do things >> like 1 + '2' and get 3, as string values will naturally convert >> themselves to numbers, Python won't

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Michael Torrie
On 03/02/2018 08:36 AM, Paul Moore wrote: > On 2 March 2018 at 15:09, wrote: >> We must be discussing a different RAII. That is the raison d'etre of RAII: >> RAII directly addresses this problem in an exception-safe way that does not >> burden the resource user at all. > > RAII works in C++ (w

Re: Redundant features in python library, PyQt

2018-03-02 Thread Michael Torrie
On 03/02/2018 04:15 PM, jlada...@itu.edu wrote: > Python's standard library has (to take three examples) threads, > processes, and datetime functions. Meanwhile, PyQt has QThread, > QProcess, and QDateTime. > > Does this redundancy exist for C++ programmers who are programming Qt > directly, and

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-03 Thread Michael Torrie
On 03/03/2018 09:02 AM, ooom...@gmail.com wrote: > I can assure you that RAII does what it says on the tin and is relied on in > many critical systems to release resources robustly ... given the > pre-requisite deterministic destruction. Sure but did you read what Paul Moore wrote? He said RAI

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Michael Torrie
On 5/17/22 05:20, o1bigtenor wrote: > What can I do to correct this self-inflicted problem? Those are always the fun ones. Reminds me of when I was first learning Linux using Red Hat Linux 5.0 or 5.1. This was long before nice dependency-solving tools like apt. I wanted to install and run StarO

Re: "py" command for Linux and Mac?

2022-05-20 Thread Michael Torrie
On 5/12/22 11:59, De ongekruisigde wrote: > On 2022-05-12, Mats Wichmann wrote: >> On 5/12/22 10:25, Dan Stromberg wrote: >>> Hi folks. >>> >>> I heard there's a Windows-like "py" command for Linux (and Mac?). >>> >>> I'm finally getting to porting a particular project's Python 2.7 code to >>> 3.x

Re: Request for assistance (hopefully not OT)

2022-05-21 Thread Michael Torrie
On 5/21/22 06:19, o1bigtenor wrote: > more useful - - - - well - - - - I don't have to wonder why 'linux' is > used as much > by the general populace as it is. The community likes to destroy > itself - - - it > is a pity - - - - the community has so much to offer. As far as community goes, the Lin

Re: Conecting to MySQL

2022-08-14 Thread Michael Torrie
On 8/8/22 19:26, Guilherme Campos wrote: > Hello folks, > > trying to connect to MYSQL it appears the error msg below: > InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306' > (111 Connection refused) > [image: conexao.png] > How can i fix that.? MySQL can listen on a local uni

Re: python 3.10 vs breakage

2022-08-26 Thread Michael Torrie
On 8/26/22 14:37, gene heskett wrote: > Greetings all; > > Its now become obvious that 3.10 has broken some things. I can't build > linuxcnc with it. And > Octoprint has quit talking to 3d printers, now pronterface won't buy it, > can't find a 4.0.7 > version of wxPython with it sitting there st

Re: Find the path of a shell command

2022-10-13 Thread Michael Torrie
On 10/11/22 22:00, Paulo da Silva wrote: > Hi! > > The simple question: How do I find the full path of a shell command > (linux), i.e. how do I obtain the corresponding of, for example, > "type rm" in command line? > > The reason: > I have python program that launches a detached rm. It works pre

Re: Quick question about CPython interpreter

2022-10-17 Thread Michael Torrie
On 10/14/22 16:25, DFS wrote: > - > this does a str() conversion in the loop > - > for i in range(cells.count()): >if text == str(ID): > break > > > ---

Re: Any PyQt developers here?

2022-10-29 Thread Michael Torrie
On 10/28/22 21:31, DFS wrote: > I found one person that said they did it but their syntax didn't work. > But it doesn't throw an error either. > > model.setData(model.index(tblRow, col), font, Qt.FontRole) I wouldn't expect that to work but it's understandable why it didn't throw an error. setD

Re: Subject: problem activating python

2022-12-17 Thread Michael Torrie
On 12/17/22 15:45, Anne wrote: >I tried several times to install and use python for youtube views with Tor >using Youtube tutorials but I keep getting error after error. Please help >me. >regards Dimpho Given the lack of any information in your post, I can only assume you're trying

Re: Fwd: About the Python

2023-01-02 Thread Michael Torrie
On 1/1/23 22:27, Ramya M wrote: > This is from JNN College of Engineering, Shimoga. we are facing some > problems while using python. Please can you resolve this issue. Without any further information on your part, we can only guess at what the problems might be. Crystal ball says that Thomas' su

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-03 Thread Michael Torrie
On 1/3/23 11:45, Keith Thompson wrote: > MRAB writes: > [...] >> The purpose of stderr is to display status messages, logging and error >> messages, even user prompts, and not mess up the program's actual >> output. This is important on a *nix system where you might be piping >> the output of one

Re: Improvement to imports, what is a better way ?

2023-01-18 Thread Michael Torrie
On 1/18/23 14:42, Dan Kolis wrote: > >> I don't think you've described this. I don't know what you mean here. > > When I trace it in VSCode the imports seem like they endlessly suspend > scanning and go to other ones over and over. Like "Whats this doing ?" > Nothing to worry about there. Pyt

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-18 Thread Michael Torrie
On 1/18/23 18:01, Dan Kolis wrote: > Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under > Ubuntu starts it up again. Click go rewrites al the fonts the thing can find > in a few windows Repeated. > Not sure what you mean by "screen rewrites." I ran your test program

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-22 Thread Michael Torrie
On 1/22/23 11:44, Stefan Ram wrote: > Jach Feng writes: >> e:\Works\Python>py infix2postfix.py "-4^2+5.3*abs(-2-1)/2" > > Well, it's a nice exercise! But I only made it work for the > specific example given. I have not tested whether it always > works. Haha. Yes a nice exercise, but has n

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-24 Thread Michael Torrie
On 1/23/23 18:58, Jach Feng wrote: > More pathonic, but don't work. The '--' must be at index 1:-) I'm very confused. Why are you even using argparse, since if you put -- at index 1 then argparse wont't do any argument parsing at all. If all you want is the expression on the command line, just a

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-27 Thread Michael Torrie
On 1/25/23 19:50, Jach Feng wrote: > To me, argparse has been just a tool which I can use in a CLI app. argparse is just a tool for dealing with command-line *flags*, which are common in command-line tools. argparse interprets the command line as a bunch of flags because that's what it's designe

Re: Am I banned from Discuss forum?

2023-02-10 Thread Michael Torrie
On 2/10/23 14:10, Marco Sulla wrote: > I was banned from the mailing list and Discuss forum for a very long time. > Too much IMHO, but I paid my dues. > > Now this is my state in the forum: > - I never posted something unrespectful in the last months > - I have a limitation of three posts per thre

Re: Precision Tail-off?

2023-02-14 Thread Michael Torrie
On 2/14/23 00:09, Stephen Tucker wrote: > I have two questions: > 1. Is there a straightforward explanation for this or is it a bug? To you 1/3 may be an exact fraction, and the definition of raising a number to that power means a cube root which also has an exact answer, but to the computer, 1/3 i

Re: Precision Tail-off?

2023-02-17 Thread Michael Torrie
On 2/17/23 03:27, Stephen Tucker wrote: > Thanks, one and all, for your reponses. > > This is a hugely controversial claim, I know, but I would consider this > behaviour to be a serious deficiency in the IEEE standard. No matter how you do it, there are always tradeoffs and inaccuracies moving fr

Re: Precision Tail-off?

2023-02-17 Thread Michael Torrie
On 2/17/23 15:03, Grant Edwards wrote: > Every fall, the groups were again full of a new crop of people who had > just discovered all sorts of bugs in the way > implemented floating point, and pointing them to a nicely written > document that explained it never did any good. But to be fair, Goldb

Re: Tuple Comprehension ???

2023-02-20 Thread Michael Torrie
On 2/20/23 20:36, Hen Hanna wrote: > For a while, i've been curious about a [Tuple Comprehension] I've never heard of a "Tuple comprehension." No such thing exists as far as I know. > So finally i tried it, and the result was a bit surprising... > > > X= [ x for x in range(10) ] > X= (

Re: is [comprehension] the right word???

2023-02-20 Thread Michael Torrie
On 2/20/23 18:06, Hen Hanna wrote: > is [comprehension] the right word??? > > i swear i never heard the word before > getting into Python a few years ago. Seems as though the term was borrowed from formal mathematics set theory. A simple search reveals that the term "list comprehen

Re: why is a search thru a Tuple slower ? ---- (meaningless indentations)

2023-02-20 Thread Michael Torrie
On 2/20/23 18:01, Hen Hanna wrote: > is Comp.Lang.Python very active Fairly. Apparently the cool kids are using the Python Discourse forum. > why is a linear search thru a Tuple slower > (than thru a (corresponding) List ) ??? I cannot say, unfortunately.

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread Michael Torrie
On 2/23/23 01:08, Hen Hanna wrote: > Python VM is seeing an "int" object (123) (and telling me that) ... > so it should be easy to print that "int" object > What does Python VMknow ? and when does it know it ? It knows there is an object and its name and type. It knows this from t

Re: Rob Cliffe should stop sending me rude email messages.

2023-02-27 Thread Michael Torrie
I've been putting off sending this message for days, but the list noise level is now to the point that it has to be said. Often it is better to contact someone directly and privately rather than publicly embarrass them by calling them out. You've made it clear, however, that publicly calling you o

<    1   2   3   4   5   6   7   8   9   10   >