[issue19944] Make importlib.find_spec load packages as needed

2014-01-25 Thread Eric Snow
Changes by Eric Snow : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue19944> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue16991] Add OrderedDict written in C

2014-01-31 Thread Eric Snow
Eric Snow added the comment: I agree with Antoine. It's first on my todo list for 3.5. My goal is that this and a couple of related features will land during the PyCon sprints. -- ___ Python tracker <http://bugs.python.org/is

[issue20518] multiple inheritance + C extension = possibly unexpected __base__

2014-02-05 Thread Eric Snow
Eric Snow added the comment: So to restate, where some class Spam inherits from multiple classes and at least one was written in C, Spam.__base__ may have an unexpected value. > So, to conclude: it is sometimes not possible to use python > cooperative multiple inheritance if C base class

[issue20541] os.path.exists() gives wrong answer for Windows special files

2014-02-07 Thread Eric Snow
Eric Snow added the comment: > As per issue 1311, the exists returns True <-> stat will work equivalence is deliberate. We'll have to find a different way to resolve issue 20053 on Windows. I was going t say we should note this design/impl. detail in the os.path.exists() docs

[issue20695] test_urllibnet.urlretrieveNetworkTests fails due to new python.org website

2014-02-19 Thread Eric Naeseth
New submission from Eric Naeseth: The www.python.org website was just redesigned, and apparently is running on some new infrastructure which always responds to `GET /` requests with a body using `Content-Encoding: gzip`. Python's test suite includes some tests which fetch

[issue20695] test_urllibnet.urlretrieveNetworkTests fails due to new python.org website

2014-02-19 Thread Eric Naeseth
Eric Naeseth added the comment: In addition, the test_reporthook and test_data_header tests try to retrieve a Python logo image from http://www.python.org/community/logos/python-logo-master-v3-TM.png. That is now a 404. -- ___ Python tracker

[issue20484] test_pydoc can alter execution environment causing subsequent test failures

2014-02-21 Thread Eric Snow
Eric Snow added the comment: Sorry for the delay. It will likely be tomorrow before I can take a look but I'll do so as soon as possible. -- ___ Python tracker <http://bugs.python.org/is

[issue20484] calling pydoc.Helper()('modules') in the test suite sometimes causes failures

2014-02-22 Thread Eric Snow
Eric Snow added the comment: TL;DR new tests (improving coverage) uncovered existing "bugs". We should probably disable the tests for now. I'm glad you found this. Out of curiosity, how often do you run the test suite against a clean checkout? Typically I only run it

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2014-02-22 Thread Eric Snow
Eric Snow added the comment: The other two test_modules* tests in test_pydoc are also having issues and I've likewise disabled them (see issue20484). They'll need to be investigated and re-enabled too. -- ___ Python trac

[issue20484] calling pydoc.Helper()('modules') in the test suite sometimes causes failures

2014-02-22 Thread Eric Snow
Eric Snow added the comment: I've disabled 2 of the 3 tests (the other was already disabled for issue20123). I'll pick up re-enabling the tests in issue20128. Thanks again, Ned, for finding this. (mental note: stay away from pydoc!] -- resolution: -> fixed stage

[issue20734] 3.4 cherry-pick: 13edfab6c3c0 disable 2 pydoc tests

2014-02-22 Thread Eric Snow
New submission from Eric Snow: New changeset 13edfab6c3c0 by Eric Snow in branch 'default': Issue #20484: Disable the 2 remaining "modules" tests in test_pydoc -- assignee: larry messages: 211957 nosy: eric.snow, larry, ned.deily priority: release blocker severity:

[issue20484] calling pydoc.Helper()('modules') in the test suite sometimes causes failures

2014-02-22 Thread Eric Snow
Eric Snow added the comment: I've opened issue20734 for the 3.4.0 cherry-pick. -- ___ Python tracker <http://bugs.python.org/issue20484> ___ ___ Python-bugs-l

[issue15858] tarfile missing entries due to omitted uid/gid fields

2014-02-23 Thread Eric Floehr
Eric Floehr added the comment: I have attached a patch file for test_tarfile.py that uses the attached 'bad.tar' to test this issue. After applying this test patch, put 'bad.tar' in Lib/test with the name 'issue15858.tar'. This tests Tarfile.next(), but the iss

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Eric Snow
Eric Snow added the comment: LGTM -- ___ Python tracker <http://bugs.python.org/issue20763> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue17911] Extracting tracebacks does too much work

2014-03-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue17911> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1580] Use shorter float repr when possible

2014-03-07 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue1580> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20864] getattr does not work well with descriptor

2014-03-07 Thread Eric Snow
Eric Snow added the comment: Returning None is the right thing here. The default for getattr() is returned only when it catches an AttributeError (hence the exception is the sentinel, so to speak, not None. Here's a rough equivalent: _notset = object() def getattr(obj, name, de

[issue20864] getattr does not work well with descriptor

2014-03-07 Thread Eric Snow
Eric Snow added the comment: You may get unexpected behavior when you have a descriptor on a class that also has __getattr__ defined. See issue #1615. However, I don't think that applies here. As far as I can tell, everything is working the way it s

[issue6427] Rename float*.[ch] to double.[ch]

2009-07-06 Thread Eric Smith
Eric Smith added the comment: -1 The time to change this was 3.0, if it was ever needed. It would break too much code now. We could develop some strategy using macros, but I just don't think it's worth it. And as Amaury points it, the type is known in python as "float", s

[issue6428] TypeError: __bool__ should return bool or int, returned int

2009-07-06 Thread Eric Smith
Eric Smith added the comment: The patch looks good to me. In particular, removing the test for using_len looks correct. The assignment of "result = -1" after PyErr_Format isn't needed, but doesn't hurt (and it was already there, anyway). -- keywords: -needs revi

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-07 Thread Eric Eisner
New submission from Eric Eisner : In multiprocessing, if you give a pool.map a zero-length iterator and specify a nonzero chunksize, the process hangs indefinitely. Example: import multiprocessing pool = multiprocessing.Pool() pool.map(len, [], chunksize=1) # hang forever Attached simple

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-07 Thread Eric Eisner
Eric Eisner added the comment: A few lines before this patch the code turns iterable into a list if it does not hasattr('__len__') for the purpose of calculating the chunksize. -- ___ Python tracker <http://bugs.python.

[issue5864] format(1234.5, '.4') gives misleading result

2009-07-07 Thread Eric Smith
Eric Smith added the comment: I agree that backporting it to 2.6 would be nice, but it would be a huge change. There's too much risk involved. So this will just be a new feature in 2.7. It's already in Misc/NEWS, so you're all set there. I'm closing the issue, marking it a

[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Eric Eisner
New submission from Eric Eisner : string.maketrans has been deprecated in 3.x in favor of the more specific bytes.maketrans and str.maketrans (see issue5675). It would be nice if 2to3 would automatically translate this to one of those two (probably str.maketrans). I briefly looked at lib2to3

[issue6433] multiprocessing: pool.map hangs on empty list

2009-07-13 Thread Eric Eisner
Eric Eisner added the comment: Can anyone review this patch? It is a very simple fix to catch this one edge case. As this can cause multiprocessing to enter a state where it needs to be externally killed, it would be good if this made 2.6.3

[issue6496] 2to3 generates "from urllib.parse import pathname2url"

2009-07-17 Thread Eric Promislow
Eric Promislow added the comment: Not in Sridar's patch, but 'pathname2url' is also misspelled as 'pahtname2url' in the MAPPING struct. -- nosy: +ericp ___ Python tracker <http

[issue6506] lib2to3 fails to convert 'thread' when not followed by a period

2009-07-17 Thread Eric Promislow
New submission from Eric Promislow : Given this code: import thread print thread $ python ActivePython 2.6.1.1 (ActiveState Software Inc.) based on Python 2.6.1 (r261:67515, Dec 5 2008, 13:58:38) [MSC v.1500 32 bit (Intel)] on win32 >>> from lib2to3.main import main >>> pr

[issue6506] lib2to3 fails to convert 'thread' when not followed by a period

2009-07-17 Thread Eric Promislow
Eric Promislow added the comment: Understood. Could the tool emit a warning when it encounters something like this? -- ___ Python tracker <http://bugs.python.org/issue6

[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Eric Promislow
New submission from Eric Promislow : ActivePython 2.6.1.1 ... >>> a = u"abc\x0adef" >>> a.split() [u'abc', u'def'] >>> "\x0a" is a non-breaking space. This behavior means we can't easily use split() to reflow text.

[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Eric Promislow
Eric Promislow added the comment: Thanks. For the record, I want textwrap.TextWrapper(..., break_long_words=False) or it will break after a non-breaking space if that gives an optimum length. -- status: closed -> open ___ Python tracker &l

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-07-22 Thread Eric Devolder
Changes by Eric Devolder : -- nosy: +keldonin ___ Python tracker <http://bugs.python.org/issue2698> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-07-22 Thread Eric Devolder
Eric Devolder added the comment: Same problem under WinXP, using mingw compiler. Works for my package under Python 3.0, ceases functioning under 3.1, with same error message. -- ___ Python tracker <http://bugs.python.org/issue2

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-24 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6561> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6567] Isn't inf almost equal to inf?

2009-07-24 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6567> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-29 Thread Eric Smith
Eric Smith added the comment: +1 The standard recommends it, and the other numeric types support it, so Decimal should as well. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-29 Thread Eric Smith
Eric Smith added the comment: Since you're calling int() on the result, can't this code: self._int = str(int((intpart+fracpart).lstrip('0') or '0')) just be: self._int = str(int(intpart+fracpart)) ? And here, you already know diag is not None, so do you need the

[issue6330] trunk does not build with --enable-unicode=ucs4

2009-07-30 Thread Eric Smith
Eric Smith added the comment: Fixed in r74269 (trunk). Code copied to py3k, just so the code stays in sync, in r74271. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bug

[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-07-30 Thread Eric Smith
Eric Smith added the comment: In http://docs.python.org/3.1/library/string.html#format-string-syntax, the auto-numbering is mentioned, in the sentence that starts "If the numerical arg_names in a format string are 0, 1, 2, ... in sequence, they can all be omitted". It'

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Eric Smith
Eric Smith added the comment: I agree with Raymond. I think it should either take a string and flags, or a compiled regex object. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6632> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6683] smtplib authentication - try all mechanisms

2009-08-11 Thread Eric Shubert
New submission from Eric Shubert : The login method in smtplib.py tries only one authentication mechanism. There are legitimate situations where cram-md5 might fail, yet plain or login would succeed. RFC2554 states: If an AUTH command fails, the client may try another authentication

[issue6705] '''3, 5'''.strip(r''', ''') does not strip comma, returns '3, 5'

2009-08-14 Thread Eric Smith
Eric Smith added the comment: Good advice from R. David. In addition, you'll find the help command useful: >>> help(''.strip) Help on built-in function strip: strip(...) S.strip([chars]) -> string or unicode Return a copy of the string S with leading

[issue1023290] proposed struct module format code addition

2009-08-15 Thread Eric Eisner
Eric Eisner added the comment: Is there some pre-existing naming convention of as_X and fromX? It seems strange that two related functions would have a different use of underscores. -- nosy: +ede ___ Python tracker <http://bugs.python.

[issue6714] memmove fails with unicode strings

2009-08-16 Thread Eric Smith
Eric Smith added the comment: What platform is this on? For a ucs4 platform, that is what I'd expect the result to be. Check sys.maxunicode to see if you have a ucs2 or ucs4 build. What do you expect as the result? Remember that memmove takes a count of bytes, not a character

[issue6714] memmove fails with unicode strings

2009-08-16 Thread Eric Smith
Changes by Eric Smith : -- resolution: -> invalid stage: -> committed/rejected ___ Python tracker <http://bugs.python.org/issue6714> ___ ___ Python-bugs-

[issue6718] ValueError in 21.17.4.2. SocketServer.UDPServer Example

2009-08-17 Thread Eric Pope
New submission from Eric Pope : In the client side example under 21.17.4.2. SocketServer.UDPServer Example: at: http://docs.python.org/dev/library/socketserver.html <<<>>>should have been: HOST, PORT = "localhost", -- assignee: georg.brandl compon

[issue6740] Compounded expressions with lambda functions are evaluated incorrectly

2009-08-20 Thread Eric Smith
Eric Smith added the comment: This isn't the right forum to ask for help. You should try comp.lang.python, where someone would be happy to explain this to you. Having said that, here's the explanation: This is not a bug. Disregarding side effects, the expression: a = b or c is e

[issue6762] strange string representation of xrange in print

2009-08-22 Thread Eric Smith
Eric Smith added the comment: For types where it's possible, the str or repr returns a string that can be passed to eval: >>> for i in eval(str(xrange(5))): ... print i ... 0 1 2 3 4 xrange (and list, and tuple, and others) fall into this category. -- nosy: +eric.sm

[issue6802] build fails on Snow Leopard

2009-08-29 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6802> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6813] update format() documentation and tutorial

2009-09-01 Thread Eric Smith
Eric Smith added the comment: 2.7 does not support the !a conversion specifier. It's only available in 3.1 and above. It's because ascii() is a 3.x only builtin. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.

[issue6813] update format() documentation and tutorial

2009-09-01 Thread Eric Smith
Eric Smith added the comment: Never mind, I see that you didn't add the !a docs to trunk. -- ___ Python tracker <http://bugs.python.org/issue6813> ___ ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-02 Thread Eric Smith
Eric Smith added the comment: I plan to look at this, and if it looks okay, commit it. Let me know if anyone has any remaining issues. -- nosy: +eric.smith versions: +Python 3.2 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue1578

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-02 Thread Eric Smith
Changes by Eric Smith : -- assignee: -> eric.smith ___ Python tracker <http://bugs.python.org/issue1578269> ___ ___ Python-bugs-list mailing list Unsubscri

[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-09-02 Thread Eric Smith
Eric Smith added the comment: This is a duplicate of issue 6813, where it has been fixed. I'm closing it. -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-07 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6713> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6850] decimal.py: format_dict['type'] not initialized

2009-09-07 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6850] decimal.py: format_dict['type'] not initialized

2009-09-07 Thread Eric Smith
Eric Smith added the comment: The test as written will always give an error for None. I think the better fix is to change it to be: if format_dict['type'] is None or format_dict['type'] in 'gG': That "fixes" this particular exception, but since the

[issue6850] decimal.py: format_dict['type'] not initialized

2009-09-07 Thread Eric Smith
Changes by Eric Smith : -- components: +Library (Lib) type: -> behavior ___ Python tracker <http://bugs.python.org/issue6850> ___ ___ Python-bugs-list mai

[issue6850] decimal.py: format_dict

2009-09-07 Thread Eric Smith
Eric Smith added the comment: The format string is valid. Sorry for the noise. The fill character of 'a' threw me off. With my suggested change to decimal.py, line 5595, in py3k: >>> from decimal import * >>> format(Decimal("0.12345"), "a=-7.0")

[issue6857] float().__format__() default alignment

2009-09-07 Thread Eric Smith
Eric Smith added the comment: That is interesting. I'd agree that it's a bug in the PEP. Note that %-formatting right aligns floats by default: >>> '%7.0g' % 0.12345 '0.1' I'll raise the issue on python-dev.

[issue6857] float().__format__() default alignment

2009-09-08 Thread Eric Smith
Eric Smith added the comment: Thanks for the decimal work, Mark. I notice that complex is also left aligned, by default. I'll take a look at that. -- ___ Python tracker <http://bugs.python.org/i

[issue6871] decimal.py: more format issues

2009-09-09 Thread Eric Smith
Eric Smith added the comment: For #1 for floats, 2.6 is in error. This has been fixed in 2.7 (trunk). For #2, I think float is correct. The PEP says the specifier is: [[fill]align][sign][#][0][minimumwidth][.precision][type] so '00' is parsed as minimumwidth=0 with zero-padding

[issue6871] decimal.py: more format issues

2009-09-09 Thread Eric Smith
Eric Smith added the comment: Also, see issue 4482 for a discussion of float formatting for nan and inf. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6872] Support system readline on OS X 10.6

2009-09-10 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6872> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6882] uuid creates zombies

2009-09-13 Thread Eric Smith
Changes by Eric Smith : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue6882> ___ ___ Python-bugs-list mailing list Unsubscri

[issue6882] uuid creates zombies

2009-09-13 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6882> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6871] decimal.py: more format issues

2009-09-13 Thread Eric Smith
Eric Smith added the comment: The '0' fill character is forcing '=' alignment (per the PEP). This looks like a bug to me, since it should use the specified alignment. This is not a float-only problem, it applies to the other built-in types as well: >>> format(2,

[issue6902] Built-in types format incorrectly with 0 padding.

2009-09-13 Thread Eric Smith
New submission from Eric Smith : Originally discussed in issue 6871. Even if an alignment of "<" is specified, "=" is used if the padding character is "0". >>> format(2, '0<20') '0002' >>> format(2

[issue6871] decimal.py: more format issues

2009-09-13 Thread Eric Smith
Eric Smith added the comment: Created issue 6902 to handle #4. The others will need to be broken out into their own issues if we want to fix them. I can't keep track of multiple issues in one bug report. -- ___ Python tracker

[issue6902] Built-in types format incorrectly with 0 padding.

2009-09-14 Thread Eric Smith
Eric Smith added the comment: complex will also need to be addressed. The second error message is misleading, for the same reason the formatting on float and int is incorrect: >> format(3-2j, "0<30") Traceback (most recent call last): File "", line 1, in Va

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith added the comment: The patch looks okay to me, and solves the issue on my Fedora box. But perhaps a context manager in a "with" block would be clearer? I've attached a patch. -- Added file: http://bugs.python.org/file14908/issue6882-

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith added the comment: The py3k version of the file already contains 3.x only code, and it's missing the comment at the top that it should be compatible. But it's not really a big deal to me. The py3k version also already has some try/finally logic on some popen calls that

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith added the comment: Indeed, the code that introduced this bug was in r68489, so it was written after Guido went through the module and cleaned it up to use try/finally. And since r68489 was a merge of r68487, the change was originally made on the 2.x version (which doesn't us

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith added the comment: Yes, I'll take care of this. I can't think of any way to add a test that the zombie process doesn't exist, but if anyone has an idea I'd like to hear about it. -- ___ Python tracker <http://bu

[issue6882] uuid creates zombies

2009-09-18 Thread Eric Smith
Eric Smith added the comment: I checked in a slightly modified version of Marcin's patch in py3k (r74907) and release31-maint (r74909). I modified the patch to keep the same style as the rest of the module. I'll now work on back-porting all of the try/finally code to trunk. That inc

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue6958> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Eric Smith
Eric Smith added the comment: The C code looks basically okay to me. I'd probably use strdup() instead of the malloc/strlen/strcpy calls. And as Thomas said, the cleanup needs a little bit of work. -- ___ Python tracker <http://bugs.py

[issue6985] range() fails with long integers

2009-09-24 Thread Eric Smith
Eric Smith added the comment: This doesn't crash the interpreter, so I'm changing it to "behavior". The number of items in a range() must fit into a native int. What are you doing with the range? Could you use xrange instead? -- nosy: +eric.smith resolution: ->

[issue7010] Rounding when converting float tuple to str

2009-09-28 Thread Eric Smith
Eric Smith added the comment: What OS, processor, and Python version are you running this code on? >From your example, it's Python 3.x. 3.1 has a completely rewritten float->decimal conversion system, and I get different results. >>> print(.1) 0.1 >>> print((.1,))

[issue7019] unmarshaling of artificial strings can produce funny longs.

2009-09-29 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue7019> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7020] regression in pywin32 build due to 2.6.3rc1

2009-09-30 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue7020> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7051] 'g'/'G' format docs need a little more explanation

2009-10-07 Thread Eric Smith
Eric Smith added the comment: Mark's really the expert here, so I trust his description. Is his description layman-speak enough for the docs? -- ___ Python tracker <http://bugs.python.org/i

[issue7081] ">" formatting behaving like "=" formatting

2009-10-08 Thread Eric Smith
Eric Smith added the comment: I think they're the same issue, relating to what happens if there's an alignment specifier supplied along with '0'. I'm planning on working on this issue this weekend and I'll v

[issue7051] 'g'/'G' format docs need a little more explanation

2009-10-08 Thread Eric Smith
Eric Smith added the comment: That wording is okay with me. Maybe run it by Georg to see if he has any suggestions? Or just check it in and see if anyone complains. But I'm okay with it as-is. Thanks for doing this. Eric. -- ___ Python tr

[issue7051] 'g'/'G' format docs need a little more explanation

2009-10-08 Thread Eric Smith
Eric Smith added the comment: I obviously hadn't thought of those cases, either. This version looks good(er) to me. -- ___ Python tracker <http://bugs.python.org/i

[issue7094] Add alternate float formatting styles to new-style formatting.

2009-10-09 Thread Eric Smith
Eric Smith added the comment: I'm adding 2.7. Since 2.7 and 3.2 share the same code base, I'd rather add it to both if we're going to do it at all. -- assignee: -> eric.smith versions: +Python 2.7 ___ Python tracker <h

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-18 Thread Eric Smith
New submission from Eric Smith : These functions are unsafe and I'd like to delete them. They've already been deleted in py3k, per PEP 3100. They are no longer used internally to the interpreter. They should be documented as deprecated and as unsafe. They write to a char* parameter,

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Changes by Eric Smith : -- assignee: georg.brandl -> eric.smith ___ Python tracker <http://bugs.python.org/issue7168> ___ ___ Python-bugs-list mailing list Un

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Eric Smith added the comment: Proposed patch attached. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file15164/issue7168.patch ___ Python tracker <http://bugs.python.org/iss

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Eric Smith added the comment: Updated patch based on Georg's input. -- Added file: http://bugs.python.org/file15166/issue7168.patch ___ Python tracker <http://bugs.python.org/i

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Changes by Eric Smith : Removed file: http://bugs.python.org/file15164/issue7168.patch ___ Python tracker <http://bugs.python.org/issue7168> ___ ___ Python-bugs-list m

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Eric Smith added the comment: A slightly improved version checked in as r75510. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6882] uuid creates zombies

2009-10-22 Thread Eric Smith
Eric Smith added the comment: Back ported the try/finally parts to trunk in r75620. -- ___ Python tracker <http://bugs.python.org/issue6882> ___ ___ Python-bug

[issue6882] uuid creates zombies

2009-10-23 Thread Eric Smith
Eric Smith added the comment: Changed py3k version to use contextlib.closing in r75625. -- status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue6882] uuid creates zombies

2009-10-23 Thread Eric Smith
Changes by Eric Smith : -- priority: -> normal type: -> behavior ___ Python tracker <http://bugs.python.org/issue6882> ___ ___ Python-bugs-list

[issue7117] Backport py3k float repr to trunk

2009-10-24 Thread Eric Smith
Eric Smith added the comment: I think the next step on my side is to remove _PyOS_double_to_string, and make all of the internal code call PyOS_double_to_string. The distinction is that _PyOS_double_to_string gets passed a buffer and length, but PyOS_double_to_string returns allocated memory

[issue7117] Backport py3k float repr to trunk

2009-10-24 Thread Eric Smith
Eric Smith added the comment: Adding tim_one as nosy. He'll no doubt have an opinion on rounding. And hopefully he'll share it! -- nosy: +tim_one ___ Python tracker <http://bugs.python.

[issue7117] Backport py3k float repr to trunk

2009-10-24 Thread Eric Smith
Eric Smith added the comment: Another thing to consider is that in py3k we removed all conversions of converting 'f' to 'g', such as this, from Objects/unicodeobject.c: if (type == 'f' && fabs(x) >= 1e50) type = 'g'; Should we als

[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith
Eric Smith added the comment: r75743: Fix cPickle.c to use PyOS_string_to_double. -- ___ Python tracker <http://bugs.python.org/issue7117> ___ ___ Python-bug

[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith
Eric Smith added the comment: r75745: Fix stropmodule.c to use PyOS_string_to_double. -- ___ Python tracker <http://bugs.python.org/issue7117> ___ ___ Python-bug

<    25   26   27   28   29   30   31   32   33   34   >