[issue18133] Modulus not calculating properly?

2013-06-04 Thread Joshua
New submission from Joshua: The Modulus doesn't seem to pull the proper remainder from simple calculations. Look at the difference below between the remainder of a regular division calculation and the modulus: Am I missing something??? >>> print (str(10.2 / 2)) 5.1 >>&

[issue18133] Modulus not calculating properly?

2013-06-04 Thread Joshua
Joshua added the comment: never mind, long day sorry! -- resolution: -> works for me status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue5723] Incomplete json tests

2010-08-04 Thread joshua williams
Changes by joshua williams : -- nosy: +jowillia ___ Python tracker <http://bugs.python.org/issue5723> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7734] discuss mark-as-invalid trick in heapq docs

2010-08-12 Thread Joshua Bronson
Joshua Bronson added the comment: Thanks for the great additions. -- ___ Python tracker <http://bugs.python.org/issue7734> ___ ___ Python-bugs-list mailin

[issue6941] Socket error when launching IDLE

2010-11-15 Thread Joshua Purcell
Joshua Purcell added the comment: Sorry I've not replied to anyones thoughts until now but nothing seems to fix it -- components: +Windows -IDLE resolution: works for me -> status: closed -> open ___ Python tracker <http://b

[issue10426] The whole thing is NOT good

2010-11-15 Thread Joshua Purcell
New submission from Joshua Purcell : There is a complete FAIL in this versionand all other versions like 3.* THEY ALL FREEZE UP MY SYSTEM (Windows) HELP -- components: Windows messages: 121227 nosy: 08jpurcell priority: normal severity: normal status: open title: The whole thing is NOT

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-02 Thread Joshua Lock
Changes by Joshua Lock : -- nosy: +joshual ___ Python tracker <http://bugs.python.org/issue8194> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-01-23 Thread Joshua Arnold
New submission from Joshua Arnold : In 'Doc/reference/datamodel.rst', the 'Invoking Descriptors' documentation specifies the following behavior for super objects: [snip] Super Binding If ``a`` is an instance of :class:`super`, then the binding ``super(B, obj).

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Joshua Blount
New submission from Joshua Blount : When I get a stack traceback, it would be very handy if the traceback gave me the relevant class name (along with all the current information). -- components: Interpreter Core messages: 127015 nosy: stickwithjosh priority: normal severity: normal

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Joshua Blount
Joshua Blount added the comment: Yes! -- ___ Python tracker <http://bugs.python.org/issue11007> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11434] Python 3.2 input() does not remove "\r" at the end of returned string.

2011-03-07 Thread Joshua Logan
New submission from Joshua Logan : Hello, It is mentioned in the documentation for input() ( http://docs.python.org/py3k/library/functions.html#input ) that the newline is stripped from the end of the returned string. However, on Windows, it used to trim '\r\n'. Now it no longer

[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

[issue13035] "maintainer" value clear the "author" value when registering

2011-09-23 Thread Joshua Bronson
New submission from Joshua Bronson : This issue was originally opened in the PyPI tracker but was dismissed on the theory that it's a bug in Python: https://sourceforge.net/tracker/index.php?func=detail&aid=3396924&group_id=66150&atid=513503 """ If in

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-26 Thread Joshua Chia
New submission from Joshua Chia : What steps will reproduce the problem? 1. Make a script containing this code: parser = argparse.ArgumentParser() parser.add_argument('-i', '--input-base-directory', type=argparse.FileType('r'),

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Joshua Landau
New submission from Joshua Landau : When setting defaults to keyword-only arguments in lambdas which are inside non-global scopes, cPython doesn't push the name to it's closure's co_freevars. EXAMPLE: global_variable = None (lambda: (lambda *, keyword_only=global_variable: No

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Joshua Landau
Joshua Landau added the comment: Glad to help :) It's made my day. I get to boast at school now! -- ___ Python tracker <http://bugs.python.org/is

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-11-21 Thread Joshua Root
Joshua Root added the comment: The fix that was committed doesn't work if CC is a full path like /usr/bin/clang. -- nosy: +jmr ___ Python tracker <http://bugs.python.org/is

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Joshua Landau
New submission from Joshua Landau : Inside the grammar for classes[1], the documentation states that the inheritance list can be of type: "(" [argument_list [","] | comprehension] ")" The "comprehension" part seems to be superfluous, especially as it is

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

[issue7734] discuss mark-as-invalid trick in heapq docs

2010-01-18 Thread Joshua Bronson
New submission from Joshua Bronson : Though the heapq module does not support changing the priority of a particular element of the heap (a necessary operation for the A* search family of algorithms), such an element can be marked as invalid and a new element can be added with different

[issue2138] Add a factorial function

2008-05-31 Thread Joshua Uziel
Joshua Uziel <[EMAIL PROTECTED]> added the comment: Or slightly better: from operator import mul def factorial(num): return reduce(mul, range(2, num+1), 1) ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2138] Add a factorial function

2008-05-31 Thread Joshua Uziel
Joshua Uziel <[EMAIL PROTECTED]> added the comment: It's a simplified version, but why not something like this: import operator def factorial(num): return reduce(operator.mul, range(1, num+1)) A product() function could also be done similarly. --

[issue3384] Documentation for re.findall and re.finditer lacks "ordering" information

2008-07-16 Thread Joshua Kugler
New submission from Joshua Kugler <[EMAIL PROTECTED]>: According to a discussion on comp.lang.python, re.findall and re.finditer scan strings from left to right, and returns them in the order it found them. It would be nice to note that in documentation. -- assignee: georg.

[issue3384] Documentation for re.findall and re.finditer lacks "ordering" information

2008-07-19 Thread Joshua Kugler
Joshua Kugler <[EMAIL PROTECTED]> added the comment: That looks good. Thanks! ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3384> ___ __

[issue3742] Parsing XML file with Unicode characters causes problem

2008-08-31 Thread Joshua Logan
New submission from Joshua Logan <[EMAIL PROTECTED]>: Python 3.0b2 will not parse the XML file located at http://rubyquiz.com/SongLibrary.xml.gz It complains of a UnicodeEncodeError 'charmap' codec can't encode character '\xc8' in position 45: ch aracter maps t

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Added test case -- resolution: -> duplicate status: open -> closed Added file: http://bugs.python.org/file29639/test.py ___ Python tracker <http://bugs.python.org/i

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Seems to be duplicate of http://bugs.python.org/issue12776 -- ___ Python tracker <http://bugs.python.org/issue13271> ___ ___ Pytho

[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

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Joshua Bronson
New submission from Joshua Bronson : os.makedirs' mode argument defaults to a hardcoded value of 511 (0777 in octal). This forces the caller to either pass in a different hardcoded value (commonly 0750), or to implement a workaround that calculates the expected mode based on the pr

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Joshua Bronson
Joshua Bronson added the comment: Ah, I was misunderstanding the behavior of mkdir, thank you for the explanation. My misunderstanding stemmed from recently coming across two widely-used packages which both pass mode=0750 to os.makedirs. I have no idea why they would be doing this (as it

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Joshua Bronson
Joshua Bronson added the comment: > My suspicion is that people setting explicit file permissions > typically know what they are doing, and that you will find that > your tickets get closed as invalid, explaining to you that this > mode usage is fully intentional. For what it'

[issue4753] Faster opcode dispatch on gcc

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

[issue5404] Cross-compiling Python

2009-03-02 Thread Joshua Kinard
New submission from Joshua Kinard : I'm attempting to get Python to cross-compile, and I'm not sure if this is an actual flaw in the build system or not, but thought I'd detail what I can here and seek comment from those in the know. What happens is under a cross-environment se

[issue5404] Cross-compiling Python

2009-03-02 Thread Joshua Kinard
Joshua Kinard added the comment: Gotcha, I'll poke around and see what I can find. Are you guys open to patches for 2.5.x still if we find something that needs patching (versus passing lots of variables to the make process)? ___ Python tracker

[issue5404] Cross-compiling Python

2009-03-02 Thread Joshua Kinard
Joshua Kinard added the comment: Gotcha. Not sure how far off Gentoo is from supporting 2.6 -- our primary package manager relies on it, so the updates tend to be slow. for moving to new versions. Do you guys maintain any kind of an "internals" guide to the build system anywhere

[issue1597850] Cross compiling patches for MINGW

2009-03-02 Thread Joshua Kinard
Joshua Kinard added the comment: Anyone gotten farther on getting Python-2.5.x to cross-compile? I'm trying to get x86_64-pc-linux-gnu --> mipsel-unknown-linux-gnu, and after some hacking at the last updated cross-2.5.1.patch, plus a fix for the %zd printf bugaboo, plus adding in co

[issue5404] Cross-compiling Python

2009-03-03 Thread Joshua Kinard
Joshua Kinard added the comment: Making progress! Adapted the cross-2.5.1.patch from Issue #1597850, integrated the %zd printf fixup patch, and added another cross-compiler check for the libffi configure bits in setup.py (it'd pass libffi's configure no --host options, so libffi wou

[issue5404] Cross-compiling Python

2009-03-03 Thread Joshua Kinard
Joshua Kinard added the comment: Roumen, I took a look at 4010, and tried your patch (as well as attempted to apply the latter patch, but they changes are too great). Neither one helped resolve my issue, but I should probably explain the angle I'm attacking this from so you have an id

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-07 Thread Joshua Logan
Changes by Joshua Logan : -- nosy: +jaylogan ___ Python tracker <http://bugs.python.org/issue2636> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5522] HTTPRedirectHandler documentation is wrong

2009-03-19 Thread Joshua Kugler
New submission from Joshua Kugler : On the page lib/http-redirect-handler.html it says the signature of redirect_request is: redirect_request( req, fp, code, msg, hdrs) It is actually: redirect_request(req, fp, code, msg, hdrs, newurl) Well, technically the signature is: redirect_request

[issue5523] Python bug tracker won't let you edit your profile

2009-03-19 Thread Joshua Kugler
New submission from Joshua Kugler : I tried to edit my e-mail address in the python bug tracker (under "Your Details"), but when I hit submit, it tells me: You do not have permission to edit user -- components: None messages: 83833 nosy: jkugler severity: normal status:

[issue4305] ctypes fails to build on mipsel-linux-gnu (detects mips instead of mipsel)

2009-04-16 Thread Joshua Kinard
Joshua Kinard added the comment: Is there any movement on this perchance? Just bumped into this on my MIPS platform and discovered this bug. -- nosy: +kumba ___ Python tracker <http://bugs.python.org/issue4

[issue13061] Decimal module yields incorrect results when Python compiled with llvm

2011-09-29 Thread Joshua Bleecher Snyder
New submission from Joshua Bleecher Snyder : When Python is compiled on OS X with llvm, the decimal module behaves erratically (simple calculations are wrong, most doctests fail). This was originally reported here: http://stackoverflow.com/questions/7590137/dividing-decimals-yields-invalid

[issue13061] Decimal module yields incorrect results when Python compiled with llvm

2011-09-29 Thread Joshua Bleecher Snyder
Joshua Bleecher Snyder added the comment: >> Possibly related to http://bugs.python.org/issue11149? > Maybe I missed it in the links you gave, but that is easily > settled by compiling with and without -fwrapv. Apologies -- I didn't do enough homework on this one. Yes, I

[issue706546] u''.translate not documented

2011-11-16 Thread Joshua Bleecher Snyder
Joshua Bleecher Snyder added the comment: This documentation change didn't make it into the docs for translate in the string module -- see http://docs.python.org/library/string.html. It'd be great to add it there as well, as I just got bitten by this. :) -- nosy: