[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread James Corbett
James Corbett added the comment: I think this would have been a better fit for a StackOverflow issue: https://stackoverflow.com/questions/tagged/python. Also, it's not a compilation error and it doesn't have anything to do with CPython's testing framework. Anyway, I don&#x

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2020-07-29 Thread James Corbett
James Corbett added the comment: I would love to get this issue resolved; it seems like everyone agrees that it's a bug. It came up for me recently: https://bugs.python.org/issue41047. Judging from the comments above, the consensus is that the relevant line, `self._check_value(action,

[issue36207] robotsparser deny all with some rules

2020-07-30 Thread James Gray
James Gray added the comment: Bonjour, je vois que nous ne sommes pas les seuls dans ce cas, nous avons besoin que les robots indexent nos pages html mais qu'elles n'indexent pas celles en /*.php$ ainsi que les ressources PC en PDF. Nous avons tenté en vain plusieurs solutions en p

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-10 Thread James Franks
James Franks added the comment: Hope this helps: I'm running Python Shell 3.8.5 on MacOSx 10.15.6 (Catalina). I can reproduce this hang easily. Open any existing module or create a new one. Can save the existing module or a new one just fine under the same name. (File menu - Save)

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Futrue

2020-08-13 Thread James Barrett
Change by James Barrett : -- keywords: +patch pull_requests: +20979 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21852 ___ Python tracker <https://bugs.python.org/issu

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Future

2020-08-14 Thread James Barrett
James Barrett added the comment: https://github.com/python/cpython/pull/21852 -- ___ Python tracker <https://bugs.python.org/issue40782> ___ ___ Python-bug

[issue18857] urlencode of a None value uses the string 'None'

2020-10-17 Thread James Addison
James Addison added the comment: No problem, and thanks for the heads-up Tal! I'll raise this as a topic on python-dev if it still seems worth pursuing, after collecting some more thoughts about it. -- ___ Python tracker &

[issue18857] urlencode of a None value uses the string 'None'

2020-10-17 Thread James Addison
James Addison added the comment: Thanks Senthil; please take your time. This isn't urgent, and would likely benefit from further standardization of the URL query string and/or form-encoded data formats (outside the Python project) to achieve consensus. A fully-considered answer at a

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-01-23 Thread James Sanders
New submission from James Sanders : At present, the built-in constants Ellipsis (...) and NotImplemented cannot be pickled. Perhaps there is a good reason for this, but the only discussion I can find is at msg<108957>, where it is stated that these values (along with their types, an

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-01-24 Thread James Sanders
James Sanders added the comment: I've submitted a patch that just uses save_global to pickle Ellipsis and NotImplemented, so the resulting pickle should be unpicklable anywhere. I'm completely new to the C API so not sure if the way I am building python strings (to pass to save_

[issue14024] logging.Formatter Cache Prevents Exception Format Overriding

2012-02-15 Thread James Lekas
New submission from James Lekas : logging.Formatter.format() creates a cache called exc_text with a copy of the traceback text which it uses for all log handlers (I think). When this cache is set, format() does not call formatException to format the exception/traceback data. Unfortunately

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2012-03-06 Thread James Pickering
New submission from James Pickering : If you run pkgutil.iter_zipimport_modules with a prefix parameter, and the module in question is a package, then the prefix parameter is ignored. The most visible symptom of this is when running pkgutil.walk_packages for a zipfile. Imagine we have a

[issue14478] Decimal hashing very slow, could be cached

2012-04-02 Thread James Hutchison
New submission from James Hutchison : Tested on 3.2 Note that I noticed that Decimal is supposed to be faster in 3.3 but I thought I would bring this to light just in case its still relevant Decimal hashing is very slow, even for simple numbers. I found by caching the hash result, there is

[issue14478] Decimal hashing very slow, could be cached

2012-04-02 Thread James Hutchison
James Hutchison added the comment: If I increase the cycles increased 10x with 3.2 I get: int: 0.421313354492 Decimal: 24.20299983024597 CachingDecimal: 1.7809998989105225 The sample you have provided is basically what I'm using. See attached What about worst case hash calcul

[issue14478] Decimal hashing very slow, could be cached

2012-04-02 Thread James Hutchison
James Hutchison added the comment: 100x should be e100 -- ___ Python tracker <http://bugs.python.org/issue14478> ___ ___ Python-bugs-list mailing list Unsub

[issue14478] Decimal hashing very slow, could be cached

2012-04-05 Thread James Hutchison
James Hutchison added the comment: I presume you mean in 3.2? Have you looked at the source code for that decorator? It's fundamentally a try/except but with a lot more unnecessary bloat than is needed for caching a single int result from a function with no arguments. Its actually

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-06 Thread James Hutchison
James Hutchison added the comment: This is an issue for me (Python 3.2). I have a custom pool that sends arguments for a function call over a pipe. I cannot send another pipe as an argument. Tim's workaround also does not work for me (win xp 32bit and 64bit) >From what I can tell,

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-06 Thread James Hutchison
James Hutchison added the comment: err, is it possible to edit out those file paths? I didn't intend them to be in the message. I'd appreciate it if someone with the privileges to do so could remove them. -- ___ Python trac

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-07 Thread James Hutchison
James Hutchison added the comment: @pitrou You can just delete my original post. I'll repost an edited version here for reference original post with paths removed: This is an issue for me (Python 3.2). I have a custom pool that sends arguments for a function call over a pipe. I cannot

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-07 Thread James Hutchison
James Hutchison added the comment: Shouldn't reduce_pipe_connection just be an alias for reduce_connection in unix so that using reduce_pipe_connection would work for both win and unix? My understanding after looking at the code is that reduce_pipe_connection isn't defined for

[issue14478] Decimal hashing very slow, could be cached

2012-04-10 Thread James Hutchison
James Hutchison added the comment: In the patch: This: +except AttributeError: +pass should be: +except: Checking for the AttributeError is very slightly slower. Not by a lot, but I think if we're going for speed we might as well be as fast as possible. I

[issue37659] subprocess.list2cmdline() should not escape wrapping single/double quotes

2019-07-23 Thread James Xu
New submission from James Xu : While working on our project, we have noticed that for `subprocess.Popen(command, ...)`, when `command` is a string that contains escaped double quote, for example, `command = '"path to executable" --flag arg'`, this works fine. However, whe

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2019-08-02 Thread Brandon James
New submission from Brandon James : When using the ipaddress library, all multicast addresses and networks return True when using the is_global method for their respective classes. I believe their are two possible fixes for this. 1) In practice no multicast addresses are globally routable

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2019-08-02 Thread Brandon James
Change by Brandon James : -- keywords: +patch pull_requests: +14833 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15088 ___ Python tracker <https://bugs.python.org/issu

[issue1047397] cgitb failures

2019-08-03 Thread Rhodri James
Change by Rhodri James : -- pull_requests: +14841 pull_request: https://github.com/python/cpython/pull/15094 ___ Python tracker <https://bugs.python.org/issue1047

[issue10879] cgi memory usage

2019-08-03 Thread Rhodri James
Change by Rhodri James : -- nosy: +Rhodri James, ethan.furman ___ Python tracker <https://bugs.python.org/issue10879> ___ ___ Python-bugs-list mailing list Unsub

[issue9968] Let cgi.FieldStorage have named uploaded file

2019-08-03 Thread Rhodri James
Change by Rhodri James : -- nosy: +Rhodri James, ethan.furman ___ Python tracker <https://bugs.python.org/issue9968> ___ ___ Python-bugs-list mailing list Unsub

[issue21705] cgi.py: Multipart with more than one file is misparsed

2019-08-03 Thread Rhodri James
Change by Rhodri James : -- nosy: +Rhodri James, ethan.furman ___ Python tracker <https://bugs.python.org/issue21705> ___ ___ Python-bugs-list mailing list Unsub

[issue30798] Document that subprocess.Popen does not set PWD

2017-06-28 Thread James Lin
New submission from James Lin: Even though http://bugs.python.org/issue4057 was rejected (which I think is fair), I think it would be worth mentioning something about PWD in the Python docs for subprocess.Popen's cwd parameter (and possibly for os.chdir): 1. It's pretty common for

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2017-06-30 Thread James Shewey
James Shewey added the comment: According to the man page for gethostbyaddr "The gethostbyname*() and gethostbyaddr*() functions are obsolete. Applications should use getaddrinfo(3) and getnameinfo(3) instead." - so perhaps using the correct API call might be a good start to reso

[issue30798] Document that subprocess.Popen does not set PWD

2017-07-01 Thread James Lin
James Lin added the comment: Yes, but the Python docs have scary-looking warnings about using shell=True, so people (rightly) should avoid using shell=True if they don't think that they need it. And in this case, people might not even know that they're invoking some binary that e

[issue23835] configparser does not convert defaults to strings

2017-07-03 Thread James Tocknell
Changes by James Tocknell : -- pull_requests: +2628 ___ Python tracker <http://bugs.python.org/issue23835> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-12-13 Thread James Crowther
James Crowther added the comment: Hi Ronald, I've replied to your comments below >My gut feeling is that this is some issue with your system or environment. I Doubt it, happens with another MacBook air which is literally out of the box, no mods. >Some more questions: >

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread James Davis
New submission from James Davis : I have two regexes: /(a|ab)*?b/ and /(ab|a)*?b/. If I re.search the string "ab" for these regexes, I get inconsistent behavior. Specifically, /(a|ab)*?b/ matches with capture "a", while /(ab|a)*?b/ matches with an empty capture group. I

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread James Davis
James Davis added the comment: Thanks for your thoughts, Raymond. I understand that the alternation has "short-circuit" behavior, but I still find it confusing in this case. Consider these two: Regex patternmatched? matched string capture

[issue29716] Python 3 Module doc still sounds like __init__.py is required

2017-03-03 Thread James O
New submission from James O: PEP 420 says "Allowing implicit namespace packages means that the requirement to provide an __init__.py file can be dropped completely..." (as described here: http://stackoverflow.com/questions/37139786/is-init-py-not-required-for-packages-in-pyth

[issue29716] Python 3 Module doc still sounds like __init__.py is required

2017-03-03 Thread James O
James O added the comment: Ah, I didn't realize some tools depended on it. Should I set the status to closed? (like I said, I'm new to this) -- ___ Python tracker <http://bugs.python.o

[issue29872] My reply

2017-03-21 Thread James Triveri
New submission from James Triveri: reply from james.triv...@gmail.com -- messages: 289962 nosy: jtrive84 priority: normal severity: normal status: open title: My reply ___ Python tracker <http://bugs.python.org/issue29

[issue30568] README Formatting

2017-06-04 Thread James Lu
New submission from James Lu: - Shorten the Copyright statement from a list of years (`2001, 2002, 2003, ... 2017`) into `2001-2017` - Extend copyright date at end of README from 2016 to 2017 - Ensure that there are two newlines before every header throughout the file (this was the original

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-03-05 Thread James Edwards
James Edwards added the comment: It may be worth also addressing the fact that IPv6Network makes no restriction on it's netmask (when specified as a tuple). -- nosy: +jedwards ___ Python tracker <https://bugs.python.org/is

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread James Edwards
New submission from James Edwards : Consider: from collections.abc import * class DefinitelyNotAList: def __init__(self, backer): self.backer = backer def __getitem__(self, key): return self.backer[key] def __len__(self

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread James Edwards
James Edwards added the comment: This was tagged as 3.7, but the issue still exists AFAICT in the latest github master: https://github.com/python/cpython/blob/master/Lib/_collections_abc.py -- ___ Python tracker <https://bugs.python.

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread James Edwards
James Edwards added the comment: Edit conflict -- indeed -- self closing. --- I should point out that this could be fixed with something like the following: @classmethod def __subclasshook__(cls, C): if cls is Sequence: return _check_methods(C, "__rever

[issue20399] Comparison of memoryview

2019-04-02 Thread james stone
james stone added the comment: I encountered this issue as well when using python 3.6.7 and psycopg2. Postgres tries to sort rows by the primary key field and if the returned type is a memoryview an the error is thrown: "TypeError: '<' not supported between instances o

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

2019-04-03 Thread James Socol
Change by James Socol : -- nosy: -jamessocol ___ Python tracker <https://bugs.python.org/issue9883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29288] Lookup Error while importing idna from a worker thread

2019-04-11 Thread James Saryerwinnie
James Saryerwinnie added the comment: I ran into this as well also using the embedded distribution for windows (https://docs.python.org/3/using/windows.html#the-embeddable-package). socket.getaddrinfo() will encode unicode hostnames using idna and trigger this error if you call this

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

2018-02-18 Thread James Bailey
James Bailey added the comment: Agreed with ruffsl's concerns about the overly aggressive detection of infinite recursion. I also wonder if the hrefs should be normalized or canonized for the check? The check may miss infinite recursions if the hrefs happen to be written in non-matchin

[issue32981] Catastrophic backtracking in poplib and difflib

2018-03-01 Thread James Davis
New submission from James Davis : Hi Python security team, My name is James Davis. I'm a security researcher at Virginia Tech. The python core (cpython) has 2 regular expressions vulnerable to catastrophic backtracking that look like potential DOS vectors. The vulnerable expression

[issue32997] Catastrophic backtracking in fpformat

2018-03-05 Thread James Davis
New submission from James Davis : The decoder regex used to parse numbers in the fpformat module is vulnerable to catastrophic backtracking. '^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$' The substructure '0*(\d*)' is quadratic. An attack string like '+0000++&#x

[issue32997] Catastrophic backtracking in fpformat

2018-03-05 Thread James Davis
Change by James Davis : -- keywords: +patch pull_requests: +5750 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32997> ___ ___ Python-

[issue32997] Catastrophic backtracking in fpformat

2018-03-05 Thread James Davis
James Davis added the comment: Equivalent, probably cleaner. Comment on the PR if you want a change. -- ___ Python tracker <https://bugs.python.org/issue32

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2018-04-17 Thread James Lu
Change by James Lu : -- nosy: +tacocat ___ Python tracker <https://bugs.python.org/issue33090> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32533] SSLSocket read/write thread-unsafety

2018-04-17 Thread James Lu
Change by James Lu : -- nosy: +tacocat ___ Python tracker <https://bugs.python.org/issue32533> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33969] "copytree" refuses to copy to a mount point

2018-06-26 Thread James Stevens
New submission from James Stevens : Even if the mount-point directory is empty, "copytree" refuses to copy to a it becuase it will not perform a copy if the destination directory already exists - although it will accept any of the parents of destination existing, or not. Therefore,

[issue33970] bugs.python.org silently refuses registrations

2018-06-26 Thread James Stevens
New submission from James Stevens : bugs.python.org silently refuses registration if the user's "homepage" does not match some undisclosed URL validation test. The fact of the validation failure of the "homepage" is not disclosed at any time, including both the in

[issue33971] os.mknod is subject to "umask"

2018-06-26 Thread James Stevens
New submission from James Stevens : As per the underlying "libc" call, the node created with "mknod" is subjected to the user's current umask setting. This is not made clear in the Python documentation, but the "libc" documentation makes this clear (see at

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-06-29 Thread James Edwards
James Edwards added the comment: This came up in a StackOverflow question[1] today, so I took a stab at addressing the error. The changes don't restore the 2.x behavior, but just do as R. David Murray suggested and coerce the keys to strings prior to sorting to prevent the error.

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-06-29 Thread James Edwards
Change by James Edwards : -- keywords: +patch pull_requests: +7617 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue25457> ___ ___ Py

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-01 Thread James Emerton
New submission from James Emerton : We use locale.format('%.2f', x, True) to convert Decimal values to strings for display. Unfortunately, the locale module is using %-formatting to generate the initial string before applying locale specific formatting. As a result, any value which

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread James Emerton
Change by James Emerton : -- nosy: +jemerton ___ Python tracker <https://bugs.python.org/issue33731> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-01 Thread James Emerton
James Emerton added the comment: Certainly adding another letter to the format spec would solve my issue and would in fact be somewhat preferable to using local.format directly. I think this could be fixed in the locale module by transforming the format spec and using new-style formatting

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread James Emerton
James Emerton added the comment: So far, I've implemented this for Decimal -- ___ Python tracker <https://bugs.python.org/issue33731> ___ ___ Python-bugs-l

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread James Emerton
James Emerton added the comment: @rhettinger See #34311 about formatting Decimals using locale.format(). I'd like to see the problem fixed in one place or the other. Also, this is seems relatively straightforward to implement as it's really just a combination of the fixed precisi

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-04 Thread James Emerton
Change by James Emerton : -- keywords: +patch pull_requests: +8166 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34311> ___ ___ Py

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-04 Thread James Emerton
Change by James Emerton : -- pull_requests: -8166 ___ Python tracker <https://bugs.python.org/issue34311> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-04 Thread James Emerton
James Emerton added the comment: It looks like a bot got a bit excited when I mentioned this issue in the PR for bpo-33731. I unlinked the PR but this issue still got flagged for review. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34557] When sending binary file to a Microsoft FTP server over FTP TLS, the SSL unwind method hangs

2018-08-31 Thread James Campbell
New submission from James Campbell : When using the FTP library to transfer a binary file to a Microsoft FTP server using TLS, then the library will hang when unwinding the connection until it finally times out. The storbinary method calls conn.unwind which seems to have an issue with SSL

[issue22499] [SSL: BAD_WRITE_RETRY] bad write retry in _ssl.c:1636

2018-09-23 Thread James Lu
Change by James Lu : -- nosy: +tacocat ___ Python tracker <https://bugs.python.org/issue22499> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
New submission from James Hewitt : Having 'import logging.config' in an if statement in a function causes a namespace issue, despite the fact that the import is not reached. Example code: --- #!/usr/bin/env python3 # Test weird import bug import logging config = {} c

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
James Hewitt added the comment: Sure, it's at https://pastebin.com/L1RMPD7K -James On 10/25/2018 12:30 PM, Stéphane Wirtel wrote: > > Stéphane Wirtel added the comment: > > Could you share a pastebin? Thank you > >> Le 25 oct. 2018 à 21:28, James Hewitt a écrit

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
James Hewitt added the comment: I don't quite follow... the 'import logging.config' statement should never be executed, and if it is commented out the program works fine as written. It's as if the mere presence of the statement in the code causes 'logging&#

[issue35069] Unexecuted import in function causes UnboundLocalError

2018-10-25 Thread James Hewitt
James Hewitt added the comment: So just the fact that somewhere in the function a name is referenced, even if that code isn't actually executed, is enough to change the local namespace. I think I knew that, but didn't know that's what it meant :) I guess the moral is, p

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-11-10 Thread James Crowther
James Crowther added the comment: Hi guys, I am the OP for the stack overflow issue question that sparked this bug report. In response to Ned's question about configuration of the system: MacOS 10.14.1 Installed x-code and command line tools python versions used, varies, 3.5.3, 3.

[issue18386] Better random number generator

2013-07-06 Thread James Lu
New submission from James Lu: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html#dSFMT You might want to use a better algorithm -- components: Library (Lib) files: dSFMT-src-2.2.1.zip messages: 192469 nosy: James.Lu priority: normal severity: normal status: open title

[issue18386] Better random number generator

2013-07-06 Thread James Lu
Changes by James Lu : -- nosy: -James.Lu type: -> enhancement ___ Python tracker <http://bugs.python.org/issue18386> ___ ___ Python-bugs-list mailing list Un

[issue11122] bdist_rpm should use rpmbuild, not rpm

2013-07-15 Thread James Bennet
James Bennet added the comment: I have observed this bug under CentOS 5.9 using the version of python-setuptools from the official CentOS repository. -ba is not a valid option for that version of RPM. I am able to get further by installing the rpm-build package. -- nosy

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
New submission from James Lu: if you assign a lambda to a object and call it,you get this: Traceback (most recent call last): File "", line 1, in n.__div__(3) TypeError: () takes exactly 2 arguments (1 given) The full test is here: >>> n = num() >>> n.__d

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
Changes by James Lu : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue18474> ___ ___ Python-bugs-list mailing list Unsubscri

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: 2.5,new-style -- ___ Python tracker <http://bugs.python.org/issue18474> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: instance,assinged during __init__ -- ___ Python tracker <http://bugs.python.org/issue18474> ___ ___ Python-bugs-list mailing list Unsub

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: Also,there were some bugs, but after I fixed them, it would only work if I did this: n.__div__(n,3) -- ___ Python tracker <http://bugs.python.org/issue18

[issue18482] dis.dis fails on one letter strings.

2013-07-17 Thread James Lu
New submission from James Lu: dis.dis fails on one letter strings. dis.dis("t") Traceback (most recent call last): File "", line 1, in dis.dis("t") File "C:\python 25\lib\dis.py", line 44, in dis disassemble_string(x) File "C:\python 25

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

[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 wrote: > > Eric V. Smith added the comment: > > bool instances are immutable, so all "value.toggle()" could do is the same > as "

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
James Lu added the comment: well, filter() could take the function not lambda x:not x james On Tue, Jul 23, 2013 at 12:23 PM, Eric V. Smith wrote: > > Eric V. Smith added the comment: > > Since it would be the same as "not value", I can't imagine this would

[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 <http://bugs.python.org/issue18591> ___ ___ Python-bugs-list m

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

[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

[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: o

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

[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

[issue18946] HTMLParser should ignore errors when parsing text in

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 ("" +

[issue18946] HTMLParser should ignore errors when parsing text in

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 wrote: > > Ezio Melotti added the comment: > > What version of Python are you using? > > -

[issue14667] No IDLE

2012-04-24 Thread James Lu
New submission from James Lu : No IDLE 3.26 need badly! High prriority -- components: IDLE files: python.exe messages: 159243 nosy: James.Lu priority: normal severity: normal status: open title: No IDLE type: resource usage versions: Python 3.2 Added file: http://bugs.python.org

[issue14667] No IDLE

2012-04-24 Thread James Lu
James Lu added the comment: 1,looked for python IDLE 2.NO python #.use text editor (hard) james On Wed, Apr 25, 2012 at 2:17 AM, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > Please structure your bug report as follows: > > 1. this is what you did

[issue10376] ZipFile unzip is unbuffered

2012-05-01 Thread James Hutchison
James Hutchison added the comment: See attached, which will open a zipfile that contains one file and reads it a bunch of times using unbuffered and buffered idioms. This was tested on windows using python 3.2 You're in charge of coming up with a file to test it on. Sorry. Example o

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread James Oakley
New submission from James Oakley : OpenSSL provides a method, SSL_CTX_set_default_verify_paths(), for loading a default certificate store, which is used by many distributions. In openSUSE, the default store is not a bundle, but a directory-based store, which is not supported at all by the SSL

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread James Oakley
James Oakley added the comment: Here's the patch for Python 3. -- Added file: http://bugs.python.org/file25534/python-3.2.3-ssl_default_certs.patch ___ Python tracker <http://bugs.python.org/is

[issue12029] ABC registration of Exceptions

2012-05-10 Thread James Henstridge
James Henstridge added the comment: The documentation for ABCMeta.register() says that it makes the other class a "virtual subclass". That would make the ABC a "virtual base class". So whether the current behaviour is correct depends on whether you consider a "vi

<    1   2   3   4   5   6   >