Why is it faster to first pickle data before sending a dict than sending a dict directly in Python 3?

2017-06-12 Thread Martin Bammer
Following test program: import time import marshal try: import cPickle as pickle str_ = unicode except: import pickle str_ = str def TestPrc(rd): d = rd.recv() print("OK") def TestPrc2(rd): d = pickle.loads(rd.recv()) print("OK") if __name__ == "__main__": fro

Customise the virtualenv `activate` script

2017-06-12 Thread Ben Finney
Howdy all, What is the conventional way to customise the changes made by a Python virtualenv bin/activate script? The Python virtualenv is activated by a ‘$VENV/bin/activate script’ [0]. This script works primarily by setting environment variables specific to the virtualenv. (This is different

Re: Cannot get any Python commands to work

2017-06-12 Thread Ian Kelly
On Mon, Jun 12, 2017 at 8:47 AM, David Marquand wrote: > I am trying to learn Django and cannot get easy_install to work. Python > working on PyDev fine. > > > PS C:\Windows\system32> python > Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit > (AMD64)] on win32 > Type "hel

Re: Cannot get any Python commands to work

2017-06-12 Thread Viktor Hagström
It seems like you are trying to run easy_install while running the Python interpreter. I am not familiar with easy_install, but my guess would be to run it outside the interpreter, in the command prompt. 2017-06-12 16:47 GMT+02:00 David Marquand mailto:dbmarqu...@gmail.com>>: I am trying to lea

Re: hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread Terry Reedy
On 6/12/2017 2:18 PM, jlada...@itu.edu wrote: On Monday, June 12, 2017 at 10:40:25 AM UTC-7, Forsaken uttax wrote: hello!! I was trying to install Tensorflow on my laptop with Gpu support so I Installed python the one in the screenshot below, and I put in pip Tensorflow Install comma

Re: How to store some elements from a list into another

2017-06-12 Thread Thomas Jollans
On 12/06/17 20:32, José Manuel Suárez Sierra wrote: > Hello, > I am stuck with a (perhaps) easy problem, I hope someone can help me: > > My problem is: > I have a list of lists like this one: > [[55, 56, 57, 58, 83, 84, 85, 86, 89, 90, 91, 92, 107, 108, 109, 110, 111, > 117, 118, 119, 120, 128, 1

Re: How to store some elements from a list into another

2017-06-12 Thread MRAB
On 2017-06-12 19:32, José Manuel Suárez Sierra wrote: Hello, I am stuck with a (perhaps) easy problem, I hope someone can help me: My problem is: I have a list of lists like this one: [[55, 56, 57, 58, 83, 84, 85, 86, 89, 90, 91, 92, 107, 108, 109, 110, 111, 117, 118, 119, 120, 128, 129, 130, 1

How to store some elements from a list into another

2017-06-12 Thread José Manuel Suárez Sierra
Hello, I am stuck with a (perhaps) easy problem, I hope someone can help me: My problem is: I have a list of lists like this one: [[55, 56, 57, 58, 83, 84, 85, 86, 89, 90, 91, 92, 107, 108, 109, 110, 111, 117, 118, 119, 120, 128, 129, 130, 131, 135, 136, 137, 138, 184, 185, 186, 187, 216, 217, 2

Re: Cannot get any Python commands to work

2017-06-12 Thread Viktor Hagström
It seems like you are trying to run easy_install while running the Python interpreter. I am not familiar with easy_install, but my guess would be to run it outside the interpreter, in the command prompt. 2017-06-12 16:47 GMT+02:00 David Marquand mailto:dbmarqu...@gmail.com>>: I am trying to lea

Re: hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread jladasky
On Monday, June 12, 2017 at 10:40:25 AM UTC-7, Forsaken uttax wrote: > hello!! >I was trying to install Tensorflow on my laptop with Gpu support > so I Installed python the one in the screenshot below, and I put in pip > Tensorflow Install command and it says syntax error so i try to u

Re: Cannot get any Python commands to work

2017-06-12 Thread David
On Monday, June 12, 2017 at 11:34:41 AM UTC-5, Richard Moseley wrote: > I believe that you need to be using this as a command rather a module from > within python, in other words try executing easy_install from the command > line, or try using pip which is now preferred method of installing new > t

hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread Forsaken uttax
hello!! I was trying to install Tensorflow on my laptop with Gpu support so I Installed python the one in the screenshot below, and I put in pip Tensorflow Install command and it says syntax error so i try to update the pip that too doesn't work desperate for solution help me. Regards

Re: Cannot get any Python commands to work

2017-06-12 Thread Richard Moseley
I believe that you need to be using this as a command rather a module from within python, in other words try executing easy_install from the command line, or try using pip which is now preferred method of installing new third-party packages. You may need to add '-3.6' or '-36' if you have multiple

Cannot get any Python commands to work

2017-06-12 Thread David Marquand
I am trying to learn Django and cannot get easy_install to work. Python working on PyDev fine. PS C:\Windows\system32> python Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>

Re: Generate PDF with Tamil font problem

2017-06-12 Thread Steve D'Aprano
On Mon, 12 Jun 2017 05:51 pm, ccubed...@gmail.com wrote: > On Saturday, 5 March 2011 10:50:25 UTC+5:30, sath...@e-ndicus.com wrote: >> Hi All, >> >>I am using python's reportlab to print some unicode Tamil characters >> 'பே'. I added necessary unicode font to reportlab. But It >> prints the

Re: Generate PDF with Tamil font problem

2017-06-12 Thread ccubed2k4
On Saturday, 5 March 2011 10:50:25 UTC+5:30, sath...@e-ndicus.com wrote: > Hi All, > >I am using python's reportlab to print some unicode Tamil characters > 'பே'. I added necessary unicode font to reportlab. But It > prints the output as 'ேப' (in reverse order). This issue > happens for multi

Re: Strang thing in tkinter, and pdb too?

2017-06-12 Thread Christian Gollwitzer
Am 12.06.17 um 06:03 schrieb Terry Reedy: On 6/11/2017 10:06 PM, jf...@ms4.hinet.net wrote: D:\Temp\widget-tour-py3>python canvasruler.py can't invoke "event" command: application has been destroyed while executing "event generate $w <>" (procedure "ttk::ThemeCha