Re: Reduce waiting queue at supermarket from Corona with Python-Webapp
On 16/03/2020 21:55, Barry Scott wrote: Am I right in thinking that you are wondering how to help people visit the super market in a quite time to help with the social distancing for COVID-19 reasons? In which case all the app needs to do is tell people that the supermarket A has great stocks of toilet paper, pasta, dried milk, beans etc. so that the users flock to supermarket A to panic buy and fight over the stock. Meanwhile you can visit supermarket B at the same time which will be quiet. You get a safer shopping trip. Or have I got this wrong? -- https://mail.python.org/mailman/listinfo/python-list
Re: Tkinter layout designer
I don't claim to be an expert on Windows Forms, I inherited the support role and have added the odd widget over the years. The apps work but scream that their UI has been incrementally arrived at by someone who was just tinkering. :-) Thanks for the suggestions, I'll give Page a try. -- https://mail.python.org/mailman/listinfo/python-list
Tkinter layout designer
Can anyone recommend a graphic layout designer for Tkinter programs. I have a number of older C# Windows Forms apps that need porting so they can run on Linux and Windows and this is the chance to re-write them in Python. However, after using the forms designer in Visual Studio, manually coding up the widget positions etc. is a real pain in the backside. So please, recommendations for a designer that is usable and functional please to save me working through everything a Google search throws up. Thanks, Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: Python, Be Bold!
On 02/01/2020 09:41, Abdur-Rahmaan Janhangeer wrote: i wonder who uses windows I do. The man pays me well to write software for Windows and Linux and I don't care which . It's just an OS, write the code to do what the spec says. Not a difficult concept really. apt-get works fine for me on Linux. On Windows I currently have Python 3.7.3 which comes with a nice installer and uninstalls via the OS apps management. (i.e. it has an uninstaller somewhere). -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Resources related with web security
On 26/11/2019 21:35, Rob Gaddi wrote: On 11/26/19 12:41 PM, Grant Edwards wrote: On 2019-11-26, Joel Goldstick wrote: I'm thinking this is a troll or a turing machine experiment? Yea, many of the posts remind me of ELIZA. How do you feel about many of the posts remind you of ELIZA? +1 LOL! -- https://mail.python.org/mailman/listinfo/python-list
Re: Handle foreign character web input
On 30/06/2019 15:04, Chris Angelico wrote: ut it looks like our old "Py3's Unicode is buggy" troll is back Yes... check the from field in the posts for confirmation. But it's obvious from the message content anyway. -- https://mail.python.org/mailman/listinfo/python-list
Re: Can my python program send me a text message?
On 19/03/2019 18:23, Steve wrote: I have a program that triggers a reminder timer. When that timer is done, I would like to receive a text message on my phone to tell me that it is time to reset the experiment. Can this be done using Python? Steve Yes. After playing with assorted "free" systems I gave up being a cheapskate and got a paid account with a telephony as a service provider. -- https://mail.python.org/mailman/listinfo/python-list
Re: OT - need help with PHP
On 01/02/2019 15:36, Chris Angelico wrote: On Sat, Feb 2, 2019 at 2:31 AM Bob Gailer wrote: Trying to setup PHP on Windows 10 using the curl extension to run standalone. Why? I am trying to use an API where the only coding examples are written in PHP. My goal is to use python, and the place where I'm stuck is: the examples use Curl to post requests; my attempts to translate this to urllib. request have failed. If it's an HTTP-based API, it's probably easier to translate the examples to use the 'requests' library than to first set up PHP and then translate everything to urllib after that. http://docs.python-requests.org/en/master/ Feel free to post questions here of the form "here's an example of doing something in PHP - how can I do that in Python", as that would be 100% on topic. ChrisA +1 for using requests. -- https://mail.python.org/mailman/listinfo/python-list
Re: Problem in Installing version 3.7.2(64 bit)
On 29/01/2019 00:48, Ian Clark wrote: back in my day we had to show our professors errors on punchcard! and we liked it On Sun, Jan 27, 2019 at 11:51 AM Terry Reedy wrote: On 1/26/2019 6:24 AM, Vrinda Bansal wrote: Dear Sir/Madam, After Installation of the version 3.7.2(64 bit) in Windows 8 when I run the program it gives an error. Screenshot of the error is attached below. Nope. This is text only mail list. Images are tossed. You must copy and paste. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list In which case you should know not to top punch your reply! -- https://mail.python.org/mailman/listinfo/python-list
Re: Pythonic Y2K
On 17/01/2019 02:34, Avi Gross wrote: but all it took was to set the clock forward on a test system and look for anomalies. You're new to programming or you're not very old and certainly haven't run much pre-Y2k software. ;-) Issues that needed solving: 2 digits only for the date use of 99 or 00 in the year for "magic" purposes software that didn't know 2000 was a leap year One machine I had to update (all in Z80 assembler) had the date in the format DD-MMM-199Y, i.e. only the units year could be changed. There was a comment in the date code saying ; marketing say this machine will stop being sold in 1993 so there ; is no need to support anything other than 1990-1999 in the year It was still being sold in 2002! The reason there were so few Y2K issues was that things were fixed in advance. And yes, there was also lots of stupidity and hysterics from people who didn't know. One major change, after people started fixing this in issue in earnest, dates started to always include the century digits. Now get off my lawn! :-) -- https://mail.python.org/mailman/listinfo/python-list
Re: From Ben Dean about C++
On 02/01/2019 04:29, Stefan Ram wrote: A slide from Ben Deane's talk about C++: ---. | | | ODD THING #1: ASSIGNMENTS ARE EXPRESSIONS | | | | Assignment as an expression is a historical choice. | | It's doing us no favours today. | | Assignment should be a statement. | | | '---' "Easy To Use, Hard to Misuse: Declarative Style In C++" (talk), Ben Deane (2018-05) (Yes, he wrote "favours" in this way.) Probably because he speaks English and not American. -- https://mail.python.org/mailman/listinfo/python-list
Re: how to match list members in py3.x
On 25/11/2018 16:49, Muhammad Rizwan wrote: IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART ASS. *plonk* -- https://mail.python.org/mailman/listinfo/python-list
Re: question on the 'calendar' function
On 21/11/2018 12:27, o1bigtenor wrote: [Stuff clipped] What I need is to be able to have more than one calendar year options and this function seems to be limited to work with a maximum of only one year at a time. If I not reading the documentation correctly - - - please advise. (Thanking you for your generous assistance in the foregoing!) Regards You need to write a program (in Python) to do that using the methods in the calendar module. HINT: print out the calendar for each month you are interested in and use a loop of some kind to generate the year/month data to feed to calendar methods from a starting and stopping date. There will be many other ways of doing this but a solution that works, even if ugly, is better than no solution. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to change '\\' to '\'
On 01/10/2018 10:19, Jach Fong wrote: Hmmm...strange, I didn't see Rick's mail:-( Sure the forward slash is better, not to cause this confusion. But I am curious, since when, I mean, since which version Windows start to accept forward slash? First, stop top posting. Second, ISTR that all Windows NT versions and versions derived from the NT codebase support forward slash in pathnames given to functions. It may go back further, but anything derived from NT works. I can't remember which Windows command shells support it, probably PowerShell does. -- https://mail.python.org/mailman/listinfo/python-list
Re: don't quite understand mailing list
On 06/09/2018 21:06, Ethan Furman wrote: On 09/06/2018 12:42 PM, Reto Brunner wrote: What do you think the link, which is attached to every email you receive from the list, is for? Listinfo sounds very promising, doesn't it? And if you actually go to it you'll find: "To unsubscribe from Python-list, get a password reminder, or change your subscription options enter your subscription email address" So how about you try that? Reto, your response is inappropriate. If you can't be kind and/or respectful, let someone else respond. -- ~Ethan~ Seriously if someone has a swanky signature advertising that they are a rocket scientist viz. "Software Contractor, Missiles and Fire Control" and yet doesn't know what a language runtime is or how mailing lists work then they are asking for that kind of reply. Just saying. -- https://mail.python.org/mailman/listinfo/python-list
Re: EXTERNAL: OSError: [Errno 48] Address already in use
On 02/07/2018 18:51, T Berger wrote: On Monday, July 2, 2018 at 1:22:59 PM UTC-4, T Berger wrote: On Saturday, June 30, 2018 at 6:02:06 PM UTC-4, T Berger wrote: On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: The key point here from Jim is "simultaneously". Are you properly shutting down the Flask instance in IDLE before running from Terminal, and vice versa? Cameron, I try every option to quit either program, but they don't work. Or I should say, they mostly don't work. Once in a while they do. The one option which works (which is not a feasible option) is rebooting my Mac (actually that might not work either. I think I got the error message again this morning when I rebooted). Otherwise both will try to use the same local port and There Can Be Only One. Do you need to run from both environments at the same time? I'd have thought not, which also leads me to: why are you flicking from IDLE to Terminal? I would have imagined using one or the other normally, not both. It isn't wrong to use both, just surprising. I'm working from a Python manual. I created the webapp in IDLE, and test it in Terminal, per the instructions in the manual. I use IDLE to edit my program, and then test it in terminal. When I go from one to the other, I get the error message. IDLE has a keyboard shortcut for quitting the shell—Cntl + C—but it doesn't work. Neither does restarting the shell. Neither does entering the kill command line, not in IDLE or terminal. Do you have any other suggestions? I'm going to email the writer. He doesn't mention how to deal with problems that might arise from working with two programs at the same time. Maybe Cntl+C should do it, but in my case it doesn't. Tamara Cameron, I'd like to add screenshots of my idle and terminal windows. Perhaps this would shed light on my this issue. This is my last window in terminal: [Restored Jul 2, 2018, 1:12:09 PM] Last login: Mon Jul 2 10:58:54 on ttys000 Restored session: Mon Jul 2 11:04:19 EDT 2018 192:Webapp TamaraB$ exit logout Saving session... ...saving history...truncating history files... ...completed. [Process completed] To me this looks like the program running in terminal has been killed. Now this is my idle shell: RESTART: /Users/TamaraB/Desktop/Webapp/vsearch4web.py * Serving Flask app "vsearch4web" (lazy loading) * Environment: production [31m WARNING: Do not use the development server in a production environment. [0m [2m Use a production WSGI server instead. [0m * Debug mode: on Traceback (most recent call last): File "/Users/TamaraB/Desktop/Webapp/vsearch4web.py", line 26, in app.run(debug=True) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flask/app.py", line 943, in run run_simple(host, port, self, **options) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/werkzeug/serving.py", line 795, in run_simple s.bind(get_sockaddr(hostname, port, address_family)) OSError: [Errno 48] Address already in use Why should there be an error in idle? It's the only app running. I emailed the writer of the manual I'm using, but who knows if, or when, he'll reply. So any help you provide would be great. Thanks, Tamara Addendum I forgot to add that I get the error message even after I exit from idle. Exiting from idle is supposed to kill the running program. That is what the the confirming dialog box explicitly states. Tamara, read something on how TCP sockets work. Even if you close the program that created the socket, it doesn't mean the port in use will close immediately. It all depends on the state the socket was in. There is a process of exchanging info that sockets go through when closing to make sure both ends know the socket has closed. This can take time to complete. ISTR the default is 120secs. You can get past the wait by ensuring you close the socket when no connections are pending. Then you can use that port immediately. If there is something active on the socket, closing the socket puts you into TIME_WAIT and you cannot rebind to that socket till the timeout is over. Or you can set SO_REUSEADDR on the socket after you create it but before you use it. This allows another program to immediately use the port as soon as you call close on the socket. Only 1 program can use the port still, but this option allows you to bypass the wait state. This info has already been given in this thread but maybe you missed it or maybe didn't understand it. Please read up some general background information on sockets programming because it will make your programming life easier when you know what is meant to happen. -- https://mail.python.org/mailman/listinfo/python-list
Re: Feeding the trolls
To: Steven D'Aprano From: "mm0fmf" To: Steven D'Aprano From: mm0fmf On 22/06/2018 00:51, Steven D'Aprano wrote: > On Thu, 21 Jun 2018 21:49:15 +0100, mm0fmf wrote: > > [snip unnecessary quoting] >> Design requirements for python newsreader client: >> >> 1. Block all top posters > > I think it would be far more useful to block bottom-posters who don't > snip irrelevant quoted text. > > > But the irony of being just as bad a post by quoting all the redundant text would be lost if that was cut and it just bitched about top posting. -+- BBBS/Li6 v4.10 Toy-3 + Origin: Prism bbs (1:261/38) --- BBBS/Li6 v4.10 Toy-3 * Origin: Prism bbs (1:261/38) -- https://mail.python.org/mailman/listinfo/python-list
Re: Feeding the trolls
To: Steven D'Aprano From: mm0fmf On 22/06/2018 00:51, Steven D'Aprano wrote: > On Thu, 21 Jun 2018 21:49:15 +0100, mm0fmf wrote: > > [snip unnecessary quoting] >> Design requirements for python newsreader client: >> >> 1. Block all top posters > > I think it would be far more useful to block bottom-posters who don't > snip irrelevant quoted text. > > > But the irony of being just as bad a post by quoting all the redundant text would be lost if that was cut and it just bitched about top posting. --- BBBS/Li6 v4.10 Toy-3 * Origin: Prism bbs (1:261/38) -- https://mail.python.org/mailman/listinfo/python-list
Re: Feeding the trolls
On 22/06/2018 00:51, Steven D'Aprano wrote: On Thu, 21 Jun 2018 21:49:15 +0100, mm0fmf wrote: [snip unnecessary quoting] Design requirements for python newsreader client: 1. Block all top posters I think it would be far more useful to block bottom-posters who don't snip irrelevant quoted text. But the irony of being just as bad a post by quoting all the redundant text would be lost if that was cut and it just bitched about top posting. -- https://mail.python.org/mailman/listinfo/python-list
Re: Feeding the trolls
On 21/06/2018 05:02, Abdur-Rahmaan Janhangeer wrote: by building a custom py-based mail client maybe ^^_ Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Wed, 20 Jun 2018, 17:18 D'Arcy Cain, wrote: On 2018-06-20 08:10 AM, Tim Golden wrote: [... snip discussions about Bart's language ...] Wearing my moderator hat Can we take the "Bart's language vs Python Show" to some other forum, please? We've already gone over this ground again and again and it isn't helping the signal-to-noise ratio here on the Python list / comp.lang.python Thank you. Many of us have blocked rick and bart years ago. If you are just going to feed the trolls we have to see their nonsense anyway. Just email them privately if you really feel the need to vent. One of these days I will have to figure out how to block replies to the trolls as well. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list Design requirements for python newsreader client: 1. Block all top posters -- https://mail.python.org/mailman/listinfo/python-list
Re: Best site
A. Because it spoils the flow. On 16/02/2018 20:07, Irving Duran wrote: Besides Google for sure. I liked www.codecademy.com Thank you, Irving Duran On 02/16/2018 11:53 AM, mm0fmf wrote: On 16/02/2018 16:04, dsujit2...@gmail.com wrote: which is the best site to learn python for data science. Google. Q. Why shouldn't I top post on a newsgroup? -- https://mail.python.org/mailman/listinfo/python-list
Re: Best site
On 16/02/2018 16:04, dsujit2...@gmail.com wrote: which is the best site to learn python for data science. Google. -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
On 09/02/2018 21:05, codewiz...@gmail.com wrote: On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote: codew...@gmail.com wrote: On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote: [snip] Those of us who do not use google-groups may not notice the loss of the google groupies. I use GG to read comp.lang.python because of the following combination of factors. I would definitely be happier if there was another way to do this, so that I wouldn't have to wade through lots of spam. - I read it from both home and work. - I can't install any additional software at work. - There is no newsgroup reader software available at work. - GG tracks read/unread status of every post. This is shared between work and home through my Google account. - When I (very rarely) post from work, I can't do it by email, since outgoing email is blocked. Alternative approach, what I do:- Run a text mode (but very capable and mouse aware) newsreader on my home system, read news locally using that. Use ssh (is that available at worK?) to connect from work to home and run the same newsreader in the same environment. If you can't even ssh from work then you can always use an 'ssh from the web' app from your wenb browser. The newsreader I use is tin by the way. -- Chris Green · ssh would be even a bigger problem here. As I mentioned, I can't even email from work to the outside! All web sites that provide remote connectivity tools are blocked. Regards, Igor. If they take such restrictive practices then maybe should consider *just* doing your job when at work and leave the browsing to your own time? -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
On 08/02/2018 17:36, Gilmeh Serda wrote: On Sat, 03 Feb 2018 04:33:36 +1200, breamoreboy wrote: When trying to access comp.lang.idl-pvwave, a message is now displayed, stating that the group owner needs to remove the spam, and can then apply to Google in order to have access reinstated. Just as I have always suspected: Google are run by idiots! But very, very, very rich idiots. -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups
On 01/02/2018 17:15, Chris Angelico wrote: On Fri, Feb 2, 2018 at 4:01 AM, superchromix wrote: Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, started receiving spam messages several months ago. Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups. When trying to access comp.lang.idl-pvwave, a message is now displayed, stating that the group owner needs to remove the spam, and can then apply to Google in order to have access reinstated. However, old public Usenet groups like this have no owner. The comp.lang.idl-pvwave group is more than 20 years old. Hence, there is no way to unblock the group. This is a serious problem, since the entire collection of postings going back many years has been blocked, no just the spam. This resource is frequently used by IDL programmers. Seeing the spam postings in this newsgroup, I expect something similar may happen to comp.lang.python, soon. Pot, meet Kettle. Most of our worst spam comes FROM the Google Groups bridge. If they cut the connection, I would not be sorry. ^^ This. This a googol times! -- https://mail.python.org/mailman/listinfo/python-list
Re: Goto (Posting On Python-List Prohibited)
On 31/12/2017 17:01, breamore...@gmail.com wrote: I would use functions every time as a modern compiler can inline them This Further I've never once in 17 years of using Python been tearing my hair out over the lack of goto And this. (In my case only 6 years.) -- https://mail.python.org/mailman/listinfo/python-list
Re: Goto (Posting On Python-List Prohibited)
On 30/12/2017 14:41, bartc wrote: it looks a bit naff Understatement of 2017. -- https://mail.python.org/mailman/listinfo/python-list
Re: Goto
On 28/12/2017 22:38, Tim Chase wrote: On 2017-12-29 08:42, Ben Finney wrote: Duram writes: How to use goto in python? Step 0: what is goto in Python? Step 1: that's not something that exists in Python. So why are you asking how to use something that doesn't exist? so quick to shoot down a poor soul. http://entrian.com/goto/ Gives you both GOTO and COMEFROM ;-) -tkc This! An awful lot of my early C++, C# and Python programs resembled FORTRAN66, it took effort to learn the Zen of each language. Now I can continue to write FORTRAN66 style programs in Python and unlearn all the good stuff. Thank you. And remember, a good programmer can write FORTRAN66 programs in any language! -- https://mail.python.org/mailman/listinfo/python-list
Re: co-ordianate transformation with astropy
On 22/12/2017 21:36, hemanta phurailatpam wrote: I want to do co-ordinate transformation from earth-frame to equatorial frame. By entering date and time, I want to get RA(right ascension) and Dec(declination) wrt to equatorial frame. How do I do it? How would you do it by hand? -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues with beginning Django use
On 22/09/2017 19:50, Joey Steward wrote: Hello, I've been attempting to begin learning Django but have been having running Django and Python commands on windows. For example, when I run django-admin startproject mytestsite, I get the following error message django-admin : *The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,* *verify that the path is correct and try again.* *At line:1 char:1* + django-admin startproject mytestsite + + CategoryInfo : ObjectNotFound: (django-admin:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Just curious if anyone has encountered a similar problem and can give some advice on getting moving in the right direction. Thanks a lot! This is a repeat of your post of 20/9/2017. I cut and pasted your error message "django-admin : *The term 'django-admin' is not " into Google and the first hit was the fix to the problem. Pasting error messages into a Google search gives instant results. Posting to the list/newsgroup may give better, more personalised responses but you may have to wait sometime before anyone replies. -- https://mail.python.org/mailman/listinfo/python-list
Re: Old Man Yells At Cloud
On 16/09/2017 17:52, Dennis Lee Bieber wrote: On Sat, 16 Sep 2017 09:59:43 -0500, Tim Daneliuk declaimed the following: Well, the whole integer floor division thing years ago was the beginning of the end - Python was doomed ... Yes -- that would give me fits if I were using Python3 currently... Since so many of the languages I've learned over the past years use the concept integer / integer => integer_result Come to think of it -- wasn't there a post from someone (seems to expired or been filtered from my client) asking for help with some sorting program... I'm pretty sure the partitioning logic would croak on Python3 due to floating point results in the slice indices: pA = part[:n/2] pB = part[n/2:] What does 2to3 do when fed code involving division? I've only used it once and did good job on the code I fed it. But it would not have been too hard to manually convert the Python2 code in that case. -- https://mail.python.org/mailman/listinfo/python-list
Re: Syntax error for simple script
On 26/06/2017 17:41, ru...@yahoo.com wrote: On 06/26/2017 09:42 AM, Steve D'Aprano wrote: On Tue, 27 Jun 2017 01:16 am, Ben S. wrote: print mm + "/" + dd + "/" + + " " + hour + ":" + mi + ":" + ss ^ SyntaxError: Missing parentheses in call to 'print' Whats wrong? Did you read the error message? Missing parentheses in call to 'print' Is the message not clear enough? The call to print requires parentheses (round brackets), like all other functions. print(mm + "/" + dd + "/" + + " " + hour + ":" + mi + ":" + ss) If the error message isn't clear enough, what can we do to make it more clear? How about: In Python 2, 'print' was a statement and did not require parenthesis around its argument. In Python 3 'print' has been changed to a function and now, like all functions, requires parenthesis around its arguments: python 2: print arg1, arg2,... python 3: print (arg1, arg2,...) Did you seriously not understand how someone, reading a tutorial or book written for Python 2, might be confused when a specific simple syntax he/she was explicitly told works, doesn't work? Not everyone new to and starting to explore Python appreciates (?!) the major compatibility breaks that occurred between Py2 and Py3. One would expect that in such a situation, the new user would certainly question his/her code rather than something changed in Python. Or better than changing the message, how about leaving it alone and simply responding helpfully rather than snappily and condescending to inevitable confusion that surely must have been anticipated when the Python developers chose to make this change. It's no wonder that some people (often women) who don't like contention, find this list rather hostile. Sorry to victim blame but why can't people copy the error message into a search engine, such as Google, and see what the problem is themselves? The first page of results gives plenty of detail of the differences between Python 2 & 3 and this print issue with lots of explanations about print vs. print(). I'd only start asking questions on a newsgroup if I couldn't find explanations on the web or having read the explanations they were all telling me different things. YMMV -- https://mail.python.org/mailman/listinfo/python-list
Re: json to access using python
On 18/06/2017 20:34, breamore...@gmail.com wrote: On Sunday, June 18, 2017 at 7:50:10 PM UTC+1, Xristos Xristoou wrote: hello I have a json url and i want from this url to update my table in microsoft access,how to do that using python or some tool of microsoft access ? You need to do some research first. Then you run an editor and type some code in. Then you run the code. If it does not work and you do not understand why you then ask a question here. You might like to reference this http://www.catb.org/esr/faqs/smart-questions.html and this http://sscce.org/ first. Kindest regards. Mark Lawrence. Mark, I thought this guy was nymshift of Ferrous Cranium or whatever he was called. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to install Python package from source on Windows
On 16/05/2017 22:18, Chris Angelico wrote: On Wed, May 17, 2017 at 7:14 AM, bartc wrote: That PCbuild line is step 3 of Quick Start. You have to get past steps 1 and 2 first. It talks about something called Git; I don't know what that is or what I'm supposed to do with it, but it's a 35MB download. (Not that that is very big these days, but 35MB (compressed size and there may be more to come) suggests complexity that I don't want to get into.) It's 2017 and you're a programmer. Are you unfamiliar with source control, or just unfamiliar with git? Either way, you should look into correcting that. ChrisA I smell trolling rather than ignorance. -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues downloading python.
On 07/04/2017 15:57, Brandon Mace wrote: I have downloaded python onto a DELL laptop, but it will not run. I have tried to install it multiple times but each time it does not work so I try again. This time it has come up with a system error and that "The program can't start because api-ms-win-crt-runtime-[1-1-0.dlll is missing" What can I do to make the program run? Install the missing file. https://support.microsoft.com/en-us/kb/2999226 -- https://mail.python.org/mailman/listinfo/python-list
Re: Error installing python on Windows
On 24/02/2017 18:12, Irmen de Jong wrote: On 24-2-2017 12:18, Michelle Tan wrote: Hello all I am new to python. Trying to install Python and encountered this error message : "The program can't start because api-ms-win-crt-runtime-I1-1-0.dll is missing from your computer." Tried to repair and reinstall Python however i may have missed out some installation. What should I do to resolve this issue? Thanks for your help! Make sure your windows is up to date! That dll should be installed as part of one of the regular windows updates. Google may be able to tell you the specific KB number of the particular update. Irmen It always surprises me that people don't seem to cut & paste the error message into a search engine (such as Google) to see if it's a common issue. https://www.google.ch/search?q=api-ms-win-crt-runtime-I1-1-0.dll+is+missing That search returns a variety of pages explaining what the error is and how to fix it and took me under 15secs to get plenty of help. That is always going to be quicker than a newsgroup. I'd always search for initial help on error messages etc. on a search engine and come to places like this to discuss the problem in depth and detail if there was no help or I didn't understand what the answers meant. KB2999226 is the update that is missing. -- https://mail.python.org/mailman/listinfo/python-list
Re: Need reviews for my book on introductory python
On 27/01/2017 21:36, MRAB wrote: On 2017-01-27 21:18, mm0fmf wrote: On 27/01/2017 20:17, bob gailer wrote: On 1/25/2017 9:25 PM, Sandeep Nagar wrote: Hi, A few month ago I wrote a book on introductory python based on my experinces while teaching python to Bachelor students of engineering. It is now available in e-book and paperback format at Amazon. https://www.amazon.com/dp/1520153686 The book is written for beginners of python programming language and written in learn-by-doing manner. If some group members can review the same, it will be useful for myself to come up with an improved version. Who is the publisher of this book? I just took a look at the pages that can be viewed on Amazon. Many reactions. it is hard for me to write this, as it seems it would sound harsh, judgemental, unappreciative. But you did ask for a review, and this is my honest reaction. I find it hard to read a book written by a non-native speaker of English. I an constantly having to overlook what to me are spelling, grammatical and vocabulary errors. I HIGHLY recommend you find an editor who can fix these errors. Snap. I found it impossible to read and never got to the Python parts. It is not written in English. Most of the pronouns and conjunctions are missing. It looks like it has not been proof-read as words loose capitalisation, many are mis-spelt and grammar rules regarding plural cases and agreement are just ignored. "loose"? Don't you mean "lose"? (Or possible "lack"?) My spelling is not brilliant especially when typing live and so you have proved why books need proof-reading. In particular "lose" is what I meant. Python, the name of the language, is a proper noun and should be captialised. In the few pages I read, Python appears as "python" and "Python", randomly losing the capital letter. Lacking capitalisation would suggest to me that some or all words are consistently written without the capital letter such as always writing "united states of america". -- https://mail.python.org/mailman/listinfo/python-list
Re: Need reviews for my book on introductory python
On 27/01/2017 20:17, bob gailer wrote: On 1/25/2017 9:25 PM, Sandeep Nagar wrote: Hi, A few month ago I wrote a book on introductory python based on my experinces while teaching python to Bachelor students of engineering. It is now available in e-book and paperback format at Amazon. https://www.amazon.com/dp/1520153686 The book is written for beginners of python programming language and written in learn-by-doing manner. If some group members can review the same, it will be useful for myself to come up with an improved version. Who is the publisher of this book? I just took a look at the pages that can be viewed on Amazon. Many reactions. it is hard for me to write this, as it seems it would sound harsh, judgemental, unappreciative. But you did ask for a review, and this is my honest reaction. I find it hard to read a book written by a non-native speaker of English. I an constantly having to overlook what to me are spelling, grammatical and vocabulary errors. I HIGHLY recommend you find an editor who can fix these errors. Snap. I found it impossible to read and never got to the Python parts. It is not written in English. Most of the pronouns and conjunctions are missing. It looks like it has not been proof-read as words loose capitalisation, many are mis-spelt and grammar rules regarding plural cases and agreement are just ignored. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python
On 25/01/2017 14:15, murphyclara...@gmail.com wrote: Need help Can help, need money. -- https://mail.python.org/mailman/listinfo/python-list
Re: How coding in Python is bad for you
On 23/01/2017 21:04, Adam M wrote: On Monday, January 23, 2017 at 3:41:17 PM UTC-5, Jon Ribbens wrote: On 2017-01-23, alister wrote: On Tue, 24 Jan 2017 07:19:42 +1100, Chris Angelico wrote: I believe that's "bad for you" in the sense that chocolate is bad for you. It isn't. chocolate is a poison (lethal dose for a human approx 22lb) That's a meaningless statement. *Everything* is a poison in sufficient quantities. I think you need to calibrate your sarcasm filter ;-). By the way coffee is also dangerous - especially in 50lbs bags (when it hits you). What a way to go... 50lbs of coffee beans made into espresso and 22lbs of chocolate to eat with all those tiny cups. Yes, the article is clickbait which is why I delight in reading them with ad and script blockers turned up to maximum. -- https://mail.python.org/mailman/listinfo/python-list
OT: Re: learning and experimenting python.
On 31/12/2016 17:08, einstein1...@gmail.com wrote: We are not discussing here about English, But for python. Don't divert. Other wise someone thinks that I am doing this for getting more posts. Username einstein, asking bizarre questions, short responses with no included context. if this isn't trolling I'm a Dutchman. Tot ziens! p.s. Happy New Year to all on the nicest, most useful newsgroup still active on the net. -- https://mail.python.org/mailman/listinfo/python-list
Re: learning and experimenting python.
On 31/12/2016 15:46, Ian Kelly wrote: On Dec 31, 2016 1:48 AM, "mm0fmf" wrote: On 30/12/2016 17:50, einstein1...@gmail.com wrote: Hello everyone, I am the new comer and learner of python. I have a doubt that when I type python and press enter it shows a prompt like But why it is >>> ? Is there any special reason? Why it is not setted as @,& or any other special characters? "I have a doubt" is not the correct way to ask this kind of question in English. Doubt is used to mean lack of conviction or feeling of uncertainty so your question means "I feel uncertain that when I type Python the prompt will be " and from the further responses this is not what you mean. "Doubt" means "question" in Indian English. It's every bit as correct as using "chips" to mean "French fries". I could agree with you regarding "chips" but then we'd both be wrong. ;-) Other way round. Chips, meaning fried potato pieces as opposed to fried potato slices, were being made in the UK and Europe a long time before being named "French Fries" by Americans. "French Fries" are now made from reconsituted potato pulp extruded into shape as opposed to pieces of freshly cut potato. Although you do get US "French Fries" in the UK. UK chips are normally quite unlike "French Fries" served in US fast food style establishments. Typically on UK menus it will say "Fries" or "French Fries" if you are not getting chips. For the record, the best chips I've had come from The Netherlands, Belgium and Yorkishire, England in that order. -- https://mail.python.org/mailman/listinfo/python-list
Re: learning and experimenting python.
On 31/12/2016 15:27, Dennis Lee Bieber wrote: On Sat, 31 Dec 2016 12:04:57 +, mm0fmf declaimed the following: Though they do write road info upside down on the road surface, typically XING with PED underneath. I had to ask what XINGPED meant till my colleague driving said it was PEDXING, pedestrian crossing. Why write it the wrong way though? For those I've encountered with multiple lines of text, the lines are placed in the order one sees them. Yes, in a helicopter they would be reversed, but from the view in a car, one sees the "PED" first, with the "XING" becoming visible as the "PED" begins to be blocked by the hood (or should I say "bonnet"). That could explain why there are so many crashes in the US, the drivers are looking at the road right in front of the hood/bonnet and not in the distance where you see XING and PED. I know some writing is written right to left and some is left to right and some is top to bottom but I've never come across bottom to top! ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: learning and experimenting python.
On 31/12/2016 09:58, Steve D'Aprano wrote: On Sat, 31 Dec 2016 07:30 pm, mm0fmf wrote: On 30/12/2016 17:50, einstein1...@gmail.com wrote: Hello everyone, I am the new comer and learner of python. I have a doubt [...] "I have a doubt" is not the correct way to ask this kind of question in English. But it is perfectly idiomatic Indian English, which is no less legitimate than American English, Australian English, South African English and of course the hundreds of dialects from the mother country, British English. In Irish and Australian English, we're just as likely to say "I'm wondering about..." rather than "I have a question". This is an international forum, and we should make allowances for variant forms of English and those whose grasp of the Queen's English is not perfect. Hence the suggestion to use a less idiomatic expression. I see this from my team of programmers in our Bangalore office regularly. Just about all of them were surprised when it was pointed out. Given emails are sent amongst that team and offices around the world, when they expect local team memebers to reply they now use "doubt" and when they'd like a global response they use "question". A brief skim of the mail lets you see if it needs dealing with immediately. I've always found Australian English to be very similar to English English when written and only going "full down under" when spoken. Whereas American English is basically fewer words spelt differently. Though they do write road info upside down on the road surface, typically XING with PED underneath. I had to ask what XINGPED meant till my colleague driving said it was PEDXING, pedestrian crossing. Why write it the wrong way though? I'm not sure if this thread isn't a most excellent troll however. I see it's almost 2017 where you are Steve... have a good one. -- https://mail.python.org/mailman/listinfo/python-list
Re: learning and experimenting python.
On 30/12/2016 17:50, einstein1...@gmail.com wrote: Hello everyone, I am the new comer and learner of python. I have a doubt that when I type python and press enter it shows a prompt like But why it is >>> ? Is there any special reason? Why it is not setted as @,& or any other special characters? "I have a doubt" is not the correct way to ask this kind of question in English. Doubt is used to mean lack of conviction or feeling of uncertainty so your question means "I feel uncertain that when I type Python the prompt will be >>>" and from the further responses this is not what you mean. "I have a question about the prompt, why is it >>>" is far, far better. HTH -- https://mail.python.org/mailman/listinfo/python-list
Re: learning and experimenting python.
On 30/12/2016 19:08, einstein1...@gmail.com wrote: LAN you are right. I am agree with you that it's easy to recognise. But look $ for normal user # for special user/root % for other shell For python And so on... Why? Why their developer selected that? Is there any special reason? It is what it is. Change it if you don't like it. But you will only confuse people who have lots of experience looking for ">>>" when you post some output and ask for help. -- https://mail.python.org/mailman/listinfo/python-list
Re: OT - "Soft" ESC key on the new MacBook Pro
On 15/12/2016 18:05, Peter Pearson wrote: On Wed, 14 Dec 2016 11:50:30 -0600, Skip Montanaro wrote: On Wed, Dec 14, 2016 at 11:40 AM, Peter Pearson wrote: Train your fingers to use C-[. As I recall, the location of the Ctrl key was one of the differences between Sun and PC101 keyboards. Doesn't matter so much now, as Sun has gone the way of the dodo, but it moved around more for me than ESC over the years. Absolutely right. Random migrations of the Ctrl key annoyed so many of us set-in-our-ways geezers that Linux distributions always seem to come with an easily activated option to put the Ctrl key where it belongs, namely to the left of the A, right where God put it on Adam's ASR 33. +1 for knowing where CTRL should be. Bonus +1 for having used an ASR33. ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: OT - "Soft" ESC key on the new MacBook Pro
On 14/12/2016 02:40, Paul Rubin wrote: Skip Montanaro writes: Does the lack of a physical ESC key create problems for people, especially Emacs users? Not a Mac user and I rarely use ESC instead of ALT while editing with Emacs on a local computer, but when editing remotely I do have to use ESC because the Gnome terminal emulator steals a few ALTed keys. Maybe there is a way to stop that behaviour but it didn't occur to me til just now. Hmm. Meanwhile the concept of a computer with "no escape" just shows Apple getting deeper into existentialism. First it was the hipster Mac users with the Beatnik black berets and turtlenecks, and now this. If you need a full time ESC key then you are just "typing it wrong" as Steve Jobs would say if he wasn't dead. -- https://mail.python.org/mailman/listinfo/python-list
Re: Reposting On Python-List PROHIBITED
On 23/11/2016 23:28, Lawrence D’Oliveiro wrote: To the controllers of Python-List: I never asked to be on your list. I never consented to having my postings appear on your list. And I certainly didn’t agree to any conditions you might impose on members on your list. Therefore, to see you take offence at something I said, and use that as an excuse to “ban” me from your list, is an act of breathtaking hypocrisy. As far as I am concerned, it is you lot who should be banned from comp.lang.python. You are reusing its content inappropriately and without authorization. What you are doing must be stopped. *plonk* -- https://mail.python.org/mailman/listinfo/python-list
Re: Counting words in a string??
On 30/09/2016 20:12, Jake wrote: On Friday, 30 September 2016 19:49:57 UTC+1, srinivas devaki wrote: On Oct 1, 2016 12:10 AM, "Jake" wrote: Hi, I need a program which: 1) Asks the user for a sentence of their choice (not including punctuation) 2) Ask the user which word they would like to know is repeated 3) Print out to the user how many times the word came up which they chose from their sentence. typical home work assignment, even though stop asking for programs and start asking how to make the same. anyway if you ever try to write code for this you have to split you sentence and use a dict for counting Python has Counter from collections but it is a little bit slower when compared to defaultdict for this kind of purpose. Regards Srinivas Devaki Senior (final yr) student at Indian Institute of Technology (ISM), Dhanbad Computer Science and Engineering Department ph: +91 9491 383 249 telegram_id: @eightnoteight -- Could you make the program for me or provide an outline? How much will you pay for a commented program or an outline? -- https://mail.python.org/mailman/listinfo/python-list
Re: get the sum of differences between integers in a list
On 20/09/2016 12:52, Daiyue Weng wrote: What's the best way to implement this? With a python script. Show your work and people will help you. -- https://mail.python.org/mailman/listinfo/python-list
Re: Multimeter USB output
On 29/08/2016 09:54, Joe wrote: Am 28.08.2016 um 17:22 schrieb Dennis Lee Bieber: If you can read spaghetti coded C, you might want to study https://sourceforge.net/projects/ut61/ Interesting, but... The last time I did something with c, it was with BDS-C under CM/M. Somebody remenbering this no-fp compiler from the dark age before PC und Linux? Yes. It was a long time ago when I used BDS-C on initially Apple II + Microsoft CP/M card. Then on other Z80 CP/M systems. I also was introduced to the editor MINCE (Mince is not complete Emacs) which was compiled with BDS-C. 33 years ago and it seems like yesterday! -- https://mail.python.org/mailman/listinfo/python-list
Re: Compression of random binary data
On 12/07/2016 15:29, jonas.thornv...@gmail.com wrote: Den tisdag 12 juli 2016 kl. 05:01:20 UTC+2 skrev Lawrence D’Oliveiro: On Tuesday, July 12, 2016 at 5:52:27 AM UTC+12, jonas.t...@gmail.com wrote: What kind of statistic law or mathematical conjecture or is it even a physical law is violated by compression of random binary data? Try compressing already-compressed data. Does that answer your question? Yes that is my question, and also a claim i can do it. *plonk* -- https://mail.python.org/mailman/listinfo/python-list
Re: Need python script to scan website with safe browsing site status
On 24/05/2016 09:05, cheapfiverrservi...@gmail.com wrote: i need a python script which can scan provided list of websites and scan that list with https://www.google.com/transparencyreport/safebrowsing/diagnostic/index.html and save result of dangerous website or infected website in another text file. No problem, $2 ($US TWENTY THOUSAND) for a tested program including source and 3 months maintenance. -- https://mail.python.org/mailman/listinfo/python-list
Re: problem regarding installation
On 21/05/2016 08:55, bhagyadhar sahoo wrote: i have downloaded the software from your site.. but while installing it shows some problem .. plz help me out..or let me know how can i get the solution,.. i am waiting for ur replay thanks bhagya We don't know which web site you are talking about. We don't know which software you are talking about. We don't know what operating system you are using. We don't know what the problem was. How can we help you if you don't explain the problem in some detail? -- https://mail.python.org/mailman/listinfo/python-list
Re: How to become more motivated to learn Python
On 03/05/2016 17:50, Rob Gaddi wrote: Cai Gengyang wrote: So I have completed up to CodeAcademy's Python Unit 2 , now moving on to Unit3 : Conditionals and Control Flow. But I feel my motivation wavering , at times I get stuck and frustrated when trying to learn a new programming language ? This might not be a technical question per say, but it is a Python programming related one. How do you motivate a person (either yourself or your child) to become more interested in programming and stick with it ? Is determination in learning (especially in a tough field like software) partly genetic ? Related , This is a very well written essay on determination by Paul Graham http://www.paulgraham.com/determination.html Gengyang You don't. Learning programming is dull and sloggy and inherently unmotiving. Now, solving a problem, on the other hand. Solving a problem is fun. A real problem, an actual task that you actually need to do, not FizzBang. The thorny, nasty, horrible problems are great fun, and when you beat them into submission and mount their heads on your wall, but even the little ones like "I've got an 8GB USB stick, I want to put a random selection of all my MP3 files onto it." are entertaining. The Python's not the point. It can never be the point. Have a thing you want to do, and not just "Get a high paying job." If the tool for doing that thing is Python, so be it. If you need a soldering iron, or a hammer and chisel, or a structural engineering degree instead, then go figure out how to use one of those and Python will still be waiting when you do need it. +1 I learned Python because... I had a problem to solve. First I had to recompile a Linux kernel for an oddball PPC based NAS I used a lowpower computer. Then I had to find the patches that fixed some USB issues. Then I had to make a USB GSM modem work as it was a nasty Windows Zero-CD system. Then I wrote a program in C/C++ to process data from the modem and play with the ASCII strings and then push them to a website. I used libcurl to do the web work. It was a nightmare to debug/enhance and handling raw C strings in C or C++ was a pain. And I thought there has to be a better way. I kept seeing mention of Python so I thought I'll rewrite this in Python. But I couldn't find Python 2.7.x for PPC so I had to get the Python source and build that from scrath and check it worked OK. It took about 7 days of deep hacking to be able to rewrite on a line by line basis the C/C++ in Python. Boy was it ugly. But it worked. Then as I enhanced the program it became more Pythonic and I starting using the language and not abusing it. And the more I used it the easier it became. That code is online on a cheap VM running 24/7 and has about 450 users worldwide growing by several a week. This group was huge source of inspiration looking at the replies people gave to questions. It also motivated me to stop faffing about and convert my Python2 code to Python3 which again was straightforward. So I learned Python to solve a real world problem and it took a huge amount of effort along the way to realise I had to get a better way to maintain a program that was now being relied on by others. I didn't set out to learn Python but I'm sure glad I did. In 33 years of code bashing, I found a language that let me think about the problem not the programming language. YMMV -- https://mail.python.org/mailman/listinfo/python-list
Re: issue with CVS module
On 11/03/2016 20:32, Fillmore wrote: myReader = csv.reader(csvfile, delimiter='\t',quotechar='') From reading that the quotechar is null. You have a single quote and single quote with nothing in the middle. Try this: myReader = csv.reader(csvfile, delimiter='\t',quotechar="'") i.e doublequote singlequote doublequote or the other way myReader = csv.reader(csvfile, delimiter='\t',quotechar='"') I haven't tried this, so it may be nonsense. -- https://mail.python.org/mailman/listinfo/python-list
Re: Question
On 07/03/2016 18:09, Jon Ribbens wrote: On 2016-03-07, Ian Kelly wrote: On Mon, Mar 7, 2016 at 9:39 AM, Ben Morales wrote: I am trying to download Python but I have windows 10 and I do not see a 64 bit download for my operating system. Do you have a 64 bit for windows? What page are you looking at? https://www.python.org/downloads/release/python-351/ has downloads for both Windows x86 and Windows x86-64. It only appears to have downloads for 32-bit, or 64-bit AMD processors, not 64-bit Intel processors. You didn't read the bit that says "The binaries for AMD64 will also work on processors that implement the Intel 64 architecture. (Also known as the "x64" architecture, and formerly known as both "EM64T" and "x86-64".) " -- https://mail.python.org/mailman/listinfo/python-list
Re: Everything good about Python except GUI IDE?
On 27/02/2016 18:13, wrong.addres...@gmail.com wrote: On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote: On 27.02.2016 12:18, wrong.addres...@gmail.com wrote: Isn't there any good GUI IDE like Visual Basic? I hope there are some less well known GUI IDEs which I did not come across. Thanks. As of today, there's no Python GUI builder comparable to VB 6. Thanks for stating this clearly. Everyone here has been trying to show me various ways to do the kind of things I will want to, but nobody clearly admits the limitations I will have to accept if I start with Python. I am starting to wonder if VB.net would be a better solution for the time being. I have learnt enough VB.net to manage my work but it is bloated and Microsoft dependent. There are some like QtDesigner or wxGlade, but they either don't generate Python code directly or they can only be used if you know the underlying toolkit good enough to create the GUI yourself. You may try out some, but I can almost guarantee you that you will come to the same result. If you want a GUI, create it yourself using either wxPython or PyQt. I will check it. I got the impression that you can create a GUI but that has to be converted to Python, and then you need a wrapper to put these forms in, and then they can be compiled or converted to *.exe with py2exe. Not a good way for development/debugging. For engineering applications that's probably the weakest point that Python has. It's holding back a lot of people... Well, for most measurement or control software a GUI is not really needed, but still people want it. In the 1980s everyone was happy with inputs from the command line on a line editor, but today people expect GUIs with graphics and often even animations. It is surprising that a language which seems very popular does not have GUI development infrastructure in place these many years after it got into common use. Regards, Dietmar I'm no C# expert but I inherited the support of some C# projects. One uses a form to hold the UI objects. When the program is loaded in VS, you see the form and you can drag and drop objects to the form and edit the object properties (text, font, colours etc.). The result of your visual work is rendered in the C# source with some code folding options. If you don't click the folds in the editor you don't get to see that the form editor generates the C# code you need to call to generate the objects. There are suitable comments through the generated code warning you not to edit it as it is regenerated etc. The result is you use a visual tool to generate the boiler plate code. Knowing MS tools I'd be very suprised if the same idea is not used in VB. Somewhere there will be a text file with the VB boilerplate code to generate the form. You need to locate that and use it to drive your VB to Python conversion process. I'd write myself a script that takes the autogenerated source and converts it to Python. You may need to polish the output but if you have hundreds of objects this sounds to be simpler and quicker than starting from scratch. This is from my experience using C# with ASP.NET and .Net 4.0+ and VS2010 Professional. I think I've played with VS2013 Pro and it's the same. YMMV. -- https://mail.python.org/mailman/listinfo/python-list
Re: The computer that mastered Go
On 29/01/2016 22:13, Paul Rubin wrote: mm0fmf writes: Is it written in Python? One would expect it to be written in Go, but it turns out to be C++ and Lua :(. Why did he post it in comp.lang.python then? -- https://mail.python.org/mailman/listinfo/python-list
Re: The computer that mastered Go
On 29/01/2016 19:46, Seymore4Head wrote: https://www.youtube.com/watch?v=g-dKXOlsf98 Is it written in Python? -- https://mail.python.org/mailman/listinfo/python-list
Re: Where are we in the Python 3 transition?
On 31/12/2015 16:12, Mark Lawrence wrote: "Or, how the Kübler-Ross model aptly applies to Python 3". http://www.snarky.ca/the-stages-of-the-python-3-transition I thought I had a need for asyncio and that means Python3. So I started converting some web facing apps to Python3 for practice and it wasn't that hard. I've not written anything new in Python2 for about 9 months now. I never did need asyncio in the end but the thought I might pushed me to change. YMMV -- https://mail.python.org/mailman/listinfo/python-list
OT: Re: using binary in python
On 10/11/2015 21:02, Dennis Lee Bieber wrote: On Tue, 10 Nov 2015 20:36:52 +, mm0fmf via Python-list declaimed the following: On 10/11/2015 20:14, Dennis Lee Bieber wrote: The Ada language defines the end of Text file to consist of It is 15 years this month since I last worked in place that used Ada. I think that calls for a wee dram to celebrate ;-) Given that a dram is 1/8 of a "fluid ounce" that leads to the conclusion that a "wee dram" is based on US standard fluid once, vs British standard fluid ounce... My language preferences do tend to be the extremes: Python for quick throw-away stuff, Ada for more formal stuff (since it has a much more rigorous syntax than Pascal, Modula-2, C/C++, Java -- no optional block delimiters, no dangling else, etc.) Unfortunately, as a hobbyist dabbler at home, I can't justify the time to port an Ada compiler to Arduino, TIVA, Propeller, Beaglebone (though the latter may just be a case of porting the hardware access). So... I'm stuck with variants of C for those devices (again, excluding the Linux based Beaglebone) I escaped having to produce new code in Ada, I merely had to run some scripts that added the compiled C binaries into the Ada gloop! C user since 1983, C++ user since 2002, Python and C# since 2010. I regularly pinch myself that it seems to be painfully easy to be productive using Python compared to the other langauges! -- https://mail.python.org/mailman/listinfo/python-list
Re: using binary in python
On 10/11/2015 20:14, Dennis Lee Bieber wrote: The Ada language defines the end of Text file to consist of It is 15 years this month since I last worked in place that used Ada. I think that calls for a wee dram to celebrate ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: Python IDLE won't start
On 26/09/2015 18:14, Jacob Chaar wrote: Hi there, So, I download Python 3.5.0 and I while I execute the Python IDLE, it won’t start up. Also, I try to open the python command line and a message error pop up. If you can help me, it will be really appreciate. Regards, Jacob Chaar Maybe if you told us the error (cut & paste it, don't retype it) we could help? Similarly knowing the OS you are using would help. Without that info how can anyone help you? -- https://mail.python.org/mailman/listinfo/python-list
Re: Successfully send sms with python
On 22/09/2015 12:19, Timon Rhynix wrote: Hello, I have used pyserial, sms0.4 and other libraries to send sms via huawei E1750 modem. The code runs well and no error is thrown but the text message is not sent/delivered to the number. One of my code is as follows: import serial import time class TextMessage: def __init__(self, recipient="0123456789", message="TextMessage.content not set."): self.recipient = recipient self.content = message def setRecipient(self, number): self.recipient = number def setContent(self, message): self.content = message def connectPhone(self): conn = 'COM13' self.ser = serial.Serial(conn, 460800, timeout=5) time.sleep(1) def sendMessage(self): self.ser.write('ATZ\r') time.sleep(1) self.ser.write('AT+CMGF=1\r') time.sleep(1) self.ser.write('''AT+CMGS="''' + self.recipient + '''"\r''') time.sleep(1) self.ser.write(self.content + "\r") time.sleep(1) self.ser.write(chr(26)) time.sleep(1) print "message sent!" def disconnectPhone(self): self.ser.close() When run it, the "message sent!" is printed but no message is sent/delivered. Please assist on what I am missing. Thank you If it's like the GSM modem I used then you should replace those "\r" strings with "\r\n". -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Questions - July 25, 2015
On 27/07/2015 01:18, Mark Lawrence wrote: On 27/07/2015 00:12, Ned Batchelder wrote: On Sunday, July 26, 2015 at 5:15:31 PM UTC-4, mm0fmf wrote: On 26/07/2015 20:17, E.D.G. wrote: [around 90 lines snipped] Am I the only person thinking Troll? Yes. --Ned. Was it really necessary to resend all of the original for the sake of a seven word question and a one word answer? Yes? ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Questions - July 25, 2015
On 26/07/2015 20:17, E.D.G. wrote: "E.D.G." wrote in message news:jf6dnqimoz_gxc7inz2dnuu7-s2dn...@earthlink.com... Posted by E.D.G. July 26, 2015 These are some additional comments related to my original post. The effort I have been discussing actually involves developing a totally free version of some language that scientists around the world could easily install and use. 1. With my own science related Perl programs I provide people with .exe versions in addition to the .pl versions. And for the .pl versions, at one of my Web sites there is actually an entire Perl programming language directory available in a .zip package. So, people can download the file, unzip it, and then save it as the Perl directory and .pl programs will then run on that computer. We would like to be able to do the same thing with Python if we start working with that language. And a response in another post indicates that this should be possible. 2. Python looks especially attractive because so many people are using it. And I myself have a friend who is a very experienced professional Python programmer. On the other hand, there are so many versions of Python that it might be difficult at first to determine which one to start with. 3. I asked that Python programmer if Python could run on an Internet server as a CGI program. And the answer was "I have no idea." So, amusingly, apparently even experienced professional programmers don't know everything there is to know about a given programming language! 4. I myself know that Perl programs will run on Internet servers as CGI programs and have written several myself using a development program called Xampp to create and test them before installing them on the server computer. 5. My retired professional programming colleague has now told me that he downloaded and installed the ActiveState Windows version of Python with no difficulties. So, that is encouraging news. 6. He said that he is looking around for a good IDE for Python and found one called "Eric" that he is checking. 7. With my Perl language programs I have developed a resource that will do the following. And I imagine that this could also be done with Python. This resource can't be developed with many and probably most programming languages. In part because of limited calculation speeds it can take one of my important probability calculation Perl programs as much a two hours to run and create all of the necessary data arrays. Many, many millions of calculations are involved. And once everything is set, for time limitation reasons it would be ordinarily be impossible to make any changes to the data or to the original program code without losing all of the data. So, I have developed a special Perl program that makes that possible. And as I said, I am guessing that this approach would also work with Python. When the Perl program is done with its calculations, instead of ending it jumps to another Perl program. But all of the data in the arrays it created remain active in memory. The original program code can then be changed. The second Perl program is then told that the changes are complete and that it should return to the first program. Perl then attempt to recompile the original code. If it is successful it then uses the new code and does whatever is specified. The previously created arrays are still active in memory using the same array names etc. If there was an error in the new code, a Windows screen appears explaining that there was an error and the compilation ends. But, the data remain in the active computer memory. Changes can then be are made to the program code to fix the error. And, the second Perl program is told to try again. If there are no new errors the first program recompiles and runs using the already created arrays etc. This is a very useful resource for scientists as it lets them create and test new program code without having to recreate all of the data arrays. And as I stated, it would probably not be possible to develop such a resource with most programming languages. Regards, E.D.G. Am I the only person thinking Troll? -- https://mail.python.org/mailman/listinfo/python-list
Re: what windows compiler for python 3.5?
On 24/07/2015 11:53, Robin Becker wrote: yes I build extensions for reportlab. Unfortunately, despite our MSDN subscription to the Visual Studio stuff we have no access to the Visual Studio Version 2015. Last one in my downloads is currently 2013. Pity. I received an email today re my work MSDN subscription telling me VS2015 was now available to download. Sorry I didn't study it to see if all the versions were available now or just some. I've only just started using VS2013 at work so wasn't worried about VS2015! -- https://mail.python.org/mailman/listinfo/python-list
Re: Need assistance
On 18/07/2015 20:10, Joel Goldstick wrote: On Sat, Jul 18, 2015 at 2:51 PM, mm0fmf via Python-list wrote: On 18/07/2015 18:34, Mark Lawrence wrote: What is an {HP calculator} roll operation? HP calculators were proper in that they used RPN entry. i.e. 2 enter 2 + would show 4 instead of 2 + 2 = Gawd it's so long but ISTR there were 3 stack registers and the display. So you could press 1 enter 2 enter 3 enter 4 and Z = 1, Y = 2, X = 3 and display = 4. Roll would rotate the entries through the display register. ROLL and Z = 2, Y = 3, X = 4 and display = 1 and so on. There was an INV ROLL to go the other way. The 3 level stack was equivalent to nesting parentheses three times. I only had a TI-59 as it was half the price of an HP67. The TI had more memories and program steps and was faster. But it didn't say HP on the front! I have an hp35. But to be 'really' cool you have to have an hp35 that just says hp. Those were the very first ones I want a real HP16C and have been tempted to buy one from eBay. -- https://mail.python.org/mailman/listinfo/python-list
Re: Need assistance
On 18/07/2015 18:34, Mark Lawrence wrote: What is an {HP calculator} roll operation? HP calculators were proper in that they used RPN entry. i.e. 2 enter 2 + would show 4 instead of 2 + 2 = Gawd it's so long but ISTR there were 3 stack registers and the display. So you could press 1 enter 2 enter 3 enter 4 and Z = 1, Y = 2, X = 3 and display = 4. Roll would rotate the entries through the display register. ROLL and Z = 2, Y = 3, X = 4 and display = 1 and so on. There was an INV ROLL to go the other way. The 3 level stack was equivalent to nesting parentheses three times. I only had a TI-59 as it was half the price of an HP67. The TI had more memories and program steps and was faster. But it didn't say HP on the front! -- https://mail.python.org/mailman/listinfo/python-list
Re: bottle app "crashes"
On 05/07/2015 17:45, Martin S wrote: Hi all, Last summer I fumbled together a small appplication that calculates both LASK and Elo ratings for chess. I managed to "webify" it using Bottle. This works nicely on my laptop for testing. [snip] Do anyone have a pointer to an idiot proof instruction on how to deploy a simple bottle application to a live server. /Martin S I use bottle as it comes to provide 2 apps that face straight onto the web. I have to say that I have only done half the job because I never got as far as daemonising them. I simply run them from a "screen" session. This is fine as they run on my own teeny-tiny Linux VM (256MB ram/5GB disk with 1 Xeon core). I simply log in and type "screen python3 myapp.py" and remember to exit with ctrl-A D. One of them has been up for about 3 months now without issue. That might not explain why you are seeing problems but could give you a solution that works whilst you fix the underlying issue. Or not in my case! Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: Ah Python, you have spoiled me for all other languages
On 22/05/2015 18:47, Grant Edwards wrote: And of course, the truly_great_ thing about Javascript is... It's not PHP! ROTFL ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: TCP sockets python timeout public IP adresss
On 29/03/2015 12:20, bobbdeep wrote: How do I add a port to the list of open ports on my server ? Ask the system administrator. -- https://mail.python.org/mailman/listinfo/python-list
Re: TCP sockets python timeout public IP adresss
On 29/03/2015 09:57, bobbydeep wrote: From the error (10060) it looks like Windows but it would be nice if you could say which Python and OS you were using. I haven't looked at your code but just taking at face value that it does work internally. server_address = ('my-server-ipadress', 1999) Next thing to check is whether you have permission to open arbitrary ports on the server and whether they are firewalled off. For example, I have a shell account on the server that hosts my webpages and I can run ftp / scp to move files across the internet. However, I cannot open say port 54321 to the internet and accept connections on it. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python 3.x stuffing utf-8 into SQLite db
On 09/02/2015 03:44, Skip Montanaro wrote: I am trying to process a CSV file using Python 3.5 (CPython tip as of a week or so ago). According to chardet[1], the file is encoded as utf-8: >>> s = open("data/meets-usms.csv", "rb").read() >>> len(s) 562272 >>> import chardet >>> chardet.detect(s) {'encoding': 'utf-8', 'confidence': 0.99} so I created the reader like so: rdr = csv.DictReader(open(csvfile, encoding="utf-8")) This seems to work. The rows are read and records added to a SQLite3 database. When I go into sqlite3, I get what looks to be raw utf-8 on output: % LANG=en_US.UTF-8 sqlite3 topten.db SQLite version 3.8.5 2014-08-15 22:37:57 Enter ".help" for usage hints. sqlite> select * from swimmeet where meetname like '%Barracuda%'; sqlite> select count(*) from swimmeet; 0 sqlite> select count(*) from swimmeet; 4171 sqlite> select meetname from swimmeet where meetname like '%Barracuda%Patrick%'; Anderson Barracudas St. Patrick's Day Swim Meet Anderson Barracuda Masters - 2010 St. Patrick’s Day Swim Meet Anderson Barracuda Masters 2011 St. Patrick’s Day Swim Meet Anderson Barracuda Masters St. Patrick's Day Meet Anderson Barracuda Masters St. Patrick's Day Meet 2014 Anderson Barracuda Masters 2015 St. Patrick’s Day Swim Meet How is meetname defined? Is it a varchar or nvarchar? My only experience is with MS-SQL and C# but reading from a utf-8 encoded file with a StreamReader set to utf-8 and trying to insert that into varchar fields results in similar issues to what you are showing. I changed to using nvarchar and it all start working as expected. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to Mock a mongodb
On 07/02/2015 22:09, Xavier Pegenaute wrote: Dear, I am trying to mock the use of a mongo db and I am having some trouble. Appears that I am not able to return a desired value from mongo.find().count(). I made a proof of concept to try to reduce complexity of the real problem. You can find the code which is going to be tested in [1], and the code of the test case in [2]. Do you know exactly wat's wrong with it?, or may you point me to some direction? Thanks, Xavi [1] - http://pastebin.com/0vGqsURk [2] - http://pastebin.com/6Y6K4dUn Xavi, the majority of people in this group are not going to click a link as a matter of principle. So you need to paste some real code and then you'll find there will be people who will offer you really good help. In fact this group seems to contain an more clued up and helpful people than I can ever recall in any other newsgroup. Post a simple 'reproducer' of your issue and you should get some help. Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: How to extract a movie title out of a text file
On 07/02/2015 16:50, Seymore4Head wrote: Anyone care to come up with the Python code to do this? No problem, where I work charges me out at $2250/day plus expenses etc. I'll do it for half of that So send me $562 upfront and I'll get on with this for you. 24/7 hotline support is included in the price for the 1st year. -- https://mail.python.org/mailman/listinfo/python-list
Re: Create dictionary based of x items per key from two lists
On 01/02/2015 18:14, Grant Edwards wrote: No, you've got that backwards. You want_more_ blank lines. A blank line takes zero time to run, but it still counts as a line in your lines/second stats. You want more blanks lines to satisfy bean counting managers who want you to report "number of lines of code written per week". More blank lines equals happier managers! ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: Socket programming
On 03/01/2015 11:43, pramod gowda wrote: server_socket=socket.socket() server_name='192.168.2.2' server_port= 80 server_socket.bind((server_name,server_port)) server_socket.listen(1) I don't do much Python on Windows but do you have the necessary access rights to open a listening socket on port 80? Don't you need to run this with Administrator rights? -- https://mail.python.org/mailman/listinfo/python-list
Re: Hello World
On 22/12/2014 00:10, Chris Angelico wrote: Level 0: Why implement your own crypto?!? Because people who don't understand the concepts behind cryptography don't understand that the crypto algorithm can be open whilst the results of applying the algorithm are secure. There again I always use ROT-13 to encrypt my stuff. For the stuff that really has to be NSA-proof I use ROT-13 twice. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python handles globals badly.
On 03/12/2014 04:32, Skybuck Flying wrote: Some issues I'd like to address to you: 1. Structured programming requires more programming time. 2. Structured programming implies structure which might be less flexible. 3. Python objects require "self" keyword to be used everywhere, and other akwardness wich leads to more typing/programming/writing time. Hmm, I smell trolling! *plonk* -- https://mail.python.org/mailman/listinfo/python-list
Re: I am out of trial and error again Lists
On 24/10/2014 15:47, Seymore4Head wrote: I have at least 10 ebooks. I will get around to reading them soon. Sooner would be better. -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
On 11/10/2014 10:37, Christian Gollwitzer wrote: Being a non-native English speaker/writer, I myself stick to the recommendations of the Oxford dictionary. Christian But you do realise the Oxford dictionary is different to English usage and is renowned for using what is known as Oxford spelling? You wont find -ize used by the BBC in content for the UK nor will you find British newspapers using it. The Oxford spellings are so far out on their own you can set en-GB as a language tag or en-GB-oed. -- https://mail.python.org/mailman/listinfo/python-list
[OT] spelling colour / color was Re: Toggle
On 09/10/2014 02:29, Steven D'Aprano wrote: Apart from the horrible spelling of colour :-) I've always spelt colour as "color" when programming and as "colour" when writing language including documentation about software. colour in a programme doesn't seem right. -- https://mail.python.org/mailman/listinfo/python-list
Re: "High water" Memory fragmentation still a thing?
On 04/10/2014 02:02, Steven D'Aprano wrote: Way back in the mid 1980s, Apple Macintoshes used a memory manager which could move memory around. But the memory manager didn't return a pointer to memory the way malloc does. It returned a pointer to the pointer and you had to double dereference it to get the heap address (ISTR, 30 years ago now). The advantage being the memory manager could shuffle the memory about and update the pointers. Your pointer to a pointer would still point to the same block after a shuffle. Of course you couldn't hold on to a partial dereference across system calls... can you guess why? :-) Linux has (had) a allocation scheme where blocks came from different sized areas depending on the size requested. So all requests below 4k came from one heap area, and so on for 16k, 64k 256k, 1M etc. Meaning that code requesting a freeing up small amounts fragged the small allocation zone and so a big allocation would die due to fragmentation of small amounts. That was in kernel 2.4 days, sorry I'm off the bleeding edge now with how the allocator works in modern kernels. Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: Why Python has moved to a multilingual Unicode model (OT)
On 10/09/2014 14:27, wxjmfa...@gmail.com wrote: A "multilingual Unicode model" has not too much sense. You are Pavlov's Dog AICMFP ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: Python is going to be hard
On 03/09/2014 19:52, Seymore4Head wrote: I see that now. Thanks Maybe some comments in your code would help you? And also posting an on-topic title would help too. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python programming
On 27/08/2014 16:41, Grant Edwards wrote: Well, it's spelled "Jake", but it's pronounced "throat warbler mangrove" You're a very silly man and I'm not going to interview you. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python vs C++
On 22/08/2014 18:16, Marko Rauhamaa wrote: SCons gives you the power of Python. Don't use that power except in utmost need. Ah, you've seen our build system at work! Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: Global indent
On 22/08/2014 20:46, Seymore4Head wrote: http://gvim.en.softonic.com/ Has a snazzy look, but I think it is not compatible with Windows so it looks like I might have to try Emacs. Others will disagree but I find keeping Windows and *nix separate helps me a lot. So I'll use emacs on Linux for C++/Python/Tcl and VisualStudio / NotePad++ on Windows. Using Windows style editors on Windows just seems to be easier, whenever I try emacs on Windows it doesn't feel right and I start thinking more about the editor and less about what is being edited. You may be comfortable with emacs on Windows but part of my job is producing C++ and C# code for Windows so VisualStudio is the order of the day and so using NotePad++ for Python works for me. YMMV Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: Python 3 is killing Python
On 14/07/2014 23:12, Rick Johnson wrote: I SHUTTER TO THINK! It's "I shudder to think"! shut·ter [shuht-er] noun 1. a solid or louvered movable cover for a window. 2. a movable cover, slide, etc., for an opening. 3. a person or thing that shuts. 4. Photography . a mechanical device for opening and closing the aperture of a camera lens to expose film or the like. verb (used with object) 5. to close or provide with shutters: She shuttered the windows. 6. to close (a store or business operations) for the day or permanently. shud·der [shuhd-er] verb (used without object) 1. to tremble with a sudden convulsive movement, as from horror,fear, or cold. noun 2. a convulsive movement of the body, as from horror, fear, or cold. -- https://mail.python.org/mailman/listinfo/python-list
Re: 基于cython的即时编译器cyjit,欢迎大家提建议
On 11/06/2014 10:37, 1989lzhh wrote: 我正在写一个使用cython code作为后端的即时编译器名为cyjit,将python code 转换为cython code再编译为c extension导入.设计上主要参考numba.jit的思路, 使用decorate来指定要编译的function,例如: from cyjit import jit @jit('int(int,int)') def add(a,b): return a+b add(1,2)#compiled @jit('int(int,int)', locals=''' int c ''') def add1(a,b): c=add(a,b)# fast invoked return c add1(1,2) 目前还不支持类型推导,需要手动使用c的语法对局部变量进行定义。 编译过程是在jit函数中完成的,后续计划将编译过程移到函数运行时完成,实现 重载。 目前支持编译cache,第一次运行需要编译,时间稍慢,再次运行直接导入编译好 的extension,速度就很快了。 欢迎大家fork,pull,提建议。 https://github.com/liuzhenhai/cyjit You might say that but I couldn't possibly comment. -- https://mail.python.org/mailman/listinfo/python-list
Re: Make Python Compilable, convert to Python source to Go
On 25/05/2014 11:24, Mark Lawrence wrote: On 25/05/2014 09:17, bookaa bookaa wrote: Maybe I will work on Python 3 later. That's good to know, it'll save me wasting my time looking at it now. OT: Mark, you've been pro-Python3 enough in your recent postings you have forced me to act. I've just upgraded my 1st Python2 app to Python3. 2to3 did 99.999% of the work and I had to get a more modern version of a package which was Python3 compatible. From Tuesday (Monday is a holiday), all new Python code at work will be Python3 Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: Python under the sea and in space
On 07/05/2014 03:31, Jessica McKellar wrote: Hi folks, I'm trying to determine the greatest depth (in the ocean or underground) and highest altitude at which Python code has been executed. [snip] Do you have some good candidates? Please let me know! I have executed Python code (bottle web framework) on a Raspberry Pi at 590m ASL when hill walking. The Pi provides a Wifi AP and web server, pages are viewed on a smartphone browser, data entered on the web pages gets sent to an Iridium satellite modem over a USB/serial link. It then gets downlinked and stuffed on the web. 590m is not much but I only got it all working the other week and 590m is the biggest mountain I've been up since! Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: Howto flaten a list of lists was (Explanation of this Python language feature)
On 28/03/2014 22:12, Mark Lawrence wrote: As for the stupid symbol that you're using, real programmers don't give a damn about such things, they prefer writing plain, simple, boring code that is easy to read What he said. -- https://mail.python.org/mailman/listinfo/python-list
Re: Lists inside dictionary and how to look for particular value
On 26/01/2014 20:28, mick verdu wrote: I have programming course and trying to learn things. This is of no human use. I am just following exercises. Just have to do steps as asked. A slightly OT observation... Mick, consider using more meaningful names than t,z etc. You know what they stand for now and you will remember them whilst you work on this task. But if you revisit the code in a few weeks, months etc. you'll have a hard job remembering what they stood for. -- https://mail.python.org/mailman/listinfo/python-list
Re: Question regarding 2 modules installed via 'pip'
On 16/11/2013 15:33, Ferrous Cranus wrote: I have no intention to destroy this fine group, all i need is some imple help. But you are destroying it. You don't read the help given, you don't know the basic Linux commands, you can't use Google, you insist on using profanities to gain attention, you scream and shout for help, you dismiss good advice when you don't know better, you go against the code of conduct for the group. This group had the best signal to noise ratio of any unmoderated group I've seen in the last 15 years. It's full of genuine helpful people with useful replies. I've learnt a lot from reading those replies. I was fascinated watching the car crash of Nikos development at first. I'm still not sure if anyone could really be both so arrogant and completely inept and clueless at the same time. I have a nagging doubt that Nikos is a troll inflicted on us by someone who doesn't like Python and not a person. I should have done this a long time ago... Nikos, welcome to my killfile. *Plonk* (It's *plonk* *plonk* due to the various identities being used.) And yes, I've made comments about Nikos in the threads when I should have known better. Killfiling him will remove any temptation to do so in future. Andy -- https://mail.python.org/mailman/listinfo/python-list
Re: datetime question
On 11/11/2013 19:39, Ethan Furman wrote: On 11/11/2013 11:19 AM, Denis McMahon wrote: On Mon, 11 Nov 2013 11:57:36 +0200, Νίκος Αλεξόπουλος wrote: lastvisit = ( datetime.utcnow() + timedelta(hours=2) ).strftime( '%y-%m-%d %H:%M:%S' )# MySQL datetime format Someone has an idea what to add to this line to automatically adjust itself if DST happens? Yes, but the scarcity of universal whitespace is preventing me from posting it. Boy, are you in luck! I just happen to have a whole heap of marked down ascii white-space at bargain basement prices! Is that metric or imperial whitespace? You need metric whitespace for programs written in Europe. -- https://mail.python.org/mailman/listinfo/python-list
Re: To whoever hacked into my Database
On 06/11/2013 21:26, Νίκος Γκρ33κ wrote: Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! No luck yet mighty one? :) Nikos, just in case you don't understand what you are doing... you're issuing a challenge that you are happy for people to try to hack your website. You're doing it in a public newsgroup too. The regular readers of this group may try, they may be playful with your files and not do anything that is hard to undo. But someone may decide to really screw things for you and you've got no comeback. You issued a challenge to the whole world. Don't complain if someone goes full tilt. I hope you have some backups, I think you may find you need them. p.s. It wont be me... I have better things to do. -- https://mail.python.org/mailman/listinfo/python-list