[issue8723] IDLE won't start import os error

2010-05-14 Thread James Morgan
New submission from James Morgan : Hi, For some reason I have recently lost the ability to open IDLE for python 2.6.2. I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load the python command

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan added the comment: Thanks for the reply. I have used idle before on this system without issue, and since 2.5 worked I figured there was some difference between 2.5 and 2.6 which was causing the issue. I have found since that the issue is likely not with idle at all however, but

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan added the comment: Sorry, I guess I misunderstood the function as I saw some issues which appeared similar in style to my own. Never mind this then I will seek help elsewhere. Thankyou. -- ___ Python tracker <http://bugs.python.

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
Changes by James Morgan : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue8723> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-15 Thread James Teh
Changes by James Teh : -- nosy: +jteh ___ Python tracker <http://bugs.python.org/issue8959> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9243] sndhdr erroneously detects files as vox

2010-07-13 Thread James Lee
New submission from James Lee : http://svn.python.org/view/python/branches/py3k/Lib/sndhdr.py?r1=56957&r2=56987 seems to have broken sndhdr as it incorrectly detects files as voc (all that time ago and nobody has noticed...): [j...@miku]~$ xxd test.wav | head -n 1 000: 5249 4646 2478

[issue9243] sndhdr erroneously detects files as vox

2010-07-13 Thread James Lee
James Lee added the comment: Thanks for the update... The link was actually just a "diff to previous" of the changelist that caused the problem (r56987), sorry for the confusion. :) Attached is a quick and dirty unittest complete with some test files. It only tests the format o

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
New submission from James Tatum : ConfigParser defines a number of exception classes which all ultimately derive from ConfigParser.Error. ConfigParser.Error, however, only derives from Exception. These should all derive from StandardError. -- components: Library (Lib) files

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum : Removed file: http://bugs.python.org/file18237/ConfigParser.StandardError.patch ___ Python tracker <http://bugs.python.org/issue9406> ___ ___

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum : Added file: http://bugs.python.org/file18238/ConfigParser.StandardError.patch ___ Python tracker <http://bugs.python.org/issue9406> ___ ___ Pytho

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum : Removed file: http://bugs.python.org/file18238/ConfigParser.StandardError.patch ___ Python tracker <http://bugs.python.org/issue9406> ___ ___

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum : Added file: http://bugs.python.org/file18239/ConfigParser.StandardError.patch ___ Python tracker <http://bugs.python.org/issue9406> ___ ___ Pytho

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee added the comment: Right now if you have any moderately complex Python based application (or extension set) the only way to easily debug it on windows is by building Python yourself, which is a horrible solution since it means you may end up with a subtly different version to what

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee added the comment: Ah, sorry, I see what you mean now... I thought the request for patch was to modify the installer itself, but it meant just make the msi.py script generate a separate zip file alongside the .msi installer. I'll take a look at providing a patch with this ove

[issue1303434] Please include pdb with windows distribution

2010-08-03 Thread James Lee
James Lee added the comment: Attached is a simple patch against msi.py from the py3k branch. It generates a .zip file containing all the PDB files (minus a select few) in the PCbuild directory. I imagine most people only want python31.pdb, but it is very frustrating when you have a crash

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2016-11-30 Thread James Matthews
James Matthews added the comment: This is marked as fixed but am still seeing this error in 2.7.12 on HP-UX 11.31. /opt/hp-gcc64-4.7.1/bin/gcc -pthread -shared build/temp.hp-ux-B.11.31-9000-800-2.7/root/build/Python-2.7.12/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.hp-ux-B

[issue28877] Cannot compile _ssl.o on HP-UX

2016-12-05 Thread James Matthews
New submission from James Matthews: Cannot build Python 2.7.12 on HP-UX due to the following error: /opt/hp-gcc64-4.7.1/bin/gcc -pthread -shared build/temp.hp-ux-B.11.31-9000-800-2.7/root/build/Python-2.7.12/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.hp-ux-B.11.31-9000-800

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
New submission from James Crowther: Currently I can't use socket to resolve host names to IP addresses. This is something critical to mine as well as other applications that run over networks. When I attempt to do the following: import socket socket.getaddrinfo(hostname, None

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
James Crowther added the comment: Hi Ned, Doesn’t seem to matter, I can try my local host name given by; socket.gethostname() or I can try another host on the network, same result. If I do the exact same operation using the same python version on windows or linux, then I get the

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
James Crowther added the comment: Hi Ned, Currently running 10.12.3. and output is as follows Jamess-MacBook-pro:crowdrender_repository jamesmac$ python3.5 Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
James Crowther added the comment: Hi Ned, Thats ok, thanks! I’m going to try it on another machine, its really strange, I’m wondering what I might have done on my mac to cause it to flake out like this. Will do some more testing with other macs running 10.12 and see if they have the

[issue20825] containment test for "ip_network in ip_network"

2016-06-01 Thread James Schneider
James Schneider added the comment: I'd like to ask for a status on getting this merged? As a network administrator, these changes would have a magical effect on my code dealing with routing tables and ACL's. -- nosy: +James Schneider

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
New submission from James Lu: The heapq library uses a list or other mutable sequence time to represent a heap. Since Python is a highly OOP language, why not make heaps their own data type? -- components: Library (Lib) messages: 268159 nosy: James.Lu priority: normal severity: normal

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
James Lu added the comment: Even a wrapper class would be helpful, it's simply more pythonic. On Fri, Jun 10, 2016 at 6:02 PM, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > The main reason is that there would be very little benefit. Lists are a >

[issue27295] heaps library does not have support for max heap

2016-06-11 Thread James Lu
New submission from James Lu: Both max heaps and min heaps have uses in algorithms. Some algorithms require both. Why doesn't the heapq library support max heaps (not including the private _heapify_max() method)? -- components: Library (Lib) messages: 268211 nosy: James.Lu pri

[issue27295] heaps library does not have support for max heap

2016-06-12 Thread James Lu
James Lu added the comment: It's not a very pythoniic way to simply negate the value. Plus, the majority of heap users want performance (heap was made for speed), so a C version would be much better. On Sat, Jun 11, 2016 at 4:39 PM, Raymond Hettinger wrote: > > Raymond Hettinge

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread James Paget
New submission from James Paget: On Windows 10 Professional 64-bit, typing "pip list --outdated" or "python -m pip install -U pip" at the Windows command prompt causes Python 2.7.12rc1 to crash. I get the standard "python.exe has stopped working" crash not

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread James Paget
James Paget added the comment: I have submitted this to pip as you have suggested (see pip Issue #3795), but feel that Python.exe should not crash even if there is a problem with a third-party package. -- ___ Python tracker <http://bugs.python.

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread James Paget
James Paget added the comment: Python Packaging Authority member pfmoore from pypa/pip says "there's no ctypes-based code that could be causing the error" and "Python appears to be crashing as a result of pure Python code" and "there's no way that I can see

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-17 Thread James Paget
James Paget added the comment: The 2.7.12rc1+ build resolves the issue for me. -- ___ Python tracker <http://bugs.python.org/issue27305> ___ ___ Python-bugs-list m

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
New submission from James Lu: This would be useful for libraries like tqdm (progress bar module). -- components: Interpreter Core messages: 270581 nosy: James.Lu priority: normal severity: normal status: open title: Dictionary iterator has no len() type: enhancement versions: Python 3.6

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
James Lu added the comment: same for itertools iterators - libraries such as tqdm would benefit from this On Sat, Jul 16, 2016 at 3:08 PM, James Lu wrote: > > New submission from James Lu: > > This would be useful for libraries like tqdm (progress bar module). > > -

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
James Lu added the comment: I think you closed it too quickly. You see, computing the length of combinations() doesn't require looping all the way through the iterator; you can compute it quickly. I created a wrapper class just for this purpose. On Sat, Jul 16, 2016 at 5:24 PM, R. David M

[issue27890] platform.release() incorrect in Python 3.5.2 on Windows 2008ServerR2

2016-08-29 Thread James Domingo
New submission from James Domingo: The platform.release() function in Python 3.5.1 returns the correct value on Windows 2008 Server R2: C:\Users\jdoe\Documents\Python>python-3.5.1-embed-amd64\python.exe Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AM

[issue17407] RotatingFileHandler issue when using multiple loggers instances (but one process/thread) to the same file

2013-03-12 Thread James Kesser
New submission from James Kesser: I believe I have come across a bug with RotatingFileHandler in logging/handlers.py The attached script shows that when you are logging using RotatingFileHandler pointed at the same file from multiple logger instances, it works at first showing logging events

[issue17407] RotatingFileHandler issue when using multiple loggers instances (but one process/thread) to the same file

2013-03-14 Thread James Kesser
James Kesser added the comment: My approach was just as outlined in the first few paragraphs here, just naming loggers for each module using __name__: http://docs.python.org/2/howto/logging.html#logging-advanced-tutorial If this is not recommended the documentation should be updated to

[issue17407] RotatingFileHandler issue when using multiple loggers instances (but one process/thread) to the same file

2013-03-14 Thread James Kesser
James Kesser added the comment: Thanks for quick response! -- ___ Python tracker <http://bugs.python.org/issue17407> ___ ___ Python-bugs-list mailing list Unsub

[issue17514] Add the license to argparse.py

2013-03-21 Thread David James
New submission from David James: Lib/argparse.py [1] doesn't mention a license in it. Could you please add a license to it? According to the argparse project [2], argparse is licensed under the Python license. Chromium OS uses argparse. If you would add information about the licen

[issue13672] Add co_qualname attribute in code objects

2013-04-13 Thread James Pye
James Pye added the comment: Considering the API changes necessary for adding qualname, perhaps a better solution would be to just start using the qualname instead of the function's "basename"--co_name is the qualname. This would offer an automatic improvement to the readabil

[issue1195571] simple callback system for Py_FatalError

2013-04-23 Thread James Pye
James Pye added the comment: Thinking about this again.. perhaps a better approach would be to force the embedder to define the symbol in their binary. That is, libpython.x doesn't define Py_FatalError. The binary that links in libpython defines it. (and a "me too" on Jona

[issue17948] HTTPS and sending a big file size hangs.

2013-05-10 Thread James O'Cull
James O'Cull added the comment: We have more information on this bug here. It's SSL v2 related when pushing to IIS. http://stackoverflow.com/a/16486104/97964 Here's a paste from the StackOverflow answer: I found a few ways of dealing with this issue: To fix t

[issue17948] HTTPS and sending a big file size hangs.

2013-05-10 Thread James O'Cull
James O'Cull added the comment: I appreciate the response all the same. Thanks for taking the time to look at it, Antoine. -- ___ Python tracker <http://bugs.python.org/is

[issue6700] inspect.getsource() returns incorrect source lines

2013-05-22 Thread James Saryerwinnie
James Saryerwinnie added the comment: I confirmed the issue in tip. One of the issues with the original patch is that it modifies the tokeneater method used by getblock which won't work if the first token is any of the special cased tokens in the original patch ('@', 'd

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2013-05-23 Thread James Socol
Changes by James Socol : -- nosy: +jamessocol ___ Python tracker <http://bugs.python.org/issue9883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22658] IMAP4 Example lacking host information

2014-10-17 Thread James Goodwin
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')"

[issue22658] IMAP4 Example lacking host information

2014-10-17 Thread James Goodwin
James Goodwin added the comment: I do see that. I agree that this is a duplicate of that one. -- ___ Python tracker <http://bugs.python.org/issue22658> ___ ___

[issue21614] Case sensitivity problem in multiprocessing.

2014-11-26 Thread James Burke
James Burke added the comment: I'm also getting this error. It appears to me to be caused by the length of the module name rather than case. mp_bug.py will run fine for me, but if I change it to mp_bug_longname.py then I will get this error. import multiprocessing import time class M

[issue23117] Properly codesign Mac python 2.7.9.pkg so it can work thru OS X firewall

2014-12-26 Thread James Wahlman
New submission from James Wahlman: The app is not code signed properly so when using Python 2.7.9 on OS X 10.10 or any version or OS X I imagine when a user enables the built in OS X firewall and runs Python it complains about allowing the app thru the firewall. The only way to fix since it

[issue23118] Properly codesign Mac python 2.7.9.pkg so it can work thru OS X firewall

2014-12-26 Thread James Wahlman
New submission from James Wahlman: The app is not code signed properly so when using Python 2.7.9 on OS X 10.10 or any version of OS X I imagine when a user enables the built in OS X firewall and runs Python it complains about allowing the app thru the firewall. The only way to fix since it

[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2015-01-15 Thread James Teh
Changes by James Teh : -- nosy: +jteh ___ Python tracker <http://bugs.python.org/issue20916> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue24281] String formatting: incorrect number of decimal places

2015-05-26 Thread James Luscher
James Luscher added the comment: Eric, I am not familiar with the 'g' format and did not know it was the default, but the documentation, read fully, is correct. It just took the response of Christopher Welborn to "wake me up" (it was a LONG day and I was "strug

[issue24643] VS 2015 pyconfig.h #define timezone _timezone conflicts with timeb.h

2015-07-16 Thread James Salter
New submission from James Salter: For python 3.5, PC/pyconfig.h contains the following for vs2015 support: /* VS 2015 defines these names with a leading underscore */ #if _MSC_VER >= 1900 #define timezone _timezone #define daylight _daylight #define tzname _tzname #endif This breaks any pyt

[issue24673] distutils/_msvccompiler does not remove /DLL during link(CCompiler.EXECUTABLE)

2015-07-20 Thread James Salter
New submission from James Salter: Encountered trying to build numpy with python 3.5b3, visual studio 2015. >From distutils/_msvccompiler.py:MSVCCompiler.link: if self._need_link(objects, output_filename): ldflags = (self.ldflags_shared_debug if de

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-08-28 Thread James Salter
James Salter added the comment: This also affects py2exe, which dynamically generates stub .pyc loaders inside a ZIP which then load .pyd modules outside the ZIP with the same name. Windows 8, x64, visual studio 2015 enterprise. It is simple enough to work around by doing a del sys.modules

[issue25713] Setuptools included with 64-bit Windows installer is outdated

2015-11-23 Thread James Paget
New submission from James Paget: This applies to Python 3.5.1rc1 only. The Windows 64-bit standalone installer installs setuptools 18.2, but the latest version is 18.5. It should be noted that the Python 2.7.11rc1 Windows 64-bit standalone installer installs setuptools 18.5. Other Python

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2016-04-10 Thread James Hennessy
New submission from James Hennessy: The tempfile.SpooledTemporaryFile class doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written. The attached program demonstrates the failure. It creates a SpooledTemporaryFile object, w

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
New submission from James Tatum: In https://github.com/python/typeshed/issues/180, we discussed a slight ambiguity with PEP 484's mention of forward references. It wasn't entirely clear that they don't apply unless using function annotations. This patch attempts to clear u

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
Changes by James Tatum : Removed file: http://bugs.python.org/file42785/forward_references.patch ___ Python tracker <http://bugs.python.org/issue26982> ___ ___ Python-bug

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
Changes by James Tatum : Added file: http://bugs.python.org/file42786/forward_references.patch ___ Python tracker <http://bugs.python.org/issue26982> ___ ___ Python-bug

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
Changes by James Tatum : Added file: http://bugs.python.org/file42787/forward_references.patch ___ Python tracker <http://bugs.python.org/issue26982> ___ ___ Python-bug

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
Changes by James Tatum : Removed file: http://bugs.python.org/file42786/forward_references.patch ___ Python tracker <http://bugs.python.org/issue26982> ___ ___ Python-bug

[issue26689] Add `has_flag` method to `distutils.CCompiler`

2016-05-08 Thread James Tatum
James Tatum added the comment: FYI, NamedTemporaryFile doesn't work well with Windows. There are a handful of issues about it. -- nosy: +James.Tatum ___ Python tracker <http://bugs.python.org/is

[issue14721] httplib doesn't specify content-length header for POST requests without data

2015-02-25 Thread James Rutherford
James Rutherford added the comment: The fix for this still doesn't set Content-Length to zero when body is None, but I don't see any reason why this should be the case. For example, the following snippet would work for any 'empty' body: if 'content-length'

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: Thanks for setting up the new issue, I'll cook up a patch. I'm assuming this affects all Python 3.X versions but I've specifically encountered it on Python 2.7. -- nosy: +jimr versions: +Python 2.7, Python 3.2, Python

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: OK, thanks. -- versions: -Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue23539> ___ ___ Python-bug

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: OK, I've got a patch but it's failing on 'test_send_file'[1], which is sending a body on a GET request. According to the IETF memo[2]: Bodies on GET requests have no defined semantics. Note that sending a body on a GET requ

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: Patch attached for the 2.7 branch, including updated tests. All tests pass. Let me know if this looks like a sensible approach and I'll produce something comparable for 3.X. The logic now is as it was before, except that we set a content length of zer

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: The first patch should actually be modified so the condition reads (update attached): if body is None and method_expects_body: thelen = 0 elif body is not None: ... Demian, I believe this is equivalent to your 'expectin

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread James Rutherford
James Rutherford added the comment: Happy to remove OPTIONS from the list of methods that gets a content-length where body is None, but do we also want to consider behaviour if it's the empty string? My feeling is that '' implies "present but empty" (so should have

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread James Rutherford
James Rutherford added the comment: I actually consider this a fix for the fix in 14721, rather than a new feature. The only new behaviour here is setting content length to be zero if body is None on PATCH, POST, or PUT. Happy to change the labeling if that's the consensus but IMO i

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-01 Thread James Rutherford
James Rutherford added the comment: >> My feeling is that '' implies "present but empty" (so should have a >> content-length set to zero), whereas None implies "missing" (so should only >> have a content-length header set to zero if the method

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread James Rutherford
James Rutherford added the comment: OK, sounds like we're approaching consensus? And I believe that the patch as-is captures that consensus, so should I proceed and make another for 3.X for review? -- ___ Python tracker <http://bugs.py

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-04 Thread James Rutherford
James Rutherford added the comment: Single patch against default makes sense and I'll do that in future. As for the review comments, I'm happy to go with all of your suggestions but have offered a tweak to the docstring that you can take or leave at your

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-13 Thread James Rutherford
James Rutherford added the comment: Hi all, apologies for the spam, but I just wanted to confirm that no-one is waiting on anything from me... I'm happy to consolidate the final minor points & make the patch against python3 if that would simpli

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-13 Thread James Rutherford
James Rutherford added the comment: Ok I'll have a go at a consolidated python3 patch tomorrow. -- ___ Python tracker <http://bugs.python.org/issue23539> ___ ___

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-19 Thread James Rutherford
James Rutherford added the comment: Python 3 patch attached. The documentation has changed structure a little so I've adapted (simplified) this from the original. Otherwise, it's pretty much the same, except with python3 fixes, and incorporated feedback. I'll upload an updat

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-19 Thread James Rutherford
James Rutherford added the comment: Updated 2.7 patch attached. -- Added file: http://bugs.python.org/file38570/issue23539-py27.patch ___ Python tracker <http://bugs.python.org/issue23

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-22 Thread James Rutherford
James Rutherford added the comment: Updated docs look good to me, thanks! -- ___ Python tracker <http://bugs.python.org/issue23539> ___ ___ Python-bugs-list mailin

[issue23835] configparser does not convert defaults to strings

2015-03-31 Thread James Tocknell
New submission from James Tocknell: ConfigParser(defaults={1:2.4}) and ConfigParser(defaults={"a":5.2}) cause an exception when configparser tries to perform string operations on 1 and 5.2. I didn't see it documented that defaults must only contain strings, and using Config

[issue23835] configparser does not convert defaults to strings

2015-04-07 Thread James Tocknell
James Tocknell added the comment: Here's a patch for 2.7 (based of the head of the 2.7 branch), something similar could be done for 3.4 (I wasn't sure what branch I was supposed to base the patch off, since 3.4 is inactive). The string requirement was already noted in the docstr

[issue23912] Inconsistent whitespace/formatting in docs/reference/datamodel/Special Method Lookup

2015-04-10 Thread James Edwards
New submission from James Edwards: There's inconsistent leading whitespace between the two classes in the 4th code snippet of the "Special Method Lookup" section. https://docs.python.org/3/reference/datamodel.html#special-method-lookup The (very substantial :) included p

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread James Edwards
New submission from James Edwards: I realize this is a huge patch, I'd be happy to split it to multiple little patches (one per file, one per documentation directory, etc.) to make things easier. Just let me know. The patch attempts to do a few things (with exceptions, as noted

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread James Edwards
Changes by James Edwards : -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue23921> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-12 Thread James Powell
Changes by James Powell : -- nosy: +james, r.david.murray ___ Python tracker <http://bugs.python.org/issue10933> ___ ___ Python-bugs-list mailing list Unsub

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-12 Thread James Powell
James Powell added the comment: We investigated this issue with pdmccormick & r.david.murray. The behaviour appears to be intentional. If the trace function raises an Exception, system tracing is disabled entirely. See attached documentation patch to clarify this. -- keywords: +p

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell : -- nosy: +james ___ Python tracker <http://bugs.python.org/issue17380> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
James Powell added the comment: See attached patch to clarify this in the docs. -- keywords: +patch Added file: http://bugs.python.org/file38910/issue_17380.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue17380> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23934] inspect.signature reporting "()" for all builtin & extension types

2015-04-13 Thread James Powell
James Powell added the comment: Discussed with Nick Coghlan. See attached patch to return `signature(object)` only if both `__new__` and `__init__` are shared with `object`. Otherwise, raise TypeError indicating built-in types not supported. https://docs.python.org/3/library/inspect.html

[issue23934] inspect.signature reporting "()" for all builtin & extension types

2015-04-13 Thread James Powell
James Powell added the comment: See attached patch for unittest. For 3.4, test that inspect.signature(str) raises TypeError. For >3.5, this can be improved to use _testcapi.matmulType -- Added file: http://bugs.python.org/file38949/issue_23934-test.pa

[issue23921] Standardize documentation whitespace, formatting

2015-04-13 Thread James Edwards
James Edwards added the comment: Thanks Berker, I responded to most of your comments in rietveld. A few of your comments suggested "we should get rid of X", and while I can't say I disagree, I really tried to limit the scope of the changes to whitespace and formatting. As fa

[issue23921] Standardize documentation whitespace, formatting

2015-04-14 Thread James Edwards
James Edwards added the comment: Thanks for the review Serhiy. I'll prepare a revised patchset, given the comments from you and Berker and have it uploaded today. Thanks again. -- ___ Python tracker <http://bugs.python.org/is

[issue23921] Standardize documentation whitespace, formatting

2015-04-14 Thread James Edwards
James Edwards added the comment: Attaching revised patch per reviews. Notable changes: * Reverted howto/curses.rst multiple inline statements -> multi-target assignment (curses.rst is now unchanged) * Reverted library/subprocess.rst "==>" to "# ==>" chang

[issue23986] Inaccuracy about "in" keyword for list and tuple

2015-04-17 Thread James Edwards
James Edwards added the comment: What about: For the list and tuple types, ``x in y`` is true if and only if there exists an -index *i* such that ``x == y[i]`` is true. +index *i* such that either ``x == y[i]`` or ``x is y[i]`` is true. Seems to address your issue, and match the semantics of

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread James Edwards
James Edwards added the comment: It seems like this issue has morphed over time. At the beginning, it looked like you expected perfectly reasonable (but odd) definitions of __call__ attributes, where the logic inside raised an Exception, to be somehow determined to be "uncallable&qu

[issue24035] When Caps Locked, + alpha-character still displayed as uppercase

2015-04-24 Thread James Edwards
James Edwards added the comment: If you start the interactive interpreter with the -S switch, e.g. >python.exe -S Do you still see this behavior? -- nosy: +jedwards ___ Python tracker <http://bugs.python.org/issu

[issue24035] When Caps Locked, + alpha-character still displayed as uppercase

2015-04-24 Thread James Edwards
James Edwards added the comment: It looks like this is a bug in pyreadlines as suggested by eryksun, but for a different reason. Even though the Caps Lock + Shift combination is recognized correctly (as lower case), the logic in the pyreadlines module forces it to upper case. See lines 44-45

[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2015-05-01 Thread James Edwards
James Edwards added the comment: Inspect could probably be updated to use 3.3's __qualname__ in the case of classes-in-classes; classes-in-functions or functions-in-functions would likely be harder, but I'm not sure it's impossible. --

[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2015-05-01 Thread James Edwards
Changes by James Edwards : -- nosy: +pitrou, yselivanov ___ Python tracker <http://bugs.python.org/issue24078> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2015-05-01 Thread James Edwards
James Edwards added the comment: Added Yury (inspect module) and Antoine (PEP 3155) to nosy -- apologies if you're not interested. -- ___ Python tracker <http://bugs.python.org/is

<    1   2   3   4   5   6   >