Re: A small quiz

2020-01-24 Thread Mario R. Osorio
On Thursday, January 23, 2020 at 3:54:56 AM UTC-5, Z wrote: > what is PLR? PLR: Private Label Rights (https://en.wikipedia.org/wiki/Private_label_rights) -- https://mail.python.org/mailman/listinfo/python-list

Re: Congratulations to @Chris

2019-11-04 Thread Mario R. Osorio
On Thursday, October 24, 2019 at 4:29:59 PM UTC-4, Chris Angelico wrote: > On Fri, Oct 25, 2019 at 7:20 AM DL Neil via Python-list > wrote: > > > > Chris Angelico: [PSF's] 2019 Q2 Community Service Award Winner > > http://pyfound.blogspot.com/2019/10/chris-angelico-2019-q2-community.html > > > > .

Re: Do I need a parser?

2019-07-02 Thread Mario R. Osorio
On Saturday, June 29, 2019 at 8:40:06 AM UTC-4, josé mariano wrote: > Dear all, > > I'm sure that this subject has been addressed many times before on this > forum, but my poor knowledge of English and of computer jargon and concepts > results on not being able to find the answer i'm looking for

Re: help plz

2019-05-14 Thread Mario R. Osorio
On Monday, May 13, 2019 at 8:32:38 AM UTC-4, Tristan Cribaro wrote: > [image: image.png]so I have a project I have to work on that is due > tomorrow for a lot of points towards my grade. The issue here is I've been > trying to download Pillow and simple audio for my project and I keep > getting the

Re: Python program to phone?

2019-02-08 Thread Mario R. Osorio
I am not an expert in BeeWare (I've never used it) but I've read a good portion of their documentation and find it very interesting to say the least. I am looking forward using it in the very near future. On Fri, Feb 8, 2019 at 11:06 AM Mario R. Osorio wrote: > You will need

Re: Python program to phone?

2019-02-08 Thread Mario R. Osorio
You will need to have java. BeeWare's VOC tool, a transpiler from python to java, will do all the work for you so you don't even have know anything about java, except installing and setting it up for your environment Dtb/Gby === Mario R. Osorio B.A.S. of Information Technolo

Re: Python program to phone?

2019-02-05 Thread Mario R. Osorio
Hi there Steve. Did you check BeeWare? (https://pybee.org/) -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I get a python program to work on my phone?

2019-01-30 Thread Mario R. Osorio
You might want to check this project: https://pybee.org/ I've never used it but it shows promising. BTW, I'm a diabetic myself and I would be very thankful if you could share your application. I'm currently using 2 Android apps: StickBuddy offers a system to keep track of both where you pinch

Re: Recommendations for a novice user.

2019-01-08 Thread Mario R. Osorio
On Wednesday, January 2, 2019 at 1:05:44 PM UTC-5, Hüseyin Ertuğrul wrote: > I don't know the software language at all. What do you recommend to beginners > to learn Python. > What should be the working systematic? How much time should I spend every day > or how much time should I spend on a dail

Re: Kivy native GUI examples

2019-01-08 Thread Mario R. Osorio
On Monday, January 7, 2019 at 9:52:03 AM UTC-5, Dave wrote: > I need to select a Python GUI. It needs to cover all of the desktops > (Linux, Windows, Apple) and hopefully mobile (Android and Ios). I'm > looking at Kivy, but have yet to find an example app. that has a native > looking GUI (Wind

Re: help me in a program in python to implement Railway Reservation System using file handling technique.

2018-11-26 Thread Mario R. Osorio
On Saturday, November 24, 2018 at 1:44:21 AM UTC-5, Chris Angelico wrote: > On Sat, Nov 24, 2018 at 5:36 PM wrote: > > > > hello all, > > please hepl me in the above program. python to implement Railway > > Reservation System using file handling technique. > > > > System should perform below ope

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mario R. Osorio
On Friday, July 13, 2018 at 11:16:44 AM UTC-4, Bart wrote: > On 13/07/2018 13:33, Steven D'Aprano wrote: > > On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: > > > >> (** Something so radical I've been using them elsewhere since forever.) > > > > And you just can't resist making it about you and y

Re: for info

2018-02-01 Thread Mario R. Osorio
On Wednesday, January 31, 2018 at 10:55:59 AM UTC-5, M.Haroon Ali wrote: > from where we learn python for free of cost. i am begineer in python.plzz > help me And after you're done with the OFFICIAL tutorials; there thousands of excellent free tutorials online. Just do some research. If you're

Re: Python homework

2017-12-07 Thread Mario R. Osorio
On Tuesday, December 5, 2017 at 8:33:52 PM UTC-5, nick martinez wrote: > I have a question on my homework. My homework is to write a program in which > the computer simulates the rolling of a die 50 > times and then prints > (i). the most frequent side of the die > (ii). the average die value o

Re: Is there something like head() and str() of R in python?

2017-11-20 Thread Mario R. Osorio
On Sunday, November 19, 2017 at 2:05:12 PM UTC-5, Peng Yu wrote: > Hi, R has the functions head() and str() to show the brief content of > an object. Is there something similar in python for this purpose? > > For example, I want to inspect the content of the variable "train". > What is the best wa

Re: Your feedback on our free Advanced Python tutorial

2017-07-21 Thread Mario R. Osorio
It would be nice if you made it more 'readable' the light gray foreground color of the text makes it very uncomfortable to read, at least to me. Take a look at: HOW THE WEB BECAME UNREADABLE https://www.wired.com/2016/10/how-the-web-became-unreadable/ -- https://mail.python.org/mailman/listinfo

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Mario R. Osorio
On Monday, April 17, 2017 at 10:27:50 PM UTC-4, Rurpy wrote: > On 04/17/2017 04:38 AM, Ben Finney wrote: > > Rurpy via Python-list writes: > > > >> A couple weeks ago a frequent poster here (Steve D'Aprano > >> ) called another participant an "ugly > >> american" [*1]. > > > > He gave no explici

Re: PYTHON

2017-04-07 Thread Mario R. Osorio
On Thursday, April 6, 2017 at 8:43:48 AM UTC-4, alders...@gmail.com wrote: > Hello, how can I start programming? http://www.lmgtfy.com/?q=Hello%2C+how+can+I+start+programming%3F -- https://mail.python.org/mailman/listinfo/python-list

Re: Spam user

2017-04-01 Thread Mario R. Osorio
I'm not in the business of starting an argument about best/worse newsreader, Ammammata, but could you please recommend a few? TIA -- https://mail.python.org/mailman/listinfo/python-list

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 8:45:41 PM UTC-5, Mario R. Osorio wrote: > On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > > > what do we call the vertical and horizontal line elemen

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > what do we call the vertical and horizontal line elements? I want to make > > them configurable, which means the user has to be able to pass an argument > > that specifies the

Re: need some kind of "coherence index" for a group of strings

2016-11-03 Thread Mario R. Osorio
I don't know much about these topics but, wouldn't soundex do the job?? On Thursday, November 3, 2016 at 12:18:19 PM UTC-4, Fillmore wrote: > Hi there, apologies for the generic question. Here is my problem let's > say that I have a list of lists of strings. > > list1:#strings are sort of s

Re: Build desktop application using django

2016-10-17 Thread Mario R. Osorio
On Monday, October 17, 2016 at 1:00:14 PM UTC-4, John Gordon wrote: > In > ayuchitsalu...@gmail.com writes: > > > Hello I want to build a desktop application which retrieves data from > > server and stores data on server. I have basic experience of python and > > I dont know how to build that th

Re: Build desktop application using django

2016-10-16 Thread Mario R. Osorio
On Sunday, October 16, 2016 at 1:42:23 PM UTC-4, Ayush Saluja wrote: > Hello I want to build a desktop application which retrieves data from server > and stores data on server. I have basic experience of python and I dont know > how to build that thing. I agree with Martin's suspicion on you hav

Re: Can this be easily done in Python?

2016-09-28 Thread Mario R. Osorio
I'm not sure I understand your question, but I 'think' you area talking about executing dynamically chunks of code. If that is the case, there are a couple of ways to do it. These are some links that might interest you: http://stackoverflow.com/questions/3974554/python-how-to-generate-the-code-o

Re: datetime vs Arrow vs Pendulum vs Delorean vs udatetime

2016-08-06 Thread Mario R. Osorio
... so you decided to start the post already hijacked by yourself ... very clever!! On Friday, August 5, 2016 at 8:19:53 PM UTC-4, bream...@gmail.com wrote: > On Friday, August 5, 2016 at 7:15:37 PM UTC+1, DFS wrote: > > On 8/4/2016 6:41 PM, breamore...@gmail.com wrote: > > > Fascinating stuff h

Re: Fraud

2016-04-16 Thread Mario R. Osorio
Mel: Portuguese for honey Drosis: from Greek hidrōs; to sweat -- https://mail.python.org/mailman/listinfo/python-list

Re: Moderation and Usenet

2016-04-10 Thread Mario R. Osorio
On Sunday, April 10, 2016 at 2:01:00 PM UTC-4, Terry Reedy wrote: > On 4/10/2016 1:05 PM, Ethan Furman wrote: > > > If you see offensive posts from him on the Usenet side please do not > > respond. > > Just a reminder for those who, like me, prefer a newsgroup interface for > python-list: gmane

Re: Moderation and Usenet

2016-04-10 Thread Mario R. Osorio
hmmm...He made an extremely kind comment a couple of days ago. It called my attention because is the first one ever (coming from) ... Now I'm thinking he might have just been sarcastic. And BTW I myself have given a couple of sour responses every now and then. I guess we all have our bad days o

Re: Interpretation

2016-03-26 Thread Mario R. Osorio
On Saturday, March 26, 2016 at 5:59:04 AM UTC-4, Dennis Ngeno wrote: > My programs have never combile, they keep telling me , systax error even > after copy pasting No pun intended, but I hope you are not typing your code like you typed your message. OTOH, python code is not supposed to be compi

Re: Case Statements

2016-03-15 Thread Mario R. Osorio
On Tuesday, March 15, 2016 at 9:55:27 PM UTC-4, jj0ge...@gmail.com wrote: > You have apparently mistaken me for someone who's worried. I don't use > Python, I was just curious as to why a construct that is found, not only to > be useful in 95% of other languages, but is generally considered more

Re: ANN: Wing IDE 5.1.10 released

2016-03-04 Thread Mario R. Osorio
On Friday, February 26, 2016 at 9:57:21 AM UTC-5, Wingware wrote: > Hi, > > Wingware has released version 5.1.10 of Wing IDE, our cross-platform > integrated development environment for the Python programming language. > > Wing IDE features a professional code editor with vi, emacs, visual > st

Re: The Real-Time Use of Python in Data Science World!

2016-03-04 Thread Mario R. Osorio
On Friday, February 26, 2016 at 2:36:26 PM UTC-5, Anita Goyal wrote: > This course will help you to expertise the usage of Python in Data Science > world. > > Carter your Python Knowledge so that it can be utilized to get the Insights > of Data using Methodologies and Techniques of Data Science.

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-02-29 Thread Mario R. Osorio
On Saturday, February 27, 2016 at 4:39:12 AM UTC-5, Steven D'Aprano wrote: > The author of Requests, Kenneth Reitz, discusses his recent recovery from a > MentalHealthError exception. > > http://www.kennethreitz.org/essays/mentalhealtherror-an-exception-occurred > > Although the connection to Pyt

Re: Make a unique filesystem path, without creating the file

2016-02-15 Thread Mario R. Osorio
I would create a RAM disk (http://www.cyberciti.biz/faq/howto-create-linux-ram-disk-filesystem/), generate all the path/files I want with any, or my own algorithm, run the tests, unmount it, destroy it, be happy ... Whats wrong with that?? AFAIK, RAM disks do not get logged, and even if they do

Re: Question about how to do something in BeautifulSoup?

2016-01-22 Thread Mario R. Osorio
I think you'd do better using the pyparsing library On Friday, January 22, 2016 at 9:02:00 AM UTC-5, inhahe wrote: > I hope this is an appropriate mailing list for BeautifulSoup questions, > it's been a long time since I've used python-list and I don't remember if > third-party modules are on to

Re: me, my arm, my availability ...

2016-01-14 Thread Mario R. Osorio
Just get better Laura... -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux Mint installation of Python 3.5

2015-09-29 Thread Mario Figueiredo
On 09/30/2015 03:44 AM, Chris Angelico wrote: > > The easiest way to install something from source is to use 'make > altinstall' for the final step. That should install you a 'python3.5' > binary without touching the 'python3' binary. That said, though, it's > entirely possible that upgrading 'pyt

Linux Mint installation of Python 3.5

2015-09-29 Thread Mario Figueiredo
Hello everyone, Under Linux Mint it is not a good idea to just go ahead and replace the system installed Python versions and their packages. And yet I wish to both update the 3.4 modules and install Python 3.5. I understand that for the first I just need to use virtualenv. But how can I safely in

Re: Python handles globals badly.

2015-09-12 Thread Mario Figueiredo
On 12-09-2015 18:09, MRAB wrote: > On 2015-09-12 17:29, Dennis Lee Bieber wrote: >> But no one had tested the algorithm with the rate of change the >> Ariane >> 5 could produce -- so an algorithm that was developed for, and safe with, >> the smaller Ariane suddenly went "something's wrong -- ab

Re: Python handles globals badly.

2015-09-12 Thread Mario Figueiredo
On 12-09-2015 05:38, Mark Lawrence wrote: > > Nothing to do with this being untested software then? Actually it was > so I'd put that down to a programmer error. "The code always worked > before so it's bound to work this time". Such a pity that this > particular launch wasn't the same as anyth

Re: Python handles globals badly.

2015-09-11 Thread Mario Figueiredo
On 12-09-2015 03:35, Mark Lawrence wrote: > > Ada took over from CORAL in the UK, at least in military projects. It > was also used in the aircraft industry. My old work mates tell me that > its completely died a death, to be replaced by C++. Someone please > remind me never to fly again. Alrigh

Re: Python handles globals badly.

2015-09-09 Thread Mario Figueiredo
On 09-09-2015 18:55, Steven D'Aprano wrote: > On Wed, 9 Sep 2015 11:09 am, Mario Figueiredo wrote: > >> You know, it is a pointless exercise to try and downplay programming >> languages (any programming language) that has proven its worth by being >> generally adopted

Re: Python handles globals badly.

2015-09-08 Thread Mario Figueiredo
On 09-09-2015 02:26, Ben Finney wrote: Mario Figueiredo writes: Note: You know, it is a pointless exercise to try and downplay programming languages (any programming language) that has proven its worth by being generally adopted by the programming community. Adoption is the sign of a

Re: Python handles globals badly.

2015-09-08 Thread Mario Figueiredo
On 09-09-2015 01:25, Vladimir Ignatov wrote: It's different from the rest 99.9% of languages for no particular reason. ( => perfect example of "design smell" => not a good example to follow) Assuming that some programming language makes design choices "for no apparent reason" is your first hi

Re: Python handles globals badly.

2015-09-08 Thread Mario Figueiredo
On 08-09-2015 12:55, Vladimir Ignatov wrote: I had some experience programming in Lua and I'd say - that language is bad example to follow. Indexes start with 1 (I am not kidding) What is so bad about that? It's different from the rest 99.9% of languages for no particular reason. ( => perfe

Re: Uninstall

2015-08-04 Thread Mario Figueiredo
On Wed, Aug 5, 2015 at 3:08 AM, Mario Figueiredo wrote: > > But being an asshole does not. That is something one chooses to become. Your answer squarely puts you in the group of people that chose to be in life to be a pain to others [...] An ugly mistyping there completely changed the mean

Re: Uninstall

2015-08-04 Thread Mario Figueiredo
On Tue, Aug 4, 2015 at 11:06 PM, Ned Batchelder wrote: > > On Tuesday, August 4, 2015 at 2:32:16 PM UTC-4, sohca...@gmail.com wrote: > > milos: "You can't uninstall Python because it will break things" > > Grant: "Actually, you CAN uninstall Python, but it will break things" > > > > I really fucki

Re: Uninstall

2015-08-04 Thread Mario Figueiredo
On Tue, Aug 4, 2015 at 9:01 PM, Mark Lawrence wrote: > On 04/08/2015 19:31, sohcahto...@gmail.com wrote: > >> On Tuesday, August 4, 2015 at 7:29:29 AM UTC-7, Grant Edwards wrote: >> >>> On 2015-08-04, milos zorica wrote: >>> >>> you can't fully uninstall python from OSX, linux, BSD as there are

Re: Pandas SQL Update

2015-06-16 Thread Mario R. Osorio
You are not specifying how are you doing the comparison, but here is my 2 cents: Import the foxpro tables into the MySQL database and then you'll be able to do your update in a single SQL statement, which, even for that many records would take some only a few seconds, then delete th imported da

Re:

2015-05-29 Thread Mario R. Osorio
?Quien es Usted y por que pregunta? Dtb/Gby === Mario R. Osorio “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford On Fri, May 29, 2015 at 1:33 AM, Laura Creighton wrote: > Sabe usted acerca de estas páginas? > https://mail.python.org/m

Re:

2015-05-28 Thread Mario R. Osorio
Chris. Este grupo es en Ingles. La verdad no se si existen grupos en español, pero juraria que si. Entiendo que quieres enseñarle python a tu hijo. Aca te envio algunos recursos. Espero que te sirvan: https://silvercorp.wordpress.com/2012/05/27/pasos-de-instalacion-de-python-en-windows/ http:/

Re: Best approach to create humongous amount of files

2015-05-21 Thread Mario R. Osorio
On Wednesday, May 20, 2015 at 2:09:59 PM UTC-4, Denis McMahon wrote: > On Wed, 20 May 2015 17:14:15 +0530, Parul Mogra wrote: > > > Hello everyone, > > My objective is to create large amount of data files (say a million > > *.json files), using a pre-existing template file (*.json). Each file > >

Re: Slices time complexity

2015-05-20 Thread Mario Figueiredo
On Wed, 20 May 2015 21:47:46 +0100, Mark Lawrence wrote: >Please provide the figures to back up this claim. Nothing personal but >we've had problems with the RUE (amongst others) making nonsensical >claims, please don't take us down that path, thank you. Alright. My apologies. This answer of

Re: Slices time complexity

2015-05-20 Thread Mario Figueiredo
On Wed, 20 May 2015 03:07:03 +1000, Steven D'Aprano wrote: >Yes, a slice can be expensive, if you have (say) a ten billion element list, >and take a slice list[1:]. Since nothing seems to surprise you and you seem so adamant on calling anyone being surprised by it, maybe I will surprise you if y

Re: Slices time complexity

2015-05-18 Thread Mario Figueiredo
On Mon, 18 May 2015 13:49:45 -0600, Ian Kelly wrote: >> Other languages implement slices. I'm currently being faced with a Go >> snippet that mirrors the exact code above and it does run in linear >> time. >> >> Is there any reason why Python 3.4 implementation of slices cannot be >> a near const

Re: Slices time complexity

2015-05-18 Thread Mario Figueiredo
On Tue, 19 May 2015 05:36:44 +1000, Chris Angelico wrote: >What's the point of optimizing slicing to allow you to use a poor >algorithm, instead of fixing your algorithm? > Chris, thank you for your input. But the code isn't really the question, is it? It's just an example. It was being used ea

Slices time complexity

2015-05-18 Thread Mario Figueiredo
I'd like to understand what I'm being told about slices in https://wiki.python.org/moin/TimeComplexity Particularly, what's a 'del slice' and a 'set slice' and whether this information pertains to both CPython 2.7 and 3.4. >From the above link it seems slices work in linear time on all cases. And

Re: [Matplotlib] Ploting an exponential distribution frequency curve

2015-04-26 Thread Mario Figueiredo
On Sun, 26 Apr 2015 18:55:27 + (UTC), Denis McMahon wrote: >The first thing you need to do is create a small self contained example >of your problem. > >State the problem: Plot does not create the output you expect. > >Give an example: > >plot( [1,11], [5,5] ) > >Explain what you expect the

Re: [Matplotlib] Ploting an exponential distribution frequency curve

2015-04-26 Thread Mario Figueiredo
On Sun, 26 Apr 2015 11:17:07 +0100, Dave Farrance wrote: > >Moving average. Try: > >def movingaverage(interval, window_size): >window= numpy.ones(int(window_size))/float(window_size) >return numpy.convolve(interval, window, 'same') > >y_av = movingaverage(y,10) > >Note that you'd get prob

Re: [Matplotlib] Ploting an exponential distribution frequency curve

2015-04-25 Thread Mario Figueiredo
On Sat, 25 Apr 2015 23:12:19 + (UTC), Denis McMahon wrote: >Sorry, but given a choice of 5 plot methods in matplotlib and no hint as >to which one you're calling, I'm not inclined to go and look at the >arguments of all of them. There's actually around 8 I think. The individual graphs type

Re: [Matplotlib] Ploting an exponential distribution frequency curve

2015-04-25 Thread Mario Figueiredo
Ok. Ermm, it seems I needed to ask to finally have an epiphany. The problem is that defaultdict is unordered. Once I get the data ordered, I can finally plot the curve. Although this presents another problem... import decimal from random import expovariate from collections import defaultdict deci

Re: [Matplotlib] Ploting an exponential distribution frequency curve

2015-04-25 Thread Mario Figueiredo
On Sat, 25 Apr 2015 23:33:10 +0100, Mario Figueiredo wrote: > >Trying to plot this data into a frequency curve is proving too >challenging and I just can't understand why. > >plot(list(results.keys()), list(results.values())) > The above should read: results = ge

[Matplotlib] Ploting an exponential distribution frequency curve

2015-04-25 Thread Mario Figueiredo
I'm trying to plot the curve of an exponential distribution without much success. I'm missing something very basic I feel, but just can't figure it out after numerous tries, so I'm turning out to you. This is the function generating the frequency of individual outcomes: import decimal fro

Re: Python 3 success story

2015-03-30 Thread Mario Figueiredo
On Mon, 30 Mar 2015 19:28:16 -0400, Terry Reedy wrote: > >So I suggested going ahead and testing PyBrain by using it. This >appears to have worked out well. I believe the only 2-3 issue she ran >into was a '/' that needed to become '//', that either 2to3 or I missed >in the initial conversion

Re: Python 2/3 versus Perl 5/6

2015-03-28 Thread Mario Figueiredo
On Sat, 28 Mar 2015 21:32:31 +1100, Steven D'Aprano wrote: >The famous Perl coder Allison Randal writes about why Perl is not dead (it's >just pining for the fjords *wink* ) and contrasts the Perl 5/6 split to >Python 2/3: A shame Allison doesn't frequent these groups. I would have a few questio

Re: Proposal for new minor syntax

2015-03-28 Thread Mario Figueiredo
On Sat, 28 Mar 2015 13:38:20 +, BartC wrote: > >(I'm not sure how this all applies to the loop_node.next example, but >even here I don't count the "." as an operator, but syntax. Neiter the language. The dot symbol is a delimiter in the python grammar. Not an operator. And also defined as a

Re: Proposal for new minor syntax

2015-03-27 Thread Mario Figueiredo
On Sat, 28 Mar 2015 10:39:04 +1100, Ben Finney wrote: >Jamie Willis writes: > >> This could be written as: >> >> hello = "hello world " >> hello .= strip() > >?1, “.=” is visually too similar to “=”. can't be much worse than hello = "hello world", I think the dot next to

Re: test1

2015-03-26 Thread Mario Figueiredo
On Thu, 26 Mar 2015 18:56:25 -0700 (PDT), Tiglath Suriol wrote: > >How disappointing, I was expecting something worth opposing. > And that's bad? Successfully opposing a troll is like getting a medal for winning an argument with Spencer Pratt. Delusional pricks like you are only worth the 2 or

Re: Cannot Uninstall 3.4

2015-03-26 Thread Mario Figueiredo
On Thu, 26 Mar 2015 18:52:41 -0500, T Younger wrote: >I have 3.4.1 (8/14) and replaced it with 3.4.2 (12/14) >Neither of these uninstalled or I do not believe even had the option. > >I now wanted to update to 3.4.3 and the uninstall fails, provided the >message that the installer is missing a pro

Re: test1

2015-03-26 Thread Mario Figueiredo
On Thu, 26 Mar 2015 14:06:28 -0700 (PDT), marcuslom...@gmail.com wrote: > >I posted two test messages containing code. They are still there, > are you blind as well as dumb? > >Your post is also off-topic, so what are you whining about, girl? > >You can ignore my posts almost effortlessly, the

Re: Fwd: test1

2015-03-26 Thread Mario Figueiredo
On Thu, 26 Mar 2015 13:58:36 -0700 (PDT), marcuslom...@gmail.com wrote: >I just needed to save some code and there was no email at hand > LOL. What an imbecile. You gotta love trolls sometimes. They exist with the sole purpose to make you feel good about yourself. -- https://mail.python.org/m

Re: module attributes and docstrings

2015-03-26 Thread Mario Figueiredo
On Tue, 24 Mar 2015 15:33:41 -0400, Terry Reedy wrote: > >You have discovered one of advantages of a def statement over a >name=lambda assignment statement. In Python, there is no good reason to >use the latter form and PEP 8 specifically discourages it: "Always use a >def statement instead o

Re: module attributes and docstrings

2015-03-26 Thread Mario Figueiredo
Sorry for the late reply. We experienced a 3 day blackout following one of the most amazing thunderstorms I've witnessed in my life. On Tue, 24 Mar 2015 22:49:49 +1100, Steven D'Aprano wrote: >On Tue, 24 Mar 2015 07:55 pm, Mario Figueiredo wrote: > >> Reading PEP

module attributes and docstrings

2015-03-24 Thread Mario Figueiredo
Reading PEP 257 and 258 I got the impression that I could document module attributes and these would be available in the __doc__ attribute of the object. So things like the one below are something I got used to do, but that don't work after all, as I learned today: value_factory = lambda _, r

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

2015-03-20 Thread Mario Figueiredo
On Fri, 20 Mar 2015 15:59:01 +0100, Mario Figueiredo wrote: > >Ah. So you are on the Python 3 unicode support sucks bandwagon too? > >Bet you guys have a whole lot of fun there. Rave parties, trashing, >getting mad at something. Sounds fun. > >Over here, on the Python 3 un

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

2015-03-20 Thread Mario Figueiredo
On Fri, 20 Mar 2015 02:40:26 -0700 (PDT), wxjmfa...@gmail.com wrote: > >Python 3.x is excellent. >Probably, the best language to show a >poor and buggy Unicode implementation >(Character Encoding Model). > >When I think other computer languages or >Unicode related tools are all doing wrong. >That's

Re: Python 2 to 3 conversion - embrace the pain

2015-03-19 Thread Mario Figueiredo
On Thu, 19 Mar 2015 22:03:02 -0400, Dennis Lee Bieber wrote: >On Thu, 19 Mar 2015 16:23:04 -0700, Paul Rubin >declaimed the following: > >>Steven D'Aprano writes: >> >>> Anyone remember the big backwards incompatible changes made to Visual >>> Basic? How long did that take to settle down after

Re: Python 2 to 3 conversion - embrace the pain

2015-03-17 Thread Mario Figueiredo
On Tue, 17 Mar 2015 04:36:01 +, Mark Lawrence wrote: > >Of course we could avoid all of these problems if we were to bring back >the mainframe or mini and the dumb terminal. > >Take cover, incoming :) No kidding. Installing only the software you coded (or from source) may be a little too mu

Re: Python 2 to 3 conversion - embrace the pain

2015-03-17 Thread Mario Figueiredo
On Tue, 17 Mar 2015 22:26:58 +1100, Steven D'Aprano wrote: > >> >> Can you give an example? I wouldn't count things like gets, which >> aren't as much changes in the language, as recognition that using it was >> buggy from the start. > >That's exactly the point. `gets` is dangerous and needs to

Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Mario Figueiredo
On Tue, 17 Mar 2015 14:42:42 +1100, Ben Finney wrote: >Mario Figueiredo writes: > >> On Tue, 17 Mar 2015 09:02:38 +1100, Chris Angelico >> wrote: >> > >> >Imagine you need a PostgreSQL database for your Python application - >> >which also means you

Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Mario Figueiredo
On Tue, 17 Mar 2015 14:49:36 +1100, Chris Angelico wrote: > >The simpler you can make those instructions, the easier it is for >people to use your program. So on Windows, that probably means you >have to bundle everything into a big fat .exe or .msi installer, which >is what leads to DLL Hell whe

Re: generator/coroutine terminology

2015-03-16 Thread Mario Figueiredo
On Mon, 16 Mar 2015 19:52:59 -0700 (PDT), Rustom Mody wrote: > >When we go from 'simple-generators' to coroutine-generators there seem to be >bigger conceptual problems and implementation-gaffes. >Quite frankly I hardly understand this part. There's a line after which terminology just becomes pe

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

2015-03-16 Thread Mario Figueiredo
On Mon, 16 Mar 2015 21:05:03 -0600, Michael Torrie wrote: >On 03/16/2015 09:01 PM, Mark Lawrence wrote: >> Reading this makes me realise how lucky I am not having to worry about >> such issues. > >How so? Speaking for myself (I know you didn't ask me) what you call the "dismal world of windows"

Re: Python 2 to 3 conversion - embrace the pain

2015-03-16 Thread Mario Figueiredo
On Tue, 17 Mar 2015 09:02:38 +1100, Chris Angelico wrote: > >Imagine you need a >PostgreSQL database for your Python application - which also means you >need psycopg2, of course. How do you go about writing installation >instructions? > >* WINDOWS * >1) Install the latest Python 3 from https://www

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Mario Figueiredo
On Sun, 15 Mar 2015 19:43:38 -0400, Roy Smith wrote: > >The big problem continues to be the legacy projects. People made >decisions years ago about what packages to use, and those decisions are >hard to get away from. There is a lot of production code out there >which still uses third-party

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Mario Figueiredo
On Sun, 15 Mar 2015 12:05:21 -0700, John Nagle wrote: >On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: > >Some of the bugs I listed are so easy to hit that I suspect those >packages aren't used much. Those bugs should have been found years >ago. Fixed, even. I shouldn't be discovering them in

Re: Code hosting providers

2015-03-13 Thread Mario Figueiredo
On Fri, 13 Mar 2015 23:13:17 -0400, Gene Heskett wrote: > >> >> That's taking things too far. And when people speak of hosting your >> own server, they don't necessarily mean hosting in your home computer. >> Speaking for myself, I refuse to collaborate on any project that is >> hosted on some dud

Re: Code hosting providers

2015-03-13 Thread Mario Figueiredo
On Fri, 13 Mar 2015 19:38:09 -0400, Gene Heskett wrote: > >Running your own server is a piece of cake, and if I, at 80 yo, can do >it, I don't see a single reason you can't do likewise. The code I >write, for what is called a legacy computer, is just one of the things I >share at the link in

Re: Code hosting providers (was: Google Code Shutting Down)

2015-03-13 Thread Mario Figueiredo
On Fri, 13 Mar 2015 12:37:30 +1100, Ben Finney wrote: > >Any service which doesn't run their service on free software is one to >avoid http://mako.cc/writing/hill-free_tools.html>; free software >projects need free tools to remain that way. > > >GitLab https://about.gitlab.com/> is a good option:

Re: Google Code Shutting Down

2015-03-12 Thread Mario Figueiredo
On Thu, 12 Mar 2015 15:26:08 -0700 (PDT), Josh English wrote: >I've been hosting Python projects on Google Code, and they're shutting down. > >Damn. > >What is the recommended replacement for Code Hosting that works reliably with >PyPi and pip? Essentially anywhere where either Git, Bazaar, Mer

Re: __new__() does not return anything, on singletong pattern

2015-03-12 Thread Mario Figueiredo
On Thu, 12 Mar 2015 22:04:30 +1100, Steven D'Aprano wrote: > >3-4 seconds to instantiate is a bit worrying, but you should look at >improving the efficiency of loading a map rather than insisting that there >should be only one map instance. Particularly in the map editor, what if >the user wants

Re: __new__() does not return anything, on singletong pattern

2015-03-12 Thread Mario Figueiredo
On Thu, 12 Mar 2015 21:41:16 +1300, Gregory Ewing wrote: >Mario Figueiredo wrote: >> But PyCharm flags the assignment >> with a warning telling me that generate() does not return anything and >> the I lose code completion on the mmap variable. > >My guess is t

Re: __new__() does not return anything, on singletong pattern

2015-03-12 Thread Mario Figueiredo
On Thu, 12 Mar 2015 22:29:24 +1100, Steven D'Aprano wrote: > >I would have a loadfile() method which takes a filename on disk, opens the >file and passes the contents (or the open file object) to another method, >load() to do the actual work: > > >class Map: >def __new__(cls, width, height, f

Re: __new__() does not return anything, on singletong pattern

2015-03-12 Thread Mario Figueiredo
On Thu, 12 Mar 2015 21:40:03 +1300, Gregory Ewing wrote: >Mario Figueiredo wrote: > >> A different application, a map editor, needs to also instantiate an >> object of the class Map. But in this case the map needs to either be >> empty (if the user wants to create a new

Re: __new__() does not return anything, on singletong pattern

2015-03-12 Thread Mario Figueiredo
On Thu, 12 Mar 2015 21:38:00 +1300, Gregory Ewing wrote: > >I would just provide a function: > >_map = None > >def get_map(): >global _map >if _map is None: > _map = Map() >return _map > >and document the fact that you shouldn't call Map() >directly. Oh, you are so right! Been

Re: __new__() does not return anything, on singletong pattern

2015-03-12 Thread Mario Figueiredo
On Wed, 11 Mar 2015 16:47:32 -0700, Ethan Furman wrote: > >You're code is good. Thanks for taking a weight off my shoulder. > > The only question is if you /really/ need a singleton -- and only > you can answer that (although plenty of folks will tell you you > don't ;) . Yeah. I debated that

Re: __new__() does not return anything, on singletong pattern

2015-03-12 Thread Mario Figueiredo
On Thu, 12 Mar 2015 16:31:12 +1100, Steven D'Aprano wrote: >Mario Figueiredo wrote: > > >If this is supposed to be a singleton, you can't create more instances. The >point of a singleton that there is only one instance (or perhaps a small >number, two or thr

__new__() does not return anything, on singletong pattern

2015-03-11 Thread Mario Figueiredo
I'm fairly new to Python, so I don't know if the following is me abusing the programming language idioms, or simply a mistake of my IDE code inspection routine. I have a singleton Map class which is defined like so: class Map: _instance = None def __new__(cls): if Map._instan

Re: [Python 3.4] Rationale for readonly slice data attributes

2015-03-07 Thread Mario Figueiredo
On Thu, 5 Mar 2015 23:36:47 -0700, Ian Kelly wrote: > >I'm not following what it is that you want to accomplish in this >example by modifying the slice object. Yeah. That code doesn't show anything. It was just meant to illustrate what I was doing, not how. But in retrospect it just made my post

  1   2   3   4   >