[issue28458] from __future__ import print_function does not emulate the flush param from py3k

2016-10-17 Thread Berker Peksag
Berker Peksag added the comment: That's because the flush argument was added in Python 3.3 (after print() was backported to 2.7 via a future import) Thanks for the report. -- nosy: +berker.peksag resolution: -> not a bug stage: -> resolved status: open -> closed

[issue28458] from __future__ import print_function does not emulate the flush param from py3k

2016-10-17 Thread Attila-Mihaly Balazs
New submission from Attila-Mihaly Balazs: Doing the following in Python 2.7.12 does not work: from __future__ import print_function print(1, flush=True) It says: "'flush' is an invalid keyword argument for this function" While the following is a perfectly valid python 3k statement: print(1,

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 --

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

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

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

[issue28441] sys.executable is ambiguous on Cygwin without .exe suffix

2016-10-17 Thread Erik Bray
Erik Bray added the comment: I agree this has a slight change in behavior which I was at first hesitant about. But I think the previous behavior was wrong insofar as it was overly ambiguous. I agree it should apply on MSYS2 as well (I actually thought __CYGWIN__ was defined on MSYS2 but I

[issue28465] python 3.5 magic number

2016-10-17 Thread 曹忠
New submission from 曹忠: On debian 9 and python 3.5.2: >>> imp.get_magic() b'\x17\r\r\n' On windows and python 3.5.2 >>> imp.get_magic() b'\x16\r\r\n' the same python version, magic number is the same, why not? -- components: Build messages: 278830 nosy: 曹忠 priority: normal severity:

[issue28385] Bytes objects should reject all formatting codes with an error message

2016-10-17 Thread Eric V. Smith
Eric V. Smith added the comment: LGTM, although I'm not so sure about your #3. Maybe it should be a separate issue and raised on python-dev? But I don't feel strongly enough about it to argue the point. Thanks! -- ___ Python tracker

[issue28448] C implemented Future doesn't work on Windows

2016-10-17 Thread Yury Selivanov
Yury Selivanov added the comment: > C implemented Future should allow overriding _schedule_callbacks. I'm not so sure about this. Maybe we can just fix _WaitCancelFuture somehow? -- ___ Python tracker

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

[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: 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

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.

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

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 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

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

[issue28452] Remove _asyncio._init_module function

2016-10-17 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28452] Remove _asyncio._init_module function

2016-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset d32ec6591c49 by INADA Naoki in branch '3.6': Issue #28452: Remove _asyncio._init_module function https://hg.python.org/cpython/rev/d32ec6591c49 New changeset ce85a1f129e3 by INADA Naoki in branch 'default': Issue #28452: Remove

[issue28466] SIGALRM fails to interrupt time.sleep() call on Python 3.5

2016-10-17 Thread Ryan Petrello
Changes by Ryan Petrello : -- title: SIGALRM fails to interrupt time.sleep() call on Python 3.6 -> SIGALRM fails to interrupt time.sleep() call on Python 3.5 ___ Python tracker

[issue28466] SIGALRM fails to interrupt time.sleep() call on Python 3.6

2016-10-17 Thread Ryan Petrello
New submission from Ryan Petrello: I may have found a bug in SIGALRM handling in Python3.5. I've not been able to reproduce the same issue in Python2.7 or 3.4. Here's a simple example that illustrates the issue (which I'm able to reproduce on OS X 10.11.3 El Capitan and Ubuntu 14.04): $

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

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

[issue28465] python 3.5 magic number

2016-10-17 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hi. imp.get_magic() is deprecated since 3.4, see the documentation here https://docs.python.org/3/library/imp.html?highlight=get_magic#imp.get_magic You should use importlib.util.MAGIC_NUMBER instead. Please try it. Thanks. -- nosy: +Mariatta

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()

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-17 Thread Martin Panter
Martin Panter added the comment: Well, I am not really an expert on the setup.py stuff, but I will ask a question anyway that may help the review process: Why do you remove the code that loops over Modules/Setup? Maybe is it redundant with the other code for removing the already-built-in

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-17 Thread Martin Panter
Martin Panter added the comment: PS: I agree it would be good to add more documentation for cross-compiling. I tried to suggest something in an outdated patch once before; see the bottom of . --

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 >

[issue27659] Check for the existence of crypt()

2016-10-17 Thread Martin Panter
Martin Panter added the comment: If there is an obscure platform where we don’t include the right header file for a function, changing the warning into an error would cause the build to fail. If we do make it an error, it should only be so for 3.7. --

[issue28466] SIGALRM fails to interrupt time.sleep() call on Python 3.5

2016-10-17 Thread Martin Panter
Martin Panter added the comment: This is by design; see PEP 475, and the documentation . If you make your signal handler raise an exception, it will interrupt the sleep() call most of the time. But if the signal happens to be received

[issue27931] Email parse IndexError <""@wiarcom.com>

2016-10-17 Thread Xiang Zhang
Xiang Zhang added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-17 Thread Tim Mitchell
Tim Mitchell added the comment: Have stripped down the module __doc__ to a list of contents. I chose to indent the descriptions of each argument to Popen. I know this is non-standard but it is such a long ramble otherwise. Changed true -> :const:`True` in subprocess.rst. -- keywords:

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-17 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.7 ___ Python tracker

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-17 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Tim. > Changed true -> :const:`True` in subprocess.rst. This is out of scope for this issue and I actually prefer the current form. Having method and class signatures in subprocess.__doc__ would make it less maintainable. I'd prefer

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-17 Thread Antony Lee
Changes by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___

[issue28462] subprocess pipe can't see EOF from a child in case of a few children run with subprocess

2016-10-17 Thread Eryk Sun
Eryk Sun added the comment: Due to a race condition, the Popen call in the second process is inadvertently inheriting the handle for the write end of the pipe that's created for the first process. Thus stdout.readline() in the first thread doesn't see EOF until that handle is closed. For

[issue28448] C implemented Future doesn't work on Windows

2016-10-17 Thread INADA Naoki
INADA Naoki added the comment: https://github.com/search?p=3=_schedule_callbacks=Code=%E2%9C%93 At least, Future class in uvloop have same API. Most of other results seems just copy of Python source tree. (But I didn't check all search result) --

[issue28409] test.regrtest does not support multiple -x flags

2016-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the difference between using parse_known_args() and nargs=argparse.REMAINDER? -- ___ Python tracker ___

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

[issue28448] C implemented Future doesn't work on Windows

2016-10-17 Thread INADA Naoki
Changes by INADA Naoki : -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file45125/schedule_callbacks.patch ___ Python tracker

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

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

[issue28452] Remove _asyncio._init_module function

2016-10-17 Thread Yury Selivanov
Yury Selivanov added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2016-10-17 Thread Chris Meyer
New submission from Chris Meyer: BaseEventLoop.close shuts down the executor associated with the event loop. It should do that BEFORE it sets self._closed = True, otherwise any pending executor futures will attempt to 'call_soon' on the event loop when they finish, resulting in a confusing

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

ANN: SciPy India 2016

2016-10-17 Thread Prabhu Ramachandran
Hello, We are pleased to announce the SciPy India conference 2016. SciPy India is an annual conference on using Python for research and education. The conference is currently in its eighth year and will be held at IIT Bombay on 10th and 11th December, 2016. The registration and call for papers

tox-2.4.0 released, moved to github, docs on readthedocs now

2016-10-17 Thread holger krekel
tox-2.4.0 brings some fixes and new features, see the changelog below. Docs are now at: https://tox.readthedocs.org and, thanks to Ronny Pfannschmidt, the tox repository is now on github: https://github.com/tox-dev/tox also many thanks to Oliver Bestwalter, Alex Grönholm, Stefan

[issue27806] 2.7 32-bit builds fail on macOS 10.12 Sierra due to dependency on deleted header file QuickTime/QuickTime.h

2016-10-17 Thread Lapsang Leaf
Lapsang Leaf added the comment: Can we have this in English, please, for noobs? I only use python in order to run zim on my mac. I do not have the same technical know-how as many users and I do not understand the parlance here. Currently I have OS X 10.12 with python 2.7 - updating to sierra

[issue24881] _pyio checks that `os.name == 'win32'` instead of 'nt'

2016-10-17 Thread STINNER Victor
STINNER Victor added the comment: "FWIW this patch broke the _pyio module on Cygwin," Please open a new issue, this one is closed. -- ___ Python tracker

[issue28459] _pyio module broken on Cygwin / setmode not usable

2016-10-17 Thread Erik Bray
New submission from Erik Bray: Since the patch to #24881 was merged the _pyio module has been non-importable on Cygwin, due to an attempt to import from the msvcrt module. However, the msvcrt module is not built on Cygwin (Cygwin does not use MSVCRT). Cygwin's libc does, however, have

PyDev 5.3.0 Released

2016-10-17 Thread Fabio Zadrozny
Release Highlights: --- * **Important** PyDev now requires Java 8 and Eclipse 4.5 onwards. * PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8. * See: update sites page for the update site of older versions of PyDev. * See: the **PyDev does

[issue28460] Minidom, order of attributes, datachars

2016-10-17 Thread Petr Pulc
New submission from Petr Pulc: Hello, just an idea for improvement of minidom. Sometimes it is not convenient that the element attributes are sorted alphabetically. Usually, users do hack the minidom file themselves to force some behaviour, yet the order can be quite nicely defined by the

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 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

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

[issue8376] Tutorial offers dangerous advice about iterators: “__iter__() can just return self”

2016-10-17 Thread loic rowe
loic rowe added the comment: A new proposal is to add at the end of the paragraph on the iterator those point: """ As you should have noticed this Reverse let you iterate over the data only once:: >>> rev = Reverse('spam') >>> for char in rev: ... print(char) ... m a

[issue24881] _pyio checks that `os.name == 'win32'` instead of 'nt'

2016-10-17 Thread Erik Bray
Erik Bray added the comment: FWIW this patch broke the _pyio module on Cygwin, as the msvcrt module is not built on Cygwin. AFAICT this is only a problem for Python built with MSVCRT, which Cygwin does not use. When test case works as expected on Cygwin without this. -- nosy:

Nikola v7.8.1 is out!

2016-10-17 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.1. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2 templates, and input in many

[issue28404] Logging SyslogHandler not appending '\n' to the end

2016-10-17 Thread José Manuel
José Manuel added the comment: Sorry to bother you again, but I've tested this not only with Fluentd, but with a RSYSLOG server and it does not work with TCP except if you manually add the trailer LF character. Other than that, UDP default transport protocol has no issues and works fine with

[issue28461] Replacement of re with the regex package

2016-10-17 Thread Pierre Nugues
New submission from Pierre Nugues: I am using Unicode regexes in the form of properties: \p{} and these are not standard in the re module. I have to use the new regex module, which has to be installed separately. I would like to see the replacement of re with regex in the future Python

[issue28461] Replacement of re with the regex package

2016-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue12734 for adding the support of properties in re. See issue2636 for replacing re with regex. See issue22594 for encouraging the use of regex. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed

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

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 =

[issue28462] subprocess pipe can't see EOF from a child in case of a few children run with subprocess

2016-10-17 Thread Vyacheslav Grigoryev
New submission from Vyacheslav Grigoryev: I'm creating a master stand-alone module on Python which should run some children via subprocess module. Working with children is done in separate worker threads. Additionally I need to receive real-time output from a child so in a worker thread I

[issue21429] Input.output error with multiprocessing

2016-10-17 Thread Florijan Hamzic
Florijan Hamzic added the comment: Hi, i have a similiar issue: i have a really simple scenario Callee: ``` @classmethod def MoveDataToOtherSide(cls, model) data = { "FirstName": model.FirstName, "LastName": model.LastName, "Email": model.Email,

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

[issue27806] 2.7 32-bit builds fail on macOS 10.12 Sierra due to dependency on deleted header file QuickTime/QuickTime.h

2016-10-17 Thread Jeremy Sequoia
Jeremy Sequoia added the comment: QuickTime/QuickTime.h was deprecated long ago. python fails to compile if QuickTime/QuickTime.h isn't present. QuickTime/QuickTime.h was removed in Sierra, causing the build to fail on Sierra. This patch fixes that issue. > On Oct 17, 2016, at 05:23,

[issue28409] test.regrtest does not support multiple -x flags

2016-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset af06d9616c29 by Victor Stinner in branch '3.5': Issue #28409: regrtest: fix the parser of command line arguments. https://hg.python.org/cpython/rev/af06d9616c29 New changeset 26249f82c15d by Victor Stinner in branch '3.6': Merge 3.6: Issue #28409:

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-10-17 Thread Lisa Roach
Lisa Roach added the comment: Anyone get the chance to look over this yet? -- ___ Python tracker ___ ___

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

[issue28455] argparse: convert_arg_line_to_args does not actually expect self argument

2016-10-17 Thread siccegge
siccegge added the comment: Looks quite helpfull indeed to me! Thanks! -- ___ Python tracker ___ ___

[issue28433] Add sorted (ordered) containers

2016-10-17 Thread Марк Коренберг
Марк Коренберг added the comment: @r.david.murray Please see answres at https://groups.google.com/forum/#!topic/python-ideas/nPOi2LtVsR4 No one say that adding sorted containers is bad idea. Some people say that specific use-cases require specific solutions, but they also said that it is

[issue27806] 2.7 32-bit builds fail on macOS 10.12 Sierra due to dependency on deleted header file QuickTime/QuickTime.h

2016-10-17 Thread Ned Deily
Ned Deily added the comment: Lapsang, sorry but this bug tracker is not a help forum. There are many other, more appropriate places to ask for help in building software, like Stack Overflow or the Python mailing list. But, if you are not comfortable patching and building software from

[issue27806] 2.7 32-bit builds fail on macOS 10.12 Sierra due to dependency on deleted header file QuickTime/QuickTime.h

2016-10-17 Thread Lapsang Leaf
Lapsang Leaf added the comment: Yes, I understood that part, sorry. What I don’t understand is how to work/install the patch you have provided? So, again, please let me know, step by step, what I need to do to patch and get it running. Thanks > On 17 Oct 2016, at 17:04, Jeremy Sequoia

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): >

[issue28409] test.regrtest does not support multiple -x flags

2016-10-17 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the bug report Charalampos! It's now fixed. -- > Until python3.6.0a04 it was possible to pass multiple times the -x option at > regrtest. To be clear: the regrtest parser of command line argument was broken since Python 2.7 at least. "./python

[issue27778] PEP 524: Add os.getrandom()

2016-10-17 Thread STINNER Victor
STINNER Victor added the comment: Because of the lack of interest for getrandom_errno.patch, and Christian saying that it's not good to document specific errors, I now close the bug. Thank you all for your help on this nice security enhancement in Python 3.6! -- resolution: -> fixed

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

[issue28463] Email long headers parsing/serialization

2016-10-17 Thread Константин Волков
New submission from Константин Волков: There is strange thing with long headers serialized, they have \n prefix. Example fails on Python3.4/3.5: from email.message import Message from email import message_from_bytes x = '<147672320775.19544.6718708004153358...@mkren-spb.root.devdomain.local>'

[issue28463] Email long headers parsing/serialization

2016-10-17 Thread Константин Волков
Константин Волков added the comment: Something with copy paste. x = '<147672320775.19544.6718708004153358...@mkren-spb.root.devdomain.local>' -- ___ Python tracker

[issue28463] Email long headers parsing/serialization

2016-10-17 Thread Константин Волков
Константин Волков added the comment: Something with inserting long strings here. Its duplicating for some reason. Adding example as attachment. -- Added file: http://bugs.python.org/file45124/test.py ___ Python tracker

[issue28463] Email long headers parsing/serialization

2016-10-17 Thread R. David Murray
R. David Murray added the comment: Ah, interesting case. Both the old folder/parser and the new folder/parser fail, in slightly different ways. I'll have to add this test case to the tests as I finish rewriting the folder. Thanks for the report. --

[issue27659] Check for the existence of crypt()

2016-10-17 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Agreed. Adding -Werror=implicit-function-declaration is much simpler. Feel free to close it as rejected. -- ___ Python tracker

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

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

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,

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'

[issue28409] test.regrtest does not support multiple -x flags

2016-10-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > What is the difference between using parse_known_args() and nargs=argparse.REMAINDER? Using REMAINDER, args become ["b", "-c", "d"] for -a b -c d. I would be happy to not use parse_known_args(), but I didn't find how.

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 --

[issue28462] subprocess pipe can't see EOF from a child in case of a few children run with subprocess

2016-10-17 Thread Martin Panter
Changes by Martin Panter : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

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: 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