[issue9139] Add examples for str.format()

2010-07-02 Thread Eric Smith
Eric Smith added the comment: I think I'd just delete both instances of "now". And now that I read it more critically, "position" should be "positional". How's this rewording: .. versionchanged:: 2.7 The positional argument specifiers can be omi

[issue9139] Add examples for str.format()

2010-07-02 Thread Eric Smith
Eric Smith added the comment: Looks good. -- ___ Python tracker <http://bugs.python.org/issue9139> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5023] Segfault in datetime.time.strftime("%z")

2010-07-04 Thread Eric Wald
Eric Wald added the comment: Reproduced again in version 2.7rc2; I had thought that it went away, but it turns out that --with-pydebug hides the problem. Compiling GDB now. -- status: pending -> open versions: +Python 2.7 ___ Python tracker &l

[issue9165] Add math.isfinite()

2010-07-05 Thread Eric Smith
Eric Smith added the comment: +1 from me, too. You might want to reference this issue in the Misc/NEWS entry. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue9

[issue9182] argparse: optional argument w/ narg='+' conflicts w/ positional argsument

2010-07-06 Thread Eric Smith
Eric Smith added the comment: I get the same behavior in 2.7. Adding '--', I get: >>> p.parse_args('-b 123 456 -- bla'.split()) Namespace(bar=[123, 456], foo='bla') Which is what I expect. Éric: From your comment, I'm not sure if you think it

[issue9202] Update platform.win32_ver() to account for change to #8413

2010-07-08 Thread Eric Smith
Eric Smith added the comment: Surely we don't want to find every place that uses structseq and fix them. This will no doubt break user code as well. I think we'll need to fix structseq to somehow have its old behavior. -- nosy: +

[issue8402] glob returns empty list with "[" character in the folder name

2010-07-09 Thread Eric Smith
Eric Smith added the comment: The note about no quoting meta-chars is in the docstring for fnmatch.translate, not the documentation. I still see it in 3.1. I have a to-do item to add this to the actual documentation. I'll add an

[issue9226] erroneous behavior when creating classes inside a closure

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

[issue9240] different behaviour with for loop... interpreted vs scripted

2010-07-13 Thread Eric Smith
Eric Smith added the comment: Excellent explanation. It's just a misunderstanding of how the language works, so nothing to do here. Closing. -- nosy: +eric.smith resolution: -> invalid status: pending -> closed ___ Python tra

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-07-13 Thread Eric Talevich
New submission from Eric Talevich : In xml.etree, ElementTree and cElementTree implement different interfaces for the iterparse function/class. In ElementTree, the argument "events" must be a tuple of strings: from xml.etree import ElementTree as ET for result in ET.iterparse(&#

[issue9265] Can't choose other shell in subprocess

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

[issue9272] CGIHTTPServer poisons os.environ

2010-07-16 Thread Eric Smith
Eric Smith added the comment: The change looks reasonable to me. It needs a test. -- nosy: +eric.smith stage: -> unit test needed ___ Python tracker <http://bugs.python.org/iss

[issue9148] os.execve puts process to background on windows

2010-07-16 Thread Eric Smith
Eric Smith added the comment: I believe it's true that Windows does not offer process replacement. I'm sure you could perform some tricks by essentially writing your own loader, but the practical answer is no. It might be worth looking into how cygwin implements exec(). -

[issue9274] code.InteractiveInterpreter fails to change locals when invoked in a function

2010-07-16 Thread Eric Promislow
New submission from Eric Promislow : Similar to bug http://bugs.python.org/issue5215 which found a workaround in pdb. Here I want to use code.InteractiveInterpreter to modify code interactively (see Komodo bug http://bugs.activestate.com/show_bug.cgi?id=87405 ) I can do this at the top-level

[issue9274] code.InteractiveInterpreter fails to change locals when invoked in a function

2010-07-16 Thread Eric Promislow
Eric Promislow added the comment: I've modified the bug status so anyone can read it. You don't need an account to read ActiveState bugs, only to add or comment on one. Please note that I closed bug http://bugs.activestate.com/show_bug.cgi?id=87405, as we're now w

[issue9274] code.InteractiveInterpreter fails to change locals when invoked in a function

2010-07-16 Thread Eric Promislow
Eric Promislow added the comment: Thanks for the response. Note that our use case *is* to implement Python-console functionality, but sometimes we do this in the context of a currently running Python program, inside a function. That's why I wrote the repro that way.

[issue9274] code.InteractiveInterpreter fails to change locals when invoked in a function

2010-07-16 Thread Eric Promislow
Eric Promislow added the comment: David, that won't work for a reason I'll get into in a bit. I would drop the priority of this ... Komodo has a had a Python debugger since late 2000, we only fixed updating variables while debugging (using the variable viewer) yesterday, and rece

[issue9036] Simplify Py_CHARMASK

2010-07-19 Thread Eric Smith
Eric Smith added the comment: Yes, the unicode patch looks okay to me. -- ___ Python tracker <http://bugs.python.org/issue9036> ___ ___ Python-bugs-list mailin

[issue9320] os.environ is global for threads

2010-07-21 Thread Eric Smith
Eric Smith added the comment: I'm not sure where you'd put this. The defining characteristic of threads is that _all_ objects are shared among them. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.

[issue9328] str.__format__.__doc__ backport glitch

2010-07-21 Thread Eric Smith
Eric Smith added the comment: Yes, that is what it says; and yes, it should be "string". Although why all of the methods say "string" and not "str" isn't clear to me. Probably historical. The doc string for str.__format__ contains the same e

[issue9328] str.__format__.__doc__ backport glitch

2010-07-21 Thread Eric Smith
Eric Smith added the comment: And now that I look at it, the subject contains "__format__" but the original message says "format". Both cases are already covered! -- ___ Python tracker <http://bu

[issue9332] Document requirements for os.symlink usage on Windows

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

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

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

[issue9333] Expose a way to enable os.symlink on Windows

2010-07-22 Thread Eric Smith
Eric Smith added the comment: Wouldn't you have to set this, then restore it? This would then open a non thread-safe race condition, assuming this is a per-process setting, not a thread-local setting. Not that I'm necessarily opposed, but it&

[issue2734] 2to3 converts long(itude) argument to int

2010-07-22 Thread Eric Talevich
Eric Talevich added the comment: This issue still occurs when the name "long" is a function argument: def double(long): return long * 2 2to3 converts it to: def double(long): return int * 2 Should I file a new bug, or can someone reopen this? -- nosy: +eri

[issue9337] Make float.__str__ behave identically to float.__repr__

2010-07-25 Thread Eric Smith
Eric Smith added the comment: I think this is a good idea. To test how much impact it would have, I changed float's str to return the same value as repr. regrtest broke only 3 tests: test_float test_tokenize test_unicodedata. It's not clear to me why unicodedata failed. With s

[issue7330] PyUnicode_FromFormat segfault

2010-07-28 Thread Eric Smith
Eric Smith added the comment: I think under the "we're all consenting adults" doctrine that it should be allowed. If you really want that behavior, why force the char*/%s dance at each call site when it's easy enough to do it in one place? I don't think anyone suppl

[issue9411] configparser doesn't support specifying encoding in read()

2010-07-29 Thread Eric Smith
Eric Smith added the comment: The feature request seems reasonable to me, too. I don't recall if sys.getdefaultencoding() can change while a program is running. If so, you might want to change: def read(self, filenames, encoding=sys.getdefaultencoding()): to: def read(self, file

[issue9426] Explicitly state lack of support for keyword arguments in builtin functions

2010-07-30 Thread Eric Smith
Eric Smith added the comment: I agree this should be closed and moved to #8350. -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue9

[issue8350] Document lack of support for keyword arguments in C functions

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

[issue9430] Document str() and repr() of timedelta.

2010-07-31 Thread Eric Smith
Eric Smith added the comment: I think it would be clearer if the footnote said something like "Negative 1 day plus 19 hours is equivalent to the timedelta argument of -5 hours)". If I hadn't been following the discussion on #python-dev the point of this doc change would have

[issue9503] print statement hangs Windows service

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

[issue9530] integer undefined behaviors

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

[issue9537] argparse: use OrderedDict to store subparsers

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

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-09 Thread Eric Smith
Eric Smith added the comment: I don't think it would be covered by the moratorium, since it's not a language change. The change to make structseq derive from tuple was not subject to the moratorium, for example. -- ___ Python trac

[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-10 Thread Eric Smith
Eric Smith added the comment: I agree with Steven: for the current tests we should specify (and restore) 80 columns. We might want to add additional tests at different column widths. -- ___ Python tracker <http://bugs.python.org/issue9

[issue28091] Document PEP 525

2016-12-05 Thread Eric Appelt
Eric Appelt added the comment: Hi, I'm a new contributor trying to get started with documentation and testing. I have been following and testing PEP525 and PEP530 and feel familiar enough to try to work on adding this to the Python Language Reference if it would not be redundant with

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-06 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, Not sure this is where the comment goes... I work with the smtplib and email libraries. I understand Henning von Bargen when he say that we should have a way to support RFC 5322 without asking the user to understand how to support it. The issue is

[issue28091] Document PEP 525

2016-12-06 Thread Eric Appelt
Eric Appelt added the comment: Hi Yury - Yes, I am excited about doing this and getting to work on it. Today was pretty busy but I have some time blocked out tomorrow to really dig in. I was planning to give myself a deadline of Friday afternoon if that works for the review/release schedule

[issue28910] Async generator does not raise RuntimeError if finalizer not set

2016-12-08 Thread Eric Appelt
New submission from Eric Appelt: While testing my understanding in order to document PEP525 asynchronous generators in the Language Reference (issue 28091) I noticed that the implemented behavior deviates from PEP525, specifically the PEP states that: "When an asynchronous generat

[issue28091] Document PEP 525

2016-12-08 Thread Eric Appelt
Eric Appelt added the comment: I think this needs considerable checking and polishing, but I am submitting this "Work In Progress" patch for the PEP525 and PEP530 documentation so that I can get some general feedback since I am new to this, and to ensure that if this is not generall

[issue28091] Document PEP 525

2016-12-12 Thread Eric Appelt
Eric Appelt added the comment: Yes - I'll work on the patch tonight. -- ___ Python tracker <http://bugs.python.org/issue28091> ___ ___ Python-bugs-list m

[issue28091] Document PEP 525

2016-12-12 Thread Eric Appelt
Eric Appelt added the comment: I believe that I addressed all the comments in the previous review (although its always possible I missed something), and have a new patch with the improvements and fixes. I also noticed that in asyncio, loop.shutdown_asyncgens() is a coroutinemethod and fixed

[issue28091] Document PEP 525

2016-12-14 Thread Eric Appelt
Eric Appelt added the comment: Thanks for the explanations and example code in the review! Working on this issue is really helping to improve my understanding of a number of tricky things like finalization. I *think* that I have all the comments implemented in the attached patch. I also

[issue28972] Document all "python -m" utilities

2016-12-15 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, I believe it's already done. The only thing that people tends to forget is that doing python -m "module.script(.py)" is only doing the equivalent of "python module/script.py". I believe it's clear though ; https://docs.p

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-15 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, Thanks for the enlightment. I never figured that there was a send_message function XD. Never needed it and it's true that the example in the email library use sendmail and not send_message. https://docs.python.org/2/library/smtplib

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-16 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, I was looking at the code of the function and also noticed multiple "itching". 1- Why raise an error when 2 resent-date exist? it may exist and completely legitimate as per RFC5322. The code should always take the first one it sees as p

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-18 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, this is not a short answer, like I hoped it would be ;). But skip to the last section if you don't want to read it all. the heuristic problem : For the heuristic of the resent headers, it's clearly say in t

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-18 Thread Eric Lafontaine
Eric Lafontaine added the comment: forgot to re-post the to-do, and to correct the documentation : List of things to do : - Implement a patch for the code to add a missing "Date" field if it doesn't exist . (in review) - Modify the documentation at the SMTPLib for the send_mes

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-19 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, @David, the "Resent-" block should be added by the user and he needs to know what he's doing. Hell, I work with emails all the time and never knew about this. The Worse part of it is that I have to communicate with the IETF just to

[issue28945] get_boundary invokes unquote twice

2016-12-19 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, I believe this is the right behavior and what ever generated the boundary "<<>>" is the problem ; RFC 2046 page 22: _ The only mandatory global parameter for the "multipart" media type is the bo

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, I hate this proposition. I feel it's a "victory" for the people who don't want to follow RFC standard and allow "triple"-quoting on things that aren't supposed to... Now that my opinion is said, I made 2 te

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread Eric Lafontaine
Eric Lafontaine added the comment: N.B., I've tried to do the keyword parameter on the get_param inside the get_boundary as well as I though it was a good Idea as well, but it was breaking some test cases (multiple ones). So I didn't pursue. N.B. I'm guessing (guessing) unquo

[issue29026] time.time() documentation should mention UTC timezone

2016-12-22 Thread Eric Appelt
Eric Appelt added the comment: I would be happy to work on a documentation patch for this - I'll try to have something up by tomorrow evening if no one beats me to it. -- nosy: +Eric Appelt ___ Python tracker <http://bugs.python.org/is

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-22 Thread Eric Lafontaine
Eric Lafontaine added the comment: overkill file -- Added file: http://bugs.python.org/file46002/issue_28879_python2_overkill.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-22 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi David, Henning, Sorry for the delay. Here is the patch for python 2... but I find that adding an "example" just for RFC 5322 is kind of over-kill... So I've made both :) please choose which one you prefer and let me know. I personnall

[issue28945] get_boundary invokes unquote twice

2016-12-22 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, I would like to have a bigger set of user testing this patch before it gets approve... I really don't know all the extent to which it's a good/bad idea. The proposition was to not do the unquote in the rfc2231 collapse method. It doe

[issue28945] get_boundary invokes unquote twice

2016-12-22 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, I would like to thank you for keeping up with me. I may not be easy at times, but please make me understand if it doesn't make sense :). Thanks bpoaugust and David, Eric Lafontaine -- ___ Python tr

[issue29026] time.time() documentation should mention UTC timezone

2016-12-22 Thread Eric Appelt
Eric Appelt added the comment: I looked at the documentation and implementation and made a patch to hopefully clarify the issue. I also have some comments: - The term "epoch" is actually defined at the top of the page with instructions for how to determine it, i.e. run "gmtime(

[issue29026] time.time() documentation should mention UTC timezone

2016-12-23 Thread Eric Appelt
Eric Appelt added the comment: I had some checks performed on a Windows platform using the following snippet: # valid for 2016 import time def check(): t = time.gmtime() print(46*86400*365 + 11*86400 + (t.tm_yday-1)*86400 + t.tm_hour*3600 + t.tm_min*60 + t.tm_sec) print(time.time

[issue29102] Add an id field to PyInterpreterState.

2016-12-28 Thread Eric Snow
New submission from Eric Snow: Currently there isn't any way to uniquely identify an interpreter. This patch adds a new "id" field to the PyInterpreterState struct. The ID for every new interpreter is set to the value of an increasing global counter. That means that the ID i

[issue29102] Add an id field to PyInterpreterState.

2016-12-28 Thread Eric Snow
Eric Snow added the comment: Pointers can get re-used, so they aren't temporally unique. -- ___ Python tracker <http://bugs.python.org/issue29102> ___ ___

[issue29102] Add an id field to PyInterpreterState.

2016-12-29 Thread Eric Snow
Eric Snow added the comment: Three reasons come to mind: 1. threads are identified by small integers 2. long, random-looking IDs are not human-friendly, and subinterpreter IDs will be used like thread IDs are 3. related to what Steve said, temporally unique IDs allow us to be confident about

[issue29102] Add an id field to PyInterpreterState.

2016-12-29 Thread Eric Snow
Eric Snow added the comment: Interpreter states are in a linked list, so you can traverse the list to find one by ID. Exactly. At first I had added a PyInterpreterState_FindByID() or something like that. However, as you noted, I realized it wasn't necessary. :) WRT weakrefs, we can&

[issue29020] collapse_rfc2231_value has inconsistent unquoting

2016-12-29 Thread Eric Lafontaine
Changes by Eric Lafontaine : -- nosy: +Eric Lafontaine ___ Python tracker <http://bugs.python.org/issue29020> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29020] collapse_rfc2231_value has inconsistent unquoting

2016-12-29 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, The fix is already provided in issue28945 . Please review it and I would like to flag it as needing more test on more version of python... The patch would just require more Test Case that would check for the filename for preventing re-occurence in

[issue29102] Add an id field to PyInterpreterState.

2016-12-30 Thread Eric Snow
Eric Snow added the comment: > What do you think about resetting the counter back to 1 in Py_Initialize? Sounds good to me. When I was working on the patch I had the idea in the back of my mind that not resetting the counter would better support interpreter separation efforts in the fut

[issue29102] Add an id field to PyInterpreterState.

2016-12-30 Thread Eric Snow
Eric Snow added the comment: Here's the updated patch. -- Added file: http://bugs.python.org/file46094/interpreter-id-2.diff ___ Python tracker <http://bugs.python.org/is

[issue29102] Add an id field to PyInterpreterState.

2016-12-31 Thread Eric Snow
Eric Snow added the comment: int_fast64_t it is then. :) I vacillated between the options and went with the bigger space. However, you're right that following convention is worth it. -- ___ Python tracker <http://bugs.python.org/is

[issue29102] Add an id field to PyInterpreterState.

2016-12-31 Thread Eric Snow
Eric Snow added the comment: I've updated the patch to address Nick's review. Thanks! -- Added file: http://bugs.python.org/file46100/interpreter-id-3.diff ___ Python tracker <http://bugs.python.o

[issue29102] Add an id field to PyInterpreterState.

2016-12-31 Thread Eric Snow
Eric Snow added the comment: Thanks for pointing that out, Victor. Given the precedent I switched to using int64_t. The patch actually uses PY_INT64_T, but I didn't see a reason to use int64_t directly. FWIW, there *are* a few places that use int_fast64_t, but they are rather specia

[issue29127] Incorrect reference names in asyncio.subprocess documentation

2016-12-31 Thread Eric Ahn
New submission from Eric Ahn: On this page of the documentation https://docs.python.org/3/library/asyncio-subprocess.html it seems that some of the reference names are incorrect. Namely, asyncio.subprocess.PIPE is referred to as asyncio.asyncio.subprocess.PIPE (along with STDOUT and DEVNULL

[issue29154] 5 failures in test_doctest: ModuleNotFoundError: No module named 'IPython'

2017-01-09 Thread Eric Snow
Eric Snow added the comment: There shouldn't be anything in CPython that depends on IPython. I'd recommend checking for $PYTHONSTARTUP, in site.py, and for .pth files in directories on sys.path. Also look for .py files in the current directory that are shadowing stdlib module

[issue23407] os.walk always follows Windows junctions

2017-01-11 Thread Eric Fahlgren
Eric Fahlgren added the comment: > # Junctions are not recognized as links. > self.assertFalse(os.path.islink(self.junction)) If the above comment is intended as a statement of fact, then it's inconsistent with the implementation of Py_DeleteFileW ( https://hg.python.org/c

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-01-17 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, The IETF didn't answer yet :(. I'll await your news regarding this patch ("issue_28879_V4.patch"). I would like to have feedback if I need to change something. Thanks a lot in adva

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-01-17 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, I've received an answer from the IETF Pete Resnick. The answer does say however that there is no guaranteed way of getting the right headers if the message doesn't respect the standard; "[...] In this case, if the trace fields w

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-01-22 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, I've implemented the heuristic, but it's messy with the issue of this ticket. I'm going to do some clean-up and separate the issue from the heuristic and post them separated. Date issue ; Test Case Documentation Implementation Heur

[issue29282] Fused multiply-add: proposal to add math.fma()

2017-01-24 Thread Eric Fahlgren
Changes by Eric Fahlgren : -- nosy: +eric.fahlgren ___ Python tracker <http://bugs.python.org/issue29282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-01-30 Thread Eric Lafontaine
Eric Lafontaine added the comment: Resent-heuristic -- Added file: http://bugs.python.org/file46460/Resent_heuristic.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-01-30 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, Here you go :). Regards, Eric Lafontaine -- Added file: http://bugs.python.org/file46459/issue28879_v5.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28972] Document all "python -m" utilities

2017-02-02 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, I've just watched the old David Beazley video about the packaging system in python and got me thinking about this issue. I'm throwing the idea, please critize it! If we were to make a "hook" for the .rst files of the modules to go an

[issue19217] Calling assertEquals for moderately long list takes too long

2017-02-07 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, What do we do with this ticket? Patch were provided, People have agreed (I think). So what's missing to close it (or pass to the next step)? It's going to be a year that a high priority ticket has no update and I would like to accelera

[issue16011] "in" should be consistent with return value of __contains__

2017-02-07 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, For user-defined class, it's up to the class to do the right implementation in my opinion. It's true the description is wrong though. x in y means that x exist inside of y (so that the execution of y.__contain__(x) is executed successfully an

[issue16011] "in" should be consistent with return value of __contains__

2017-02-07 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, Here are the test I've made to understand the behavior : class Foo_42(object): def __contains__(self,item): return 42 class Foo_neg(object): def __contains__(self,item): return -42 class Foo_None(object): def __contains__

[issue16011] "in" should be consistent with return value of __contains__

2017-02-07 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi David, sorry for the delay on my part for providing how I was getting to that conclusion. I've also resurrected an old post as I want to start contributing more seriously :). As this is documentation only (not changing the code behavior), I didn

[issue16011] "in" should be consistent with return value of __contains__

2017-02-07 Thread Eric Lafontaine
Eric Lafontaine added the comment: oh, I've got what you meant! Proposed change : For user-defined classes which define the __contains__() method, the in operator will convert to False "x in y" if y.__contains__(x) return False, 0 or None. Otherwise, the in operator will retu

[issue16011] "in" should be consistent with return value of __contains__

2017-02-07 Thread Eric Lafontaine
Eric Lafontaine added the comment: (first time trying to reply through email) thanks for the example and you are right : class Foo_emptylist(object): def __contains__(self,item): return [] class Foo_emptydict(object): def __contains__(self,item): return {} class Foo_emptystring(object

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-10 Thread Eric Snow
Eric Snow added the comment: This is strictly a problem for the system Python, right? In that case, can't the dist package clear __pycache__ under the system site-packages directory (and any other user-read-only dirs) during install of the updated Python? Is the concern that upgrading P

[issue29026] time.time() documentation should mention UTC timezone

2017-02-11 Thread Eric Appelt
Eric Appelt added the comment: As we have moved to GitHub and mandatory reviews with Pull Requests, I have created a new patch in PR#34 which incorporates Victor's suggestions. -- ___ Python tracker <http://bugs.python.org/is

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Eric Appelt
Eric Appelt added the comment: I added PR #54 with a test as Nick describes for checking magic number changes and explaining to the developer the procedure to follow if this is required in a maintenance release. -- nosy: +Eric Appelt pull_requests: +49

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-13 Thread Eric Snow
Eric Snow added the comment: > These files *do not* belong to the CPython package, they belong to the > individual Python modules that depend on CPython, so messing with them > when installing a new version of CPython would be a significant breach > of distro policies. Thanks fo

[issue29026] time.time() documentation should mention UTC timezone

2017-02-16 Thread Eric Appelt
Changes by Eric Appelt : -- pull_requests: +91 ___ Python tracker <http://bugs.python.org/issue29026> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-02-17 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, Could someone put this ticket on "waiting for review"? Regards, Eric Lafontaine -- ___ Python tracker <http://bugs.python.o

[issue27138] FileFinder.find_spec() docstring needs to be corrected.

2016-05-27 Thread Eric Snow
New submission from Eric Snow: Looks like we weren't careful when we added find_spec(). :) This issue is just to track the change. I'll push the fix shortly. -- assignee: eric.snow messages: 266506 nosy: brett.cannon, eric.snow priority: normal severity: normal stage: n

[issue27138] FileFinder.find_spec() docstring needs to be corrected.

2016-05-27 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue27147] importlib docs do not mention PEP 420

2016-05-28 Thread Eric Snow
New submission from Eric Snow: PEP 420 should be mentioned in the introduction section of the importlib docs. I'll push a change to fix this in a minute. -- assignee: eric.snow components: Documentation messages: 266565 nosy: brett.cannon, eric.snow priority: normal severity: n

[issue27147] importlib docs do not mention PEP 420

2016-05-28 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24254] Make class definition namespace ordered by default

2016-06-02 Thread Eric Snow
Eric Snow added the comment: Thanks. Yeah, I wanted to keep the patches separate for the sake of code review. I'll fold the changes into a single commit once everything's ready. -- ___ Python tracker <http://bugs.python.o

[issue24254] Make class definition namespace ordered by default

2016-06-03 Thread Eric Snow
Eric Snow added the comment: Here's the full patch, including the addition of __definition_order__, tests, and docs. -- Added file: http://bugs.python.org/file43168/deforder.diff ___ Python tracker <http://bugs.python.org/is

[issue24254] Make class definition namespace ordered by default

2016-06-03 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file43168/deforder.diff ___ Python tracker <http://bugs.python.org/issue24254> ___ ___ Python-bugs-list mailin

<    29   30   31   32   33   34   35   36   37   38   >