[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker <http://bugs.python.org/issue23193> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread Eric V. Smith
Eric V. Smith added the comment: Ignore my review comment on pwd and grp being None. I see that there is a test for it (at least grp), and they're not available on Windows. -- ___ Python tracker <http://bugs.python.org/is

[issue23271] Unicode HOWTO documentation error

2015-01-19 Thread Eric V. Smith
Eric V. Smith added the comment: The example is correct. If you type it into a python interpreter, you get the results as shown in the example. The .replace() method does not modify the string s. It returns the new value. In the example, the new value is displayed, but is not assigned back to

[issue23281] Access violation - pyc file

2015-01-20 Thread Eric V. Smith
Eric V. Smith added the comment: Was this file generated by CPython from a .py file? If so, can you share the .py file? If not, how was this file generated? As eryksun says, it appears to not be a valid .pyc file. -- nosy: +eric.smith ___ Python

[issue23294] A typo in the tutorial

2015-01-21 Thread Eric V. Smith
Eric V. Smith added the comment: What's the typo? I'm not seeing it. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue23294> ___ ___

[issue23294] A typo in the tutorial

2015-01-22 Thread Eric V. Smith
Eric V. Smith added the comment: No problem! Thanks for looking at the documentation with an inquisitive eye. -- stage: -> resolved ___ Python tracker <http://bugs.python.org/issu

[issue23323] Issue with imaplib and append messages passing a tuple with flags

2015-01-26 Thread Eric V. Smith
Eric V. Smith added the comment: flags is supposed to be a string. This is not well documented, like much of the module. Try: flags = r'(\Answered \Seen)' -- nosy: +eric.smith ___ Python tracker <http://bugs.python.o

[issue23193] Please support "numeric_owner" in tarfile

2015-01-28 Thread Eric V. Smith
Changes by Eric V. Smith : -- stage: test needed -> patch review ___ Python tracker <http://bugs.python.org/issue23193> ___ ___ Python-bugs-list mailing list Un

[issue23340] armv7l C++ exceptions issue

2015-01-28 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with David that this isn't the right venue. That said, the likely problem is that Python's main() is written in C, not C++, so some needed runtime support for exceptions is not getting initialized. -- nosy: +eric.smith resolution: -&

[issue23386] snmp - mib error

2015-02-03 Thread Eric V. Smith
Eric V. Smith added the comment: pysnmp is not part of the Python standard library. It looks like you should report issues or search for help at at pysnmp.sourceforge.net. -- components: -Build nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -&g

[issue23386] snmp - mib error

2015-02-03 Thread Eric V. Smith
Eric V. Smith added the comment: Your question is not appropriate here, and you're unlikely to get an answer. This tracker is for bugs in python and its standard library. It is not for asking for help with third party packages. See my other comment for a pointer to an appropriate venu

[issue23389] pkgutil.find_loader raises an ImportError on PEP 420 implicit namespace packages

2015-02-03 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue23389> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23473] Allow namedtuple to be JSON encoded as dict

2015-02-18 Thread Eric V. Smith
Eric V. Smith added the comment: Can you post a code snippet that used to work, but now does not? -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue23

[issue23479] str.format() breaks object duck typing

2015-02-18 Thread Eric V. Smith
Eric V. Smith added the comment: As David says, the change from: ValueError: Unknown format code 'f' for object of type 'str' to: TypeError: non-empty format string passed to object.__format__ is quite intentional. Let me address the differences between %-formatting

[issue23479] str.format() breaks object duck typing

2015-02-18 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> not a bug status: open -> closed ___ Python tracker <http://bugs.python.org/issue23479> ___ ___ Python-bugs-

[issue24281] String formatting: incorrect number of decimal places

2015-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: And I just double checked: the entirety of the sentence you quoted is: The precision is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value formatted with 'f' and 'F', or

[issue24312] miniDOM._write_data() give a vague error message when the argument isn't of type str

2015-05-28 Thread Eric V. Smith
Eric V. Smith added the comment: As a rule, we don't put in checks like this. There are an untold number of places where such checks could be added. I suspect the new typing module will be a better way to catch these types of errors. Does the problem not occur with 3.5? --

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread Eric V. Smith
Eric V. Smith added the comment: It's trying to say that "i" is optional, as stated in the footnote. I agree it would be better written as "s.pop(i)", since square brackets are otherwise used in that section as indexing operators. But the footnote should stay, explai

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread Eric V. Smith
Changes by Eric V. Smith : -- versions: -Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue24323> ___ ___ Python-bugs-list mailing list Unsub

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread Eric V. Smith
Eric V. Smith added the comment: s.pop(i=-1) doesn't actually work, but I guess it gets the point across. For 2.7 it's even more confusing, since it includes: s.index(x[, i[, j]]) and s.sort([cmp[, key[, reverse]]]) I'd suggest not changi

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-31 Thread Eric V. Smith
Eric V. Smith added the comment: I don't feel particularly strongly about it. It's mildly more confusing in the 3.x docs than 2.7 because it's the only use in that section of an optional argument. I disagree that s.pop(i) is wrong, since it agrees with the "Results"

[issue24372] Documentation for ssl.wrap_socket's ssl_version parameter is odd

2015-06-03 Thread Eric V. Smith
New submission from Eric V. Smith: The documentation for ssl.wrap_socket()'s ssl_version parameter says "ssl_version={see docs}". But as far as I can tell, there's no reason not to document it as PROTOCOL_SSLv23, since that's what it actually is in the code. My use c

[issue24372] Documentation for ssl.wrap_socket's ssl_version parameter is odd

2015-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: It occurs to me that None would also be a fine default, and probably the smarter choice. Then wrap_socket could say: if ssl_version is None: ssl_version = PROTOCOL_SSLv23 And we could change the default as needed, without being held to the actual value. And

[issue24372] Documentation for ssl.wrap_socket's ssl_version parameter is odd

2015-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: I have a requirement to support 2.7.5, so SSLContext is currently a problem for me. I realize that 2.7 could at best get a documentation change. -- ___ Python tracker <http://bugs.python.org/issue24

[issue24387] json.loads should be idempotent when the argument is a dictionary

2015-06-05 Thread Eric V. Smith
Eric V. Smith added the comment: What are the use cases where json.loads would be called on the return from json.loads? It seems to me a better design would be to wrap such calls with a test, instead of having json.loads do this test. Hiding it in json.loads would mask other programming

[issue24409] PythonPROD abrt

2015-06-08 Thread Eric V. Smith
Eric V. Smith added the comment: This doesn't appear to be a bug with Python, but rather with CrossCDR. If you can provide more information (such as a stacktrace, or a reproducible test using just Python's standard library), then please re-open this issue. -- nosy: +

[issue24417] Type-specific documentation for __format__ methods

2015-06-09 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue24417> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24428] Import sys,getopt is having issue while taking inputs

2015-06-10 Thread Eric V. Smith
Eric V. Smith added the comment: This is not a problem with python, but rather with how bash interprets your program arguments. Try putting the arguments in single quotes, like: python validate_json_adj.py -i '$#@%' -- nosy: +eric.smith resolution: -> not a bug stage:

[issue24454] Improve the usability of the match object named group API

2015-06-15 Thread Eric V. Smith
Eric V. Smith added the comment: I'd definitely be for mo['col']. I can't say I've ever used len(mo.groups()). I do have lots of code like: return mo.group('col'), mo.group('row'), mo.group('foo') Using groupdict there is doable but not g

[issue24507] CRLF issues

2015-06-25 Thread Eric V. Smith
Eric V. Smith added the comment: At least for the files in decimaltestdata, I'd be wary about changing them. My understanding is that these files are from the IBM decimal test library. I don't think we should stray from upstream here, even for something as simple as li

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2015-07-01 Thread Eric V. Smith
Eric V. Smith added the comment: So let's say your function would be named "safe_format". Then: "{1} {0}".safe_format('one') would give: "{1} one". Then: "{1} one".safe_format('two') would be an error, because there's no

[issue24574] ANSI escape sequences breaking string justification

2015-07-06 Thread Eric V. Smith
Eric V. Smith added the comment: strings are unaware of any ANSI escape sequences or other structure that is being ascribed to their contents. The '\033' escape character is being counted, as are the rest of the characters in that string. Since the string is already at least 10

[issue24661] CGIHTTPServer: premature unescaping of query string

2015-07-18 Thread Eric V. Smith
Eric V. Smith added the comment: I would expect the cgi script to receive the unescaped values. Can you point to some reference that says otherwise? -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue24

[issue24690] find_executable should expand ~

2015-07-23 Thread Eric V. Smith
Eric V. Smith added the comment: You can use os.path.expanduser(). In general we leave decisions such as expanding user names and environment variables up to the caller, and we don't build them in to each function. Although I'm not sure why you'd want to pass a fu

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-08-02 Thread Eric V. Smith
New submission from Eric V. Smith: The only call to decode_unicode is this: if (!*bytesmode && !rawmode) { return decode_unicode(c, s, len, rawmode, c->c_encoding); } So rawmode will always be 0. Removing this will delete a call to PyUnicode_DecodeRawUnicodeEscape in dec

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-08-02 Thread Eric V. Smith
Eric V. Smith added the comment: That's poor wording on my part: the call to PyUnicode_DecodeRawUnicodeEscape isn't actually execute if rawmode is false. So it's really just a dead branch that's being deleted. -- ___ P

[issue24802] PyFloat_FromString Buffer Over-read

2015-08-06 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue24802> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24803] PyNumber_Long Buffer Over-read.patch

2015-08-06 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue24803> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24939] Remove unicode_fornat.h from stringlib

2015-08-25 Thread Eric V. Smith
New submission from Eric V. Smith: Objects/stringlib/unicode_format.h does not belong in stringlib. Back when it was originally written for 2.x, it used stringlib to provide the str and unicode versions of str.format, str.__format__, int.__format__, etc. However, in 3.x, and especially with

[issue24939] Remove unicode_format.h from stringlib

2015-08-25 Thread Eric V. Smith
Changes by Eric V. Smith : -- title: Remove unicode_fornat.h from stringlib -> Remove unicode_format.h from stringlib ___ Python tracker <http://bugs.python.org/issu

[issue24939] Remove unicode_format.h from stringlib

2015-08-26 Thread Eric V. Smith
Eric V. Smith added the comment: Actually, int.__format__, etc. are not in this file. So that's good. The things that are in this file but are unrelated to unicodeobject.c are the support routines for implementing string.Formatter. I think I'll move those elsewhere, as a

[issue24965] Implement PEP 498: Literal String Formatting

2015-08-30 Thread Eric V. Smith
New submission from Eric V. Smith: See PEP 498. >>> f'New for Python {sys.version.split()[0]}' 'New for Python 3.6.0a0' -- assignee: eric.smith components: Interpreter Core files: pep-498.diff keywords: patch messages: 249362 nosy: eric.smith priority: n

[issue24965] Implement PEP 498: Literal String Formatting

2015-08-30 Thread Eric V. Smith
Eric V. Smith added the comment: One thing I've done in this implementation is to build up a string to pass to str.format(), instead of using the original string. This new string uses positional parameters instead of named parameters. I had originally proposed to add a string.interpolate

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-01 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed validate_exprs bug. -- Added file: http://bugs.python.org/file40316/pep-498-1.diff ___ Python tracker <http://bugs.python.org/issue24

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-01 Thread Eric V. Smith
Eric V. Smith added the comment: Make sure f-strings are identified as literals in error messages. -- Added file: http://bugs.python.org/file40317/pep-498-2.diff ___ Python tracker <http://bugs.python.org/issue24

[issue24987] subprocess.Popen with shell=True doesn't create socket

2015-09-03 Thread Eric V. Smith
Eric V. Smith added the comment: With both python 2 and 3, what does "ps -efww | fgrep soffice" produce? -- nosy: +eric.smith ___ Python tracker <http://bugs.python.o

[issue25002] Deprecate asyncore/asynchat

2015-09-04 Thread Eric V. Smith
Eric V. Smith added the comment: I use smtpd.py for testing my code. But it's not such a big deal that I couldn't live without it. If I have some time to burn, I might convert it to asyncio so I can continue to use it. -- nosy: +

[issue15989] Possible integer overflow of PyLong_AsLong() results

2015-09-06 Thread Eric V. Smith
Eric V. Smith added the comment: Isn't Python-ast.c a generated file? -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue15989> ___ ___

[issue25008] Deprecate smtpd

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

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-08 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker <http://bugs.python.org/issue25034> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Changes by Eric V. Smith : Removed file: http://bugs.python.org/file40316/pep-498-1.diff ___ Python tracker <http://bugs.python.org/issue24965> ___ ___ Python-bugs-list m

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Changes by Eric V. Smith : Removed file: http://bugs.python.org/file40317/pep-498-2.diff ___ Python tracker <http://bugs.python.org/issue24965> ___ ___ Python-bugs-list m

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Changes by Eric V. Smith : Removed file: http://bugs.python.org/file40302/pep-498.diff ___ Python tracker <http://bugs.python.org/issue24965> ___ ___ Python-bugs-list m

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: This implements the accepted PEP 498. The only other real change I plan on making is to do dynamic memory allocation when building the expressions that make up a JoinedStr AST node. The code has all of the places to do that already laid out, it's just a m

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: I discussed it with Guido and added 'F' to the PEP. -- ___ Python tracker <http://bugs.python.org/issue24965> ___ ___

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: +1 on the "by default" change. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue25059> ___ ___

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: This version does dynamic allocation for the expression list, and fixes some memory leaks and early decrefs. I think it's complete, but I'll take some more passes through it checking for leaks. --

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Changes by Eric V. Smith : Added file: http://bugs.python.org/file40430/pep-498-4.diff ___ Python tracker <http://bugs.python.org/issue24965> ___ ___ Python-bugs-list m

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: The good news is that the performance is pretty good, and finally I have a case where I can beat %-formatting: $ ./python.bat -mtimeit -s 'a=2' "'%s' % a" 100 loops, best of 3: 0.883 usec per loop $ ./python.bat -mtimeit -s

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, Martin. I've posted my replies. I'll add some more tests, and work on the triple quoted string bug. -- ___ Python tracker <http://bugs.python.o

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks again, Martin. I've found 4 bugs so far, based on your suggested tests. The ones I haven't fixed are: 'fur' strings don't work (something in the lexer), and triple quoted strings don't work correctly. I'm working on

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: It turns out 'fur' strings aren't a thing, because 'ur' strings aren't. >From tokenizer.c: /* ur"" and ru"" are not supported */ And the PEP: https://www.python.org/dev/peps/pep-0414/#exclusion-of-raw-unic

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: After discussing it with Guido, I've removed the ability to combine 'f' with 'u'. -- ___ Python tracker <http:

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, Jelle, you are correct in all 3 cases. Remember that the steps are to extract the string from the source code, decode backslash escapes, and only then treat it as an f-string. For the first case, without the 'f' prefix: '{ {1: 2\N{RIGHT C

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: This one has been fixed: >>> f"{'a\\'b'}" "a'b" This one was a bug that I previously fixed, that Martin pointed out: >>> f"{x!s!s}" File "", line 1 SyntaxError: invalid character fo

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: Agreed on checking the error messages better. Especially since even the simplest of errors (like leaving out a quote) results in a syntax error in parsing the string, not parsing inside the f-string. I'll look at it event

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: This patch fixes triple-quoted strings, plus a few bugs. I'm going to commit it tomorrow, barring any unforeseen issues. -- Added file: http://bugs.python.org/file40447/pep-498-5.diff ___ Python tracker

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: I'll probably ensure that all of the parsing errors contain "format string" or "f-string" or similar. That way the regex check is easier, and the user can search for it more easily. It remains to be seen how these are referenced in the

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: Both of those are known (to me!) byproducts of the current implementation. If my crazy idea of adding opcodes to speed up f-strings flies, then this issue will go away. I consider this a corner case that doesn't need to be addressed before committing this

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: On 9/13/2015 12:21 AM, Martin Panter wrote: >>>> f"{'{'}" # Why is this allowed in an outer format expression-- > '{' >>>> f"{3:{'{'}>10}" # --but not inside a format specifi

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-16 Thread Eric V. Smith
Eric V. Smith added the comment: I rewrote the format_spec parser to recursively call the f-string parser, so any oddness in what's allowed in a format_spec is gone. It took way longer than I thought, but the code is better for it. -- Added file: http://bugs.python.org/file4048

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-16 Thread Eric V. Smith
Eric V. Smith added the comment: Simplified error handling, fixed 2 memory leaks. All tests now pass with no leaks. This should be the final version. -- Added file: http://bugs.python.org/file40484/pep-498-7.diff ___ Python tracker <h

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-17 Thread Eric V. Smith
Eric V. Smith added the comment: > Martin Panter added the comment: > > Another strange error message (though maybe the new test changes you > mentioned caught this): > >>>> f'{3:{10}' # Actually missing a closing bracket '}' > File "

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-17 Thread Eric V. Smith
Eric V. Smith added the comment: Hopefully the last version. -- Added file: http://bugs.python.org/file40495/pep-498-8.diff ___ Python tracker <http://bugs.python.org/issue24

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-18 Thread Eric V. Smith
Eric V. Smith added the comment: Cleaned up the error handling in fstring_expression_compile so it's easier to verify and more robust in the face of future changes. Added a test for an un-doubled '}', which is an error in a top-level literal (and ends a nested expression). Mo

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: I changed the generated code to call: format(x [, spec]) instead of: x.__format__(spec) The reason is that the correct way to call __format__ is actually: type(x).__format__(x, spec) That is, the __format__ lookup is done on the type, not the instance. From

[issue25179] PEP 498 f-strings need to be documented

2015-09-19 Thread Eric V. Smith
New submission from Eric V. Smith: Issue 24965 add f-strings (see PEP 498). They need to be documented. -- assignee: docs@python components: Documentation messages: 251101 nosy: docs@python, eric.smith priority: normal severity: normal stage: needs patch status: open title: PEP 498 f

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: Documentation task added as issue #25179. Thanks to Martin for the great code reviews. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Eric V. Smith
New submission from Eric V. Smith: test_unparse.py occasionally fails if it picks a module that uses f-strings. -- assignee: eric.smith keywords: easy messages: 251106 nosy: eric.smith priority: normal severity: normal stage: needs patch status: open title: Tools/parser/unparse.py needs

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: And it always fails with "-u cpu", which the buildbots use. -- ___ Python tracker <http://bugs.python.org/issue25180> ___ __

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: This task is actually pretty difficult, and is going to require some major surgery to unparse.py. Unfortunately, until it's fixed, you can't use f-strings in the stdlib or in stdlib tests. Particularly challenging are nested f-strings like: f

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: That's awesome, thanks! Definitely simpler than where I was going. I'm not in front of my dev machine right now, so I can't run it. But if it works, it works. I suggest adding the test cases to test_unparse.py's UnparseTestCase. That way

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-20 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue25180> ___ ___ Python-bugs-list

[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-20 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue25092> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-09-21 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue24779> ___

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-22 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the feedback. On the f"{expr3!s}" → format(str(expr3)) issue, I'm trying to show the 1 argument version of format (which is what the code generator actually calls). Although I realize that's not a great example, since the

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-24 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue25206> ___

[issue8304] time.strftime() and Unicode characters on Windows

2015-09-24 Thread Eric V. Smith
Eric V. Smith added the comment: The problem is definitely that: format = PyUnicode_EncodeLocale(format_arg, "surrogateescape"); fails on Windows. Windows is using strftime, not wcsftime. It's not using wcsftime because of issue 10653. If I force Windows to use wcsftime,

[issue25252] Hard-coded line ending in asyncio.streams.StreamReader.readline

2015-09-27 Thread Eric V. Smith
New submission from Eric V. Smith: A group of us (all added as nosy) spent part of the day working on issue 25008 (write an smtpd with asyncio). We came across some code that contained a copy of StreamReader.readline, but it used b'\r\n' instead of b'\n' for a line

[issue25252] Hard-coded line ending in asyncio.streams.StreamReader.readline

2015-09-27 Thread Eric V. Smith
Eric V. Smith added the comment: Good point. I quick test of our sample code shows that calling regular readline to read up to '\n' does in fact work correctly. Let me do some more testing, then I'll likely close this. Thanks! -- ___

[issue25252] Hard-coded line ending in asyncio.streams.StreamReader.readline

2015-09-28 Thread Eric V. Smith
Eric V. Smith added the comment: I'm closing this as unneeded. -- resolution: -> rejected stage: -> resolved ___ Python tracker <http://bugs.python.

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-29 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed in 3.4, 3.5, and 3.6. Thanks for the bug report and patch! I added you to the Misc/ACKS file. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6 ___ Python track

[issue25278] Unexpected socket exception on SFTP 'STOR' command

2015-09-30 Thread Eric V. Smith
Changes by Eric V. Smith : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue25278> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25278] Unexpected socket exception on SFTP 'STOR' command

2015-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: >From the info in issue 25279, I'd say it's an error in your code. But to make sure it's not an error in the stdlib, can you show us your code? Without that, it's not possible to diagnose this any further. -- nosy: +eric.smith

[issue25278] Unexpected socket exception on SFTP 'STOR' command

2015-10-02 Thread Eric V. Smith
Eric V. Smith added the comment: You'll need to reproduce this in a smaller piece of code that demonstrates the problem. The code you've included is very large, and imports libraries we don't have access to. Otherwise, we can't reproduce

[issue25311] Add f-string support to tokenize.py

2015-10-04 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for noticing tokenize.py. And thanks for the kind note! -- assignee: -> eric.smith ___ Python tracker <http://bugs.python.org/issu

[issue25317] Convert test_tokenize to unittests

2015-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: +1 -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue25317> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25333] .1 + .2 == .3 should be True

2015-10-07 Thread Eric V. Smith
Eric V. Smith added the comment: This is not a bug. See: https://docs.python.org/3.5/tutorial/floatingpoint.html -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <http://bug

[issue25311] Add f-string support to tokenize.py

2015-10-08 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, both 'fr' and 'rf' need to be supported (and all upper/lower variants). And in the future, maybe 'fb' (and 'rfb', 'bfr', ...). Unfortunately, the re

[issue25311] Add f-string support to tokenize.py

2015-10-09 Thread Eric V. Smith
Eric V. Smith added the comment: I think the best way to approach this is to generate (in code) all of the places where string prefixes appear. There's StringPrefix, endpats, triple_quotes, and single_quoted. With the currently valid combinations of f, b, r, and u, I count 24 combina

<    20   21   22   23   24   25   26   27   >