[issue28837] 2to3 does not wrap zip correctly

2017-04-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 93b4b47e3a720171d67f3b608de406aef462835c by Benjamin Peterson (Stuart Berg) in branch 'master': bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (#24)

[issue30004] in regex-howto, improve example on grouping

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +akuchling ___ Python tracker ___ ___

[issue29990] Range checking in GB18030 decoder

2017-04-05 Thread Xiang Zhang
Xiang Zhang added the comment: Yes, 0x80 doesn't matter here. It's nice to make the backporting PRs. But let's wait some time for ezio and haypo's comments and reviews. Get the master PR merged first and then continue on backporting. :-) -- ___

[issue30004] in regex-howto, improve example on grouping

2017-04-05 Thread Cristian Barbarosie
New submission from Cristian Barbarosie: In the Regular Expression HOWTO https://docs.python.org/3.6/howto/regex.html#regex-howto the last example in the "Grouping" section has a bug. The code is supposed to find repeated words, but it catches false repetitions. >>> p =

[issue29990] Range checking in GB18030 decoder

2017-04-05 Thread Ma Lin
Ma Lin added the comment: > except 0x80 (€) I suppose the English edition is not the final release of GB18030-2000. At the end of official Chinese edition of GB18030-2005, listed the difference between GB18030-2000 and GB18030-2005 clearly, it doesn't mention 0x80 (€), so GB18030-2000 should

[issue30003] Remove hz codec

2017-04-05 Thread Ma Lin
New submission from Ma Lin: hz is a Simplified Chinese codec, available in Python since around 2004. However, hz encoder has a serious bug, it forgets to escape ~ >>> 'hi~'.encode('hz') b'hi~'# the correct output should be b'hi~~' As a result, we can't finish a roundtrip: >>>

fresh install setup error

2017-04-05 Thread scooter800m
hi i just installed python 3.6.1 32-bit on my windows 7 home premium 64-bit. and i get a file missing error. i reinstalled and used the repairing thing and still no working python 3.6.1. here is the error message that i get: -- https://mail.python.org/mailman/listinfo/python-list

[issue30001] CPython contribution docs reference missing /issuetracker page

2017-04-05 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks for the report, Alex. The issue tracker for the devguide is at https://github.com/python/devguide Do you mind filling the issue there? I'm closing this since this tracks only issues for CPython. Thanks :) -- nosy: +Mariatta stage: -> resolved

[issue29990] Range checking in GB18030 decoder

2017-04-05 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> patch review versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue29990] Range checking in GB18030 decoder

2017-04-05 Thread Xiang Zhang
Xiang Zhang added the comment: The table in wikipedia is somewhat complex. I find ftp://ftp.software.ibm.com/software/globalization/documents/gb18030m.pdf and the table in it is same as https://pan.baidu.com/share/link?shareid=2606985291=3341026630 (except 0x80) but in English. I agree with

Re: Quick questions about globals and database connections

2017-04-05 Thread Dan Sommers
On Wed, 05 Apr 2017 22:00:46 -0400, DFS wrote: > I have a simple hard-coded check in place before even trying to connect: > > if dbtype not in ('sqlite postgres'): >print "db type must be sqlite or postgres" >exit() That's not doing what you think it is. Hint: What is ('sqlite

[issue30002] Minor change to https://docs.python.org/3.6/extending/building.html

2017-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not really sure that is a standard or even a best practice. I think some people do it and some don't. -- nosy: +rhettinger ___ Python tracker

[issue30002] Minor change to https://docs.python.org/3.6/extending/building.html

2017-04-05 Thread Arthur Goldberg
New submission from Arthur Goldberg: The core example on this page starts: from distutils.core import setup, Extension module1 = Extension('demo', sources = ['demo.c']) ... I suggest that 'sources = ['demo.c']' be changed to 'sources = ['demomodule.c']', because this

[issue30001] CPython contribution docs reference missing /issuetracker page

2017-04-05 Thread AJ Jordan
New submission from AJ Jordan: https://cpython-devguide.readthedocs.io/pullrequest.html#licensing (and presumably other pages in this project) references https://cpython-devguide.readthedocs.io/issuetracker, but this page returns 404 Not Found. -- assignee: docs@python components:

Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread eryk sun
On Thu, Apr 6, 2017 at 12:12 AM, MRAB wrote: import os [p for p in os.environ['PATH'].split(';') if 'Python35' in p] > > Remove those references from the PATH environment variable: > os.environ['PATH'] = ';'.join(p for p in os.environ['PATH'].split(';')

Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread MRAB
On 2017-04-05 19:46, Colin J. Williams wrote: Successful install reported, but: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\CJW>cd\python The system cannot find the path specified. C:\Users\CJW>cd\

Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread eryk sun
On Wed, Apr 5, 2017 at 6:46 PM, Colin J. Williams wrote: >Successful install reported, but: > > Microsoft Windows [Version 10.0.14393] > (c) 2016 Microsoft Corporation. All rights reserved. You're using Windows 10. > C:\Users\CJW>cd\python > The system

Problem installing 3.6.1 AMD64

2017-04-05 Thread Colin J. Williams
Successful install reported, but: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\CJW>cd\python The system cannot find the path specified. C:\Users\CJW>cd\ C:\>path PATH=C:\Program

[issue30000] Inconsistency in the zlib module

2017-04-05 Thread Ellison Marks
New submission from Ellison Marks: In the zlib module, three of the methods support the wbits parameter, those being zlib.compressobj, zlib.decompress and zlib.decompressobj. zlib.compress does not support the wbits parameter. Looking at the source for these functions, those that support the

Re: "pandas" pronunciation

2017-04-05 Thread Gregory Ewing
Neil Cerutti wrote: On 2017-04-03, Jay Braun wrote: I hear people say it like the plural of "panda", and others as "panduss". Is there a correct way? I think it is pronounced like the regular word. The second a is schwa in both the singular and plural. I think the OP

Re: Data exchange between python script and bash script

2017-04-05 Thread Gregory Ewing
Anssi Saari wrote: Bash manual explicitly states command substition (the $(...) structure) replaces the command with the standard *output* of the command. Another problem is your use of '&' here: sensor_data=$(python execute_sensor_process.py) & The '&' causes the whole command, including

[issue29999] repr() of ImportError misses keyword arguments name and path

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1179 ___ Python tracker ___ ___

[issue29999] repr() of ImportError misses keyword arguments name and path

2017-04-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The repr of standard exceptions usually looks as exception constructor used for creating that exception. But the repr of ImportError misses keyword arguments name and path. >>> ImportError('test', name='somename', path='somepath') ImportError('test',)

[issue25229] distutils doesn't add "-Wl, " prefix to "-R" on Linux if the C compiler isn't named 'gcc'

2017-04-05 Thread François Bissey
François Bissey added the comment: I am seeing this with clang on linux. It breaks the building pyzmq. I'll concur with Calvin that using just "-R" is wrong in the first place. Some compiler may pass it directly to the linker. But even in the linker, interpreting "-R" as a rpath if the

[issue29996] Use terminal width by default in pprint

2017-04-05 Thread Eryk Sun
Eryk Sun added the comment: > Though I don't have any idea if it works on Windows, but it seems > properly factored. Generally it should. However, os.get_terminal_size is unnecessarily limited to the standard handles with a hard-coded mapping 0 => StandardInput, 1 => StandardOutput, and 2 =>

[issue29996] Use terminal width by default in pprint

2017-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: * In IDLE sys.stdout.isatty() returns True, but sys.stdout.fileno() raises an exception. Terminal width can't be determined and the default 80 is used. * You always can pass explicit width to pprint. This may be needed even with default width 80. Now on

[issue29996] Use terminal width by default in pprint

2017-04-05 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: This is not a problem for doctests, since the output stream is not a terminal; the check for terminal-ness seems reasonable. (Though I don't have any idea if it works on Windows, but it seems properly factored.) --

[issue29996] Use terminal width by default in pprint

2017-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Some thoughts: * I'm not sure the terminal width will always be knowable, for example when using IDLE. * I often need smaller widths when printing short dicts and lists. The smaller widths better show the parallel structure. I think having it fill the

Re: Using TKinter to show popular tweets from twitter API (Tweepy)

2017-04-05 Thread Terry Reedy
On 4/5/2017 3:48 PM, uni...@gmail.com wrote: I'm building a python app where it should show the popular tweets > in boxes in line with each other using TKinter. By 'boxes' do you mean a visible border for Label widgets? If so, you have to configure one. You don't below. > The problem is

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread Skip Montanaro
David> This is something very different. David> New thinking and methods are needed. David> Try to click on the following link David> European Commission : CORDIS : Search : Results page Hopefully not too very different. :-) Looks to me like

Re: Request Help With pkexec

2017-04-05 Thread Wildman via Python-list
On Mon, 03 Apr 2017 14:29:56 -0500, Wildman wrote: > Python 3.4.2 > Tkinter 8.6 > GCC 4.9.1 on Linux > > I am working on a gui program using Tkinter. The program will > have a feature to restart as root. I am testing different gui > front-ends from a terminal to raise privileges and I want to >

[issue29998] Pickling and copying ImportError doesn't preserve name and path

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1178 ___ Python tracker ___ ___

[issue29998] Pickling and copying ImportError doesn't preserve name and path

2017-04-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Pickling and copying ImportError doesn't preserve name and path attributes. >>> import copy, pickle >>> e = ImportError('test', name='n', path='p') >>> e.name 'n' >>> e.path 'p' >>> e2 = pickle.loads(pickle.dumps(e, 4)) >>> e2.name >>> e2.path >>> e2 =

Re: Quick questions about globals and database connections

2017-04-05 Thread Dan Sommers
On Wed, 05 Apr 2017 14:56:12 -0400, DFS wrote: > I split the database connection code and settings into a module, so > the connection and setting values are available to other code modules > I have. Good work. > dbset.py > - > import sqlite3,

[issue29997] Suggested changes for https://docs.python.org/3.6/extending/extending.html

2017-04-05 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___

[issue29997] Suggested changes for https://docs.python.org/3.6/extending/extending.html

2017-04-05 Thread Arthur Goldberg
Arthur Goldberg added the comment: Also, Incorrect number agreement: s/strategy that minimizes this kind of errors/strategy that minimizes this kind of error/ -- ___ Python tracker

Using TKinter to show popular tweets from twitter API (Tweepy)

2017-04-05 Thread unihno
hello I'm building a python app where it should show the popular tweets in boxex in line with each other using TKinter. The problem is that the labels of the tweets are showing at the bottom of each other and i want them to be in boxes like this: | | | | | | | |

Re: Python 3.6 printing crashing on OS X 10.12.4

2017-04-05 Thread Python
Le 05/04/2017 à 20:14, Ray Cote a écrit : Hello: Python 3.6 crashing when trying to print from the environment. $ python Python 3.6.1 (default, Mar 22 2017, 15:53:21) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread David Shi via Python-list
Hi, Skip, This is something very different. New thinking and methods are needed. Try to click on the following link European Commission : CORDIS : Search : Results page | | | | | | | | | | | European Commission : CORDIS : Search : Results page European Commission | | | | Is

[issue29997] Suggested changes for https://docs.python.org/3.6/extending/extending.html

2017-04-05 Thread Arthur Goldberg
New submission from Arthur Goldberg: I've just taught myself how to write C extensions to Python with https://docs.python.org/3.6/extending/extending.html. I think it's quite good. Nevertheless, I've some suggested improvements. These all use the vi s/// replacement syntax. Ambiguous 'it':

[issue28765] _sre.compile(): be more strict on types of indexgroup and groupindex

2017-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch makes some operations slightly faster. $ ./python -m perf timeit -s 'import re; m = re.match(r"(?P\d+)(?:\.(?P\d*))?", "12.34")' -- --duplicate 100 'm.lastgroup' Unpatched: Median +- std dev: 204 ns +- 1 ns Patched:Median +- std dev: 167 ns

[issue28765] _sre.compile(): be more strict on types of indexgroup and groupindex

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1177 ___ Python tracker ___ ___

Python 3.6 printing crashing on OS X 10.12.4

2017-04-05 Thread Ray Cote
Hello: Python 3.6 crashing when trying to print from the environment. $ python Python 3.6.1 (default, Mar 22 2017, 15:53:21) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print("hello")

[issue29993] error of parsing encoded words in email of standard library

2017-04-05 Thread R. David Murray
R. David Murray added the comment: Actually, looking at the issue related to the patch, we conferred at the time, Barry, and decided on no backports. It was applied only to default. Sijian: the reason we put the issue number in the commit message is because the issue often contains relevant

[issue29962] Add math.remainder operation

2017-04-05 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29993] error of parsing encoded words in email of standard library

2017-04-05 Thread R. David Murray
R. David Murray added the comment: I consciously decided not to backport this to 2.7 at the time, though I'm not sure I said that out loud. I think it is too much of a behavior change for 2.7. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue29962] Add math.remainder operation

2017-04-05 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset a0ce375e10b50f7606cb86b072fed7d8cd574fe7 by Mark Dickinson in branch 'master': bpo-29962: add math.remainder (#950) https://github.com/python/cpython/commit/a0ce375e10b50f7606cb86b072fed7d8cd574fe7 --

[issue29996] Use terminal width by default in pprint

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1176 ___ Python tracker ___ ___

[issue29996] Use terminal width by default in pprint

2017-04-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: pprint() uses width=80 by default. But default output stream is sys.stdout which often is connected to a terminal, and terminals now usually have larger width than 80 columns. Proposed patch change the default value of the width parameter in pprint(). If

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread Peter Otten
David Shi via Python-list wrote: > I tried the following codes: > import urllib2response = > urllib2.urlopen('http://cordis.europa.eu/search/result_en?q=uk=csv')myCSV > = response.read() myFile = pd.read_csv(myCSV) > > but, it did not work well. > Can any one help? Looks like read_csv()

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread Skip Montanaro
I'm not positive, but try passing response to read_csv() instead of reading the bytes yourself. Skip On Apr 5, 2017 10:38 AM, "David Shi via Python-list" wrote: > > > I tried the following codes: > import urllib2response =

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2017-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list

[issue29992] Expose parse_string in JSONDecoder

2017-04-05 Thread Bob Ippolito
Bob Ippolito added the comment: I agree with that sentiment. If we were to want to support this use case I would rather put together a coherent way to augment the parsing/encoding of anything than bolt it on to what we have. -- ___ Python tracker

Re: How to make use of .egg files?

2017-04-05 Thread breamoreboy
On Wednesday, April 5, 2017 at 2:00:41 PM UTC+1, David Shi wrote: > Can anyone explain please. > Regards. > David Egg files are old, wheels are the new thing http://pythonwheels.com/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Quick questions about globals and database connections

2017-04-05 Thread Dan Sommers
On Wed, 05 Apr 2017 10:54:29 -0400, DFS wrote: > I have identical databases in sqlite and postgres. I want to run the > same code against them, but am having a small issue. > > Current code below throws the dreaded: > > NameError: global name 'db' is not defined > > on line 12 > > How do I

[issue29692] contextlib.contextmanager may incorrectly unchain RuntimeError

2017-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then the exception for the __exit__ method should be documented in PEP 8. -- ___ Python tracker ___

How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread David Shi via Python-list
I tried the following codes: import urllib2response = urllib2.urlopen('http://cordis.europa.eu/search/result_en?q=uk=csv')myCSV = response.read() myFile = pd.read_csv(myCSV) but, it did not work well. Can any one help? Regards. David -- https://mail.python.org/mailman/listinfo/python-list

[issue29993] error of parsing encoded words in email of standard library

2017-04-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 05, 2017, at 03:26 PM, Raymond Hettinger wrote: >Barry, is this something that should go back to 2.7 or is that pretty much >settled business at this point? I think we should not backport this. It's a behavior change and my concern would be that

[issue29692] contextlib.contextmanager may incorrectly unchain RuntimeError

2017-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: PEP 8's rule makes sense elsewhere, but for context managers I think an implicit return None is the norm and that making it explicit wouldn't improve readability. -- nosy: +rhettinger ___ Python tracker

[issue29569] threading.Timer class: Continue periodical execution till action returns True

2017-04-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29993] error of parsing encoded words in email of standard library

2017-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Barry, is this something that should go back to 2.7 or is that pretty much settled business at this point? -- nosy: +rhettinger ___ Python tracker

[issue29992] Expose parse_string in JSONDecoder

2017-04-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Library (Lib) versions: +Python 3.7 ___ Python tracker ___

Re: Quick questions about globals and database connections

2017-04-05 Thread John Gordon
In DFS writes: > I have identical databases in sqlite and postgres. I want to run the > same code against them, but am having a small issue. > Current code below throws the dreaded: > NameError: global name 'db' is not defined > on line 12 >

Re: Quick questions about globals and database connections

2017-04-05 Thread Joel Goldstick
On Wed, Apr 5, 2017 at 11:09 AM, Python wrote: > Le 05/04/2017 à 16:54, DFS a écrit : >> >> I have identical databases in sqlite and postgres. I want to run the >> same code against them, but am having a small issue. >> >> Current code below throws the dreaded: >> >>

[issue29947] In SocketServer, why not passing a factory instance for the RequestHandlerClass instead of the class itself?

2017-04-05 Thread Dominic Mayers
Changes by Dominic Mayers : Removed file: http://bugs.python.org/file46775/Issue29947_for_discussion_03.patch ___ Python tracker ___

[issue29947] In SocketServer, why not passing a factory instance for the RequestHandlerClass instead of the class itself?

2017-04-05 Thread Dominic Mayers
Dominic Mayers added the comment: An improved version of the patch, I hope. I will remove the old patch, because it's really does not help to see the old versions. -- Added file: http://bugs.python.org/file46781/Issue29947_for_discussion_04.patch

Re: Quick questions about globals and database connections

2017-04-05 Thread Python
Le 05/04/2017 à 16:54, DFS a écrit : I have identical databases in sqlite and postgres. I want to run the same code against them, but am having a small issue. Current code below throws the dreaded: NameError: global name 'db' is not defined on line 12 How do I fix it? I want to keep

[issue29992] Expose parse_string in JSONDecoder

2017-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree with Serhiy that the JSON module is already complex enough that adding more features will have a negative net effect on usability. Bob, what do you think? -- assignee: -> bob.ippolito nosy: +bob.ippolito

[issue13290] get vars for object with __slots__

2017-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > On any case, feel free to mark this as "rejected" or "wont fix" Okay, will do. And though I think the idea had some significant downsides, it is was creative and we appreciate the suggestion. -- resolution: -> rejected stage: needs patch ->

Re: "pandas" pronunciation

2017-04-05 Thread Neil Cerutti
On 2017-04-03, Jay Braun wrote: > I hear people say it like the plural of "panda", and others as > "panduss". Is there a correct way? I think it is pronounced like the regular word. The second a is schwa in both the singular and plural. -- Neil Cerutti --

[issue26789] Please do not log during shutdown

2017-04-05 Thread Charles Bouchard-Légaré
Changes by Charles Bouchard-Légaré : -- nosy: +Charles Bouchard-Légaré ___ Python tracker ___

[issue29995] re.escape() escapes too much

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1175 ___ Python tracker ___ ___

[issue13290] get vars for object with __slots__

2017-04-05 Thread João Bernardo
João Bernardo added the comment: Being the OP, at that time I felt it was important to have a vars() function that worked on __slots__ to ease something I was developing. The truth for me is: __slots__ is not really relevant anymore. The benefits it brings are not enough to make the feature

[issue29995] re.escape() escapes too much

2017-04-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: re.escape() escapes all the characters except ASCII letters, numbers and '_'. This is too excessive, makes escaping and compiling slower and makes the pattern less human-readable. Characters "!\"%&\',/:;<=>@_`~" as well as non-ASCII characters are always

Re: How to make use of .egg files?

2017-04-05 Thread Ralf Hildebrandt
* David Shi via Python-list : > Can anyone explain please. http://stackoverflow.com/questions/2051192/what-is-a-python-egg -- Ralf Hildebrandt Charite Universitätsmedizin Berlin ralf.hildebra...@charite.deCampus Benjamin Franklin

How to make use of .egg files?

2017-04-05 Thread David Shi via Python-list
Can anyone explain please. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Data exchange between python script and bash script

2017-04-05 Thread Anssi Saari
venkatachalam...@gmail.com writes: > For example, the data is printed in > execute_sensor_process.py as follows: > > print >>sys.stderr,sens_data > > By printing the data onto sys.stderr and assigning a return variable in the > bash, I am expecting the data to be assigned. > > But this is not

ANN: Python Meeting Düsseldorf - 05.04.2017

2017-04-05 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein

EuroPython 2017: Early-bird Tickets now on sale!

2017-04-05 Thread M.-A. Lemburg
Interested in attending EuroPython? Entry tickets are now on sale and available on our website. *** Buy your EuroPython ticket *** https://ep2017.europython.eu/en/registration/buy-tickets/ Tickets for EuroPython will be sold in three phases: First, we’ll have a short

Cheetah 3.0.0a1

2017-04-05 Thread Oleg Broytman
Hello! I'm happy to announce I revived development of Cheetah. Unfortunately I have to fork the project. I'm pleased to announce version 3.0.0a1, the first alpha of the upcoming release of branch 3.0 of CheetahTemplate3. What's new in CheetahTemplate3 ==

Wing Python IDE version 6.0.4 released

2017-04-05 Thread Wingware
Hi, We've just released Wing 6.0.4 which fixes remote development to systems with Python 3, addresses problems seen when switching between remote projects and when remote host configurations are missing or invalid, fixes text drag-and-drop, solves problems with analysis of some type

[Release] Pyo 0.8.5 (Python dsp library)

2017-04-05 Thread Olivier Bélanger
Hello all, I'm glad to announce the release of pyo 0.8.5, available for python 2.7 and 3.5. Pyo is a Python module written in C to help real-time digital signal processing script creation. It is available for Windows, macOS and linux. It is released under the LGPL 3 license. For more info,

[issue29353] Incorrect handling of HTTP response with "Content-Type: message/rfc822" header

2017-04-05 Thread R. David Murray
R. David Murray added the comment: I'm not surprised that trying to render a message parsed with 'headersonly' fails. headersonly treats the entire message body as a single string payload. I'm not sure what the correct behavior should be for the email package, but the fact that this doesn't

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Response to what I believe is latest patch.) In msg278666, my two suggestions were 'either...or', not both. The list came from Antti's msg278528, but the correct list for Python appears to be different, and different for bytes and unicode. When I made the

[issue29994] site.USER_SITE is None for Windows embeddable Python 3.6

2017-04-05 Thread Brecht Machiels
New submission from Brecht Machiels: Previous versions of the embeddable Python: Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import site >>>

[issue29992] Expose parse_string in JSONDecoder

2017-04-05 Thread Tobias Oberstein
Tobias Oberstein added the comment: I agree, my use case is probably exotic: transparent roundtripping of binaries over JSON using a beginning \0 byte marker to distinguish plain string and base64 encoded binaries. FWIW, I do think however that adding "parse_string" kw param to the ctor of

[issue29992] Expose parse_string in JSONDecoder

2017-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: JSONDecoder constructor already has too much parameters. Adding new parameters will decrease usability. For such uncommon case I think overriding a method in a subclass is the best solution. -- nosy: +ezio.melotti, rhettinger, serhiy.storchaka

[issue29993] error of parsing encoded words in email of standard library

2017-04-05 Thread sijian liang
New submission from sijian liang: This issue is fixed in python3 see https://github.com/python/cpython/commit/07ea53cb218812404cdbde820647ce6e4b2d0f8e -- components: email messages: 291171 nosy: barry, r.david.murray, sijian liang priority: normal severity: normal status: open title:

[issue29878] Add global instances of int 0 and 1

2017-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bae6881b4215b2613ad08ef0dc7bed7743c2b8cc by Serhiy Storchaka in branch 'master': Update Argument Clinic generated code for bpo-29878. (#1001) https://github.com/python/cpython/commit/bae6881b4215b2613ad08ef0dc7bed7743c2b8cc --

[issue29987] inspect.isgeneratorfunction not working with partial functions

2017-04-05 Thread Martin Panter
Martin Panter added the comment: Not in general. I think you would have to make special cases for partial functions, __wrapped__, and whatever else there is, and combinations of these. It would be very hard to determine the correct result for test2 in test2 = lambda: test(a=10) # test2()

[issue29878] Add global instances of int 0 and 1

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1174 ___ Python tracker ___ ___

Re: Does automatic golden master unittest generation exist/or is it feasible?

2017-04-05 Thread dieter
fle...@gmail.com writes: > I have a really large and mature codebase in py2, but with no test or > documentation. > > To resolve this I just had a simple idea to automatically generate tests and > this is how: > > 1. Have a decorator that logs all arguments and return values > > 2. Put them in

[issue29992] Expose parse_string in JSONDecoder

2017-04-05 Thread Tobias Oberstein
New submission from Tobias Oberstein: Though the JSONDecoder already has all the hooks internally to allow for a custom parse_string (https://github.com/python/cpython/blob/master/Lib/json/decoder.py#L330), this currently is not exposed in the constructor JSONDecoder.__init__. It would be

[issue29991] http client marks valid multipart headers with defects.

2017-04-05 Thread Martin Panter
Martin Panter added the comment: Looks like a duplicate of Issue 29353, which has a more complete patch proposed. However, see my comment about a problem with using heartersonly=True. My policy-flag.v2.patch for Issue 24363 may help (the details have faded from my mind, but I suspect it will

Re: Data transmission from Python script to bash script

2017-04-05 Thread dieter
venkatachalam...@gmail.com writes: > ... > I am writing a python code for processing a data obtained from a sensor. The > data from sensor is obtained by executing a python script. The data obtained > should be further given to another python module where the received data is > used for

[issue10076] Regex objects became uncopyable in 2.5

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1173 ___ Python tracker ___ ___

[issue10076] Regex objects became uncopyable in 2.5

2017-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since the pattern and the match objects can be considered as immutable, it is worth to implement __copy__ and __deepcopy__ returning the object itself. Proposed PR does this. It also fixes signatures of __deepcopy__ methods. Since copying didn't work in all

[issue29991] http client marks valid multipart headers with defects.

2017-04-05 Thread Paresh Verma
New submission from Paresh Verma: When http client parses a multipart response, it always taints the headers with defects. e.g. Use the attached file to start a simple http server, using current python exec, with commands: ```python .\example_bug.py server``` and run client with: ```python

[issue29955] logging decimal point should come from locale

2017-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since the date format itself isn't localized (fortunately), there is no reason to localize the decimal point either. People wanting a localized logging format can easily override the default configuration. And this proposal would break compatibility with

[issue29569] threading.Timer class: Continue periodical execution till action returns True

2017-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: This will obviously break some existing code which passes a function returning true to Timer. I concur with Raymond: I don't think this is a good idea. Also, the Timer class itself is a rather simplistic answer to the problem of scheduling callbacks in the

  1   2   >