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

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

[issue20825] containment test for ip_network in ip_network

2015-07-07 Thread James
James added the comment: What is the status of these changes? Apparently they were slated for inclusion in 3.5 but it looks as though they haven't hit yet - is there a reason for this, or was it just forgotten? -- nosy: +JamesGuthrie ___ Python

[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 struggling to understand the problem

[issue24281] String formatting: incorrect number of decimal places

2015-05-24 Thread James Luscher
New submission from James Luscher: Doc for 3.4: at 6.1.3.1. Format Specification Mini-Language indicates that: The precision is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value Yet I find that I get this behavior: Python 3.4.3

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2015-05-19 Thread James Tocknell
Changes by James Tocknell aragilar+pythonb...@gmail.com: -- nosy: +aragilar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18391 ___ ___ Python

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

2015-05-01 Thread James Edwards
Changes by James Edwards jh...@jheiv.com: -- nosy: +pitrou, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24078 ___ ___ Python-bugs

[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 rep...@bugs.python.org http://bugs.python.org/issue24078

[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. -- nosy: +jedwards

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

2015-04-25 Thread James
James added the comment: When I start the interpreter with the -S switch, the problem goes away. Thanks for looking into it, and I apologize for the false alarm! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24035

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

2015-04-25 Thread James
Changes by James james.triv...@gmail.com: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24035

[issue24035] When Caps Locked, Shift + 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

[issue24035] When Caps Locked, Shift + 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 rep...@bugs.python.org http://bugs.python.org/issue24035

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

2015-04-22 Thread James
New submission from James: Referring to Python 2.7 running on Windows (7/8): At the interactive interpreter, if either 1) Caps are Locked OR 2) Shift is held while an alpha-character is selected, the character is output and displayed as uppercase, as one would expect. However, in Python 2.7

[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

[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. This does

[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 # == changes since there are other

[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 rep...@bugs.python.org http://bugs.python.org

[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.patch

[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 far as the script

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue17380

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +james ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380 ___ ___ Python-bugs-list

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

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380 ___ ___ Python

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

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +james, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10933

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

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread James Edwards
Changes by James Edwards jh...@jheiv.com: -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23921 ___ ___ Python-bugs-list

[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 patch makes both classes

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

[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 ConfigParser['DEFAULT

[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 rep...@bugs.python.org http://bugs.python.org/issue23539 ___ ___ Python

[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 updated 2.7 patch

[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 rep...@bugs.python.org http://bugs.python.org/issue23539

[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 simplify things

[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 rep...@bugs.python.org http://bugs.python.org/issue23539

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

[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 rep...@bugs.python.org http

[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 is expecting a body. ... In light of that, I think

[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 it's

[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 a content-length set to zero

[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 3.3, Python 3.4

[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 rep...@bugs.python.org http://bugs.python.org/issue23539

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

[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 request might cause some

[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 'expecting_len

[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' not in header_names: self

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

2015-01-15 Thread James Teh
Changes by James Teh ja...@nvaccess.org: -- nosy: +jteh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20916 ___ ___ Python-bugs-list mailing list

[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

[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

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

[issue22691] A Better Help File

2014-10-23 Thread James
James added the comment: I've written several languages, I'm no novice but, I also know when to brush up.Its just how I started, it looks like an opening for others. -Original Message- From: R. David Murray Sent: Wednesday, October 22, 2014 6:25 AM To: geek.mo...@gmail.com Subject

[issue22692] Problems with Python's help()

2014-10-22 Thread James
New submission from James: Hello, I really think that Microsoft’s last release of Quick Basic 4.5 really had the ultimate of all help files. Here’s why, you could cut and copy the code to the program you were working on, and then alter it to your program. It was one of the nicer things

[issue22694] The help file issue I'm having.

2014-10-22 Thread James
New submission from James: Hello, Now, I really want you to think about the hunt and pick method of programming and learning how to program. Being self taught, isn’t something that can happen unless, the authors of the software want people to learn how to use it. Help files

[issue22691] A Better Help File

2014-10-21 Thread James
New submission from James: Just the General Help that is in Python, doesn't really help. Here's what would help, if every Module, had an example in code of how it was used instead of the Trees. I mean, word trees, well that's what the writing reminds me of, is word trees like you'd produce

[issue22691] A Better Help File

2014-10-21 Thread James
James added the comment: Just the General Help that is in Python, doesn't really help. Here's what would help, if every Module, had an example in code of how it was used instead of the Trees. I mean, word trees, well that's what the writing reminds me of, is word trees like you'd produce

[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') This will bring the example inline

[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 rep...@bugs.python.org http://bugs.python.org/issue22658

[issue17835] test_io broken on PPC64 Linux

2014-09-29 Thread James Spurin
James Spurin added the comment: With both the kernel parameters defined and undefined, I get the following output - # /local/0/opt/python-3.4.1/bin/python Python 3.4.1 (default, Sep 29 2014, 13:31:39) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux Type help, copyright, credits or license

[issue17835] test_io broken on PPC64 Linux

2014-09-25 Thread James Spurin
James Spurin added the comment: fcntl doesnt seem to like the parameter you mentioned - # cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) # /local/0/opt/python-3.4.1/bin/python Python 3.4.1 (default, Sep 24 2014, 12:23:21) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4

[issue22498] frozenset allows modification via -= operator

2014-09-25 Thread James Paget
New submission from James Paget: The operator -= modifies a frozenset (this should not be possible), instead of signaling a TypeError. Contrast with the += operator. f=frozenset([1,2]) f frozenset([1, 2]) f -= frozenset([1]) f frozenset([2]) f -= frozenset([2]) f frozenset([]) f

[issue17835] test_io broken on PPC64 Linux

2014-09-24 Thread James Spurin
James Spurin added the comment: I encountered similar issues to those discussed in this issue whilst compiling 3.4.1 on 'Red Hat Enterprise Linux Server release 6.5 (Santiago)' In particular, the following tests were failing - [root@lonlx90800 ~]# /local/0/python-3.4.1/bin/python3 /local/0

[issue22293] mock could be less memory-intensive

2014-08-28 Thread James Westby
New submission from James Westby: Hi, I'm looking in to the memory usage of our testsuite, which does a fair amount of def setUp(): patcher = patch.multiple(...) self.mock_whatever = patcher.start() self.addCleanup(patcher.stop) or other ways of creating a mock

[issue21984] list(itertools.repeat(1)) causes the system to hang

2014-07-14 Thread James Paget
New submission from James Paget: In Python 3.4, type: import itertools list(itertools.repeat(1)) The system will hang, and a cold reboot is necessary (at least on Windows). I expected some sort of infinite list exception to be thrown. -- components: Extension Modules messages

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread James Y Knight
James Y Knight added the comment: Reverting the incorrect commit which caused the regression would be a good start. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-03 Thread James Y Knight
New submission from James Y Knight: The change done for issue9291 in Python 2.7.7 caused the mimetypes.types_map dict to change to contain a mixture of str and unicode objects, rather than just str, as it always had before. This causes twisted.web to crash when serving static files on Windows

[issue21468] NNTPLib connections become corrupt after long periods of activity

2014-05-27 Thread James Meneghello
James Meneghello added the comment: Yeah, I didn't have a lot of time so I chose just to work around it. When I get a chance I'll have a better look. Good point: I didn't think to try it with SSL off (SSL is enabled for all connections by default with this application). I'll test this and see

[issue21468] NNTPLib connections become corrupt after long periods of activity

2014-05-10 Thread James Meneghello
New submission from James Meneghello: After establishing an NNTP connection for a long-running process (up to hours at a time), the connection will eventually die and start producing infinite random garbage output, a small part of which is seen below. Any subsequent calls to the connection

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2014-04-23 Thread James Brewer
James Brewer added the comment: It seems like this issue lost traction, so I decided to go ahead and apply Eric's feedback. I've attached the relevant patch. With that said, I agree with Senthil that sections 2.2.4 and 2.2.5 would be better off between sections 13.1 and 13.2 -- nosy

[issue837046] pyport.h redeclares gethostname() if SOLARIS is defined

2014-04-20 Thread James Bostock
James Bostock added the comment: I have not compiled Python from source code for many years and no longer have access to Solaris machines so I cannot say whether or not this is still a problem. -- ___ Python tracker rep...@bugs.python.org http

[issue1677872] Efficient reverse line iterator

2014-04-15 Thread James Emerton
James Emerton added the comment: Attached is an implementation of BufferedReader.readprevline(), as suggested by Antoine. At this point, it seems to be working but I would like to improve the tests when a single result spans multiple chunks. I would particularly like to ensure correct

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-03-14 Thread James Bailey
New submission from James Bailey: After xml.etree.ElementInclude.include inserts an Xinclude'd href it does not walk the just-inserted subtree to see if it contains any Xincludes itself. I think the behaviour should be modified to walk the included subtree and perform any Xincludes contained

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-28 Thread James Dominy
James Dominy added the comment: Ah, I did some digging. It turns out pbzip2 is installed on the system in question, and more annoyingly, /usr/bin/bzip2 is a symlink to pbzip2. I didn't realise the file was compressed by pbzip2. Thanks for the help

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-27 Thread James Dominy
James Dominy added the comment: How does one create a multi-stream bzip2 file in the first place? And how do I tell it's multi-stream. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20781

[issue20781] BZ2File does decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
New submission from James Dominy: bz2.BZ2File does not decompress a file (see attached) correctly. This file can be decompressed and compressed via stadard unix tools (bzip2 and bunzip2) without change. Consider ... $ python Python 2.7.6 (default, Dec 7 2013, 22:49:16) [GCC 4.8.2

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
Changes by James Dominy jgdom...@gmail.com: -- title: BZ2File does decompress some .bz2 files correctly - BZ2File doesn't decompress some .bz2 files correctly ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20781

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
James Dominy added the comment: Whoops, forget to add the output from the standard binutils $ bzcat example-file.csv.bz2 | wc -c 909602 $ bzcat example-file.csv.bz2 | md5sum 48f4b69b2b8bb0b171ebc36313eb6616 - As you can see file sizes and hashes do not match

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-11 Thread James Skinner
James Skinner added the comment: Ok, I'm not sure when I got the idea they should return ids instead of the names :) But raising NotImplementedError is certainly an improvement on ImportError. As to implementing it on Windows, the answer by eryksun on this page works without requiring

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-10 Thread James Skinner
New submission from James Skinner: When using the Path class in Lib/pathlib.py under Windows, calling p.owner() or p.group() fails with an ImportError due to importing the pwd and grp modules respectively, as neither of those exist. The documentation doesn't mention this behaviour

[issue11571] Turtle window pops under the terminal on OSX

2013-11-24 Thread James Cook
James Cook added the comment: This problem still exists with the version of turtle bundled with python 3.3.3 and ActiveState ActiveTcl8.5.15.1. While it may be an issue with the underlying platform, it's unfortunate for young beginners just learning python who don't understand the underlying

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
James Powell added the comment: I see this as removing a restriction and a special-case from the decorator syntax (noting, of course, that these were introduced deliberately.) In terms of whether the new forms are improvements, my preference is to leave this up to the judgement

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: Added file: http://bugs.python.org/file32745/decorator-syntax.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19660

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-19 Thread James Powell
New submission from James Powell: Decorator syntax currently allows only a dotted_name after the @. As far as I can tell, this was a gut-feeling decision made by Guido. [1] I spoke with Nick Coghlan at PyTexas about this, and he suggested that if someone did the work, there might be interest

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-19 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- keywords: +patch Added file: http://bugs.python.org/file32717/decorator-syntax.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19660

[issue19318] break more than once

2013-10-20 Thread James Lu
New submission from James Lu: break 2 would break out of one loop then break out of another. break break would just break once and not execute the second break. break 2 when there are only 1 thing to break would raise raise a SyntaxError: Can only break 1 time, need to break 2 times

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: You would have to do this: for i in range(1,10): broke = True for x in range(2,5): break else: broke = False if broke: break to break twice, and you can't break only once

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: Big example: pygame, event proccessing loop running. the user clicks Quit, you do break 2. psuedocode: while True: for event in pygame.events.get(): if event.type==pygame.QUIT: break 2 james On Sun, Oct 20, 2013 at 2:36 PM, Martin Matusiak

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: Every new feature takes on new challenges and harder ways to debug. But what about using that very confusing code that I showed that only let's you break one amount, that would be harder to debug! -- ___ Python tracker

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: Oh, yes,yes,yes! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19318 ___ ___ Python-bugs-list mailing list

[issue18946] HTMLParser should ignore errors when parsing text in script tags

2013-09-06 Thread James Lu
New submission from James Lu: It will show invalid html inside of script tags, for example, at the learners dictionary: function output_creative (id) { document.write (div id=' + id + ' + scr

[issue18946] HTMLParser should ignore errors when parsing text in script tags

2013-09-06 Thread James Lu
James Lu added the comment: 2.5, but I don't think the library has changed since. james On Fri, Sep 6, 2013 at 12:29 PM, Ezio Melotti rep...@bugs.python.orgwrote: Ezio Melotti added the comment: What version of Python are you using? -- nosy: +ezio.melotti

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2013-08-17 Thread James Sanders
James Sanders added the comment: I did a bit more digging and I think I've worked out what is going on. The particular bit of tcl initialization code that triggers the problem if it is run before the fork is Tcl_InitNotifier in tclUnixNotify.c. It turns out there is a known problem

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2013-08-10 Thread James Sanders
James Sanders added the comment: I recently got hit by this bug on 64-bit ubuntu 13.04, with python 3.3.1 and tcl/tk 8.5.13 installed from the Ubuntu repositories. However, I tried building the same versions of tcl, tk, and python locally, and couldn't reproduce the bug. I also built python

[issue18662] re.escape should not escape the hyphen

2013-08-06 Thread James Laver
James Laver added the comment: I looked up quotemeta with perldoc and you're right, it will quote the hyphen. Given that python's regex engine correctly deals with unnecessarily quoted characters, I suppose this is fine. -- resolution: - wont fix status: open - closed

[issue18662] re.escape should not escape the hyphen

2013-08-05 Thread James Laver
New submission from James Laver: Traceback (most recent call last): File /Users/jlaver/retest.py, line 6, in test_escape self.assertEquals(re.escape('-'), '-') AssertionError: '\\-' != '-' The only place you can do bad things with hyphens is in a character class. I fail to see how you'd

[issue18662] re.escape should not escape the hyphen

2013-08-05 Thread James Laver
James Laver added the comment: Quite right, it does say that in the documentation. The documentation is perfectly correct, but the behaviour is wrong in my opinion and as you suggest, we should be escaping metacharacters only. -- ___ Python tracker

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
New submission from James Lu: I have attached a *possible* new version of threading.py that returns the value of the target. -- components: Library (Lib) files: threading.py messages: 193899 nosy: James.Lu priority: normal severity: normal status: open title: threading.Thread.run

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
James Lu added the comment: run's calling function needs to return. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18591 ___ ___ Python-bugs

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
New submission from James Lu: the bool type should have a toggle() function -- messages: 193608 nosy: James.Lu priority: normal severity: normal status: open title: bool.toggle() type: enhancement versions: Python 3.5 ___ Python tracker rep

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
James Lu added the comment: I mean, return a value, some people like this style. james On Tue, Jul 23, 2013 at 12:10 PM, Eric V. Smith rep...@bugs.python.orgwrote: Eric V. Smith added the comment: bool instances are immutable, so all value.toggle() could do is the same as not value

<    1   2   3   4   5   6   >