[issue29278] Python 3.6 build fails with parallel make

2017-01-14 Thread Utku Gultopu
New submission from Utku Gultopu: Version Info Linux 4.4.0-59-generic #80-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux Issue = When the multiple jobs option (`make -j`) is specified, build fails after compiling the `structmember.c` file. Subsequent compilation attempts show the

[issue22302] Windows os.path.isabs UNC path bug

2017-01-14 Thread Eryk Sun
Changes by Eryk Sun : -- Removed message: http://bugs.python.org/msg226094 ___ Python tracker ___

[issue22302] Windows os.path.isabs UNC path bug

2017-01-14 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> needs patch versions: +Python 3.6, Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker ___

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-14 Thread Michael Felt
Michael Felt added the comment: Ok. I shall rebuild from scratch. When I do, I start from a "clean" system - only the compiler and my mkinstallp helper script. I am adding the latest zlib for what I would package but I shall forgoe that for this test. --

Re: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Steve D'Aprano
On Sun, 15 Jan 2017 05:46 am, Rodrick Brown wrote: > at some point the forking was working Then whatever you changed, you should change back to the way it was. That's the most important lesson here: never make two or more unrelated changes to a program unless you have a backup of the working

Re: How can I make a sentinel value NOT be initialized in a class/method - OOP?

2017-01-14 Thread Erik
[Replying to direct email. David - please respond to the list so that you can receive other people's suggestions also] Hi David, On 14/01/17 15:30, David D wrote: > 1) No this is not homework, I am doing this all on my own. In that case I apologise - I gave you the benefit of the doubt

[issue29248] os.readlink fails on Windows

2017-01-14 Thread Craig Holmquist
Craig Holmquist added the comment: New patch with test. I'm not sure if C:\Users\All Users and C:\ProgramData exist with those names on non-English installations of Windows. I set the test to skip if they aren't found. -- nosy: +craigh Added file:

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: transmogrify.h uses hack to share docstring. I can't find straightforward way. -- ___ Python tracker ___

[issue23407] os.walk always follows Windows junctions

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: Craig, can you add a patch for issue 29248, including a test based on the "All Users" link? -- dependencies: +os.readlink fails on Windows ___ Python tracker

Re: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread MRAB
On 2017-01-14 19:05, Joseph L. Casale wrote: while True: for client in clients: stats = ThreadStats() stats.start() p = Process(target=getWhispererLogsDirSize, args=(client,queue,)) jobs.append(p) p.start() p.join() You start one client then join before

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: Updated patch for unicodeobject. @taleinat, could you confirm it? -- nosy: +inada.naoki Added file: http://bugs.python.org/file46292/unicodeobject.c.v6.patch ___ Python tracker

[issue29256] Windows select() errors out when given no fds to select on, which breaks SelectSelector

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: Some WinSock functions are just dispatchers that call a provider function. The dispatch table is set up when WinSock (i.e. ws2_32.dll) calls the WSPStartup function [1] of a provider DLL (e.g. mswsock.dll). In the case of select(), it calls the socket provider's

RE: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Joseph L. Casale
> while True: >for client in clients: > stats = ThreadStats() > stats.start() > p = Process(target=getWhispererLogsDirSize, args=(client,queue,)) > jobs.append(p) > p.start() > p.join() You start one client then join before starting the next... Start them all

multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Rodrick Brown
I'm trying to implement a script that tracks how much space certain applications are using and send a metric to a statsd service for realtime analysis however when running this code it nots forking multiple processes its still running sequential at some point the forking was working but I can't

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 8:09:53 μ.μ. UTC+2, ο χρήστης duncan smith έγραψε: > On 14/01/17 14:59, Xristos Xristoou wrote: > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:38:39 μ.μ. UTC+2, ο χρήστης duncan smith > > έγραψε: > >> On 14/01/17 11:18, Xristos Xristoou wrote: > >>> i want to create a

[issue29275] time module still has Y2K issues note

2017-01-14 Thread SilentGhost
SilentGhost added the comment: The main message there is about the parsing of the two-digit year, so while it might worth it to remove the mention of Y2K, it would only be a minor change. -- nosy: +SilentGhost ___ Python tracker

Re: geopandas bug ?

2017-01-14 Thread duncan smith
On 14/01/17 14:59, Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:38:39 μ.μ. UTC+2, ο χρήστης duncan smith > έγραψε: >> On 14/01/17 11:18, Xristos Xristoou wrote: >>> i want to create a simple spatial joing using geopandas but i thing so >>> geopandas has bug ? >>> >>> >>> >>>

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Ari
Ari added the comment: Sorry, it was a false alarm. I had a poorly constructed testcase. I was trying to grab all image links from html markup while simultaneously substituting image links to somesite.com with links to anothersite.com. I had handle_starttag and handle_startendtag defined in

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Brendan Donegan
Brendan Donegan added the comment: I even get the correct behaviour in 2.7.12: Python 2.7.12+ (default, Sep 17 2016, 12:08:02) [GCC 6.2.0 20160914] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from HTMLParser import HTMLParser >>> class

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 6:33:54 μ.μ. UTC+2, ο χρήστης Peter Otten > έγραψε: >> Xristos Xristoou wrote: >> >> >> I suggest that you file a bug report. >> > >> > Mr.Peter Otten do you see my shapefiles ?have instersection 100 to 100 >> > i use instersection on

[issue26865] Meta-issue: support of the android platform

2017-01-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Current status: --- Available using the pyona build system [1]: * Cross compilation of Python for a given Android API level and architecture with android-ndk-r13b. * Cross compilation of third party extension modules (currently as a patch). *

[issue29277] os.getcwd failing on LOFS share

2017-01-14 Thread miniflow
New submission from miniflow: I am calling os.getcwd and am occasionally seeing failures inside my program. This is not due to files missing as the files on the share are static. Eror is: [Errno 2] No such file or directory Which is definitely not the case. Can any sort of trace be done at

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Xiang Zhang
Xiang Zhang added the comment: I can get the expected behaviour with the lastest 2.7 build. Python 2.7.13+ (2.7:0d4e0a736688, Jan 15 2017, 00:51:57) [GCC 5.2.1 20151010] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from HTMLParser import HTMLParser >>>

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 6:33:54 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > >> I suggest that you file a bug report. > > > > Mr.Peter Otten do you see my shapefiles ?have instersection 100 to 100 i > > use instersection on QGIS ad work fine > > Yes, I

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: >> I suggest that you file a bug report. > > Mr.Peter Otten do you see my shapefiles ?have instersection 100 to 100 i > use instersection on QGIS ad work fine Yes, I downloaded the zipfile at > https://www.dropbox.com/s/2693nfi248z0y9q/files.zip?dl=0 with the and when

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 6:01:39 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten > > έγραψε: > >> Xristos Xristoou wrote: > >> > >> > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2,

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten > έγραψε: >> Xristos Xristoou wrote: >> >> > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter >> > Otten έγραψε: >> >> Xristos Xristoou wrote: >> >> >> >> > i want to create

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Ari
New submission from Ari: The following code produces incorrect results under Python 2.7.13. One would expect it to print 2 lines, "Encountered a start tag: a" and "Encountered a start tag: img". Yet it prints only "Encountered a start tag: a". from HTMLParser import HTMLParser class

[issue29275] time module still has Y2K issues note

2017-01-14 Thread Elizabeth Myers
Changes by Elizabeth Myers : -- type: -> enhancement ___ Python tracker ___ ___

[issue29275] time module still has Y2K issues note

2017-01-14 Thread Elizabeth Myers
New submission from Elizabeth Myers: It's 2017. I think it's time to remove the Y2K warning from this: https://docs.python.org/3/library/time.html :P. It's 17 years past the sell-by date for that notice. -- assignee: docs@python components: Documentation messages: 285489 nosy:

[issue23407] os.walk always follows Windows junctions

2017-01-14 Thread Craig Holmquist
Craig Holmquist added the comment: New patch with spaces instead of tabs -- Added file: http://bugs.python.org/file46291/issue23407-4.patch ___ Python tracker

[issue29248] os.readlink fails on Windows

2017-01-14 Thread Craig Holmquist
Changes by Craig Holmquist : -- keywords: +patch Added file: http://bugs.python.org/file46290/issue29248.patch ___ Python tracker

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-14 Thread David Edelsohn
David Edelsohn added the comment: Michael, you need to build from scratch. The values are set and tweaked in various phases of configure and then written to _sysconfigdata.py for installation. The values in the file reflect the values used during the build, but many of them are not used in

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:38:39 μ.μ. UTC+2, ο χρήστης duncan smith έγραψε: > On 14/01/17 11:18, Xristos Xristoou wrote: > > i want to create a simple spatial joing using geopandas but i thing so > > geopandas has bug ? > > > > > > > > geopandas code : > > > > from geopandas import

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten > > έγραψε: > >> Xristos Xristoou wrote: > >> > >> > i want to create a simple spatial joing using

[issue23407] os.walk always follows Windows junctions

2017-01-14 Thread Craig Holmquist
Craig Holmquist added the comment: Here's a new patch: now, _Py_attribute_data_to_stat and Py_DeleteFileW will just use the IsReparseTagNameSurrogate macro to determine if the file is a link, so os.walk etc. will know not to follow them. os.readlink, however, will only work with junctions

[issue26296] colorsys rgb_to_hls algorithm error

2017-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The modulus fixes it for exact numbers. It doesn't produce exactly the same > result with floats, because of rounding. Is that a problem? I don't think that is a problem. The function uses a number of floating point operations producing inexact

[issue29259] Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: I've created pull request about it: https://github.com/haypo/cpython/pull/1 -- ___ Python tracker ___

[issue29262] Provide a way to check for *real* typing.Union instances

2017-01-14 Thread Evan
Evan added the comment: I'm also interested in this. I've been using 'thing.__origin__ is typing.Union', but this doesn't work in some of the older versions of typing. -- nosy: +evan_ ___ Python tracker

Re: geopandas bug ?

2017-01-14 Thread duncan smith
On 14/01/17 11:18, Xristos Xristoou wrote: > i want to create a simple spatial joing using geopandas but i thing so > geopandas has bug ? > > > > geopandas code : > > from geopandas import gpd > import geopandas > points = geopandas.GeoDataFrame.from_file('points.shp') # or geojson etc >

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten > > έγραψε: > >> Xristos Xristoou wrote: > >> > >> > i want to create a simple spatial joing using

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten > έγραψε: >> Xristos Xristoou wrote: >> >> > i want to create a simple spatial joing using geopandas but i thing so >> > geopandas has bug ? >> >> Have you tried the examples on

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > i want to create a simple spatial joing using geopandas but i thing so > > geopandas has bug ? > > Have you tried the examples on ? > Do

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: > it should be replaced with sys.getfilesystemencodeerrors() > to support UTF-8 Strict mode. I did that in the patch for issue 28188. The focus of the patch is to add bytes support on Windows for os.putenv and os.environb, but I also tried to maximize consistency

[issue29062] hashlib documentation link error

2017-01-14 Thread INADA Naoki
Changes by INADA Naoki : -- status: open -> closed ___ Python tracker ___ ___

[issue29264] sparc/ffi.c:440 error: 'asm' undeclared

2017-01-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Since Python 3.6, building ctypes with bundled libffi is deprecated. Please build libffi separately and configure CPython with --with-system-ffi. This issue can be closed as third-party. -- nosy: +Chi Hsuan Yen ___

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > i want to create a simple spatial joing using geopandas but i thing so > geopandas has bug ? Have you tried the examples on ? Do they work? If yes, inspect your data, does it have the same format? > geopandas code : > > from

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: Resolving this would be straightforward if we could use a subclass for the swapped type, but ctypes simple types behave differently for subclasses. A simple subclass doesn't automatically call the getfunc to get a converted value when returned as a function result,

[issue29274] Change “tests cases” → “test cases”

2017-01-14 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +michael.foord ___ Python tracker ___ ___

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: TclError in Terry's example is raised because Tcl script has unpaired braces. You should add "{" at the end of TIX_LIBRARY. Here is working exploit: $ TIX_LIBRARY="/dev/null}; exec python3 -m this >spoiled; set x {" python3 -c "from tkinter.tix import Tk;

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2017-01-14 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I commented at the Rietveld, since I think that patch needs a bit more modification. * rename PyThread_ReInitTLS * update comments and messages that have explained CPython TLS API -- ___ Python tracker

[issue29062] hashlib documentation link error

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: Martin, thank you for pointing it out. I hadn't know about suspicious check. -- ___ Python tracker ___

[issue29062] hashlib documentation link error

2017-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea0c488b9bac by INADA Naoki in branch '3.6': Issue #29062: Doc: Fix make suspicious https://hg.python.org/cpython/rev/ea0c488b9bac New changeset 5c48fbe12cb8 by INADA Naoki in branch 'default': Issue #29062: Doc: Fix make suspicious

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, re-using Python-level method objects in different types is genuinely invalid when combined with __class__ or zero-argument super(), as there's no way to make the __class__ closure refer to two different classes at runtime - it will always refer back to

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: OK, this is completely broken and needs a more thoughtful solution than my simpleminded hack. Here's a practical example of the problem, tested in 3.5.2: class MyInt(ctypes.c_int): def __repr__(self): return super().__repr__() class

geopandas bug ?

2017-01-14 Thread Xristos Xristoou
i want to create a simple spatial joing using geopandas but i thing so geopandas has bug ? geopandas code : from geopandas import gpd import geopandas points = geopandas.GeoDataFrame.from_file('points.shp') # or geojson etc polys = geopandas.GeoDataFrame.from_file('polygons.shp') pointInPoly

geopandas bug ?

2017-01-14 Thread Xristos Xristoou
i want to create a simple spatial joing using geopandas but i thing so geopandas has bug ? geopandas code : from geopandas import gpd import geopandas points = geopandas.GeoDataFrame.from_file('points.shp') # or geojson etc polys = geopandas.GeoDataFrame.from_file('polygons.shp') pointInPoly

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Dave Jones
Dave Jones added the comment: I confess I'm going to have to read a bit more about Python internals before I can understand Eryk's analysis (this is my first encounter with "cell objects"), but many thanks for the rapid analysis and patch! I'm not too concerned about the state being broken

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the original code, python interpolates tixlib into the string sent to and executed by tcl exec. With the patch, tcl exec does the interpolation. Not knowing anything in particular about tcl's exec, I found a value for tixlib that appears to validate

[issue15527] Double parens in functions references

2017-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset be4da80b493e by Martin Panter in branch '2.7': Issue #15527: remove double parens by changing markup. https://hg.python.org/cpython/rev/be4da80b493e -- ___ Python tracker

Re: Announcement: TLSv1.2 will become mandatory in the future for Python.org Sites

2017-01-14 Thread dieter
oliver writes: > When I run this per email from my work laptop, > > python3 -c "import urllib.request,json; > print(json.loads(urllib.request.urlopen(' > https://www.howsmyssl.com/a/check').read())['tls_version'])" > > I get the following traceback: > ... > File

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2017-01-14 Thread Armin Rigo
Armin Rigo added the comment: larry: unless someone else comments, I think now that the current status of 3.5.3 is fine enough (nothing was done in this branch, and the problem I describe and just fixed in PyPy can be left for later). The revert dd13098a5dc2 needs to be itself reverted in the

Re: Python Web Scrapping : Within href readonly those value that have href in it

2017-01-14 Thread Peter Otten
shahs...@gmail.com wrote: > I am trying to scrape a webpage just for learning. In that webpage there > are multiple "a" tags. consider the below code > > Something > > Something These are probaly all forward slashes. > Now i want to read only those href in which there is http. My Current

Re: Running Virtualenv with a custom distlib?

2017-01-14 Thread dieter
haraldnordg...@gmail.com writes: > I want to do some development on `distlib`, and in the process run the code > via `virtualenv` which has distlib as a dependency. > > That is, not run the process inside a virtualenv, but run virtualenv's code > using a custom dependency. What are the steps I

Re: timers in threaded application

2017-01-14 Thread dieter
Skip Montanaro writes: > On Fri, Jan 13, 2017 at 3:23 AM, dieter wrote: > >> If what you want to timeout are not I/O operations, you can have a >> look at "threading.Timer". It uses a separate thread, lets it wait >> a specified time and then

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Nick Coghlan
Nick Coghlan added the comment: Eryk's diagnosis sounds right to me, and the suggested patch will get this back to working as well as it did in Python 3.5. However, it's worth noting that that state itself was already broken when it comes to zero-argument super() support on the type