Re: SSL certification fails / tweepy [SOLVED]

2016-01-14 Thread dieter
"K. Elo" writes: > ... > I still wonder why openSuSE certificates are not working out-of-box > with python. Maybe some of the packages were not correctly installed... Certificates have a validity period -- usually, they need to be renewed from time to time (to get a new vality period). -- https

Re: Vebnest Offers - VPS Hosting with 25% Discount on Monthly Plans

2016-01-14 Thread Ashford
VEBNEST offer reliable and scalable reseller web hosting solution for its resellers which includes free website builder, 100s of free scripts, whm/cpanel and cloud linux VEBNEST serving lots of resellers around the world 24/7. We offer Reseller hosting with powerfull cloud linux based servers,

Python and Word OLE

2016-01-14 Thread tdsperth
Hi All I am trying to change the active printer using win32com.client with the following code wordapp = win32com.client.Dispatch('Word.Application') worddoc = wordapp.Documents.Open(mypathfile) print(wordapp.ActivePrinter) "\\server\queries" wordapp.ActivePrinter = "\\server\letters" //fails

Re: virtualenv: help me decide

2016-01-14 Thread Cameron Simpson
On 15Jan2016 03:37, Paulo da Silva wrote: I am about to install tensorflow and I am considering to use virtualenv. Unfortunately I don't know anything about this. It makes a directory tree with its own libraries and "python" and "pip" executables. When you run the "python" executable it invo

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Chris Angelico
On Fri, Jan 15, 2016 at 2:08 PM, Gregory Ewing wrote: > Steven D'Aprano wrote: > >> Maybe Guido will change his mind and we'll have 3.10. 3.11, 3.12, ... > > > Who says that version numbers have to be base 10? After > 3.9 we could have 3.A, 3.B, ... 3.Z, and then we have > a long list of Unicode c

virtualenv: help me decide

2016-01-14 Thread Paulo da Silva
Hi all! I am about to install tensorflow and I am considering to use virtualenv. Unfortunately I don't know anything about this. So, a couple of questions before I dig more ... 1. Are all already installed python stuff visible inside virtualenv? 2. I used to use eclipse for development. Is it usab

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Gregory Ewing
Steven D'Aprano wrote: Maybe Guido will change his mind and we'll have 3.10. 3.11, 3.12, ... Who says that version numbers have to be base 10? After 3.9 we could have 3.A, 3.B, ... 3.Z, and then we have a long list of Unicode characters to work through before we're forced to bump the major num

Re: problem

2016-01-14 Thread Andrew Ongko
On Jan 14, 2016 10:58 PM, "Shivam Gupta" wrote: > > Hello, > > I am using python 3.5.1 on my windows 8.1. The problem is that whenever i > save any file any after that when i run it the screen just close > immediately after i double click on python file. > > Thank you. Hi there, Try opening the

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Rick Johnson
On Thursday, January 14, 2016 at 4:53:42 PM UTC-6, Ian wrote: > On Thu, Jan 14, 2016 at 8:52 AM, Rick Johnson > > [...] > > > I wonder if he's considered the possibility that Google may > > swoop in an purchase Dropbox at some time in the near > > future, and he could find himself working for goo

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Rick Johnson
On Thursday, January 14, 2016 at 4:04:48 PM UTC-6, Steven D'Aprano wrote: > Into the sin-bin you go for another three months. Enjoy your time in > the kill-file. https://www.youtube.com/watch?v=CuDEP6eFkeA -- https://mail.python.org/mailman/listinfo/python-list

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Ian Kelly
On Thu, Jan 14, 2016 at 8:52 AM, Rick Johnson wrote: > So you're suggesting that GvR *WILLINGLY* left a global, and > well established giant, to work for a tiny start-up because > his bosses refused to switch from Python2 to (his new baby) > Pyhton3? > > So, let me get this strait: he wasn't fired

Re: Post processing contour plot, how?

2016-01-14 Thread Cody Piersall
Sorry for the short response, but check out this Stack Overflow question/answer http://stackoverflow.com/q/5666056/1612701 On Thu, Jan 14, 2016 at 3:42 PM, Martin Schöön wrote: > I am interested in creating contours but not for printing or > including in a report as an illustration. I want to g

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: Stop writing Python 4 incompatible code

2016-01-14 Thread Steven D'Aprano
On Fri, 15 Jan 2016 02:30 am, Rick Johnson wrote: > I represent Absolutely nobody except yourself. The entertainment value of your trolling has now dipped below the annoyance value. Into the sin-bin you go for another three months. Enjoy your time in the kill-file. -- Steven -- https://m

Post processing contour plot, how?

2016-01-14 Thread Martin Schöön
I am interested in creating contours but not for printing or including in a report as an illustration. I want to go on working on a numerical representation of the contours. Creating contour plots using matplotlib is a breeze but I fail to find a way to export the contours thus created in a numeri

Re: problem

2016-01-14 Thread eryk sun
On Thu, Jan 14, 2016 at 3:10 PM, Chris Angelico wrote: > On Fri, Jan 15, 2016 at 6:01 AM, Irmen de Jong wrote: >> Either put something like this at the end of your python scripts, to keep >> the console open: >> >> raw_input("press enter to exit...") > > Small qualification: This is 3.5, so you

Re: problem

2016-01-14 Thread Chris Angelico
On Fri, Jan 15, 2016 at 6:01 AM, Irmen de Jong wrote: > Either put something like this at the end of your python scripts, to keep the > console open: > > raw_input("press enter to exit...") > > Small qualification: This is 3.5, so you should use input instead of raw_input. input("Press enter to

Re: ignoring or replacing white lines in a diff

2016-01-14 Thread Peter Otten
Adriaan Renting wrote: > > Maybe someone here has a clue what is going wrong here? Any help is > appreciated. > > I'm writing a regression test for a module that generates XML. > > I'm using diff to compare the results with a pregenerated one from an > earlier version. > > I'm running into two

Re: ignoring or replacing white lines in a diff

2016-01-14 Thread Martin A. Brown
Hello Adriaan, >Maybe someone here has a clue what is going wrong here? Any help is >appreciated. Have you tried out this tool that does precisely what you need? to do yourself? https://pypi.python.org/pypi/xmldiff I can't vouch specifically for it, am simply a user, but I know that I hav

Re: ignoring or replacing white lines in a diff

2016-01-14 Thread Nathan Hilterbrand
On 01/14/2016 03:22 PM, Adriaan Renting wrote: Maybe someone here has a clue what is going wrong here? Any help is appreciated. I'm writing a regression test for a module that generates XML. I'm using diff to compare the results with a pregenerated one from an earlier version. I'm running in

Re: ignoring or replacing white lines in a diff

2016-01-14 Thread Zachary Ware
On Thu, Jan 14, 2016 at 2:22 PM, Adriaan Renting wrote: > Any suggestions? Instead of trying to make diff behave through subprocess, have a look at Python's difflib: https://docs.python.org/3/library/difflib.html In particular, I think `difflib.ndiff(first_list_of_strings, second_list_of_strings

ignoring or replacing white lines in a diff

2016-01-14 Thread Adriaan Renting
Maybe someone here has a clue what is going wrong here? Any help is appreciated. I'm writing a regression test for a module that generates XML. I'm using diff to compare the results with a pregenerated one from an earlier version. I'm running into two problems: The diff doesn't seem to behave

ANN: Wing IDE 5.1.9 released

2016-01-14 Thread Wingware
Hi, Wingware has released version 5.1.9 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 studio, and other key bindings, auto-completion, call tips, context-sensitive au

Re: issues

2016-01-14 Thread Sven R. Kunze
Hi Gert, just upgrade to 5.03. Best, Sven On 13.01.2016 18:38, Gert Förster wrote: Ladies, Gentlemen, using the PyCharm Community Edition 4.5.4, with Python-3-5-1-amd64.exe, there is constantly a “Repair”-demand. This is “successful” when executed. Without execution, there results an “Error

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread paul.hermeneutic
I am confident that in a few years there will be sufficient new developments in language design that some degree of backward compatibility would be worth dropping in order to provide greater capabilities. If it needs to fork and become another language, that's OK. -- https://mail.python.org/mailma

Re: problem

2016-01-14 Thread Irmen de Jong
On 14-1-2016 16:53, Shivam Gupta wrote: > Hello, > > I am using python 3.5.1 on my windows 8.1. The problem is that whenever i > save any file any after that when i run it the screen just close > immediately after i double click on python file. > > Thank you. > That's not a python thing, it's

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Rick Johnson
On Thursday, January 14, 2016 at 11:41:21 AM UTC-6, Chris Angelico wrote: > Prove this. Find "general public consensus" that Python is > dead. And then, imitate rats and abandon this sinking > ship. I don't need to "imitate" anything, it has already begun. > I decided to give 3D modelling a go, a

Re: When I need classes?

2016-01-14 Thread Rick Johnson
On Tuesday, January 12, 2016 at 11:27:23 PM UTC-6, Steven D'Aprano wrote: > On Wednesday 13 January 2016 14:36, Rustom Mody wrote: > > > 1. Python the LANGUAGE, is rather even-handed in paradigm choice: > > Choose OO, imperative, functional or whatever style pleases/suits > > you 2. Python LIBRARI

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

2016-01-14 Thread Cem Karan
On Jan 13, 2016, at 3:47 PM, Laura Creighton wrote: > > I fell recently. Ought to be nothing, but a small chip of bone, either an > existing one or one I just made is nicely wedged in the joint taking away > a whole lot of the ability of my arm to rotate in the elbow joint. Or > hold my arm i

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Chris Angelico
On Fri, Jan 15, 2016 at 2:30 AM, Rick Johnson wrote: > (3) After Python3 came along, the Python community has > become fractured, and the Python code base has become > fractured, and the general public consensus is that Python > is on its way to extinction (FACT!) Prove this. Find "genera

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Peter Otten
D'Arcy J.M. Cain wrote: > On Thu, 14 Jan 2016 16:32:46 +0100 > Peter Otten <__pete...@web.de> wrote: >> >> > Or we'll be hit by a big rock from space. >> >> Sounds like a plan. >> > Which one? Number 9? >> >> Hm, I didn't expect this question... >> >> plans[-1], most certainly. > > Hmm. Am I

Convert timeseries GDAL raster format (vrt) to NetCDF

2016-01-14 Thread milad . khakpour
I tried to package a timeseries for vrt file to NetCDF. The problem is, it converts layer by layer and save it to NetCDF which it took much time (also with memory allocation). I wanted to do is to save it chunk by chunk which I do not have any idea how to do it ! Does someone have any solution

problem

2016-01-14 Thread Shivam Gupta
Hello, I am using python 3.5.1 on my windows 8.1. The problem is that whenever i save any file any after that when i run it the screen just close immediately after i double click on python file. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Rick Johnson
On Wednesday, January 13, 2016 at 11:46:30 PM UTC-6, Terry Reedy wrote: > On 1/13/2016 8:02 PM, Rick Johnson wrote: > > and a leader who lost his cushy job at Google > > Unless you have access to facts that I do not, 'lost' is > impolite speculation. But lets move on. Well i admit my speculation

PyDev 4.5.1 Released

2016-01-14 Thread Fabio Zadrozny
Release Highlights: --- * Debugger * Cython speedup modules are now available for the debugger (see performance improvements at: https://www.speedtin.com/reports/7_pydevd_cython). * It is considerably faster even without the speedup modules (see performance improvemen

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread D'Arcy J.M. Cain
On Thu, 14 Jan 2016 16:32:46 +0100 Peter Otten <__pete...@web.de> wrote: > >> > Or we'll be hit by a big rock from space. > >> Sounds like a plan. > > Which one? Number 9? > > Hm, I didn't expect this question... > > plans[-1], most certainly. Hmm. Am I being too subtle or...? from OuterSpace

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Rick Johnson
On Wednesday, January 13, 2016 at 11:19:16 PM UTC-6, Michael Torrie wrote: > The only one speculating is you. Everything I've read points to this > idea of yours about GvR and Google being untrue. Providing speculation is not the same as providing facts. Please provide facts. And enumerate the

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Peter Otten
D'Arcy J.M. Cain wrote: > On Thu, 14 Jan 2016 14:43:51 +0100 > Peter Otten <__pete...@web.de> wrote: >> > Or we'll be hit by a big rock from space. >> >> Sounds like a plan. > > Which one? Number 9? Hm, I didn't expect this question... plans[-1], most certainly. -- https://mail.python.org/

Re: i am having troubles downloading 3.5.1 to my computer

2016-01-14 Thread Mark Lawrence
On 13/01/2016 20:42, Crystal Fernandez wrote: Asked and anwsered repeatedly over the last few weeks. Search the archives for the action(s) you need to take. If you are uncertain here are good starting points. http://catb.org/~esr/faqs/smart-questions.html http://www.sscce.org/ -- My fellow

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread D'Arcy J.M. Cain
On Thu, 14 Jan 2016 14:43:51 +0100 Peter Otten <__pete...@web.de> wrote: > > Or we'll be hit by a big rock from space. > > Sounds like a plan. Which one? Number 9? -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https:/

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Peter Otten
Steven D'Aprano wrote: > Or we'll be hit by a big rock from space. Sounds like a plan. -- https://mail.python.org/mailman/listinfo/python-list

Re: i am having troubles downloading 3.5.1 to my computer

2016-01-14 Thread Joel Goldstick
On Wed, Jan 13, 2016 at 3:42 PM, Crystal Fernandez < cfernande...@franklinvillecsd.org> wrote: > NLT+CRF <3 > -- > https://mail.python.org/mailman/listinfo/python-list > What operating system? What steps did you take? What error messages did your computer return? If you are using an older vers

Observer pattern implementation in Python based on jQuery

2016-01-14 Thread fernando junior
Hi, I made an observer/pubsub pattern implementation in Python based on jQuery. It's available in https://github.com/fernandojunior/python-pattern-observer. Take a look! :) Fernando Felix https://br.linkedin.com/in/fernandofnjr -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange behavior

2016-01-14 Thread Chris Angelico
On Thu, Jan 14, 2016 at 3:03 PM, Michal Nalevanko wrote: > I've just installed Python 3.5.1 on my computer and came across somewhat > strange behavior. > > This is a snapshot of a short code that I wrote: https://goo.gl/izYbD0 > > Quite simple, you might say. Obviously, the program should create a

issues

2016-01-14 Thread Gert Förster
Ladies, Gentlemen, using the PyCharm Community Edition 4.5.4, with Python-3-5-1-amd64.exe, there is constantly a “Repair”-demand. This is “successful” when executed. Without execution, there results an “Error code 1602” error. Please help me? Sincerely Yours, Gert Förster -- https://mai

Strange behavior

2016-01-14 Thread Michal Nalevanko
Hello, I've just installed Python 3.5.1 on my computer and came across somewhat strange behavior. This is a snapshot of a short code that I wrote: https://goo.gl/izYbD0 Quite simple, you might say. Obviously, the program should create a new text file, nothing else. But do you see the numbers it

i am having troubles downloading 3.5.1 to my computer

2016-01-14 Thread Crystal Fernandez
NLT+CRF <3 -- https://mail.python.org/mailman/listinfo/python-list

Re: How to remove item from heap efficiently?

2016-01-14 Thread Cem Karan
On Jan 13, 2016, at 2:08 PM, Sven R. Kunze wrote: > On 13.01.2016 12:20, Cem Karan wrote: >> On Jan 12, 2016, at 11:18 AM, "Sven R. Kunze" wrote: >> >>> Thanks for replying here. I've come across these types of >>> wrappers/re-implementations of heapq as well when researching this issue. :) >>>

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-01-14 Thread kasale . jacktone
hello lee so what was the final answer u gave for the following question.. reate a constructor that takes in an integer and assigns this to a `balance` property. Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly. Create a method called `withdra

Re: How to remove item from heap efficiently?

2016-01-14 Thread Oscar Benjamin
On 7 January 2016 at 22:52, Sven R. Kunze wrote: > > suppose, I need items sorted by two criteria (say timestamp and priority). > For that purpose, I use two heaps (heapq module): > > heapA # items sorted by timestamp > heapB # items sorted by priority > > Now my actual problem. When popping an it

Re: SSL certification fails / tweepy [SOLVED]

2016-01-14 Thread K. Elo
Hi! 14.01.2016, 09:59, dieter wrote: "SSL_VERIFICATION_FAILED" is an error which occurs when an SSL ("https") connection is established. It happens when the SSL certificate (of the server and/or client) does not contain expected data - e.g. the certificate is no longer (or not yet) valid or its

Re: [Tutor] me, my arm, my availability ...

2016-01-14 Thread Oscar Benjamin
On 13 January 2016 at 20:47, Laura Creighton wrote: > > Seems like surgery is needed to fix this. > > So I wanted you all to know, no, I haven't forgotten you and no haven't > stopped caring. I have just stopped being as __capable__ if you know > what I mean. > > Please take care of yourselves an

Re: Python alternative to Google Groups

2016-01-14 Thread Ashford
Vebnest Ecommerce Online Shopping Services Windows Reseller Hosting is based on the Windows operating system 2008. It is known for support of various programming frameworks, including Asp, ASP.net and TomCat . Windows Hosting also supports SQL Server (MSSQL) and Access, which can be used to

Re: Stop writing Python 3.5 incompatible code :-)

2016-01-14 Thread Frank Millman
"Frank Millman" wrote in message news:n77j78$ld0$1...@ger.gmane.org... cur.execute(...) try: row = next(cur) except StopIteration: # 0 rows returned try: next(cur) except StopIteration: pass else: # >1 rows returned For the record, I just tried this and found an error. It is

The history behind the decision to move Python to GitHub

2016-01-14 Thread Mark Lawrence
http://www.snarky.ca/the-history-behind-the-decision-to-move-python-to-github -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Stop writing Python 4 incompatible code

2016-01-14 Thread Steven D'Aprano
On Thursday 14 January 2016 14:29, Rick Johnson wrote: > On Wednesday, January 13, 2016 at 9:08:40 PM UTC-6, Chris Angelico wrote: >> You're talking about a very serious matter between two legal entities >> - if someone was *fired* because of social, technological, or other >> problems with Python

Re: Stop writing Python 3.5 incompatible code :-)

2016-01-14 Thread Steven D'Aprano
On Thursday 14 January 2016 17:27, Frank Millman wrote: > So my test was - > > except ValueError as e: > if str(e).startswith('need'): > # 0 rows returned > else: > # > 1 rows returned > > This has worked for years, but with 3.5 it stopped working. It took me a > while to

Re: Stop writing Python 3.5 incompatible code :-)

2016-01-14 Thread Chris Angelico
On Thu, Jan 14, 2016 at 6:36 PM, Frank Millman wrote: > I like your first solution. In fact, with sqlite3, 'cur' is already > iterable, so I can just say > > cur.execute(...) > try: >row = next(cur) > except StopIteration: ># 0 rows returned > try: >next(cur) > except StopIteration: pa

Re: SSL certification fails / tweepy

2016-01-14 Thread dieter
"K. Elo" writes: > I have written I small python script for twitter mining utilising the > 'tweepy' library. Since a couple of days I cannot use the script > anymore, due to a "ssl certificate verification failed" error. The > authentication with Twitter API succeess, but when I try to run the >