Re: Meta classes - real example

2016-10-17 Thread Mr. Wrobel
W dniu 17.10.2016 o 23:23, Ethan Furman pisze: On 10/17/2016 09:23 AM, Mr. Wrobel wrote: W dniu 17.10.2016 o 18:16, Chris Angelico pisze: On Tue, Oct 18, 2016 at 3:03 AM, Mr. Wrobel wrote: I am looking for an example of metaclass usage. Especially I am interestet in manipulating instance var

Re: Build desktop application using django

2016-10-17 Thread Denis Akhiyarov
Have a look at automatic web app builder using Django or Flask called Wooey based Gooey. https://github.com/wooey/Wooey -- https://mail.python.org/mailman/listinfo/python-list

Re: Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-17 Thread eryk sun
On Tue, Oct 18, 2016 at 2:09 AM, Chris Angelico wrote: > That's not a UTF-16 encoded byte string, though. It's a Unicode string > that contains two surrogates. So maybe the solution is to convert from > true Unicode strings into strings like the above - but if so, it > absolutely must not be done

Re: Build desktop application using django

2016-10-17 Thread Mario R. Osorio
On Monday, October 17, 2016 at 1:00:14 PM UTC-4, John Gordon wrote: > In > ayuchitsalu...@gmail.com writes: > > > Hello I want to build a desktop application which retrieves data from > > server and stores data on server. I have basic experience of python and > > I dont know how to build that th

Re: Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-17 Thread Chris Angelico
On Tue, Oct 18, 2016 at 10:23 AM, eryk sun wrote: > I don't know whether it causes problems elsewhere in Tk, but it has no > problem passing along a UTF-16 string to Windows. For example, see the > following with a breakpoint set on TextOut [1]: > > >>> root = tkinter.Tk() > >>> w = tkinte

Tkinter with native look-and-feel (was: [FAQ] "Best" GUI toolkit for python)

2016-10-17 Thread Ben Finney
Paul Rubin writes: > If you're just getting started and you're not trying to make something > super slick, I'd suggest Tkinter. It's easy to learn and use, you can > bang stuff together with it pretty fast, it's included with various > Python distributions so you avoid download/installation hass

Re: [FAQ] "Best" GUI toolkit for python

2016-10-17 Thread Paul Rubin
If you're just getting started and you're not trying to make something super slick, I'd suggest Tkinter. It's easy to learn and use, you can bang stuff together with it pretty fast, it's included with various Python distributions so you avoid download/installation hassles, and it's pretty portable

Re: difference with parenthese

2016-10-17 Thread chenyong20000
Hi Wolfgang, thanks for your kind reply. I got. regards skyworld -- https://mail.python.org/mailman/listinfo/python-list

Re: [FAQ] "Best" GUI toolkit for python

2016-10-17 Thread Wildman via Python-list
On Tue, 18 Oct 2016 00:58:42 +0200, pozz wrote: > I'm sorry, I know it is a FAQ..., but I couldn't find a good answer. > > I'm learning python and I'd like to start creating GUI applications, > mainly for Windows OS. In the past, I wrote many applications in Visual > Basic 4: it was very fast a

Re: Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-17 Thread eryk sun
On Mon, Oct 17, 2016 at 8:35 PM, Random832 wrote: > On Mon, Oct 17, 2016, at 14:20, eryk sun wrote: >> You can patch print() to transcode non-BMP characters as surrogate >> pairs. For example: >> >> On Windows this should allow printing non-BMP characters such as >> emojis (e.g. U+0001F44C). > > I

[FAQ] "Best" GUI toolkit for python

2016-10-17 Thread pozz
I'm sorry, I know it is a FAQ..., but I couldn't find a good answer. I'm learning python and I'd like to start creating GUI applications, mainly for Windows OS. In the past, I wrote many applications in Visual Basic 4: it was very fast and you could create simple but effective GUIs in Windows

Re: need help for an assignment plz noob here

2016-10-17 Thread Rob Gaddi
pedrorenato1...@gmail.com wrote: > Hello guys. so my assignment consists in creating a key generator so i can > use it in later steps of my work. In my first step i have to write a function > called key_generator that receives an argument, letters, that consists in a > tuple of 25 caracters. Th

How to creat a function that receives a tuple of characters and returns them in an organised form so I can use it as a key generator

2016-10-17 Thread pedrorenato1998
Hello guys. so my assignment consists in creating a key generator so i can use it in later steps of my work. In my first step i have to write a function called key_generator that receives an argument, letters, that consists in a tuple of 25 caracters. The function returns a tuple of 5 tuples of

need help for an assignment plz noob here

2016-10-17 Thread pedrorenato1998
Hello guys. so my assignment consists in creating a key generator so i can use it in later steps of my work. In my first step i have to write a function called key_generator that receives an argument, letters, that consists in a tuple of 25 caracters. The function returns a tuple of 5 tuples of

Re: Meta classes - real example

2016-10-17 Thread Ethan Furman
On 10/17/2016 09:23 AM, Mr. Wrobel wrote: W dniu 17.10.2016 o 18:16, Chris Angelico pisze: On Tue, Oct 18, 2016 at 3:03 AM, Mr. Wrobel wrote: I am looking for an example of metaclass usage. Especially I am interestet in manipulating instance variables, for example: My class: class MrMeta(typ

Re: New to python

2016-10-17 Thread justin walters
On Mon, Oct 17, 2016 at 12:51 PM, Bill Cunningham wrote: > I just installed python I might start with 3. But there is version 2 out > too. So far I can '3+4' and get the answer. Nice. I typed the linux man > page > and got a little info. So to learn this language is there an online > tutorial? I

Re: New to python

2016-10-17 Thread breamoreboy
On Monday, October 17, 2016 at 8:51:52 PM UTC+1, Bill Cunningham wrote: > I just installed python I might start with 3. But there is version 2 out > too. So far I can '3+4' and get the answer. Nice. I typed the linux man page > and got a little info. So to learn this language is there an online

Re: Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-17 Thread Random832
On Mon, Oct 17, 2016, at 14:20, eryk sun wrote: > You can patch print() to transcode non-BMP characters as surrogate > pairs. For example: > > On Windows this should allow printing non-BMP characters such as > emojis (e.g. U+0001F44C). I thought there was some reason this wouldn't work with tk, o

Re: New to python

2016-10-17 Thread Jan Erik Moström
On 17 Oct 2016, at 21:51, Bill Cunningham wrote: I just installed python I might start with 3. But there is version 2 out too. So far I can '3+4' and get the answer. Nice. I typed the linux man page and got a little info. So to learn this language is there an online tutorial? I am interest

Re: New to python

2016-10-17 Thread Skip Montanaro
> So to learn this language is there an online > tutorial? Yup, go to https://docs.python.org/3/ and check out the tutorial links. Also, if you want useful replies in the future, please provide a valid email address. A private reply to this particular question would have been better than bombing t

New to python

2016-10-17 Thread Bill Cunningham
I just installed python I might start with 3. But there is version 2 out too. So far I can '3+4' and get the answer. Nice. I typed the linux man page and got a little info. So to learn this language is there an online tutorial? I am interested in the scripting too. Bill -- https://mail.p

Re: Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-17 Thread eryk sun
On Mon, Oct 17, 2016 at 2:20 PM, Adam Funk wrote: > I'm using IDLE 3 (with python 3.5.2) to work interactively with > Twitter data, which of course contains emojis. Whenever the running > program tries to print the text of a tweet with an emoji, it barfs > this & stops running: > > UnicodeEncod

Re: Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-17 Thread Adam Funk
On 2016-10-17, Adam Funk wrote: > I'm using IDLE 3 (with python 3.5.2) to work interactively with > Twitter data, which of course contains emojis. Whenever the running > program tries to print the text of a tweet with an emoji, it barfs > this & stops running: > > UnicodeEncodeError: 'UCS-2' co

Re: Python Data base help

2016-10-17 Thread Brandon McCaig
(Apologies for the old thread reviving) On Sun, Oct 09, 2016 at 09:27:11PM +0200, Irmen de Jong wrote: > What is your 'database'? > >From the little information you provided it seems that it is just a text > >file where > every drone measurement is on a line. So simply read every line and check i

Re: Build desktop application using django

2016-10-17 Thread John Gordon
In ayuchitsalu...@gmail.com writes: > Hello I want to build a desktop application which retrieves data from > server and stores data on server. I have basic experience of python and > I dont know how to build that thing. The term "desktop application" generally means something which runs locall

Re: Meta classes - real example

2016-10-17 Thread Mr. Wrobel
W dniu 17.10.2016 o 18:16, Chris Angelico pisze: On Tue, Oct 18, 2016 at 3:03 AM, Mr. Wrobel wrote: Hi, I am looking for an example of metaclass usage. Especially I am interestet in manipulating instance variables, for example: My class: class MrMeta(type): pass class Mr(object):

Re: Meta classes - real example

2016-10-17 Thread Chris Angelico
On Tue, Oct 18, 2016 at 3:03 AM, Mr. Wrobel wrote: > Hi, > > I am looking for an example of metaclass usage. Especially I am interestet > in manipulating instance variables, for example: > > My class: > class MrMeta(type): > pass > > class Mr(object): > __metaclass__ = MrMeta > >

Meta classes - real example

2016-10-17 Thread Mr. Wrobel
Hi, I am looking for an example of metaclass usage. Especially I am interestet in manipulating instance variables, for example: My class: class MrMeta(type): pass class Mr(object): __metaclass__ = MrMeta def __init__(self): self.imvariable = 'Z

Re: No registration confirmation at https://bugs.python.org/

2016-10-17 Thread Al Schapira
No spam or junk on either email client or server. On Sun, 2016-10-16 at 11:20 +1100, Steve D'Aprano wrote: > On Sun, 16 Oct 2016 07:09 am, Al Schapira wrote: > > > > > I have tried to register at   https://bugs.python.org/  over a > > period > > of many months, and I never receive the confirmati

Re: difference with parenthese

2016-10-17 Thread Wolfgang Maier
On 17.10.2016 16:45, chenyong20...@gmail.com wrote: Hi Wolfgang, thanks for your kind reply. I try to explain what I got from your reply: for code1, when running "foo = outer()", since outer() is callable, function outer() is running and it returns an object, which referring to function inner(

Re: difference with parenthese

2016-10-17 Thread chenyong20000
Hi Wolfgang, thanks for your kind reply. I try to explain what I got from your reply: for code1, when running "foo = outer()", since outer() is callable, function outer() is running and it returns an object, which referring to function inner(). When "foo" is running, it indicates it is referrin

Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-17 Thread Adam Funk
I'm using IDLE 3 (with python 3.5.2) to work interactively with Twitter data, which of course contains emojis. Whenever the running program tries to print the text of a tweet with an emoji, it barfs this & stops running: UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 10

Re: Build desktop application using django

2016-10-17 Thread Ned Batchelder
On Sunday, October 16, 2016 at 10:53:45 PM UTC-4, Mario R. Osorio wrote: > On Sunday, October 16, 2016 at 1:42:23 PM UTC-4, Ayush Saluja wrote: > > Hello I want to build a desktop application which retrieves data from > > server and stores data on server. I have basic experience of python and I >

Re: difference with parenthese

2016-10-17 Thread Wolfgang Maier
On 17.10.2016 10:52, chenyong20...@gmail.com wrote: Hi, i'm confused by a piece of code with parenthese as this: code 1-- def outer(): ... def inner(): ... print 'inside inner' ... return inner ... foo = outer() foo foo() inside inner

difference with parenthese

2016-10-17 Thread chenyong20000
Hi, i'm confused by a piece of code with parenthese as this: code 1-- >>> def outer(): ... def inner(): ... print 'inside inner' ... return inner ... >>> foo = outer() >>> foo >>> foo() inside inner code 2

Re: Writing library documentation?

2016-10-17 Thread Stephane Wirtel
Please, could you read this part: http://docs.python-guide.org/en/latest/writing/documentation/ Thank you On 10/16, tshep...@rcsreg.com wrote: Is there a standard or best way to write documentation for a particular python library? I'd mostly target HTML, I guess. Thanks! Tobiah -- https:

Re: py.test/tox InvocationError

2016-10-17 Thread Stephane Wirtel
You have a conflict with the installed version and the need version of coverage. Just fix that. On 10/16, D.M. Procida wrote: When I run: py.test --cov=akestra_utilities --cov=akestra_image_plugin --cov=chaining --cov=contacts_and_people --cov=housekeeping --cov=links --cov=news_and_events -