[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
New submission from Joshua Root : Older clang versions don't have __builtin_bswap16, but it's always used when compiling with clang, which means the build fails with those older versions. The code should use __has_builtin to check. -- components: Build messages: 375806

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
Change by Joshua Root : -- keywords: +patch pull_requests: +21052 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21942 ___ Python tracker <https://bugs.python.org/issu

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
Change by Joshua Root : -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue41617> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
Change by Joshua Root : -- pull_requests: +21053 pull_request: https://github.com/python/cpython/pull/21943 ___ Python tracker <https://bugs.python.org/issue41

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-18 Thread Joshua Root
Joshua Root added the comment: > I'm curious. Can I ask you on which platform do you use clang older than 3.2? Mac OS X 10.7 / Xcode 4.6.3. I'm not using it personally, but we have automated builds on that platform. Unfortunately the patch ultimately committed did not fix th

[issue7946] Convoy effect with I/O bound threads and New GIL

2020-10-02 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker <https://bugs.python.org/issue7946> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41979] PEG parser doesn't accept extended unpacking in with statement

2020-10-08 Thread Joshua Oreman
New submission from Joshua Oreman : On Python 3.9.0 with the new PEG parser, the following statement produces a SyntaxError: with contextlib.nullcontext(range(1, 5)) as (first, *rest, last): print(first, rest, last) On 3.8.x, or 3.9.0 with -X oldparser, it succeeds and prints "1 [2,

[issue31861] add aiter() and anext() functions to operator module

2020-11-25 Thread Joshua Bronson
Joshua Bronson added the comment: Nice to see there is still interest in this from someone else! Thanks, John. Are any core developers still interested in this? If I can get a new PR together that adds C implementations of `aiter` and `anext` to builtins, would a committer still be

[issue31167] timedelta produced by datetime.__sub__ does not take Daylight Savings Time into account

2017-08-09 Thread Joshua Li
New submission from Joshua Li: See my SO answer and the corresponding question for detail: https://stackoverflow.com/a/45602760/5348393 Essentially, given two datetime.datetime instances t1 and t2, the following two syntactically different lines of code should be logically equivalent, but in

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

2018-12-14 Thread Joshua Cannon
New submission from Joshua Cannon : I would expect the following to work: ``` >>> import pathlib >>> pathlib.Path.cwd().parents[0:1] Traceback (most recent call last): File "", line 1, in File "...\Python36\lib\pathlib.py", line 593, in __getit

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

2018-12-14 Thread Joshua Cannon
Change by Joshua Cannon : -- keywords: +patch pull_requests: +10401 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35498> ___ ___ Py

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

2018-12-14 Thread Joshua Cannon
Joshua Cannon added the comment: If it is deemed a bug which needs to be fixed, I've gone ahead and attached the PR to fix it. CLA signage is pending approval at the company I work for, with most people out for the holidays (so it might be a day or two turna

[issue21041] pathlib.PurePath.parents rejects negative indexes

2018-12-17 Thread Joshua Cannon
Joshua Cannon added the comment: I created issue35498 about .parents rejecting slices as well. (It was pointed out this discussion would probably decide that issue's fate) I think that .parents looking like a duck, but not quacking like one isn't very pythonic. Besides, the

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2019-02-12 Thread Joshua Oreman
Joshua Oreman added the comment: I also ran into this. My workaround was to use gc.get_referents() on the async_generator_asend object, which returns a one-element list containing the async generator object. I don't know if this is guaranteed or just happened to work in the cases

[issue15564] cgi.FieldStorage should not call read_multi on files

2017-03-13 Thread Joshua Shields
Joshua Shields added the comment: I ran into this issue as well. I think it is something cgi.py will need to handle correctly when this type of file is uploaded from a browser's file input. -- nosy: +jshields ___ Python tracker

[issue31861] add aiter() and anext() functions to operator module

2019-03-04 Thread Joshua Bronson
Joshua Bronson added the comment: If the deciders prefer to have these in the operator module for 3.8 (as Yury and Jelle requested above), my PR from a few months ago which implements this (https://github.com/python/cpython/pull/8895) can still be merged with no conflicts. I don't thin

[issue34652] never enable lchmod on Linux

2019-04-11 Thread Joshua Root
Joshua Root added the comment: The follow-up fix (AC_CHECK_FUNC -> AC_CHECK_FUNCS) still needs to be backported to 2.7. Currently the lack of it causes lchmod to be disabled on all platforms, not just Linux. -- nosy: +jmr ___ Python trac

[issue36054] Way to detect CPU count inside docker container

2019-04-18 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker <https://bugs.python.org/issue36054> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32913] Improve regular expression HOWTO

2018-02-22 Thread Joshua Li
New submission from Joshua Li : "Python HOWTOs are documents that cover a single, specific topic, and attempt to cover it fairly completely." It would be quite helpful if the section "non-capturing-and-named-groups" in the regex HOWTO contained at least a mention and sh

[issue32913] Improve regular expression HOWTO

2018-02-22 Thread Joshua Li
Change by Joshua Li : -- keywords: +patch pull_requests: +5597 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32913> ___ ___ Python-

[issue32999] issubclass(obj, abc.ABC) causes a segfault

2018-03-06 Thread Joshua Bronson
Change by Joshua Bronson : -- pull_requests: +5780 ___ Python tracker <https://bugs.python.org/issue32999> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32999] issubclass(obj, abc.ABC) causes a segfault

2018-03-06 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker <https://bugs.python.org/issue32999> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33018] Improve issubclass() error checking and message

2018-03-06 Thread Joshua Bronson
New submission from Joshua Bronson : Creating this issue by request of INADA Naoki to discuss my proposed patch in https://github.com/python/cpython/pull/5944. Copy/pasting from that PR: If you try something like issubclass('not a class', str), you get a helpful error me

[issue33018] Improve issubclass() error checking and message

2018-03-12 Thread Joshua Bronson
Joshua Bronson added the comment: I'll share the use case that prompted me to submit this PR in the first place. I am the author of bidict (https://pypi.python.org/pypi/bidict), which provides a bidirectional dict class. A bidict is just like a dict, except it automatically maintain

[issue32328] ttk.Treeview: _tkinter.TclError: list element in quotes followed by "; " instead of space

2018-03-16 Thread Joshua Kinard
Joshua Kinard added the comment: I have to disagree rather strongly with closing this as "not a bug". If the issue really boils down to incorrectly passing a single string when there is only one item in 'values', and a single-item tuple should be used instead, then

[issue31601] Availability of utimensat and futimens not checked correctly on macOS

2017-09-26 Thread Joshua Root
New submission from Joshua Root : The futimens and utimensat functions are available in High Sierra but not previous versions of macOS. Building against the 10.13 SDK and deploying to an earlier version will result in a crash when the dynamic linker can't find the symbols at ru

[issue32239] decimal module exception args incorrect for c module

2017-12-06 Thread Joshua Ringer
New submission from Joshua Ringer : Exception instance args for decimal errors are supposed to be a descriptive string. However, in the c module, they are currently a list of one containing the underlying exception class. The pure python module is correct. See the following interpreter output

[issue32328] ttk.Treeview: _tkinter.TclError: list element in quotes followed by "; " instead of space

2017-12-14 Thread Joshua Kinard
New submission from Joshua Kinard : I think I've found another bug with Tkinter's string handling in Python 2.7.14, before it passes off to the TCL interpreter when inserting items into a ttk.Treeview widget. Specifically, it doesn't handle strings containing semi-colons ve

[issue31861] aiter() and anext() built-in functions

2018-06-24 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker <https://bugs.python.org/issue31861> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34069] Fail to move file in Windows (AttributeError)

2018-07-08 Thread Joshua Avalon
New submission from Joshua Avalon : from shutil import move from pathlib import Path a = Path("s") b = Path("a.txt") move(b, a) This will throw AttributeError: 'WindowsPath' object has no attribute 'rstrip' >From the document, it should able

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2018-08-12 Thread Joshua Kinard
Joshua Kinard added the comment: I was able to modify eryksun's patch for Python-2.7.15, at least the bulk of it. It looks like the '_PyOS_SigintEvent' function is new to the 3.x branch, and despite it being a fairly simple function, it's used in a few core Python modul

[issue20849] add exist_ok to shutil.copytree

2018-08-16 Thread Joshua Bronson
Change by Joshua Bronson : -- pull_requests: +8266 ___ Python tracker <https://bugs.python.org/issue20849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20849] add exist_ok to shutil.copytree

2018-08-17 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker <https://bugs.python.org/issue20849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20849] add exist_ok to shutil.copytree

2018-08-17 Thread Joshua Bronson
Joshua Bronson added the comment: I submitted a new PR in https://github.com/python/cpython/pull/8792 that addresses the outstanding concerns in @ofekmeister's original PR. It includes passing tests and passes all the GitHub PR status checks. Does it look ok to merge? T

[issue31861] aiter() and anext() built-in functions

2018-08-23 Thread Joshua Bronson
Change by Joshua Bronson : -- keywords: +patch pull_requests: +8368 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31861> ___ ___ Py

[issue31861] add aiter() and anext() functions to operator module

2018-08-23 Thread Joshua Bronson
Joshua Bronson added the comment: Updating the issue title to reflect the decision to add these to the operator module rather than to built-ins. Submitted a PR here: https://github.com/python/cpython/pull/8895 -- title: aiter() and anext() built-in functions -> add aiter() and an

[issue31861] add aiter() and anext() functions to operator module

2018-08-24 Thread Joshua Bronson
Joshua Bronson added the comment: Interesting, thanks Yury! I only saw the discussion here which implied these wouldn't go directly into builtins for 3.8 (and I searched here and in GitHub, and couldn't find the PR you mentioned either), so I'm curious if that was tracked som

[issue32956] python 3 round bug

2018-09-24 Thread Joshua Bronson
Joshua Bronson added the comment: This was so surprising to me that I had to check some other languages that I had handy. It turns out that not one of JavaScript, Ruby, Perl, C++, Java, Go, or Rust agrees with Python. In fact they all agreed with one another that 2.5 should round to 3

[issue32956] python 3 round bug

2018-09-26 Thread Joshua Bronson
Joshua Bronson added the comment: Thanks Serhiy, I read the Python-Dev thread you linked to, but that doesn't resolve the issues: - Its topic is Python 2.6 (where this behavior does not occur) rather than Python 3 (where it does). - A few messages into the thread Guido does address P

[issue32956] python 3 round bug

2018-09-26 Thread Joshua Bronson
Joshua Bronson added the comment: Thanks, Mark. Yes, I saw where Tim said round-half-even should be the default, but I didn't see any proposal to expose it as e.g. math.round_half_even() instead, nor a more complete look at what other languages do. That, along with the subject being 2.

[issue32956] python 3 round bug

2018-09-26 Thread Joshua Bronson
Joshua Bronson added the comment: I spent a few minutes with git blame/checkout/show and so far have found https://bugs.python.org/issue1869 (via https://github.com/python/cpython/commit/e6a076d). Still reading -- looks like there were a number of different changes made to round() at the

[issue35151] Python 2 xml.etree.ElementTree documentation tutorial uses undocumented arguments

2018-11-02 Thread Joshua Honeycutt
New submission from Joshua Honeycutt : In python 2 documentation 19.7.1.6 (https://docs.python.org/2/library/xml.etree.elementtree.html#parsing-xml-with-namespaces) a second argument (ns) is passed to find and findall. However 19.7.3.2 (https://docs.python.org/2/library

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2018-11-16 Thread Joshua Root
Joshua Root added the comment: This isn't just a cross-build issue, or rather (depending on how you look at it) cross-builds are increasingly the norm due to Apple only providing a newer SDK on older OS versions. For example the latest version of Xcode available for 10.12 only comes

[issue2292] Missing *-unpacking generalizations

2013-07-12 Thread Joshua Landau
Joshua Landau added the comment: http://www.python.org/dev/peps/pep-0448/ is out; see what you think. See http://mail.python.org/pipermail/python-ideas/2013-July/021872.html for all the juicy discussion so far. -- nosy: +Joshua.Landau ___ Python

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

2013-08-27 Thread Joshua Johnston
New submission from Joshua Johnston: This is strange behavior. When you encode nulls in other languages you don't get the string 'null' you usually get an empy string. Shouldn't str(None) == ''? If not str(None) == 'None' and the string representation o

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

2013-08-27 Thread Joshua Johnston
Joshua Johnston added the comment: Hi David, That is what I would expect it to do as well. I'm relatively new to Python but this is causing all kinds of problems with oauth signing using ims_lti_py as well as my own code using urle

[issue18940] TimedRotatingFileHandler fails to doRollover if a logger has delay=True and no logs in that time.

2013-09-05 Thread Joshua Olson
New submission from Joshua Olson: In TimedRotatingFileHandler if you have a low volume logger than hasn't written to the log within the interval time doRollover will fail because there is no file to rotate. os.rename(self.baseFilename, dfn) should be something like if os.path.e

[issue18941] RotatingFileHandler and TimedRotatingFileHandler do not respect delay on rollover

2013-09-05 Thread Joshua Olson
New submission from Joshua Olson: For low volume loggers RotatingFileHandler and TimedRotatingFileHandler will create possibly unnecessary files on doRollover, since they don't check the value of delay when opening the new self.stream. self.stream = self._open() should be something lik

[issue18940] TimedRotatingFileHandler fails to doRollover if a logger has delay=True and no logs in that time.

2013-09-05 Thread Joshua Olson
Joshua Olson added the comment: Here is a patch for the logging file from the cpython hg repo. -- keywords: +patch Added file: http://bugs.python.org/file31621/doRollover.patch ___ Python tracker <http://bugs.python.org/issue18

[issue18940] TimedRotatingFileHandler fails to doRollover if a logger has delay=True and no logs in that time.

2013-09-05 Thread Joshua Olson
Changes by Joshua Olson : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue18940> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue18940] TimedRotatingFileHandler fails to doRollover if a logger has delay=True and no logs in that time.

2013-09-05 Thread Joshua Olson
Changes by Joshua Olson : Removed file: http://bugs.python.org/file31620/logging_test.py ___ Python tracker <http://bugs.python.org/issue18940> ___ ___ Python-bugs-list m

[issue18940] TimedRotatingFileHandler fails to doRollover if a logger has delay=True and no logs in that time.

2013-09-05 Thread Joshua Olson
Changes by Joshua Olson : Removed file: http://bugs.python.org/file31621/doRollover.patch ___ Python tracker <http://bugs.python.org/issue18940> ___ ___ Python-bugs-list m

[issue18940] TimedRotatingFileHandler and RotatingFileHandler fail to doRollover if a logger has delay=True and no logs in that time.

2013-09-05 Thread Joshua Olson
Joshua Olson added the comment: This fixes the issue in both RotatingFilerHandler classes. -- title: TimedRotatingFileHandler fails to doRollover if a logger has delay=True and no logs in that time. -> TimedRotatingFileHandler and RotatingFileHandler fail to doRollover if a logger

[issue18940] TimedRotatingFileHandler and RotatingFileHandler fail to doRollover if a logger has delay=True and no logs in that time.

2013-09-05 Thread Joshua Olson
Changes by Joshua Olson : Added file: http://bugs.python.org/file31623/logging_test.py ___ Python tracker <http://bugs.python.org/issue18940> ___ ___ Python-bugs-list m

[issue18941] RotatingFileHandler and TimedRotatingFileHandler do not respect delay on rollover

2013-09-05 Thread Joshua Olson
Joshua Olson added the comment: Demonstrate the bug -- Added file: http://bugs.python.org/file31624/logging_test.py ___ Python tracker <http://bugs.python.org/issue18

[issue18941] RotatingFileHandler and TimedRotatingFileHandler do not respect delay on rollover

2013-09-05 Thread Joshua Olson
Joshua Olson added the comment: If delay is set then don't automatically open the new file. -- keywords: +patch Added file: http://bugs.python.org/file31625/delay_rollover.patch ___ Python tracker <http://bugs.python.org/is

[issue15020] Poor default value for progname

2012-06-06 Thread Joshua Cogliati
New submission from Joshua Cogliati : In Python/pythonrun.c the following definition exists: static wchar_t *progname = L"python"; This is then used by Py_GetProgramName which is used by calculate_path in Modules/getpath.c Since in python 3, the default executable is python3, and

[issue15020] Poor default value for progname

2012-06-06 Thread Joshua Cogliati
Joshua Cogliati added the comment: Here is a part of an strace where Python fails to find python3: (This would work if progname=L"python3" ) ... 23249 stat("/opt/python/3.2.2.3/bin/python", 0x7fff2881cbf0) = -1 ENOENT (No such file or directory) 23249 readlink("/usr

[issue15020] default value for progname in pythonrun.c should be python3 for Python 3

2012-06-13 Thread Joshua Cogliati
Changes by Joshua Cogliati : -- title: Poor default value for progname in pythonrun.c -> default value for progname in pythonrun.c should be python3 for Python 3 ___ Python tracker <http://bugs.python.org/issu

[issue15020] default value for progname in pythonrun.c should be python3 for Python 3

2012-07-05 Thread Joshua Cogliati
Joshua Cogliati added the comment: > Joshua: what command did you run under strace? A program I created that embeds python3. I could create a minimum piece of code that triggered the bug if needed. > Maybe it would be better to use L"python3.2" for Python 3.2 and L"pyt

[issue15020] default value for progname in pythonrun.c should be python3 for Python 3

2012-07-05 Thread Joshua Cogliati
Joshua Cogliati added the comment: > Joshua, if you are embedding Python, why don't you simply call Py_SetPath to > set the search path appropriately? Or is it not enough? (I've lost memory of > the mazy details of how we calculate paths :-S). Setting Py_SetPath manua

[issue15924] 404 link on Python about page

2012-09-11 Thread Joshua Landau
New submission from Joshua Landau: http://www.python.org/about/ section "Python plays well with others", last paragraph, link "extension modules" links to http://www.python.org/doc/ext/intro.html, a 404 page. http://www.python.org/doc/ext/ redirects to http://docs.

[issue15970] ElementTree HTML serialization incorrect for ,

2012-09-18 Thread Joshua Biagio
New submission from Joshua Biagio: There seems to be a very minor bug in the ElementTree.py file, for the so-called 'empty' elements that are serialized without a closing tag. The HTML_EMPTY tuple/set is used to lookup these tags. In the Lib/xml/etree/ElementTree.py file, the HTML_E

[issue16010] Some Unicode in identifiers improperly rejected

2012-09-23 Thread Joshua Landau
New submission from Joshua Landau: "a¹ = None" is not valid, even though unicodedata.normalize("NFKC", "¹") == "1". One would expect "a¹ = None" and "a1 = None" to be equivalent in this case, as with "aⁱ = None" and "ai

[issue18652] Add itertools.first_true (return first true item in iterable)

2014-04-01 Thread Joshua Bronson
Changes by Joshua Bronson : -- nosy: +jab ___ Python tracker <http://bugs.python.org/issue18652> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21432] samba.git from git://git.samba.org/samba.git samba.netcmd.main not found

2014-05-04 Thread Joshua Knights
New submission from Joshua Knights: This is a Python Path Issue: /root/samba-master/bin/samba-tool domain join AAF.ECPI DC -Uadministrator --realm=AAF.ECPI I get the following Error: Traceback (most recent call last): File "/root/samba-master/bin/samba-tool", line 33,

[issue21432] samba.git from git://git.samba.org/samba.git samba.netcmd.main not found

2014-05-04 Thread Joshua Knights
Joshua Knights added the comment: Correction, this Might be a python path issue and I am not sure what version of python the samba.git is using. -- versions: -Python 3.5 ___ Python tracker <http://bugs.python.org/issue21

[issue21547] '!s' formatting documentation bug

2014-05-20 Thread Joshua Landau
New submission from Joshua Landau: In the docs for 2.x about the formatting syntax: https://docs.python.org/2/library/string.html#format-string-syntax it says "Two conversion flags are currently supported: '!s' which calls str() on the value, and '!r' whic

[issue21587] Tabs in source

2014-05-26 Thread Joshua Landau
New submission from Joshua Landau: There are tabs in the source: http://hg.python.org/cpython/file/5c8d71516235/Include/listobject.h#l49 I don't really know, but this seems like a release blocker to me ;). -- messages: 219183 nosy: Joshua.Landau priority: normal severity: n

[issue21593] Clarify re.search documentation first match

2014-05-28 Thread Joshua Landau
New submission from Joshua Landau: The documentation for re.search does not state that it returns the first match. This should be added, or a clarification added if this is implementation-defined. https://docs.python.org/3/library/re.html#re.search --- See also http://stackoverflow.com

[issue21642] "_ if 1else _" does not compile

2014-06-02 Thread Joshua Landau
New submission from Joshua Landau: By the docs, Except at the beginning of a logical line or in string literals, the whitespace characters space, tab and formfeed can be used interchangeably to separate tokens. Whitespace is needed between two tokens only if their

[issue21642] "_ if 1else _" does not compile

2014-06-03 Thread Joshua Landau
Joshua Landau added the comment: Here's a minimal example of the difference: 1e #>>> ... etc ... #>>> SyntaxError: invalid token 1t #>>> ... etc ... #>>> SyntaxError: invalid syntax --

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

2013-09-16 Thread Joshua Johnston
Joshua Johnston added the comment: I know that languages like php will treat ?josh= the same as ?josh Using the attached test form in Google Chrome, you will see the data passed as josh= when empty in both GET and POST requests. This is probably the way to go, key=str(value) if value is not

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

2013-09-29 Thread Joshua Johnston
Joshua Johnston added the comment: Hi Senthil, You can open the html file with a browser and inspect the data posting to itself without a web server running. That is how I tested. -- ___ Python tracker <http://bugs.python.org/issue18

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

2013-09-29 Thread Joshua Johnston
Joshua Johnston added the comment: I still believe that since None represents the absence of a value it should not be urlencoded as the string 'None'. I am not sure what they best way to url encode it is, but I know that 'None' is not it. -- st

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

2013-09-30 Thread Joshua Johnston
Joshua Johnston added the comment: I agree with True == 'True' and False == 'False' but None should be empty since it represents the absence of a value akin to null, Nil, etc in other languages. Ultimately it is not my decision make so I can only agree to disagree. Th

[issue22451] filtertuple, filterstring and filterunicode don't have optimization for PyBool_Type

2014-09-20 Thread Joshua Landau
New submission from Joshua Landau: All code referred to is from bltinmodule.c, Python 2.7.8: https://github.com/python/cpython/blob/2.7/Python/bltinmodule.c filter implements and optimization for PyBool_Type, making it equivalent to PyNone: # Line 303 if (func == (PyObject

[issue22451] filtertuple, filterstring and filterunicode don't have optimization for PyBool_Type

2014-09-20 Thread Joshua Landau
Joshua Landau added the comment: It's solely a speed thing. I think it was an oversight that the optimisation was only applied to lists. I didn't expect the optimisation to break when applied to tuples. -- ___ Python trac

[issue22451] filtertuple, filterstring and filterunicode don't have optimization for PyBool_Type

2014-09-21 Thread Joshua Landau
Joshua Landau added the comment: That sounds OK to me. It's a bit of a non-issue once you know about it. -- ___ Python tracker <http://bugs.python.org/is

[issue20156] bz2.BZ2File.read() does not treat growing input file properly

2014-01-06 Thread Joshua Chia
New submission from Joshua Chia: When using bz2.BZ2File to read an input file that is growing slowly, repeated read()ing eventually catches up to the end and subsequently fails to produce any more data while the input file continues growing. In 2.7, the symptom is that read() keeps returning

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

2014-02-07 Thread Joshua Johnston
Joshua Johnston added the comment: In this exact example it would be an empty string. It was a fake setup to illustrate a real problem. This is the important part: params = dict(screen_name=None,count=300) url = "https://api.twitter.com/1.1/friends/ids.json?"; + urllib.urlencode(par

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

2014-02-07 Thread Joshua Johnston
Joshua Johnston added the comment: If this was a function to encode a dict into something then I would see your point and agree. urlencode is specifically designed to work within the domain or URIs. In this domain, it is acceptable to have an empty value for a key in a query string. None is a

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

2014-02-07 Thread Joshua Johnston
Joshua Johnston added the comment: I'm sorry to reopen this but after it biting me quite a few times more I still cannot think of a valid use-case for this behavior that someone would be depending on 'None' being passed. I think your backwards compatibility concerns are artific

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

2014-02-07 Thread Joshua Johnston
Joshua Johnston added the comment: While the RFC makes no mention of empty values either way, it has become standard practice to either omit the key-value completely or pass a key (optional = sign) by itself in these situations so I would consider that as standard behavior. While I stand by

[issue6614] heapq.nsmallest and nlargest should be smarter/more usable/more consistent

2009-07-31 Thread Joshua Bronson
New submission from Joshua Bronson : >From http://docs.python.org/library/heapq.html: > The latter two functions (nlargest and nsmallest) perform best for > smaller values of n. For larger values, it is more efficient to use > the sorted() function. Also, when n==1, it is more effi

[issue6614] heapq.nsmallest and nlargest should be smarter/more usable/more consistent

2009-07-31 Thread Joshua Bronson
Joshua Bronson added the comment: Oh, that's great! (I also noticed that the previously inutile line "_heappushpop = heappushpop" is now doing something in the heapq.py you linked to, nice.) It looks like the docs haven't been updated yet though. For instance, http:/

[issue6614] heapq.nsmallest and nlargest should be smarter/more usable/more consistent

2009-07-31 Thread Joshua Bronson
Joshua Bronson added the comment: > I prefer the docs the way they are. They help the reader understand > the relationship between min, max, nsmallest, nlargest, and sorted. Except that it's no longer true that "when n==1, it is more efficient to use the builtin min() and

[issue6614] heapq.nsmallest and nlargest should be smarter/more usable/more consistent

2009-07-31 Thread Joshua Bronson
Joshua Bronson added the comment: One more thing: > I prefer the docs the way they are. They help the reader understand > the relationship between min, max, nsmallest, nlargest, and sorted. The docs still use the unspecific language "for smaller values of n" and "for la

[issue6614] heapq.nsmallest and nlargest should be smarter/more usable/more consistent

2009-07-31 Thread Joshua Bronson
Joshua Bronson added the comment: > That is in the pure python version of nsmallest() and that > code is not used (it is overriden by the C version). So just because it isn't used by CPython it should remain in there even though as you said yourself it's completely without b

[issue6626] show Python mimetypes module some love

2009-08-22 Thread Joshua Bronson
Changes by Joshua Bronson : -- nosy: +jab ___ Python tracker <http://bugs.python.org/issue6626> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread Joshua Bronson
Changes by Joshua Bronson : -- nosy: +jab ___ Python tracker <http://bugs.python.org/issue6763> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6802] build fails on Snow Leopard

2009-08-29 Thread Joshua Root
New submission from Joshua Root : Building Python 2.6.2 on Mac OS X 10.6 (final version, 10A432) fails. Full build transcript is attached. Other system details: Xcode 3.2, hardware is MacPro1,1 -- assignee: ronaldoussoren components: Build, Macintosh files: py26-snowleopard.log

[issue6802] build fails on Snow Leopard

2009-08-29 Thread Joshua Root
Joshua Root added the comment: Note that this problem appears to be x86_64-specific (caused by "- arch_only i386"), and only happens if you configure with --enable- framework. -- ___ Python tracker <http://bugs.python.

[issue6802] build fails on Snow Leopard

2009-08-30 Thread Joshua Root
Joshua Root added the comment: Noting for completeness that: * 3.0.1 behaves the same as 3.1.1 (works without --enable-framework). * 2.5.4 fails with 'cc1: error: unrecognized command line option "-Wno- long-double"'. Once this is removed from the configure scrip

[issue6802] build fails on Snow Leopard

2009-09-06 Thread Joshua Root
Joshua Root added the comment: I tried release26-maint just now (r74683) and it errored out during make install. New log attached. -- Added file: http://bugs.python.org/file14846/release26-maint.log ___ Python tracker <http://bugs.python.

[issue6802] build fails on Snow Leopard

2009-09-06 Thread Joshua Root
Joshua Root added the comment: Tried again after ensuring that ~/test was completely empty; no difference. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6802] build fails on Snow Leopard

2009-09-06 Thread Joshua Root
Joshua Root added the comment: Should line 110 of Lib/plat-mac/macresource.py say 'isinstance' rather than 'instance'? -- ___ Python tracker <http://bu

[issue6802] build fails on Snow Leopard

2009-09-06 Thread Joshua Root
Joshua Root added the comment: It works now. Thanks! -- ___ Python tracker <http://bugs.python.org/issue6802> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6941] Help

2009-09-18 Thread Joshua Purcell
Changes by Joshua Purcell : -- nosy: 08jpurcell severity: normal status: open title: Help versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue6

[issue6941] Help

2009-09-18 Thread Joshua Purcell
New submission from Joshua Purcell : My IDLE (Python GUI) Will NOT open It says socket error which is really annoying me because it doesnt open IDLE (AT ALL) -- components: +IDLE type: -> performance Added file: http://bugs.python.org/file14926/python_icon.

<    1   2   3   4   >