Re: Converting hex data to image

2019-03-11 Thread dimplemathew . 17
On Monday, March 11, 2019 at 4:32:48 PM UTC+5:30, Peter Otten wrote: > dimplemathew...@gmail.com wrote: > > > Hi i have a similar challenge where i need to store the thumbnailPhoto > > attribute to my local db and display the image every-time user logs in. > > But this solution does work . data lo

Re: Converting hex data to image

2019-03-11 Thread dimplemathew . 17
On Thursday, November 14, 2013 at 9:02:52 PM UTC+5:30, Shyam Parimal Katti wrote: > I am implementing an authentication system(in Django) using LDAP as the > backend(django-auth-ldap). When we fetch the data from the LDAP server for a > particular valid user, the data associated with the user co

Re: "use strict"

2019-03-11 Thread Abdur-Rahmaan Janhangeer
great post, i understand what you are saying. the smaller pieces was interesting. but poor me, i should have posted this to python-ideas Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Configuring the REPL's tab completion

2019-03-11 Thread Chris Angelico
On Mon, Mar 11, 2019 at 9:38 PM Thomas Jollans wrote: > > On 10/03/2019 15.20, Chris Angelico wrote: > > I have absolutely no idea how to do this or even where to go looking, > > so I'd appreciate a starting pointer :) > > > > When you're in the Python REPL (just the basic core one, not IDLE or >

Re: "use strict"

2019-03-11 Thread DL Neil
On 12/03/19 8:00 AM, Abdur-Rahmaan Janhangeer wrote: about the editor part i think yes it'd underline unused variables or somewhat similar. is that the best we can hope for (coupled with type annotations)? the problem was that i was reviewing the code, since everything worked (no errors but

Re: "use strict"

2019-03-11 Thread Abdur-Rahmaan Janhangeer
proposing a special python syntax for it, like if flag set, it halts execution. not relying on external tools like linters. -- https://mail.python.org/mailman/listinfo/python-list

Re: "use strict"

2019-03-11 Thread Rhodri James
On 11/03/2019 18:24, Abdur-Rahmaan Janhangeer wrote: i mean a way to solve the problem of declaring variables beforehand and not changing in loop. like not using undeclated variables. but that's precisely what python has, you can't just declare a variable with no assignment. maybe some special

"use strict"

2019-03-11 Thread Abdur-Rahmaan Janhangeer
missed reply all -- Forwarded message - From: Abdur-Rahmaan Janhangeer Date: Mon, 11 Mar 2019, 22:59 Subject: Re: "use strict" To: DL Neil about the editor part i think yes it'd underline unused variables or somewhat similar. the problem was that i was reviewing the code, sinc

Re: "use strict"

2019-03-11 Thread DL Neil
Abdur-Rahmaan, with greetings, On 12/03/19 6:45 AM, Abdur-Rahmaan Janhangeer wrote: Greetings, would it be a good idea to add a use strict in py like js? recently i was helping someone and that was one annoying part where a typo in a var name caused an unintended variable to slip in. maybe some

Re: "use strict"

2019-03-11 Thread Rhodri James
On 11/03/2019 17:45, Abdur-Rahmaan Janhangeer wrote: Greetings, would it be a good idea to add a use strict in py like js? recently i was helping someone and that was one annoying part where a typo in a var name caused an unintended variable to slip in. maybe something like that # -*- strict

"use strict"

2019-03-11 Thread Abdur-Rahmaan Janhangeer
Greetings, would it be a good idea to add a use strict in py like js? recently i was helping someone and that was one annoying part where a typo in a var name caused an unintended variable to slip in. maybe something like that # -*- strict -*- # -*- explicit -*- could be used to prevent it

pydistutils.cfg injection

2019-03-11 Thread Chris Narkiewicz via Python-list
Hi, I'm trying to build a Python application in Launchpad and I'm currently having some issues with distutils. The build on Launchpad is constrained by 2 things: 1) the builder is isolated from network. 2) must be fully open source (can't ship pre-built binaries). I vendored in my PyPI dependenc

Re: Converting hex data to image

2019-03-11 Thread Peter Otten
dimplemathew...@gmail.com wrote: > Hi i have a similar challenge where i need to store the thumbnailPhoto > attribute to my local db and display the image every-time user logs in. > But this solution does work . data looks like this: > \xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x01\x00`\x00`\x00\x0

Re: Converting hex data to image

2019-03-11 Thread dimplemathew . 17
On Friday, November 15, 2013 at 3:52:58 AM UTC+5:30, Shyam Parimal Katti wrote: > Perfect. Thank you @Ben and @Tim > > > > > On Thu, Nov 14, 2013 at 4:29 PM, Ben Finney wrote: > > > Ben Finney writes: > > > > > > To turn a byte string into a file-like object for use with PIL, extract >

Re: Configuring the REPL's tab completion

2019-03-11 Thread Thomas Jollans
On 10/03/2019 15.20, Chris Angelico wrote: > I have absolutely no idea how to do this or even where to go looking, > so I'd appreciate a starting pointer :) > > When you're in the Python REPL (just the basic core one, not IDLE or > anything), you can tab-complete global and built-in names, attribu