[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-04-15 Thread Larry Hastings
New submission from Larry Hastings: Matt Mackall brought this over to me today. If list l has one million pairs and you do dict(l) it creates the dict, then resizes it to a million elements, then starts adding name/value pairs. But since it's sized to a million elements, it gets beyond its

[issue22980] C extension naming doesn't take bitness into account

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 948745d0d9cf by doko in branch 'default': #22980: fix triplet configure test for powerpc-linux-gnu https://hg.python.org/cpython/rev/948745d0d9cf -- ___ Python tracker rep...@bugs.python.org

[issue22137] Test imaplib API on all methods specified in RFC 3501

2015-04-15 Thread Maciej Szulik
Maciej Szulik added the comment: Milan one more thing to change in your patch, in all your TCs you're modifying client state, I mean this part: # lets cheat a bit here: client.state = 'SELECTED' It's OK to do that on the mocked server, but this is not acceptable doing on the tested library.

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-15 Thread Steve Dower
Steve Dower added the comment: Arnon has signed the CLA at PyCon, it just hasn't been processed yet. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4254

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 132b5376bf34 by Steve Dower in branch 'default': Issue #4254: Adds _curses.update_lines_cols() Patch by Arnon Yaari https://hg.python.org/cpython/rev/132b5376bf34 -- nosy: +python-dev ___ Python tracker

Re: ctypes: using .value or .value() doesn't work for c_long

2015-04-15 Thread ethansmithoakland
Thanks so much! Btw (face-palm) Dave, I know dir(), I probably should have used it here, I just read that the return type was a c_long, and I didn't know that LP_c_long was a pointer. Thanks to you both! -- https://mail.python.org/mailman/listinfo/python-list

Re: xlwt 1.0.0 released!

2015-04-15 Thread Gary Herron
On 04/15/2015 02:51 PM, Chris Withers wrote: Hi All, I'm pleased to announce the release of xlwt 1.0.0. What a curiously incomplete announcement. Could you tell us what xlwt is? I see no hint here. Gary Herron This release contains the following: - Python 3 support. - An initial

[issue2292] Missing *-unpacking generalizations

2015-04-15 Thread Neil Girdhar
Changes by Neil Girdhar mistersh...@gmail.com: Added file: http://bugs.python.org/file39059/starunpack41.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue23883] __all__ lists are incomplete

2015-04-15 Thread Martin Panter
Martin Panter added the comment: Regarding tarfile: Two of the extra errors are documented, so I agree they should be added: * tarfile.StreamError * tarfile.ExtractError However I’m not so sure about main(), TarIter, and the HeaderError subclasses. They aren’t mentioned in the documentation.

[issue23703] urljoin() with no directory segments duplicates filename

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc0e79387a3a by Berker Peksag in branch 'default': Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a. https://hg.python.org/cpython/rev/fc0e79387a3a -- nosy: +python-dev ___ Python

[issue18162] Add index attribute to IndexError

2015-04-15 Thread Ofer Schwarz
Changes by Ofer Schwarz os.uran...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file39055/indexerror.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18162 ___

[issue18162] Add index attribute to IndexError

2015-04-15 Thread Ofer Schwarz
Changes by Ofer Schwarz os.uran...@gmail.com: Added file: http://bugs.python.org/file39056/indexerror.tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18162 ___

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Now the review button appears for the big patch. Lets see if another submission makes it appear for the smaller version. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17445

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-15 Thread Augie Fackler
Augie Fackler added the comment: Changes to 3.4 aren't going to help Mercurial. Given that bytes formatting is new in 3.5, I won't be attempting a port that supports a version of Python 3 any older than 3.5. At this point, just a difflib.diff_bytes method in 3.5 would be sufficient to satisfy

[issue23970] Update distutils.msvccompiler for VC14

2015-04-15 Thread Steve Dower
New submission from Steve Dower: Because of the compiler change, we need to rework the detection of MSVC for Python 3.5. I took the opportunity to clean up the entire module and remove msvc9compiler, and updated the tests. -- assignee: steve.dower components: Windows files:

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tried the [Create Patch] button. Two problems: the result is about 90% concerned with other issues; it is not reviewable on Rietveld. I will unlink it and upload a cut-down version. Wtiht the test changes suggested by Berker, I agree that it is time to

[issue23703] urljoin() with no directory segments duplicates filename

2015-04-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23703 ___

Re: xlwt 1.0.0 released!

2015-04-15 Thread Tim Chase
On 2015-04-15 15:21, Gary Herron wrote: On 04/15/2015 02:51 PM, Chris Withers wrote: I'm pleased to announce the release of xlwt 1.0.0. What a curiously incomplete announcement. Could you tell us what xlwt is? I see no hint here. Heh, this and its sibling package, xlrd, are Python

[issue18128] pygettext: non-standard timestamp format in POT-Creation-Date

2015-04-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @rdm: I'm pretty sure you're right about nobody noticing. :) Make it so! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18128 ___

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-15 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Added file: http://bugs.python.org/file39053/13161c1d9c5f.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17445 ___

[issue22189] collections.UserString missing some str methods

2015-04-15 Thread Joe Jevnik
Joe Jevnik added the comment: I have added a patch to add these to UserString. I also wrote a test case that would check the UserString, UserList, and UserDict's methods to make sure that new methods to str, list, or dict (or the removal of one of those methods from the User* version) will

[issue18162] Add index attribute to IndexError

2015-04-15 Thread Ofer Schwarz
Changes by Ofer Schwarz os.uran...@gmail.com: Added file: http://bugs.python.org/file39060/indexerror_all.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18162 ___

[issue7159] Urllib2 authentication memory.

2015-04-15 Thread Akshit Khurana
Akshit Khurana added the comment: Updated patch with review changes -- Added file: http://bugs.python.org/file39062/auth10.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7159 ___

[issue6818] remove/delete method for zipfile/tarfile objects

2015-04-15 Thread Dave Sawyer
Dave Sawyer added the comment: The zipfile way to delete or rename would be to just change the index. It really doesn't want to be re-written as it is designed to span disks. Many old versions of files can be scattered within the zip. In addition self-extracting zip files will have executable

Re: New to Python - block grouping (spaces)

2015-04-15 Thread Paul Rubin
Blake McBride blake1...@gmail.com writes: probably a dozen languages under my belt, I very strongly disagree with the notion of using white space to delimit blocks. I suggest giving it a try before deciding something like that. I don't guarantee you'll come around, but a lot of people decide

[issue23969] please set a SOABI for MacOSX

2015-04-15 Thread Ned Deily
Ned Deily added the comment: what about iOS? isn't __APPLE__ there defined too? It is but we currently don't have any iOS-specific checks snywhere in CPython. I have an additional patch to handle iOS here but I didn't want to break builds until adding full support for iOS as part of

[issue23670] Modifications to support iOS as a cross-compilation target

2015-04-15 Thread Matthias Klose
Matthias Klose added the comment: not reviewing everything, but - libffi_ios* will be bitrot. I understand that you'll need an unreleased version, however I would much prefer that any additional patches are added in the repo, and maybe then patching libffi from the iOS build

[issue23670] Modifications to support iOS as a cross-compilation target

2015-04-15 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Hi Matthias: * The libffi situation on iOS is much the same as it is on OS/X - it needs to be pre-generated. This can't be driven by the existing build system - libffi's Makefile requires a separate pre-generation step. There's certainly potential for

[issue23883] __all__ lists are incomplete

2015-04-15 Thread Joel Taddei
Joel Taddei added the comment: Thanks for the feedback. I was unsure how to proceed with the undocumented items that seemed to be categorized as exported. Thanks for catching ENCODING *_FORMAT. -- Added file: http://bugs.python.org/file39064/Issue23883_tarfile_all.patch

[issue23935] Clean up Clinic's type expressions of buffers

2015-04-15 Thread Larry Hastings
Larry Hastings added the comment: While cleaning this up I noticed that es# and et# should both require nullable. Fixed that too. I sure hope it's all correct now! -- resolution: - fixed stage: patch review - resolved status: open - closed ___

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2015-04-15 Thread Ethan Furman
Ethan Furman added the comment: Considering how rare (hopefully!) files of that size are, I wouldn't be adverse to a won't fix resolution. -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23354

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2015-04-15 Thread Ethan Furman
Ethan Furman added the comment: Considering how rare (hopefully!) files of that size are, I wouldn't be adverse to a won't fix resolution. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23354

[issue23883] __all__ lists are incomplete

2015-04-15 Thread Joel Taddei
Joel Taddei added the comment: Put HeaderError back in and removed the extra XHDTYPE. We can get more input on the type constants as well as the undocumented but exported items. Could just be cleared up with some edits to documentation. -- Added file:

Re: xlwt 1.0.0 released!

2015-04-15 Thread Mirage Web Studio
On 2015-04-16 4:55 AM, Tim Chase wrote: On 2015-04-15 15:21, Gary Herron wrote: On 04/15/2015 02:51 PM, Chris Withers wrote: I'm pleased to announce the release of xlwt 1.0.0. What a curiously incomplete announcement. Could you tell us what xlwt is? I see no hint here. Heh, this and its

[issue1346874] httplib simply ignores CONTINUE

2015-04-15 Thread Martin Panter
Martin Panter added the comment: This seems more like a new feature than a bug fix to me. Currently the behaviour is the same whether “Expect: 100-continue” is requested or not. According to https://tools.ietf.org/html/rfc7231#page-35, the client does not have to wait any specific length of

[issue23740] http.client request and send method have some datatype issues

2015-04-15 Thread Martin Panter
Martin Panter added the comment: The priority of file-like objects versus bytes-like and iterable objects should be well defined. See Issue 5038: mmap objects seem to satisfy all three interfaces, but the result may be different depending on the file position. --

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-04-15 Thread Martin Panter
Martin Panter added the comment: New patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___ ___ Python-bugs-list mailing

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-04-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23971 ___ ___

[issue6818] remove/delete method for zipfile/tarfile objects

2015-04-15 Thread Dave Sawyer
Dave Sawyer added the comment: I can add some more tests to bring up the coverage, but wanted to get reviewer opinion on the direction of this before doing more work. -- hgrepos: +305 Added file: http://bugs.python.org/file39063/zipfile_filter.patch

[issue5038] urrlib2/httplib doesn't reset file position between requests

2015-04-15 Thread Martin Panter
Martin Panter added the comment: Actually, I do not think any “Expect: 100-continue” headers are explicitly sent by the Python standard library. The Python client does not support waiting for a “100 Continue” response; see Issue 1346874. There is Issue 23740 opened about fixing or clarifying

Re: New to Python - block grouping (spaces)

2015-04-15 Thread Chris Angelico
On Thu, Apr 16, 2015 at 2:07 PM, Blake McBride blake1...@gmail.com wrote: I like a lot of what I've seen in Python, however, after 35 years and probably a dozen languages under my belt, I very strongly disagree with the notion of using white space to delimit blocks. Not wanting to beat what

Re: New to Python - block grouping (spaces)

2015-04-15 Thread Steven D'Aprano
On Thursday 16 April 2015 14:07, Blake McBride wrote: Greetings, I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question. I like a lot of what I've seen in Python, however, after 35 years and probably a

[issue23903] Generate PC/python3.def by scraping headers

2015-04-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23903 ___

[issue22980] C extension naming doesn't take bitness into account

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32c24eec035f by Ned Deily in branch 'default': Issues #22980, 23969: For OS X, use PEP 3149-style file names for extension https://hg.python.org/cpython/rev/32c24eec035f -- ___ Python tracker

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-15 Thread Christie
Christie added the comment: @r.david.murray and @flipmcf: I've audited all test modules using sys.executable for a starting point, and these tests look like they could benefit from helper methods to invoke python (probably the ones in script_helper, but we may want to create others if the

[issue23883] __all__ lists are incomplete

2015-04-15 Thread Joel Taddei
Changes by Joel Taddei jtad...@gmail.com: Removed file: http://bugs.python.org/file39064/Issue23883_tarfile_all.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23883 ___

New to Python - block grouping (spaces)

2015-04-15 Thread Blake McBride
Greetings, I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question. I like a lot of what I've seen in Python, however, after 35 years and probably a dozen languages under my belt, I very strongly disagree with

[issue23883] __all__ lists are incomplete

2015-04-15 Thread Martin Panter
Martin Panter added the comment: Oh I see, TarIter is listed underneath a comment saying “Exported Classes”, and main() is listed underneath “exported functions”. If they are indeed meant to be exported, they should probably also be documented. Otherwise, maybe we can just add another comment

[issue23969] please set a SOABI for MacOSX

2015-04-15 Thread Matthias Klose
Matthias Klose added the comment: what about iOS? isn't __APPLE__ there defined too? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23969 ___

[issue23883] __all__ lists are incomplete

2015-04-15 Thread Joel Taddei
Changes by Joel Taddei jtad...@gmail.com: Removed file: http://bugs.python.org/file39051/Issue23883_tarfile_all.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23883 ___

[issue23935] Clean up Clinic's type expressions of buffers

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f74452a11e5 by Larry Hastings in branch 'default': Issue #23935: Argument Clinic's understanding of format units https://hg.python.org/cpython/rev/4f74452a11e5 -- nosy: +python-dev ___ Python tracker

Re: find all multiplicands and multipliers for a number

2015-04-15 Thread Rustom Mody
On Wednesday, April 15, 2015 at 8:07:31 AM UTC+5:30, Paul Rubin wrote: Steven D'Aprano writes: primes = sieve [2..] sieve (p : xs) = p : sieve [x | x - xs, x `mod` p 0] In her paper http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf, Melissa O'Neill calls this the Sleight on

[issue6818] remove/delete method for zipfile/tarfile objects

2015-04-15 Thread Christian Heimes
Christian Heimes added the comment: Around PyCon it might take a little longer than a week. IIRC Ewa does the paper work. She is also on the organizing committee of PyCon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818

[issue23970] Update distutils.msvccompiler for VC14

2015-04-15 Thread Tim Golden
Tim Golden added the comment: Adding Paul Moore as he's essentially the intersection between distutils Windows -- nosy: +paul.moore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23970 ___

Re: ctypes: using .value or .value() doesn't work for c_long

2015-04-15 Thread Dave Angel
On 04/15/2015 03:48 PM, IronManMark20 wrote: I am using ctypes to call a few windll funcions. One of them returns a c_long object. I want to know what number the function returns. Problem is, when I try foo.value , it gives me this: AttributeError: LP_c_long object has no attribute value.

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-04-15 Thread Alex Lord
Alex Lord added the comment: I've added a set of tests which test the insert or [algorithm] branch of sqlite. It took some getting used to python.sqlite3's transaction model but I think I have a much better understanding now. -- keywords: +patch Added file:

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-04-15 Thread Alex Lord
Changes by Alex Lord lostdogs...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21250 ___ ___

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e55cc0834e9c by R David Murray in branch 'default': #23949: Improve tuple unpacking error messages. https://hg.python.org/cpython/rev/e55cc0834e9c -- nosy: +python-dev ___ Python tracker

[issue18128] pygettext: non-standard timestamp format in POT-Creation-Date

2015-04-15 Thread R. David Murray
R. David Murray added the comment: Barry, would you be OK with just applying this to 3.5? We can add a porting note to whatsnew. My guess, though, is that no one is going to notice. -- nosy: +r.david.murray ___ Python tracker

[issue18128] pygettext: non-standard timestamp format in POT-Creation-Date

2015-04-15 Thread R. David Murray
R. David Murray added the comment: Oh, I forgot to say that the patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18128 ___

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-15 Thread Steve Dower
Steve Dower added the comment: Arnon - we'll need you to fill out https://www.python.org/psf/contrib/contrib-form/ before we can merge this patch in. (The dev guide isn't clear on whether trivial patches are okay, but the advice I was given is that we should have a CLA for everything.)

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-15 Thread Michael McFadden
Michael McFadden added the comment: namespaces are a honkin' great idea I don't have enough information to say that 'script_helper' is the right name for the namespace, tho. -- ___ Python tracker rep...@bugs.python.org

[issue16405] Explain how to set up the whitespace commit hook locally

2015-04-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch, Carol. (I made a few minor changes before committing: to the file paths and to make it clearer that one should choose one of the hooks.) -- resolution: - fixed stage: patch review - resolved status: open - closed

[issue23935] Clean up Clinic's type expressions of buffers

2015-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Many people will see Argument Clinic syntax in declarations in C files. My recent patches (for _io, _ssl and _codecs modules) adds many types=. But I agree that there are many reasons to make this change. The patch LGTM. You can factorize it more if you

[issue16405] Explain how to set up the whitespace commit hook locally

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b494a25915a9 by Ned Deily in branch 'default': Issue #16405: Explain how to set up the whitespace commit hook locally. https://hg.python.org/devguide/rev/b494a25915a9 -- nosy: +python-dev ___ Python

[issue22198] Odd floor-division corner case

2015-04-15 Thread Petr Viktorin
Petr Viktorin added the comment: ping? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22198 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23320] devguide should mention rules about paragraph reflow in the documentation

2015-04-15 Thread Carol Willing
Carol Willing added the comment: https://bugs.python.org/issue18041 also provides related insights. Ideally, a patch for this issue should address and close both issues. -- nosy: +willingc ___ Python tracker rep...@bugs.python.org

Re: error with Firefox Binary 'The browser appears to have exited'

2015-04-15 Thread me
Have you tried specifying the location of Firefox binary explicitly ? from selenium.webdriver.firefox.firefox_binary import FirefoxBinary binary = FirefoxBinary('C:\Users\aplusk\Documents\FirefoxPortable\App\Firefox\\firefox.exe') browser = webdriver.Firefox(firefox_binary=binary) --

[issue18041] mention issues with code churn in the devguide

2015-04-15 Thread Carol Willing
Carol Willing added the comment: https://bugs.python.org/issue23320 provides more recent input on reflow of paragraphs. This newer issue should be consulted when creating a patch for this issue. Ideally, both issues should be able to be closed with the same patch. -- nosy: +willingc

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-15 Thread STINNER Victor
STINNER Victor added the comment: Can you please split the changes to skip tests on non-Linux platforms, and changes for OpenBSD/AIX please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20669

[issue13472] devguide doesn’t list all build dependencies

2015-04-15 Thread Carol Willing
Carol Willing added the comment: I agree with Jeff's recommendation that this issue is resolved by content already in the devguide's Build Dependencies[1]. Jeff, Thanks for helping close an old issue. [1] https://docs.python.org/devguide/setup.html#build-dependencies -- resolution:

[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-04-15 Thread Carol Willing
Changes by Carol Willing willi...@willingconsulting.com: -- keywords: +easy nosy: +willingc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10708 ___

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-04-15 Thread Martin Panter
Martin Panter added the comment: To be consistent, I think the documentation should mark up the parameters with asterisks: *quote_via*. Also, you lost the markup for :func:`quote_plus`. The test cases should probably use self.assertEqual(). The “assert” statement is not appropriate for

[issue21327] socket.type value changes after using settimeout()

2015-04-15 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21327 ___ ___

<    1   2