Re: Need Help w. PIP!

2015-09-05 Thread eryksun
On Fri, Sep 4, 2015 at 5:10 PM, Steve Burrus wrote: > so what is my hopefully sinple solution anyway? i do n't see myself anytime > soon getting off of Build 10074 of Win 10. Script wrappers such as pip.exe are simple versions of the py launcher that execute an embedded

Re: Need Help w. PIP!

2015-09-05 Thread eryksun
On Fri, Sep 4, 2015 at 11:35 AM, Steve Burrus wrote: > > "C:\Users\SteveB>py -m pip > Job information querying failed You're using build 10074, an old build of Windows 10 that had a buggy Job object API. This was fixed in build 10159: http://bugs.python.org/issue24127

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-05 Thread Martin Panter
Martin Panter added the comment: This is the patch I had in mind. It looks like it only implements the detach() method, so we would still need to add support for passing in the tunnel details to the HTTPSConnection constructor. This patch would allow doing stuff at a lower level than the

Re: Need Help w. PIP!

2015-09-05 Thread Thomas 'PointedEars' Lahn
Cody Piersall wrote: > Please respond to the list as well as the person you're actually talking > to. It works out better for everyone that way. (You should just have to > "reply all" instead of "reply"). “Better” as in “getting/reading/downloading the same message *twice*”? The rule of

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-05 Thread Martin Panter
Changes by Martin Panter : -- stage: test needed -> ___ Python tracker ___ ___

Re: Need Help w. PIP!

2015-09-05 Thread eryksun
On Fri, Sep 4, 2015 at 10:07 PM, Steve Burrus wrote: > well everyone there must be sometjhing about upgrading Python up to version > 3.5 rc > because everything works just fine now, beyond my wildest dreams! I am even > able > now to type in "pip" and get the usual

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.09.2015 03:49, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > Hmm, on Mac OSX "%" and "A%" are valid format strings: > time.strftime("%") > '%' time.strftime("A%") > 'A%' > > Mark's experiments show that on

[issue22995] Restrict default pickleability

2015-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue14350 and issue24900. Both will be solved by disabling pickling when tp_new is NULL (a part of proposed patch). So that I think the patch should be applied to all releases. -- type: enhancement -> behavior versions: +Python 2.7, Python

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: Rather than debating about how various platforms handle malformed format strings for strftime(), and whether or not they crash, we should simply prevent the native strftime() function from seeing them in the first place. I'd like the "v3" patch in 3.5.0rc3.

Re: Need Help w. PIP!

2015-09-05 Thread Steve Burrus
*so what is my hopefully sinple solution anyway? i do n't see myself anytime soon getting off of Build 10074 of Win 10. i don't have pip in the Scripts folder where I was told it should be. I was thinking of doing a complete disinstall/reinstall of Python 3.4 to see if that helps. * *On Fri,

[issue25007] Add support of copy protocol to zlib compressors and decompressors

2015-09-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: zlib compressor and decompressor objects can be copied with the copy() method, but not with copy.copy(). It is easy to add support of copy protocol to them (just add __copy__() as an alias to copy()). -- components: Library (Lib) messages: 249902

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread eryksun
eryksun added the comment: > On Windows, the C lib strftime() segfaults with a trailing '%', > just as it does with unsupported format codes. No, it doesn't segfault; it invokes the invalid parameter handler (IPH). This could always be configured for the whole process, but with VC 14 it can

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-05 Thread Thomas Belhalfaoui
Thomas Belhalfaoui added the comment: Terry: Thanks for the form, I just filled it. Martin: Thanks for sending your patch. I will dive into it, and try to figure out how to add support for passing in the tunnel details to the HTTPSConnection constructor. --

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset d755f75019c8 by Victor Stinner in branch 'default': Issue #23517: Skip a datetime test on Windows https://hg.python.org/cpython/rev/d755f75019c8 -- ___ Python tracker

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Slightly better in that pdb exits in case of a syntax error instead of proposing to restart the program which does not make sense. A test case is included. -- Added file: http://bugs.python.org/file40372/pdb_syntax_error.patch

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-09-05 Thread Nick Coghlan
Nick Coghlan added the comment: 3.5.0 PR for the change is at https://bitbucket.org/larry/cpython350/pull-requests/16 This *is* a regression (since it's an unintended behavioural change in imp.load_dynamic), but it's one with a relatively straightforward workaround, so it would also be

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Steve Dower
Steve Dower added the comment: I'll do the PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-05 Thread Steve Dower
Steve Dower added the comment: Patch 1 also requires a minor update to Doc\library\os.rst: -.. function:: startfile(path[, operation]) +.. function:: startfile(path[, operation[, arguments]]) ... +*arguments* is passed to the underlying :c:func:`ShellExecute` +call. Its format is determined by

[issue25009] queue.Queue() does not validate the maxsize argument

2015-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: The norm for pure python code is to duck type when objects are used rather than when they are passed in. The Queue module is very old and for the most part, its straight-forward design has worked out well (i.e. there aren't any real usability issues in

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: Because the BDFL asked that it be so. -- ___ Python tracker ___ ___

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2015-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Stefan, can you opine on the patches and whether they should be backported? -- ___ Python tracker ___

[issue24969] functools.lru_cache: a way to set decorator arguments at runtime

2015-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I'm going to reject this one. This option was considered during the design of the LRU cache and not included because it complicated the design, because the use cases were not common (the norm is set and forget), and because the __wrapped__

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-05 Thread Tim Peters
Tim Peters added the comment: Victor, sorry if I muddied the waters here: Alex & I do agree nearest/even must be used. It's documented for timedelta already, and the seconds-from-the-epoch invariant Alex showed is at least as important to preserve as round-tripping. Alex, agreed about the

[issue25009] queue.Queue() does not validate the maxsize argument

2015-09-05 Thread Alex Willmer
New submission from Alex Willmer: The maxsize argument when initializing a Queue is expected to be an int (technically anything that can be compared to an int). However the class takes any value. In Python 3 this throws "TypeError: unorderable types" once e.g. .put() is called. On the basis

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Steve Dower
Steve Dower added the comment: > Rather than debating about how various platforms handle malformed > format strings for strftime(), and whether or not they crash, we > should simply prevent the native strftime() function from seeing > them in the first place. The crash is nothing to do with

[issue24910] Windows MSIs don't have unique display names

2015-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3594400f3202 by Steve Dower in branch '3.5': Issue #24910: Windows MSIs now have unique display names. https://hg.python.org/cpython/rev/3594400f3202 New changeset 0295d2cdc9d3 by Steve Dower in branch 'default': Issue #24910: Windows MSIs now have

[issue24910] Windows MSIs don't have unique display names

2015-09-05 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue23551] IDLE to provide menu options for using PIP

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is really needed. A number of recent threads on python-list indicate that beginners are having problems with using pip. Donald, can you answer Saimadhav's questions two messages above? Saimadhav, can you post whatever you have done so far? --

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-05 Thread STINNER Victor
STINNER Victor added the comment: > Alex & I do agree nearest/even must be used. Ok, so Python 3.6 should be updated to use ROUND_HALF_EVEN, and then updated patches should be backported to Python 3.4 and 3.5. Right? Right now, Python 3.6 uses ROUND_HALF_UP. --

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: You may find it easier to start with a patch for 3.5 which is the only time sensitive task. I'll be happy to review your code in whatever form you find it easier to submit, but I believe in hg it is easier to forward port than to backport. --

[issue25011] Smarter rl complete: hide private and special names

2015-09-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: When press tabulation just after the dot, the output is too long. It contains all attributes, most of them are dunder names. >>> int. int.__abs__(int.__doc__ int.__int__( int.__pos__(int.__round__(

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> haypo ___ Python tracker ___ ___

[issue25008] Deprecate smtpd

2015-09-05 Thread Brett Cannon
Brett Cannon added the comment: I should mention one of the motivations behind deprecating smtpd is that no one should be using that module to run an SMTP server and it doesn't provide utility like http.server does and so we probably should drop the code to prevent anyone accidentally using

[issue25010] minor typo in PCBuild readme.txt

2015-09-05 Thread Shaun Walbridge
New submission from Shaun Walbridge: A minor documentation fix. Currently, the top-level PCBuild readme.txt mentions in the final section 'Your Own Extension DLLs' that the example project is located in ../PC/example/, but the example location is ../PC/example_nt/. -- assignee:

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-05 Thread Steve Dower
Steve Dower added the comment: Patch for backing out #8232's changes. -- Added file: http://bugs.python.org/file40376/25005_2.patch ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nick, Paul, Marcus, can any of you answer Saimadhav's question 3 messages up? -- nosy: +Marcus.Smith, ncoghlan, paul.moore title: IDLE to provide menu options for using PIP -> IDLE to provide menu link to PIP gui. versions: +Python 3.6

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Mark Lawrence
Mark Lawrence added the comment: Can we use ideas from https://sites.google.com/site/pydatalog/python/pip-for-windows ? -- ___ Python tracker ___

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Mark Shannon
Mark Shannon added the comment: Why has the change allowing the __class__ attribute of modules been merged? It is not necessary (as I have stated repeatedly) and not known to be safe. -- ___ Python tracker

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Mark Shannon
Mark Shannon added the comment: Well, there are important reasons why not to make the __class__ attribute of modules mutable. First of all, there is no valid rationale. How do know for sure that modifying the class of the sys or builtins module is not going to cause much the same problems

[issue24305] The new import system makes it inconvenient to correctly issue a deprecation warning for a module

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: Okay. Right now creating server-side clones is broken. So I have repurposed one of my existing (old, dead) server-side clones for testing this. It's called "ssh://h...@hg.python.org/larry/path_error2". I just fired off this change on all the "custom"

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > It doesn't matter who's consuming the rounding of a binary > float to decimal microseconds That is true, but what does matter is who is producing the incoming floats. Consider an extreme case of a timer that ticks twice a microsecond and gives you

Re: .py to .html generation

2015-09-05 Thread injectnique
On Thursday, September 3, 2015 at 1:04:45 AM UTC-4, uday3p...@gmail.com wrote: > Hi friends! > > Can some one help me with the best module and/or its tutorial, to generate > html reports for python scripts? > > I tried pyreport and sphc; but, i am getting errors.

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread eryksun
eryksun added the comment: > Rather than debating about how various platforms handle malformed > format strings for strftime(), and whether or not they crash, we > should simply prevent the native strftime() function from seeing > them in the first place. Of course the check needs to be

Re: Need Help w. PIP!

2015-09-05 Thread Steve Burrus
*Boy "eryksun" I can certsainly tell that you are quite a technically - minded person! All that matters to me is that I can simply type "pip" at the command prompt without any problems. Well another [lesser] concern is that I can't use the regular Windows 10 instead of this Build 10074 of it.* *

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-05 Thread David Barnett
New submission from David Barnett: There doesn't seem to be any helper in pathlib to expand a relative path to an absolute path *without* resolving symlinks. For example, if I want to convert pathlib.Path('some/path') to pathlib.Path('/full/path/to/some/path') where some/path is a symlink,

[issue25008] Deprecate smtpd

2015-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Bringing in Eric V Smith's comment in http://bugs.python.org/issue25002#msg249873 : ''' 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

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: Yea ``pip.main(args)`` won't change. I'm not sure how well parts of pip will handle being in a persistent-ish process, but the API itself will work. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pip's rather extensive command-line API can also be used as a code API. The signature of pip.main is (args=None), where args = sys.argv[1:] if not passed. I presume this will not change. Reusing the command-list API had the advantage of reusing the existing

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Mark Shannon
Mark Shannon added the comment: Guido, I just think this change is misguided. The original rationale for the change just doesn't hold water. If you want the change anyway, then fine, but this seems an odd way to introduce it. -- status: closed -> open

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are right. While multiple info requests work, I found a test that fails. 'list' showed that I had Pillow 2.7.0. 'install -U Pillow' updated to 2.9.0'. 'list' again still showed 2.7.0. 'show Pillow' then failed because 2.7.0 could not be found. After an

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Steve Dower
Steve Dower added the comment: I applied the AIX fix to 3.4 (introduced in #19634). Python 3.2 and 3.3 aren't affected. -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread John Leitch
John Leitch added the comment: Is there a way to see what style guidelines have been violated? The only thing I can think of is the curly braces in the Windows check, but I was following the conventions of the surrounding code. -- ___ Python

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-05 Thread Tim Peters
Tim Peters added the comment: The longobject.c warnings are almost certainly unrelated to the test_re crash. If shifting right twice (adding parens for clarity): (LONG_MAX >> PyLong_SHIFT) >> PyLong_SHIFT. squashes the warnings, that would be a substantially clearer way to express the

[issue25008] Deprecate smtpd

2015-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I would like to see the module live on (after conversion to asyncio). Doug Hellman's example at https://pymotw.com/2/smtpd/ makes for a nice demonstration of Python's capabilities. -- ___ Python tracker

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Nathaniel Smith
Nathaniel Smith added the comment: I didn't want to get further into the weeds of debating basic design points on the tracker while blocking rc3, but, for the record -- the proposal in msg249504 that one could keep the namespace of an old and new module object effectively in sync by defining

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: Pull request accepted. Please forward-merge. Thanks! -- ___ Python tracker ___

Re: Program in or into (was Python handles globals badly)

2015-09-05 Thread Steven D'Aprano
On Sat, 5 Sep 2015 01:18 pm, Rustom Mody wrote: > Here's mergesort written in various languages > http://rosettacode.org/wiki/Sorting_algorithms/Merge_sort > > You could look at the java if you like but I think C# takes the cake. > And of course also there's the python > > Now the thought

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Eric Snow
Eric Snow added the comment: While I recognize the practicality/purity argument here, I somewhat agree with Mark. Assigning to module.__class__ makes sense for the use case, but it does open up a number of negative possible side effects (e.g. changing sys.__class__). Ideally it would be

Re: Program in or into (was Python handles globals badly)

2015-09-05 Thread MRAB
On 2015-09-06 03:35, Steven D'Aprano wrote: On Sat, 5 Sep 2015 01:18 pm, Rustom Mody wrote: Here's mergesort written in various languages http://rosettacode.org/wiki/Sorting_algorithms/Merge_sort You could look at the java if you like but I think C# takes the cake. And of course also there's

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: The tests from this patch fail on Linux. - First: There is no trailing % test on Linux, and glibc's strftime() happily ignores a trailing %, so no ValueError is raised. Python should do either one or the other of the following: 1) Python should enforce

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Mark Shannon
Mark Shannon added the comment: Oh, and has anyone considered the potential impact this might have on Jython or PyPy? Modules are quite fundamental to the way that Python works. -- ___ Python tracker

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: pathlib.Path.cwd() / pathlib.Path('some/path') -- nosy: +pitrou, serhiy.storchaka ___ Python tracker ___

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Guido van Rossum
Guido van Rossum added the comment: Mark, please calm down. Modules are incredibly simple objects compared to classes -- and yet you can change the __class__ of a class. You can also directly modify the __dict__ of a module. You can shoot yourself in the foot phenomenally this way, but that's

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: There is a "site" config file which works for all installs on that particular machine, there is not a per Python configuration file, though I don't see why we couldn't add one. -- ___ Python tracker

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26c4db1a0aea by Terry Jan Reedy in branch '2.7': Issue #16180: Exit pdb if file has syntax error, instead of trapping user https://hg.python.org/cpython/rev/26c4db1a0aea New changeset 2d4aac2ab253 by Terry Jan Reedy in branch '3.4': Issue #16180:

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: Yea, we'd be willing to fix things where we can. I think the biggest problem you'll run into is probably going to be pkg_resources and it's module scoped cache of the sys.path and what items are installed. -- ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The persistence issue is why I tried several calls before posting above. I am hoping that none of your command functions leave pip unusable, or if they do, you would be willing to have them fixed. Attached is promised wrapper. -- Added file:

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-09-05 Thread Larry Hastings
Changes by Larry Hastings : -- assignee: -> ncoghlan resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09b62202d9b7 by Steve Dower in branch '3.5': Issue #24917: time_strftime() Buffer Over-read. Patch by John Leitch. https://hg.python.org/cpython/rev/09b62202d9b7 New changeset 8b81b7ad2d0a by Steve Dower in branch '3.5': Issue #24917: Moves NEWS

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: Pull request accepted. I had to do it manually, as I got a Misc/NEWS merge conflict. But from where I'm sitting it looks like Bitbucket understands the pull request was accepted and merged. Please forward-merge. Thanks! --

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27cc5cce0292 by Guido van Rossum in branch '3.5': Issue #24912: Prevent __class__ assignment to immutable built-in objects. https://hg.python.org/cpython/rev/27cc5cce0292 New changeset 1c55f169f4ee by Guido van Rossum in branch '3.5': Issue #24912:

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Steve Dower
Steve Dower added the comment: I actually made the default per-user, specifically for cases like this. With a default install that the current user has done, pip does not need to be run as admin. If the system administrator has installed Python for all users, then --user needs to be

[issue25008] Deprecate smtpd

2015-09-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Removing smtpd would definitely be a hardship for me right now, probably for obvious reasons. I use it in testing frameworks, and even wrote a library called lazr.smtptest that is built around smtpd. In Mailman, we have an LMTP server built on smtpd that

Re: Program in or into (was Python handles globals badly)

2015-09-05 Thread Rustom Mody
On Sunday, September 6, 2015 at 8:05:28 AM UTC+5:30, Steven D'Aprano wrote: > On Sat, 5 Sep 2015 01:18 pm, Rustom Mody wrote: > > > Here's mergesort written in various languages > > http://rosettacode.org/wiki/Sorting_algorithms/Merge_sort > > > > You could look at the java if you like but I

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Hi Terry, Unfortunately, I had to perform a system reinstall, which wiped out the patch. I dont mind doing it again, but it might take until the weekend to complete. Also, now my questions from earlier are answered, it should be easier. --

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: The starting curly brace goes on the same line as the statement starting the block. Keywords followed by a left parenthesis get a space between the keyword and the parenthesis. It's a small matter, I'm really much more interested in reconciling the behavior

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Steve Dower
Steve Dower added the comment: I'll fix the PEP 7 stuff (mostly inherited). MSVC can also handle '%#' and '%' as format strings (producing '' in both cases). If that matches libc behaviour, I see no reason to raise a ValueError here apart from consistency with previous Python releases. If

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Larry Hastings
Larry Hastings added the comment: Sorry, maybe you inherited those violations. I was in a hurry and not in a charitable frame of mind. -- ___ Python tracker

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread Steve Dower
Steve Dower added the comment: Whoops, must have done a bad copy-paste to get that DECREF in there (I couldn't apply the patch directly because it didn't come from an HG repo, so I had to do it by hand). MSVC seems somewhat inconsistent about its response: >>> strftime('aaa%') '' >>>

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread John Leitch
John Leitch added the comment: If it's so wildly inconsistent, it's my opinion that Python should perform its own validation to achieve better cross-platform support. The alternative is playing a never ending game of whack-a-mole, or just accepting that format strings may cause exceptions in

Re: Program in or into (was Python handles globals badly)

2015-09-05 Thread random832
Steven D'Aprano writes: > That depends. Is the example C# code idiomatic for the language? Not in the least. My first clue was Int32 - nobody actually uses those names. > Or was it > written by somebody ignorant of C#, and consequently is a poor example of > badly-written

[issue24917] time_strftime() Buffer Over-read

2015-09-05 Thread John Leitch
John Leitch added the comment: Yikes--your comment prompted me to look at the check-in, and it seems my patch wasn't properly applied. The curly braces got tweaked, which is minor as you stated, but more importantly the AIX code should not decref format. That could introduce problems bigger

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-05 Thread eryksun
eryksun added the comment: There's a public method that's almost what you want: >>> print(pathlib.Path.absolute.__doc__) Return an absolute version of this path. This function works even if the path doesn't point to anything. No normalization is done, i.e. all

[issue25008] Deprecate smtpd

2015-09-05 Thread Brett Cannon
New submission from Brett Cannon: As mentioned in passing in issue #25002, perhaps smtpd should be deprecated or at least be updated to use asyncio. -- components: Library (Lib) messages: 249911 nosy: brett.cannon priority: normal severity: normal stage: needs patch status: open title:

[issue25002] Deprecate asyncore/asynchat

2015-09-05 Thread Brett Cannon
Brett Cannon added the comment: I opened http://bugs.python.org/issue25008 to discuss deprecating smtpd since this issue is about asyncore/asynchat. -- ___ Python tracker

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-05 Thread Steve Dower
Steve Dower added the comment: Here's an alternative to backing out the change, and it's simpler than I expected when I said it would be too much for 3.5.0. We add an 'arguments' parameter to os.startfile and use that instead of subprocess.call(shell=True). The underlying ShellExecute call

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: pip doesn't really support being called as an API, there's been requests for it before but nobody has yet come forward to specify what parts in particular they need. The practical effect of this is that there's no backwards compatibility promises for anything

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +steve.dower ___ Python tracker ___ ___