Re: Broken pip

2018-08-29 Thread Sivan Greenberg
.1: > > Successfully uninstalled pip-9.0.1 > > Successfully installed pip-18.0 > > user@host$ pip --version > > Traceback (most recent call last): > > File "/usr/bin/pip", line 9, in > > from pip import main > > ImportError: cannot

Re: Flask not responding after installation

2018-06-14 Thread Sivan Greenberg
How did you install flask? Can you paste the content of your flask app .py file? -Sivan On Fri, 15 Jun 2018 12:15 am Tamara Berger, wrote: > It seems I can’t progress a single step without encountering a wall. > I’m trying to build a webapp with flask. I installed flask. I followed > the workbo

Re: [OT] Altair

2016-08-30 Thread Sivan Greenberg
e power supply was also beefed up. > > It also had a replacement bezel. It seems that the original Altair's > silk screened front panel was crappy and rubbed off easily. Some > company sold one but it says "Cycloid" instead of "Altair" on it. > > --

Re: I am new to python. I have a few questions coming from an armature!

2016-08-17 Thread Sivan Greenberg
start writing code? > > 2. What made you want to learn python? > > 3. Was it difficult to learn the language? > > 4. Have you been able to get a job out of your new skill? > > Thank you guys! I'm pretty much Obsessed with python! > > -- > https://mail.pytho

Re: usage of functools.partial in in parallelism

2016-08-03 Thread Sivan Greenberg
t; > It is a great talk, but for a counter-view: > > http://lucumr.pocoo.org/2013/2/13/moar-classes/ > > > > Remember: moderation in all things, except for moderation. > > > > -- > Steve > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Sivan Greenberg Co founder & CTO Vitakka Consulting -- https://mail.python.org/mailman/listinfo/python-list

Re: usage of functools.partial in in parallelism

2016-07-31 Thread Sivan Greenberg
a bit more verbose (or god forbid..unpythonic?) I find it much nore readable in my taste and easier to pass on to the next code maintainer in the heritage. -Sivan On 31 Jul 2016 11:43, "Stefan Behnel" wrote: > Sivan Greenberg schrieb am 30.07.2016 um 23:15: > > I'm wonde

usage of functools.partial in in parallelism

2016-07-30 Thread Sivan Greenberg
Hi all, I'm wondering about the use of partial in writing parallel code. Is is it quicker than re-evaluating arguments for a multiple session.get()'s method with different , for example (of requests) ? Or maybe it is used to make sure the arguments differ per each invocation ? (the parallel inv

Re: Pandas to CSV and .dbf

2016-07-28 Thread Sivan Greenberg
This works extremely well I recently tried that. http://stackoverflow.com/questions/16923281/pandas-writing-dataframe-to-csv-file Sivan On 23 Jun 2016 23:35, "David Shi via Python-list" wrote: > Has anyone tested on Pandas to CSV and .dbf lately? > I am looking for proven, tested examples to o

and on - topic and and off topic

2016-07-28 Thread Sivan Greenberg
Hi All, First apologies for the rather off topic but I grep'd over the existing mailing lists and couldn't find one that's suitable, at least judging by the titles. My inquiry is both technical and social, first for the technical stuff: 1. When is the use of functools.partial beneficial? When

Re: Quote of the day

2016-05-17 Thread Sivan Greenberg
o: > >With a third party solution I don't need to fix the bugs. > >But with an in-house solution I at least *can* fix the bugs. > > The feeling of powerlessness can be crushing when you depend on a > third-party component that is broken with no fix i

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Sivan Greenberg
On Sat, Apr 16, 2016 at 8:25 PM, Terry Reedy wrote: > On 4/16/2016 12:58 PM, Larry Martell wrote: > >> On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa >> wrote: >> >>> Larry Martell : >>> >>> I have worked for many companies where you are required to get a clean run of pep8 on your code be

Re: Bash-like pipes in Python

2016-03-19 Thread Sivan Greenberg
l)) > > > > Intriguing! Thank you for the suggestion. > > Still want the pipeline syntax! > > > Marko > -- > https://mail.python.org/mailman/listinfo/python-list > -- Sivan Greenberg Co founder & CTO Vitakka Consulting -- https://mail.python.org/mailman/listinfo/python-list

Re: Bash-like pipes in Python

2016-03-19 Thread Sivan Greenberg
t; same as calling list() as the last step, but in a script, they'd > > operate lazily. > > > > Quantum computing is here already! > > Might as well add the sequence protocol while we're at it. > -- > https://mail.python.org/mailman/listinfo/python-lis

Re: Python's import situation has driven me to the brink of imsanity

2016-02-10 Thread Sivan Greenberg
tuptools" so that when you import > distutils in your setup.py your actually importing a monkey-patched > setuptools. You may as well import setuptools in your setup.py but > either way the recommended invocation is "pip install -e .". > > -- > Oscar > -- > https://

Re: Python's import situation has driven me to the brink of imsanity

2016-02-07 Thread Sivan Greenberg
n put it in a macro or even > > just > > > > type it because it's short and easy to remember. > > > > > > > > > > My question is: is this crazy? Please tell me there's a better way > > and I > > > > just wasted my time creating this package. There's nothing I'd like > to > > hear > > > > more. > > > > > > > > Well, anything that makes you type "import imsanity" at the top of > > > > every script MUST be crazy. :) I don't know about the actual > > > > content/purpose though. Good luck with it! > > > > > > > > ChrisA > > > > -- > > > > https://mail.python.org/mailman/listinfo/python-list > > > > > > > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Sivan Greenberg Co founder & CTO Vitakka Consulting -- https://mail.python.org/mailman/listinfo/python-list

Re: Python's import situation has driven me to the brink of imsanity

2016-02-07 Thread Sivan Greenberg
ke to > hear > > more. > > > > Well, anything that makes you type "import imsanity" at the top of > > every script MUST be crazy. :) I don't know about the actual > > content/purpose though. Good luck with it! > > > > ChrisA > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Sivan Greenberg Co founder & CTO Vitakka Consulting -- https://mail.python.org/mailman/listinfo/python-list

Re: filter a list of strings

2015-12-09 Thread Sivan Greenberg
gt;> btw: Is it correct to iterate over a copy (list[:]) of that string list > >> and not the original one? > > > > Absolutely :) > > However, “list” is a built-in class/constructor that would be overwritten > this way. One should choose another identifier than “list”