xlwings v0.2.3 released
I am happy to announce the release of xlwings v0.2.3: Lot of bug fixes and new features like: - Sheet.add(), Sheet.count(), Sheet.all(), Sheet(1).autofit() - Range('A1').number_format(), Range((1,1)).get_address() and more, see the Release Notes here: http://docs.xlwings.org/whatsnew.html About xlwings: xlwings is a BSD-licensed python library that makes it easy to call python from Excel and vice versa: Interact with Excel from python using a syntax that is close to VBA yet pythonic. Replace your VBA macros with python code and still pass around your workbooks as easily as before. xlwings fully supports NumPy arrays and Pandas DataFrames. It works with Microsoft Excel on Windows and Mac. http://xlwings.org -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
2d color-bar map plot
Dear all, I am bit new to the python/pyplot. This might be simple, but I guess I am missing something here. I have data file as follows: 2.1576318858 -1.8651195165 4.2333428278 2.1681875208 -1.9229968780 4.1989176884 2.3387636157 -2.0376253255 2.4460899122 2.1696565965 -2.6186941271 4.4172007912 2.0848862071 -2.1708981985 3.3404520962 2.0824347942 -1.9142798955 3.3629290206 2.0281685821 -1.8103363482 2.5446721669 2.3309993378 -1.8721153619 2.7006893016 2.0957461483 -1.5379071451 4.5228264441 2.2761376261 -2.5935979811 3.9231744717 . . . (total of 200 lines) Columns 1,2,3 corresponds to x,y,z axis data points. This is not a continuous data. I wish to make a plot as a 2D with 3rd dimension (i.e z-axis data) as a color map with color bar on right hand side. As a beginner, I tried to follow tutorial with some modification as follows: http://matplotlib.org/examples/pylab_examples/tricontour_vs_griddata.html # Read data from file: fl1 = open('flooding-psiphi.dat','r').readlines() xs = ys = zs = [] for line in fl1: line = line.split() xs.append(float(line[0])) ys.append(float(line[1])) zs.append(float(line[2])) print xs[0], ys[0], zs[0] xi = np.mgrid[-5.0:5.0:200j] yi = np.mgrid[-5.0:5.0:200j] zi = griddata((x, y), z, (xi, yi), method='cubic') plt.subplot(221) plt.contour(xi, yi, zi, 15, linewidths=0.5, colors='k') plt.contourf(xi, yi, zi, 15, cmap=plt.cm.rainbow, norm=plt.Normalize(vmax=abs(zi).max(), vmin=-abs(zi).max())) plt.colorbar() # draw colorbar plt.plot(x, y, 'ko', ms=3) plt.xlim(-5, 5) plt.ylim(-5, 5) plt.title('griddata and contour (%d points, %d grid points)' % (npts, ngridx*ngridy)) #print ('griddata and contour seconds: %f' % (time.clock() - start)) plt.gcf().set_size_inches(6, 6) plt.show() However, I failed and getting long error as follows: QH6154 qhull precision error: initial facet 1 is coplanar with the interior point ERRONEOUS FACET: - f1 - flags: bottom simplicial upperDelaunay flipped - normal:0.7071 -0.70710 - offset: -0 - vertices: p600(v2) p452(v1) p304(v0) - neighboring facets: f2 f3 f4 While executing: | qhull d Qz Qbb Qt Options selected for Qhull 2010.1 2010/01/14: run-id 1531309415 delaunay Qz-infinity-point Qbbound-last Qtriangulate _pre-merge _zero-centrum Pgood _max-width 8.8 Error-roundoff 1.2e-14 _one-merge 8.6e-14 _near-inside 4.3e-13 Visible-distance 2.5e-14 U-coplanar-distance 2.5e-14 Width-outside 4.9e-14 _wide-facet 1.5e-13 precision problems (corrected unless 'Q0' or an error) 2 flipped facets The input to qhull appears to be less than 3 dimensional, or a computation has overflowed. Qhull could not construct a clearly convex simplex from points: - p228(v3): 2.4 2.4 1.4 - p600(v2): 1.4 1.4 8.8 - p452(v1): 5.7 5.7 8 - p304(v0): -3.1 -3.1 2.4 The center point is coplanar with a facet, or a vertex is coplanar with a neighboring facet. The maximum round off error for computing distances is 1.2e-14. The center point, facets and distances to the center point are as follows: center point1.5951.5955.173 facet p600 p452 p304 distance=0 facet p228 p452 p304 distance=0 facet p228 p600 p304 distance=0 facet p228 p600 p452 distance=0 These points either have a maximum or minimum x-coordinate, or they maximize the determinant for k coordinates. Trial points are first selected from points that maximize a coordinate. The min and max coordinates for each dimension are: 0:-3.134 5.701 difference= 8.835 1:-3.134 5.701 difference= 8.835 2: -2.118e-22 8.835 difference= 8.835 If the input should be full dimensional, you have several options that may determine an initial simplex: - use 'QJ' to joggle the input and make it full dimensional - use 'QbB' to scale the points to the unit cube - use 'QR0' to randomly rotate the input for different maximum points - use 'Qs' to search all points for the initial simplex - use 'En' to specify a maximum roundoff error less than 1.2e-14. - trace execution with 'T3' to see the determinant for each point. If the input is lower dimensional: - use 'QJ' to joggle the input and make it full dimensional - use 'Qbk:0Bk:0' to delete coordinate k from the input. You should pick the coordinate with the least range. The hull will have the correct topology. - determine the flat containing the points, rotate the points into a coordinate plane, and delete the other coordinates. - add one or more points to make the input full dimensional. Traceback (most recent call last): File ./scatter.py, line 43, in module zi = griddata((x, y), z, (xi, yi), method='linear') File /usr/lib/python2.7/dist-packages/scipy/interpolate/ndgriddata.py, line 183, in griddata ip = LinearNDInterpolator(points, values, fill_value=fill_value) File interpnd.pyx, line 192, in scipy.interpolate.interpnd.LinearNDInterpolator.__init__
Convert Qstring to string in windows
I have been tryed to convert a Qstring text to string on python, in linux that work fine but in windows when qstring contine á,é,í,ó,ú the converted text is not correct, contine extranger characters, this qstring text is an url from qdialogtext. in linux i do for this way: pythonstringtext=qstringtext.text().toUtf8.data() and it return a python string correctly. i need some help plese... .C@rlos III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.uci.cu -- https://mail.python.org/mailman/listinfo/python-list
[no subject]
Hello, This might be simple, but I guess I am missing something here. I have data file as follows: 2.1576318858 -1.8651195165 4.2333428278 2.1681875208 -1.9229968780 4.1989176884 2.3387636157 -2.0376253255 2.4460899122 2.1696565965 -2.6186941271 4.4172007912 2.0848862071 -2.1708981985 3.3404520962 2.0824347942 -1.9142798955 3.3629290206 2.0281685821 -1.8103363482 2.5446721669 2.3309993378 -1.8721153619 2.7006893016 2.0957461483 -1.5379071451 4.5228264441 2.2761376261 -2.5935979811 3.9231744717 . . . (total of 200 lines) Columns 1,2,3 corresponds to x,y,z axis data points. This is not a continuous data. I wish to make a plot as a 2D with 3rd dimension (i.e z-axis data) as a color map with color bar on right hand side. As a beginner, I tried to follow tutorial with some modification as follows: http://matplotlib.org/examples/pylab_examples/tricontour_vs_griddata.html # Read data from file: fl1 = open('flooding-psiphi.dat','r').readlines() xs = ys = zs = [] for line in fl1: line = line.split() xs.append(float(line[0])) ys.append(float(line[1])) zs.append(float(line[2])) print xs[0], ys[0], zs[0] xi = np.mgrid[-5.0:5.0:200j] yi = np.mgrid[-5.0:5.0:200j] zi = griddata((x, y), z, (xi, yi), method='cubic') plt.subplot(221) plt.contour(xi, yi, zi, 15, linewidths=0.5, colors='k') plt.contourf(xi, yi, zi, 15, cmap=plt.cm.rainbow, norm=plt.Normalize(vmax=abs(zi).max(), vmin=-abs(zi).max())) plt.colorbar() # draw colorbar plt.plot(x, y, 'ko', ms=3) plt.xlim(-5, 5) plt.ylim(-5, 5) plt.title('griddata and contour (%d points, %d grid points)' % (npts, ngridx*ngridy)) #print ('griddata and contour seconds: %f' % (time.clock() - start)) plt.gcf().set_size_inches(6, 6) plt.show() However, I failed and getting long error as follows: QH6154 qhull precision error: initial facet 1 is coplanar with the interior point ERRONEOUS FACET: - f1 - flags: bottom simplicial upperDelaunay flipped - normal:0.7071 -0.70710 - offset: -0 - vertices: p600(v2) p452(v1) p304(v0) - neighboring facets: f2 f3 f4 While executing: | qhull d Qz Qbb Qt Options selected for Qhull 2010.1 2010/01/14: run-id 1531309415 delaunay Qz-infinity-point Qbbound-last Qtriangulate _pre-merge _zero-centrum Pgood _max-width 8.8 Error-roundoff 1.2e-14 _one-merge 8.6e-14 _near-inside 4.3e-13 Visible-distance 2.5e-14 U-coplanar-distance 2.5e-14 Width-outside 4.9e-14 _wide-facet 1.5e-13 precision problems (corrected unless 'Q0' or an error) 2 flipped facets The input to qhull appears to be less than 3 dimensional, or a computation has overflowed. Qhull could not construct a clearly convex simplex from points: - p228(v3): 2.4 2.4 1.4 - p600(v2): 1.4 1.4 8.8 - p452(v1): 5.7 5.7 8 - p304(v0): -3.1 -3.1 2.4 The center point is coplanar with a facet, or a vertex is coplanar with a neighboring facet. The maximum round off error for computing distances is 1.2e-14. The center point, facets and distances to the center point are as follows: center point1.5951.5955.173 facet p600 p452 p304 distance=0 facet p228 p452 p304 distance=0 facet p228 p600 p304 distance=0 facet p228 p600 p452 distance=0 These points either have a maximum or minimum x-coordinate, or they maximize the determinant for k coordinates. Trial points are first selected from points that maximize a coordinate. The min and max coordinates for each dimension are: 0:-3.134 5.701 difference= 8.835 1:-3.134 5.701 difference= 8.835 2: -2.118e-22 8.835 difference= 8.835 If the input should be full dimensional, you have several options that may determine an initial simplex: - use 'QJ' to joggle the input and make it full dimensional - use 'QbB' to scale the points to the unit cube - use 'QR0' to randomly rotate the input for different maximum points - use 'Qs' to search all points for the initial simplex - use 'En' to specify a maximum roundoff error less than 1.2e-14. - trace execution with 'T3' to see the determinant for each point. If the input is lower dimensional: - use 'QJ' to joggle the input and make it full dimensional - use 'Qbk:0Bk:0' to delete coordinate k from the input. You should pick the coordinate with the least range. The hull will have the correct topology. - determine the flat containing the points, rotate the points into a coordinate plane, and delete the other coordinates. - add one or more points to make the input full dimensional. Traceback (most recent call last): File ./scatter.py, line 43, in module zi = griddata((x, y), z, (xi, yi), method='linear') File /usr/lib/python2.7/dist-packages/scipy/interpolate/ndgriddata.py, line 183, in griddata ip = LinearNDInterpolator(points, values, fill_value=fill_value) File interpnd.pyx, line 192, in scipy.interpolate.interpnd.LinearNDInterpolator.__init__ (scipy/interpolate/interpnd.c:2598) File qhull.pyx, line
Help in using grako for parsing
Hello, I am trying to parse a file which ahs the below content. I tried using the split function but that wasn't a good programming practice. I had to use it repeatedly to split the line and then read my data. I thought of doing it in a better way which is when I came across grako. But I have no idea whatsoever about the usage of grako in a script. It would be nice if any of you could help me understand the usage of grako. I need to extract the values beside the variables z, f and x. The numbers represent the request ID, virtualNode ID and physical nodeID for x and it varies a bit for f, Thanks a lot z_0 1.00 x_0_0_1 1.00 x_0_1_5 1.00 x_0_2_20 1.00 x_0_3_21 1.00 x_0_4_8 1.00 f_0_0(0,1)_(1,5) 1.00 f_0_1(1,2)_(5,9) 1.00 f_0_1(1,2)_(9,20)1.00 f_0_2(2,3)_(2,21)1.00 f_0_2(3,2)_(2,22)1.00 f_0_2(2,3)_(20,22) 1.00 f_0_3(4,3)_(8,10)1.00 f_0_3(3,4)_(0,10)1.00 f_0_3(4,3)_(0,14)1.00 f_0_3(4,3)_(14,21) 1.00 z_1 1.00 x_1_0_16 1.00 x_1_1_6 1.00 x_1_2_13 1.00 x_1_3_0 1.00 x_1_4_25 1.00 x_1_5_15 1.00 x_1_6_19 1.00 f_1_0(1,0)_(6,16)1.00 f_1_1(0,2)_(6,11)1.00 f_1_1(0,2)_(11,13) 1.00 f_1_1(2,0)_(6,16)1.00 f_1_2(3,1)_(0,6) 1.00 f_1_3(2,4)_(13,25) 1.00 f_1_4(5,4)_(15,25) 1.00 f_1_5(3,6)_(0,1) 1.00 f_1_5(3,6)_(1,18)1.00 f_1_5(3,6)_(18,19) 1.00 -- https://mail.python.org/mailman/listinfo/python-list
Re: Help in using grako for parsing
varun...@gmail.com wrote: Hello, I am trying to parse a file which ahs the below content. I tried using the split function but that wasn't a good programming practice. I had to use it repeatedly to split the line and then read my data. I thought of doing it in a better way which is when I came across grako. But I have no idea whatsoever about the usage of grako in a script. It would be nice if any of you could help me understand the usage of grako. I need to extract the values beside the variables z, f and x. The numbers represent the request ID, virtualNode ID and physical nodeID for x and it varies a bit for f, We know Python, but not necessarily any terminology you throw at us. I didn't respond to your previous post because I had no idea what a .sol file is and what you're up to. As far as I can see no-one did. Now you make it even harder to help you by forcing us to look up grako to not (sic!) understand your question... You give sample input below. Perhaps you'll get more/better feedback if you provide a sample of the output you need, too, together with a more elaborate and accessible explanation of how you think you could get there. z_0 1.00 x_0_0_1 1.00 x_0_1_5 1.00 x_0_2_20 1.00 x_0_3_21 1.00 x_0_4_8 1.00 f_0_0(0,1)_(1,5) 1.00 f_0_1(1,2)_(5,9) 1.00 f_0_1(1,2)_(9,20)1.00 f_0_2(2,3)_(2,21)1.00 f_0_2(3,2)_(2,22)1.00 f_0_2(2,3)_(20,22) 1.00 f_0_3(4,3)_(8,10)1.00 f_0_3(3,4)_(0,10)1.00 f_0_3(4,3)_(0,14)1.00 f_0_3(4,3)_(14,21) 1.00 z_1 1.00 x_1_0_16 1.00 x_1_1_6 1.00 x_1_2_13 1.00 x_1_3_0 1.00 x_1_4_25 1.00 x_1_5_15 1.00 x_1_6_19 1.00 f_1_0(1,0)_(6,16)1.00 f_1_1(0,2)_(6,11)1.00 f_1_1(0,2)_(11,13) 1.00 f_1_1(2,0)_(6,16)1.00 f_1_2(3,1)_(0,6) 1.00 f_1_3(2,4)_(13,25) 1.00 f_1_4(5,4)_(15,25) 1.00 f_1_5(3,6)_(0,1) 1.00 f_1_5(3,6)_(1,18)1.00 f_1_5(3,6)_(18,19) 1.00 -- https://mail.python.org/mailman/listinfo/python-list
Re: Help in using grako for parsing
I'm really sorry for not being clear. I shall explain things in detail from now onwards. Really sorry. The output I would like is RF schema=RF.xsd version= VNE requests request ID='0' virtualnodes virtualnode PhysicalNode_ID='1' Request_ID='0' VirtualNode_ID='0'/virtualnode PhysicalNode_ID='5' Request_ID='0' VirtualNode_ID='1'/virtualnode PhysicalNode_ID='20' Request_ID='0' VirtualNode_ID='2'/virtualnode PhysicalNode_ID='21' Request_ID='0' VirtualNode_ID='3'/virtualnode PhysicalNode_ID='8' Request_ID='0' VirtualNode_ID='4'//virtualnodes virtualedges virtualedge PhysicalEdgeHead_ID='5' PhysicalEdgeTail_ID='1' Request_ID='0' VirtualEdgeHead_ID='1' VirtualEdgeTail_ID='0'/virtualedge PhysicalEdgeHead_ID='9' PhysicalEdgeTail_ID='5' Request_ID='0' VirtualEdgeHead_ID='2' VirtualEdgeTail_ID='1'/virtualedge PhysicalEdgeHead_ID='20' PhysicalEdgeTail_ID='9' Request_ID='0' VirtualEdgeHead_ID='2' VirtualEdgeTail_ID='1'/virtualedge PhysicalEdgeHead_ID='21' PhysicalEdgeTail_ID='2' Request_ID='0' VirtualEdgeHead_ID='3' VirtualEdgeTail_ID='2'/virtualedge PhysicalEdgeHead_ID='22' PhysicalEdgeTail_ID='2' Request_ID='0' VirtualEdgeHead_ID='2' VirtualEdgeTail_ID='3'/virtualedge PhysicalEdgeHead_ID='22' PhysicalEdgeTail_ID='20' Request_ID='0' VirtualEdgeHead_ID='3' VirtualEdgeTail_ID='2'/virtualedge PhysicalEdgeHead_ID='10' PhysicalEdgeTail_ID='8' Request_ID='0' VirtualEdgeHead_ID='3' VirtualEdgeTail_ID='4'/virtualedge PhysicalEdgeHead_ID='10' PhysicalEdgeTail_ID= '0' Request_ID='0' VirtualEdgeHead_ID='4' VirtualEdgeTail_ID='3'/virtualedge PhysicalEdgeHead_ID='14' PhysicalEdgeTail_ID='0' Request_ID='0' VirtualEdgeHead_ID='3' VirtualEdgeTail_ID='4'/virtualedge PhysicalEdgeHead_ID='21' PhysicalEdgeTail_ID='14' Request_ID='0' VirtualEdgeHead_ID='3' VirtualEdgeTail_ID='4'//virtualedges In a similar way I have something like this for every request. This is what I intend to get from the input that I had pasted earlier. -- https://mail.python.org/mailman/listinfo/python-list
Re: Help in using grako for parsing
Oh damn, it turned out really crappy. I could not format it properly -- https://mail.python.org/mailman/listinfo/python-list
windows log to event viewer
Hello, I am trying to run a tcp server as a windows service. The project also includes an application layer protocol somewhat like CoAP and few soap calls to data base. There is some moment the code enter into exception during a soap method call. This exception is not viewed in Windows event viewer. Should I specify somewhere to log these exception in windows event viewer. Or, give me some suggestion how to log some Critical message in windows log. -- nambi -- https://mail.python.org/mailman/listinfo/python-list
Re: your mail
On 17Oct2014 11:45, Dhananjay dhananjay.c.jo...@gmail.com wrote: This might be simple, but I guess I am missing something here. I have data file as follows: 2.1576318858 -1.8651195165 4.2333428278 2.1681875208 -1.9229968780 4.1989176884 2.3387636157 -2.0376253255 2.4460899122 2.1696565965 -2.6186941271 4.4172007912 2.0848862071 -2.1708981985 3.3404520962 2.0824347942 -1.9142798955 3.3629290206 2.0281685821 -1.8103363482 2.5446721669 2.3309993378 -1.8721153619 2.7006893016 2.0957461483 -1.5379071451 4.5228264441 2.2761376261 -2.5935979811 3.9231744717 (total of 200 lines) Columns 1,2,3 corresponds to x,y,z axis data points. This is not a continuous data. I wish to make a plot as a 2D with 3rd dimension (i.e z-axis data) as a color map with color bar on right hand side. As a beginner, I tried to follow tutorial with some modification as follows: http://matplotlib.org/examples/pylab_examples/tricontour_vs_griddata.html [...] Initially I've just got comments about the code in general, though they may help you find your issues. # Read data from file: fl1 = open('flooding-psiphi.dat','r').readlines() This reads all the lines into memory, into the list fl1. For 200 lines this is not a bit issue, but since you process them immediately you are usually better off reading the file progressively. xs = ys = zs = [] This is actually a bug in your code. I would guess you've based it on other example code such as: x = y = z = 0 The problem is that both these assignment statements assign the _same_ object to all 3 variables. With an int or a str this isn't an issue because they are immutable; any further math or modification actually makes new objects. However, you use: xs = ys = zs = [] This makes exactly _one_ list, and assigns it (binds it in Python terms) to all three names. The result is that when you append to the list, you're appending to the same list every time. Effectively this means (1) that xs, ys and zs have the same values and (2) they're 3 times as long as they should be. Do this: xs = [] ys = [] zs = [] That makes three separate lists. for line in fl1: line = line.split() xs.append(float(line[0])) ys.append(float(line[1])) zs.append(float(line[2])) Returning to the reading the file progressively thing, for a really big file (and as a matter of general practice) you're better off writing this like: for line in open('flooding-psiphi.dat','r'): line = line.split() xs.append(float(line[0])) ys.append(float(line[1])) zs.append(float(line[2])) which only ever reads one line of text from the file at a time. Start by fixing the: xs = ys = zs = [] assignment and see how the behaviour changes. Cheers, Cameron Simpson c...@zip.com.au -- https://mail.python.org/mailman/listinfo/python-list
Re: Permissions on files installed by pip?
- Original Message - From: Adam Funk a24...@ducksburg.com To: python-list@python.org Sent: Thursday, 16 October, 2014 9:29:46 PM Subject: Permissions on files installed by pip? I've been using the python-nltk package on Ubuntu, but I need ntlk 3.0 now. I used 'sudo aptitude purge python-nltk' to get rid of my existing installation, followed instructions on the nltk website [1] starting at step 4 (since I already have python-pip python-numpy packages installed). $ sudo pip install -U I couldn't get it to work, until I realized that the permissions ownership on /usr/local/lib/python2.7/dist-packages were 'drwx--S--- root staff'. A 'chmod -R a+rX' on that directory seems to have fixed it. Is it normal for sudo pip install to set the permissions that way, or did I do something wrong? On debian wheezy: ls -al /usr/local/lib/python2.7/dist-packages drwxrwsr-x 5 root staff 4.0K Jun 30 15:16 ./ I'm not sure pip is responsible for this anyway, so my money goes on you did something wrong :) JM -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. -- https://mail.python.org/mailman/listinfo/python-list
non-gobject based dbus library?
Hi all, An application I maintain recently moved away from the gobject event loop to the tulip/trollius/asyncio event loop. However, we were using python-dbus, which internally uses the gobject event loop, as our main event loop. This worked nicely when we were gobject based, but now that we're not, I'm trying to find alternatives to python-dbus so that we can re-implement the dbus-based functionality. I tried gbulb: https://bitbucket.org/a_ba/gbulb but it seems mostly abandoned, and I had to hack on it to even get our application to boot, and some things didn't work correctly. Does anyone have any ideas? (Please keep me in CC, I'm not subscribed.) Thanks! Tycho -- https://mail.python.org/mailman/listinfo/python-list
Re: 2d color-bar map plot
On Fri, 17 Oct 2014 14:28:13 +0800, Dhananjay wrote: [snip] xs = ys = zs = [] for line in fl1: line = line.split() xs.append(float(line[0])) ys.append(float(line[1])) zs.append(float(line[2])) print xs[0], ys[0], zs[0] The line xs = ys = zs = [] is almost surely not what you want to do. It results in xs, ys, and zs all being the same object. Look: xs = ys = zs = [] xs.append(1) print(ys) [1] Since your xs, ys, and zs are all identical, some unfortunate part of the plotting package is trying in vain to find some thickness to the thing it's plotting, but it can't, because all the points you've given it lie on the x=y=z plane. (It's sad that it tries so heroically to give a detailed error message that turns out to be so obscure.) So spend a few more characters: xs = [] ys = [] zs = [] Then, on to the next problem. -- To email me, substitute nowhere-runbox, invalid-com. -- https://mail.python.org/mailman/listinfo/python-list
Re: your mail
On 10/17/2014 6:43 AM, Cameron Simpson wrote: On 17Oct2014 11:45, Dhananjay dhananjay.c.jo...@gmail.com wrote: 2.1576318858 -1.8651195165 4.2333428278 ... (total of 200 lines) Columns 1,2,3 corresponds to x,y,z axis data points. for line in open('flooding-psiphi.dat','r'): line = line.split() xs.append(float(line[0])) ys.append(float(line[1])) zs.append(float(line[2])) A further refinement: for line in open('flooding-psiphi.dat','r'): x, y, z = map(float, line.split()) xs.append(x) ys.append(y) zs.append(z) -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Write list to new column in existent csv
Hello Group, I am tryin to figure how to write a list i have as follows ['info', '19987→445 [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1\n', '445→19987 [SYN, ACK] Seq=0 Ack=1 Win=65535 Len=0 MSS=1460 WS=64 SACK_PERM=1\n', '19987→445 [ACK] Seq=1 Ack=1 Win=65536 Len=0\n', 'Negotiate Protocol Request\n', '[TCP Retransmission] Negotiate Protocol Request\n', '445→19987 [ACK] Seq=1 Ack=160 Win=1049536 Len=0\n', 'Negotiate Protocol Response\n', 'Negotiate Protocol Request\n', 'Negotiate Protocol Response\n', 'Session Setup Request, NTLMSSP_NEGOTIATE\n', 'Session Setup Response, Error: STATUS_MORE_PROCESSING_REQUIRED, NTLMSSP_CHALLENGE\n', 'Session Setup Request, NTLMSSP_AUTH, User: GEFEN\\tbaror\n', '445→19987 [ACK] Seq=768 Ack=1016 Win=1049728 Len=0\n', 'Session Setup Response\n', 'Tree Connect Request Tree: media.isilon.gefen.local\\Media\n', 'Tree Connect Response\n', 'Create Request File: New Text document.txt\n', 'Create Response File: New Text document.txt\n', 'GetInfo Request FS_INFO/SMB2_FS_INFO_01 File: New Text document.txt;GetInfo Request FS_INFO/SMB2_FS_INFO_05 File: New Text document.txt\n'] To a a csv to for example the 3rd column , i am really got stacked here i tried few codes with csv.writerow() but didn't got it work ,will really appreciate if someone could help me with that Please advice Thanks The csv ip.src,ip.dst,smb.file,smb2.filename,smb.path,smb2.tree,smb.time,smb2.time,smb.cmd,smb2.cmd,tcp.time_delta,tcp.analysis.ack_rtt,tcp.analysis.ack_lost_segment,tcp.analysis.duplicate_ack,tcp.analysis.lost_segment,tcp.analysis.retransmission,tcp.analysis.out_of_order,tcp.analysis.window_full,tcp.analysis.window_update,tcp.analysis.zero_window 172.18.2.54,172.18.5.64,0, 172.18.5.64,172.18.2.54,0.003322,0.003322 172.18.2.54,172.18.5.64,0.29,0.29 172.18.2.54,172.18.5.64,,,114,,0.84, 172.18.2.54,172.18.5.64,,,114,,0.300507,1 172.18.5.64,172.18.2.54,0.000114,0.300621 172.18.5.64,172.18.2.540,0.000266, 172.18.2.54,172.18.5.640,0.92,0.92 172.18.5.64,172.18.2.54,,0.000192,,0,0.000192,0.000192 172.18.2.54,172.18.5.641,0.000589,0.000589 172.18.5.64,172.18.2.54,,0.001788,,1,0.001788,0.001788 172.18.2.54,172.18.5.641,0.000193,0.000193 172.18.5.64,172.18.2.54,0.005582,0.005582 172.18.5.64,172.18.2.54,,0.008014,,1,0.002432, 172.18.2.54,172.18.5.64\\media.isilon.gefen.local\Media3,0.000203,0.000203 172.18.5.64,172.18.2.54,,0.000458,,3,0.000458,0.000458 172.18.2.54,172.18.5.64,,New Text document.txt,,\\media.isilon.gefen.local\Media5,0.000189,0.000189 172.18.5.64,172.18.2.54\\media.isilon.gefen.local\Media,,0.000274,,5,0.000274,0.000274 -- https://mail.python.org/mailman/listinfo/python-list
Re: windows log to event viewer
On 17-10-2014 11:59, Arulnambi Nandagoban wrote: Hello, I am trying to run a tcp server as a windows service. The project also includes an application layer protocol somewhat like CoAP and few soap calls to data base. There is some moment the code enter into exception during a soap method call. This exception is not viewed in Windows event viewer. Should I specify somewhere to log these exception in windows event viewer. Or, give me some suggestion how to log some Critical message in windows log. What I would try is to catch the exception and log it, including a message, to the NT Event log. You should be able to do this using the NTEventLogHandler from Python's standard logging module, see: https://docs.python.org/3.4/library/logging.handlers.html#logging.handlers.NTEventLogHandler Irmen -- https://mail.python.org/mailman/listinfo/python-list
Re: Write list to new column in existent csv
Tal Bar-Or wrote: I am tryin to figure how to write a list i have as follows To a a csv to for example the 3rd column , i am really got stacked here i tried few codes with csv.writerow() but didn't got it work ,will really appreciate if someone could help me with that Please advice Thanks Here's a sketch: Open the source file using a csv.reader(); open the destination file using a csv.writer(). Use zip() and a for-loop to iterate over the new column and the rows in the source. Insert the new field into the source row, e. g. row.insert(3, field) Use writerow() to write the modified row. -- https://mail.python.org/mailman/listinfo/python-list
Re: 2d color-bar map plot
On 17/10/2014 07:28, Dhananjay wrote: Dear all, I am bit new to the python/pyplot. This might be simple, but I guess I am missing something here. I doubt that you'll get detailed answers here so suggest you try https://lists.sourceforge.net/lists/listinfo/matplotlib-users which is also available as gmane.comp.python.matplotlib.general -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list
Re: windows log to event viewer
On 17/10/2014 10:59, Arulnambi Nandagoban wrote: Hello, I am trying to run a tcp server as a windows service. The project also includes an application layer protocol somewhat like CoAP and few soap calls to data base. There is some moment the code enter into exception during a soap method call. This exception is not viewed in Windows event viewer. Should I specify somewhere to log these exception in windows event viewer. Or, give me some suggestion how to log some Critical message in windows log. -- nambi http://stackoverflow.com/questions/113007/writing-to-the-windows-logs-in-python -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list
Processing xml for output with cElementTree
I am unfortunately unable to use lxml for a project and must resort to base only libraries to create several nested elements located directly under a root element. The caveat is the incremental writing and flushing of the nested elements as they are created. So assuming the structure is abctext/cdtext/d/b/a if I would like to manually deconstruct this in order to write each element in order of appearance, is there any built in facility for this? The way I am currently doing is rather pathetic... Thanks, jlc -- https://mail.python.org/mailman/listinfo/python-list
Re: [Tutor] Convert Qstring to string in windows
On Thu, Oct 16, 2014 at 10:21 AM, C@rlos cmfer...@estudiantes.uci.cu wrote: in linux i do for this way: pythonstringtext=qstringtext.text().toUtf8.data() and it return a python string correctly. pythonstringtext is a byte string that has to be decoded as UTF-8. Here's the 'mojibake' result when it gets decoded as UTF-16LE or Windows codepages 850 and 1252: s = u'áéíóú' b = s.encode('utf-8') print b.decode('utf-16le') ꇃ꧃귃돃뫃 print b.decode('850') ├í├®├¡├│├║ print b.decode('1252') áéÃóú The native character size in the Windows kernel is 2 bytes, so UTF-16 is the path of least resistance for in-memory strings used with GUI controls and file/registry paths. UTF-8 is preferred for text data in files and network communication. -- https://mail.python.org/mailman/listinfo/python-list
[issue22646] Set SMTPHandler's credentials through logging.config.dictConfig.
Roundup Robot added the comment: New changeset 3ba23c6f7986 by Vinay Sajip in branch '2.7': Issue #22646: Accept list as well as tuple to support initialisation via dictConfig(). https://hg.python.org/cpython/rev/3ba23c6f7986 New changeset d15708f13266 by Vinay Sajip in branch '3.4': Issue #22646: Accept list as well as tuple to support initialisation via dictConfig(). https://hg.python.org/cpython/rev/d15708f13266 New changeset bcc3f167a30b by Vinay Sajip in branch 'default': Closes #22646: Accept list as well as tuple to support initialisation via dictConfig(). https://hg.python.org/cpython/rev/bcc3f167a30b -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22646 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22653] Crash in insertdict
Georg Brandl added the comment: This is not a crash, but an abort, so it's not a security issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22653 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: So what about this patch? It adds a delocalize method while keeping the atof func parameter for backward compatibility. -- Added file: http://bugs.python.org/file36955/delocalize.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13918 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18216] gettext doesn't check MO versions
Aaron Hill added the comment: Does anyone have any thoughts about throwing a warning for an unexpected minor revision? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22656] `help` ignores `__doc__` of descriptors
New submission from Ram Rachum: The builtin `property` lets you specify a `doc` argument for your properties, which is great because then it shows up in `help`. So I figured that when I'm writing my own descriptor, I could set `__doc__` on it and have `help` use it. Not so, `help` ignores it. See this example: class Property(object): Emulate PyProperty_Type() in Objects/descrobject.c def __init__(self, fget=None, fset=None, fdel=None, doc=None): self.fget = fget self.fset = fset self.fdel = fdel if doc is None and fget is not None: doc = fget.__doc__ self.__doc__ = doc def __get__(self, obj, objtype=None): if obj is None: return self if self.fget is None: raise AttributeError(unreadable attribute) return self.fget(obj) def __set__(self, obj, value): if self.fset is None: raise AttributeError(can't set attribute) self.fset(obj, value) def __delete__(self, obj): if self.fdel is None: raise AttributeError(can't delete attribute) self.fdel(obj) def getter(self, fget): return type(self)(fget, self.fset, self.fdel, self.__doc__) def setter(self, fset): return type(self)(self.fget, fset, self.fdel, self.__doc__) def deleter(self, fdel): return type(self)(self.fget, self.fset, fdel, self.__doc__) class A: x = property(lambda self: 3, doc='Helpful text') y = Property(lambda self: 7, doc='More Helpful text') help(A.x) # Shows 'Helpful text' help(A.y) # Does not show 'More Helpful text' It seems that `property` is special-cased or something. I want to be able to set a docstring on my own descriptors. -- components: Library (Lib) messages: 229572 nosy: cool-RR priority: normal severity: normal status: open title: `help` ignores `__doc__` of descriptors versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22656 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Changes by Antoine Pitrou pit...@free.fr: -- assignee: docs@python - components: +Library (Lib) -Documentation stage: - patch review versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13918 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Antoine Pitrou added the comment: The patch's approach looks reasonable to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13918 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22657] Bad link to packages specification in language reference 2.x sec 6.12
New submission from Douglas Naphas: Section 6.12 of the Python 2.x language reference (https://docs.python.org/2/reference/simple_stmts.html#the-import-statement) has a link to The original specification for packages to http://www.python.org/doc/essays/packages.html, which is not found. -- assignee: docs@python components: Documentation messages: 229574 nosy: docs@python, douglasnaphas priority: normal severity: normal status: open title: Bad link to packages specification in language reference 2.x sec 6.12 versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22657 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22657] Bad link to packages specification in language reference 2.x sec 6.12
Roundup Robot added the comment: New changeset dae99db70336 by Benjamin Peterson in branch '2.7': remove link to the 'original package specification'; I doubt it's useful anymore (closes #22657) https://hg.python.org/cpython/rev/dae99db70336 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22657 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20155] Regression test test_httpservers fails, hangs on Windows
Terry J. Reedy added the comment: If Python itself works correctly on a machine, it is a bug for a test to say that is it not, by failing. Should we change -response = self.request('/', method='get') to +response = self.request('/', method='gets') or +response = self.request('/', method='custom') or conditionally, on type(status), change the test from assertEqual to (after substitutions) assertIn(response.status, (200,501))? David, do you have a preference? or should I flip a coin? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20155 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20221] #define hypot _hypot conflicts with existing definition
Roundup Robot added the comment: New changeset 430aaeaa8087 by Zachary Ware in branch '2.7': Issue #20221: Removed conflicting (or circular) hypot definition https://hg.python.org/cpython/rev/430aaeaa8087 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20221 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20221] #define hypot _hypot conflicts with existing definition
Zachary Ware added the comment: It grafted very easily, so it turns out to be yes :) -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20221 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22186] Typos in .py files
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22186 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22656] `help` ignores `__doc__` of descriptors
R. David Murray added the comment: You might find issue 5890 to be interesting reading. It's been long enough that I forget the details, but I think the short answer is yes, property is special cased. So probably what you want to do is subclass property. Given the knock-on issue that fix caused, I've always been a little bit uncomfortable with it. Perhaps you will see a way to generalize things. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22656 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20155] Regression test test_httpservers fails, hangs on Windows
R. David Murray added the comment: It should be 'custom', since that will actually test case sensitivity, which 'gets' would not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20155 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22658] IMAP4 Example lacking host information
New submission from James Goodwin: The IMAP4 Example for Python 3.4 (Section 21.15.2) does not show the appropriate host information for the example to work. Suggested fix would be to change the line M = imaplib.IMAP4() to M = imaplib.IMAP4('localhost') This will bring the example inline with the poplib example (Section 21.14.2). -- assignee: docs@python components: Documentation messages: 229581 nosy: James.Goodwin, docs@python priority: normal severity: normal status: open title: IMAP4 Example lacking host information versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22658 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22658] IMAP4 Example lacking host information
R. David Murray added the comment: I think this is actually a bug, rather than a doc bug. See issue 18540. if you agree, we'll close this as a duplicate of that one. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22658 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21417] Compression level for zipfile
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21417 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22658] IMAP4 Example lacking host information
James Goodwin added the comment: I do see that. I agree that this is a duplicate of that one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22658 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22659] SyntaxError in the configure_ctypes
New submission from Billy: Hi all, I have a issue with the cross-compilation, here I let it: File ../src/setup.py, line 1849 exec(f.read(), globals(), fficonfig) SyntaxError: unqualified exec is not allowed in function 'configure_ctypes' it contains a nested function with free variables make[1]: *** [sharedmods] Error 1 Who wants to help me, please Best regards. -- components: Cross-Build messages: 229584 nosy: bill9889 priority: normal severity: normal status: open title: SyntaxError in the configure_ctypes type: compile error versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22659 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16802] fileno argument to socket.socket() undocumented
Berker Peksag added the comment: The actual signature is now socket.socket(family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None) but, the fileno argument still needs to be documented. -- nosy: +berker.peksag stage: needs patch - patch review versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16802 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)
Roundup Robot added the comment: New changeset e971f3c57502 by Antoine Pitrou in branch 'default': Issue #22638: SSLv3 is now disabled throughout the standard library. https://hg.python.org/cpython/rev/e971f3c57502 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22638 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)
Antoine Pitrou added the comment: So, I've disabled SSLv3 in _create_stdlib_context() for the next feature release (3.5). By the time it is released, we can consider SSLv3 will be dead. Related news: - Opera doesn't disable SSLv3 yet, but implements custom countermeasures: http://blogs.opera.com/security/2014/10/security-changes-opera-25-poodle-attacks/ - Mozilla doesn't disable SSLv3 yet (it will be disabled in 3 months): https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22638 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)
Antoine Pitrou added the comment: As for bugfix releases, I think we should take the time and consider what other software packages will decide. -- versions: -Python 3.1, Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22638 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses
Antoine Pitrou added the comment: Berker, it looks like the 3.3 behaviour was buggy: TestTreatment isn't run at all! Instead, it should be run and consider failures as success. So your patch appears more correct than what 3.3 did. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21112 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22660] Review ssl docs for security recommendations
New submission from Antoine Pitrou: The current ssl documentation has a number of statements which may need updating, particularly wrt. SSLv3. -- assignee: docs@python components: Documentation messages: 229590 nosy: alex, christian.heimes, docs@python, dstufft, giampaolo.rodola, janssen, pitrou priority: normal severity: normal stage: needs patch status: open title: Review ssl docs for security recommendations type: behavior versions: Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22660 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22656] `help` ignores `__doc__` of descriptors
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22656 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18216] gettext doesn't check MO versions
Antoine Pitrou added the comment: The linked docs say: an unexpected minor revision number means that the file can be read but will not reveal its full contents, when parsed by a program that supports only smaller minor revision numbers. Unless there an important piece of contents that can be missed, I would say a warning is more of a distraction here. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22658] IMAP4 Example lacking host information
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: - resolved status: open - closed superseder: - imaplib.IMAP4() ends with Name or service not known on Fedora 18 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22658 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16000] test_curses should use unittest
Roundup Robot added the comment: New changeset f598d0014d07 by Zachary Ware in branch '3.4': Issue #16000: Convert test_curses to use unittest https://hg.python.org/cpython/rev/f598d0014d07 New changeset b7b49f26a87b by Zachary Ware in branch 'default': Issue #16000: Convert test_curses to use unittest https://hg.python.org/cpython/rev/b7b49f26a87b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16000 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16000] test_curses should use unittest
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - zach.ware resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16000 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22644] Update Windows installers to OpenSSL 1.0.1j
Changes by Georg Brandl ge...@python.org: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22644 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22644] Update Windows installers to OpenSSL 1.0.1j
Changes by Georg Brandl ge...@python.org: -- nosy: +benjamin.peterson, larry versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22644 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21298] Cheese shop registration stopped working for me recently
Georg Brandl added the comment: Is this still a problem? If yes, I would contact the PyPI team directly, this tracker is not the right place for PyPI bugs. (It is unlikely to be a distutils bug.) -- nosy: +georg.brandl resolution: - third party status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21298 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16662] load_tests not invoked in package/__init__.py
Robert Collins added the comment: Closing as the fix to the test suite is applied. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16662 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21298] Cheese shop registration stopped working for me recently
Thomas Levine added the comment: It has been working for me recently. Adding to your suggestion that it is probably PyPI: I didn't do anything in particular to fix this, and I think it is more likely that PyPI got fixed than that I upgraded Python (and thus distutils). -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21298 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17401] io.FileIO closefd parameter is not documented nor shown in repr
R. David Murray added the comment: I think the information from the following line of the 'open' docs should be added to the doc patch: If a filename is given closefd has no effect and must be True (the default). Otherwise it looks fine to me. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17401 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22661] WinXP concerns
New submission from Tcll: About a week ago I read you were also dropping support for WinXP. This will cause issues for me as I don't support newer Win (or should I say MS-RAT infested) OS's I use linux now, but I still use XP as a testing interface for Windows. (I will not install any newer windows as I prefer my freedom when MS pushes their button) I hope this changes development aims to continue supporting WinXP... if not, I can no longer consider python as cross-platform, and will be forced to use an outdated cross-platform interpreter. I'm still looking into how to disable the MS-RAT with python, as a friend of my friend has already done it. my friend wasn't interested in asking him how when he did it, and getting in contact with him is quite difficult. if (and only if) I can disable MS's RAT, I will gladly use a newer windows as a testing interface, so long as I can hack it like XP. (I like doing cool things to my OS, which is what I mean by hacking) The reason I chose 2.7 for the python version is due to me being a PyOpenGL programmer and that the extension runs faster in 2.7 -- components: Windows messages: 229597 nosy: Tcll, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: WinXP concerns type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22661 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21298] Cheese shop registration stopped working for me recently
Georg Brandl added the comment: OK, thanks for the feedback. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21298 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22661] WinXP concerns
R. David Murray added the comment: This is not an appropriate discussion for the bug tracker. python-dev would be the logical venue, but your apparent tone of voice isn't optimal for stimulating positive discussion, I'm afraid :) That said, we won't be dropping support for XP in 2.7, since it is in maintenance. -- nosy: +r.david.murray resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22661 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22661] WinXP concerns
Tcll added the comment: I'm sorry... I wasn't trying to sound negative... I deal with alot of stress from many developers in this area, so yea, you can see why I sound like that. but thanks for telling me about that with 2.7 :) though I was hoping to try out python3 in the future. =3= -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22661 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22661] WinXP concerns
R. David Murray added the comment: Yeah, it wasn't so much negative, as...edgy? :) We can't really support what Microsoft doesn't support, since we use the Microsoft compilers. There is discussion about better support for alternate compilers, though, and if that eventuates *some* sort of support for XP ought to be possible, though exactly what it would look like would be up to the people interested enough to do it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22661 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22662] subprocess.Popen.communicate causing local tty terminal settings to change inconsistently
New submission from Kyle: I'm not sure if this is a bash or Python issue. I'm trying to run a command on a remote server, using the subprocess module. I call ssh inside of subprocess.Popen(...).communicate(), like so: output = subprocess.Popen([/bin/env %s /usr/bin/ssh -ttt %s@%s -- %s; % (env, user, host, command)], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).communicate() Following the call to communicate(), my terminal settings are changed. However, it's not always repeatable. Sometimes it happens, and other times it does not. When it does happen, I've noticed that the following tty options are ON prior to the command executing, and OFF afterwards (output from stty -a): icrnl opost isig icanon echo echoe echok Something with the communicate() call seems to cause the issue. I don't actually have to print anything to the screen from Python for it to occur. The problem goes away if I remove the -t option to ssh, however, I'm passing through the TERM environmental variable, and need -t to be set. Because of this, I'm not sure if the problem is with the Python call, or something within Bash. I've been able to repeat this on Ubuntu 13.10 running Python 2.7.5, and on Red Hat 6.4 running Python 2.6.6. -- messages: 229602 nosy: kflavin priority: normal severity: normal status: open title: subprocess.Popen.communicate causing local tty terminal settings to change inconsistently type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22662 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22661] WinXP concerns
Tcll added the comment: ah I see in that case, I work on my program for you guys as well :) it won't be finished any time soon, but what I'm working on is a recompiler specifically for this garbage of cross-platform support being hindered. so in the mean-time try to do what you can towards keeping XP supported ;) just understand, from what I've been hacking and paying attention to, MS wants to control both the market and Windows PC users. (the initial release if the XBox One is my biggest push away from Windows) ^ MS is only holding back on those restrictions for a later time that RAT I talk about has been found in all versions of Windows from Vista and up. (it's not confirmed by hackers to work in Vista, but that doesn't mean it doesn't work) I wish you guys the best of luck ;) Thanks for trying at least :) +1 guys ;) *looks toward other developers* finally, developers that do stuff right -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22661 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22656] `help` ignores `__doc__` of descriptors
Ethan Furman added the comment: Yeah, that was interesting. ;) I think there are two different, yet related, issues: - which __doc__ should help display? - how should __doc__ be inherited? The issue we should deal with here is the first, as what help displays does not have to follow the exact same rules as inheritence and magic-method lookup; specifically, help should be free to look for a __doc__ on the instance and incorporate it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22656 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22644] Update Windows installers to OpenSSL 1.0.1j
Roundup Robot added the comment: New changeset 927cca0b9337 by Zachary Ware in branch '2.7': Issue #22644: Update the Windows build to OpenSSL 1.0.1j https://hg.python.org/cpython/rev/927cca0b9337 New changeset 6ad0299fa279 by Zachary Ware in branch '3.4': Issue #22644: Update the Windows build to OpenSSL 1.0.1j https://hg.python.org/cpython/rev/6ad0299fa279 New changeset bcd7fe682095 by Zachary Ware in branch 'default': Issue #22644: Update the Windows build to OpenSSL 1.0.1j https://hg.python.org/cpython/rev/bcd7fe682095 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22644 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22160] Windows installers need to be updated following OpenSSL security release
Zachary Ware added the comment: Superseded by #22644 (and done, anyway). -- assignee: - zach.ware resolution: - fixed stage: - resolved status: open - closed superseder: - Update Windows installers to OpenSSL 1.0.1j type: - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22644] Update Windows installers to OpenSSL 1.0.1j
Zachary Ware added the comment: Done, as long as the buildbots stay happy with it. -- assignee: - zach.ware components: +Installation, Windows resolution: - fixed stage: - resolved status: open - closed type: - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22644 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22655] Build error on CentOS 5.4
Stefan Krah added the comment: It's a gcc bug, see #20324. -- nosy: +skrah resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22655 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22663] patchcheck alters content of .png files
New submission from Robert Collins: cpython.hg$ make patchcheck ./python ./Tools/scripts/patchcheck.py Getting the list of files that have been added/changed ... 448 files Fixing whitespace ... 0 files Fixing C file whitespace ... 5 files: Include/patchlevel.h Modules/_ctypes/callbacks.c Modules/_io/_iomodule.c Modules/_io/fileio.c Modules/_posixsubprocess.c Fixing docs whitespace ... 1 file: Doc/tools/static/py.png Docs modified ... yes Misc/ACKS updated ... yes Misc/NEWS updated ... yes configure regenerated ... yes pyconfig.h.in regenerated ... no Note the change to py.png: its not a text filetohave its whitespace changed :/. -- messages: 229609 nosy: rbcollins priority: normal severity: normal status: open title: patchcheck alters content of .png files ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22663 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7186] Document specialness of __doc__, and possibly other special attributes
Ethan Furman added the comment: Patch attached for the __doc__ attribute. -- keywords: +patch nosy: +ethan.furman stage: needs patch - patch review Added file: http://bugs.python.org/file36956/issue7186.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22664] IDLE: Standard output and error from multiprocessing vanishes
New submission from ppperry: Note: not sure whether this issue belongs as a behavior or an enhancement In IDLE: def print_a_test_string(): print test print_a_test_string() test threading.Thread(target=print_a_test_string).start() test multiprocessing.Process(target=print_a_test_string).start() [test is not said] Running this example in the standard interpreter will print test all three times (in current thread, new thread, new process). (Acutally, I got an AttributeError and had to work aroung it using functools.partial(print, test)) OS: Windows XP -- components: IDLE, Library (Lib) messages: 229611 nosy: ppperry priority: normal severity: normal status: open title: IDLE: Standard output and error from multiprocessing vanishes type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22664 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7186] Document specialness of __doc__, and possibly other special attributes
R. David Murray added the comment: Looks fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22663] patchcheck alters content of .png files
Antoine Pitrou added the comment: I can't reproduce. Which platform are you on? -- nosy: +georg.brandl, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22663 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22653] Crash in insertdict
Changes by Antoine Pitrou pit...@free.fr: -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22653 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22653] Crash in insertdict
Roundup Robot added the comment: New changeset 9ec84f9b61c6 by Antoine Pitrou in branch '3.4': Issue #22653: Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode. https://hg.python.org/cpython/rev/9ec84f9b61c6 New changeset 4ff865976bb9 by Antoine Pitrou in branch 'default': Issue #22653: Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode. https://hg.python.org/cpython/rev/4ff865976bb9 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22653 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22653] Crash in insertdict
Antoine Pitrou added the comment: Ok, then I've committed the patch to 3.4 and 3.5. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22653 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21991] The new email API should use MappingProxyType instead of returning new dicts.
Roundup Robot added the comment: New changeset fea3ddcaf652 by R David Murray in branch '3.4': #21991: make headerregistry params property MappingProxyType. https://hg.python.org/cpython/rev/fea3ddcaf652 New changeset 5beb1ea76f36 by R David Murray in branch 'default': Merge: #21991: make headerregistry params property MappingProxyType. https://hg.python.org/cpython/rev/5beb1ea76f36 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21991 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21991] The new email API should use MappingProxyType instead of returning new dicts.
R. David Murray added the comment: Thanks, Stéphane. I committed the fix with a modified test. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21991 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii
Terry J. Reedy added the comment: test_gzip passed after this patch. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13664 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9351] argparse set_defaults on subcommands should override top level set_defaults
Roundup Robot added the comment: New changeset e9cb45ccf42b by R David Murray in branch '3.4': #9351: set_defaults on subparser is no longer ignored if set on parent. https://hg.python.org/cpython/rev/e9cb45ccf42b New changeset b35a811d4420 by R David Murray in branch 'default': Merge: #9351: set_defaults on subparser is no longer ignored if set on parent. https://hg.python.org/cpython/rev/b35a811d4420 New changeset 1a3143752db2 by R David Murray in branch '2.7': #9351: set_defaults on subparser is no longer ignored if set on parent. https://hg.python.org/cpython/rev/1a3143752db2 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9351] argparse set_defaults on subcommands should override top level set_defaults
R. David Murray added the comment: Thanks, Jyrki. -- nosy: +r.david.murray resolution: - fixed stage: commit review - resolved status: open - closed versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15989] Possible integer overflow of PyLong_AsLong() results
R. David Murray added the comment: Are the fixes in the final patch waiting for someone to write tests, or is the intent to commit them without tests after a final review because tests are too difficult to write? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15989 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo
Roundup Robot added the comment: New changeset 4c2b77d0680b by R David Murray in branch '3.4': #18853: Fix resource warning in shlex's __main__ section. https://hg.python.org/cpython/rev/4c2b77d0680b New changeset 8ed630f28753 by R David Murray in branch 'default': Merge: #18853: Fix resource warning in shlex's __main__ section. https://hg.python.org/cpython/rev/8ed630f28753 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18853 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo
R. David Murray added the comment: Thanks for the patch, Vajrasky, but I chose a different fix, since the proposed one could leave the file open if the shlex constructor raised an error. Not particularly important, but as long as we are cleaning up the code we might as well make it as clean as we can. Since 2.7 doesn't generate ResourceWarnings I chose not to apply it there. -- nosy: +r.david.murray resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18853 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17401] io.FileIO closefd parameter is not documented nor shown in repr
Roundup Robot added the comment: New changeset a1500e4a159a by Robert Collins in branch 'default': Issue #17401: document closefd in io.FileIO docs and add to repr https://hg.python.org/cpython/rev/a1500e4a159a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17401 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16079] list duplicate test names with patchcheck
Robert Collins added the comment: FWIW testtools rejects test suites with duplicate test ids; I'm considering adding that feature into unittest itself. We'd need an option to make it warn rather than error I think, but if we did that we wouldn't need a separate script at all. -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16079 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22606] Inconsistency between Python 2 and PyPy regarding future imports
Terry J. Reedy added the comment: A difference in internal behavior between CPython and PyPy is not necessarily a CPython bug, or even a PyPy bug. It may just be an implementation choice. So ignore PyPy and consider Python doc versus CPython behavior. Running the three quoted lines by themselves gives SyntaxError. compiling the ast object does the same. So this is one of those SyntaxErrors not noticed (or at least not enforced) until the compile phase. This was specified in PEP 236 and still is in the Reference: A future statement is recognized and treated specially at compile time. Whenever the compiler raises SyntaxError, it declares the AST to be syntactically invalid. How can this be? The ast doc starts with The ast module helps Python applications to process trees of the Python *abstract syntax grammar*. ... this module helps to find out programmatically what the current grammar looks like. (asterisks added). The abstract grammar does *not* include a 'Future' statement. In your code, x.body[1] is an ImportFrom object. So the ast from the code above does not violate the abstract grammar and there is no parsing bug. We should either either close this as 'not a bug' or change to a doc issue to add something about the ast abstract grammar being 'looser' than the defacto context-sensitive Python grammar. Perhaps something like The language defined by the context-free LL(1) abstract grammer is a superset of the actual context-sensitive Python language. (Consider position-dependent future statements.) Consequently, some ast trees generate a SyntaxError when compiled. It is somewhat arbitrary when a print statement is converted to a print expression -- while parsing, or while compiling. The two implementations made different choices. Since the parser does recognize a Future statement and change the ast objects it creates, it would be possible to add a Future object to ast trees. But it would do no good as far as the syntax check goes. The context-free LL(1) parser could not recognize a violation of the context-sensitive constraint. -- nosy: +benjamin.peterson, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22606 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22607] find by dichotomy the failing test
Terry J. Reedy added the comment: I believe the goal, and a better title, is Automate leak discovery within a group of tests. Bisection or dichotomy is a means, not a goal, and should not be part of the title. Leak discovery means 'find a test within the group that has a leak (which we know or suspect might be occurring)'. 'Test' can mean multiple modules, one module, one TestCase class, one test_xxx method, one subtest, or one assert. What might it mean in 'group of tests'? Pinning a leak on a particular statement likely has to be done manually; eliminate that. On the other hand, it is feasible (see below) to automatically blame a particular test method and perhaps a particular subtest. So interprete 'tests' as 'test methods or subtests'. Unittest can run all test methods in a module, all test methods in a test class, or an individual test method. Idle already has a module browser (Class Browser), based on stdlib's pyclbr and Idle's TreeWidget, that could be adapted (perhaps using ttk.Treeview instead) to produce a module-test_class-test tree. Add buttons to select a particular leak test and others to select manual or auto nagivation of the tree and we might have something worthwhile. It could go in Tools/Scripts or PyPI. I have not used subtests yet since they are not available on 2.7, but I can imagine semi-automated editing, saving to a temp file, and running. I would need experience with real subtest bisection to comment on the patch. -- nosy: +terry.reedy stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22607 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18216] gettext doesn't check MO versions
Aaron Hill added the comment: Okay, then. I'll just leave it out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18216] gettext doesn't check MO versions
Changes by Aaron Hill aa1ron...@gmail.com: Added file: http://bugs.python.org/file36957/gettext-mo-fix-minor-version.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18216] gettext doesn't check MO versions
Changes by Aaron Hill aa1ron...@gmail.com: Removed file: http://bugs.python.org/file36957/gettext-mo-fix-minor-version.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18216] gettext doesn't check MO versions
Changes by Aaron Hill aa1ron...@gmail.com: Added file: http://bugs.python.org/file36958/gettext-mo-fixup.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18216] gettext doesn't check MO versions
Aaron Hill added the comment: I've added a second patch, which properly distinguishes between major and minor revisions, and updates the docs to account for the new behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15944] memoryviews and ctypes
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15944 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21436] Consider leaving importlib.abc.Loader.load_module()
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21436 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22665] shutil.__all__ incomplete
New submission from Martin Panter: Continuing on from Issue 22247 (other out-of-date __all__ attributes), shutil.__all__ is missing (at least) get_terminal_size(), which was implemented for Issue 13609. -- components: Library (Lib) messages: 229630 nosy: vadmium priority: normal severity: normal status: open title: shutil.__all__ incomplete type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22665 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7186] Document specialness of __doc__, and possibly other special attributes
Roundup Robot added the comment: New changeset 7c183c782401 by Ethan Furman in branch '3.4': Issue7186: document that __doc__ is not inherited by subclasses https://hg.python.org/cpython/rev/7c183c782401 New changeset cb8606fc84df by Ethan Furman in branch 'default': Issue7186: document that __doc__ is not inherited by subclasses https://hg.python.org/cpython/rev/cb8606fc84df -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7186] Document specialness of __doc__, and possibly other special attributes
Changes by Ethan Furman et...@stoneleaf.us: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com