[issue21490] Add Py_ABS and Py_STINGIFY macros

2014-05-13 Thread STINNER Victor
New submission from STINNER Victor: Attached patches replaces duplicated C macros with two new shared macros: Py_ABS(x) and Py_STRINGIFY(x). I didn't touch PC/pyconfig.h because it uses 3 macros to stringify instead of just 2 and I don't know why: --- /* We want COMPILER to expand to a string

[issue21412] Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc

2014-05-13 Thread STINNER Victor
Changes by STINNER Victor : -- title: core dump in PyThreadState_Get when built --with-pymalloc -> Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc ___ Python tracker __

[issue21412] Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: "This is not a SPARC-specific issue; the exact same failure occurs on x86." Ah ok, good to know. To me, it looks like a compiler issue. Did you try Stefan's advices in issue #15963? You may try to disable compiler optimizations to see if you get the same beha

[issue21455] add default backlog to socket.listen()

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: Hum ok, thanks for your explanation Charles-François. socket_listen-1.diff looks good to me. -- ___ Python tracker ___

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: We can maybe modify the compiler to use the line number 1 if the line information is missing? -- nosy: +benjamin.peterson ___ Python tracker __

[issue19775] Provide samefile() on Path objects

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, it seems I have let this issue slip. I will update the patch and commit it soon! -- ___ Python tracker ___ _

[issue21491] race condition in SocketServer.py ForkingMixIn collect_children

2014-05-13 Thread Ids van der Molen
New submission from Ids van der Molen: collect_children routine in SocketServer.py contains two possible race conditions. First one is in while loop "while len(self.active_children) >= self.max_children:". If status of child is collected outside of Socket server (for example in signal handler

[issue19775] Provide samefile() on Path objects

2014-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 197ac5d79456 by Antoine Pitrou in branch 'default': Issue #19775: Add a samefile() method to pathlib Path objects. http://hg.python.org/cpython/rev/197ac5d79456 -- nosy: +python-dev ___ Python tracker

[issue21490] Add Py_ABS and Py_STRINGIFY macros

2014-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Add Py_ABS and Py_STINGIFY macros -> Add Py_ABS and Py_STRINGIFY macros ___ Python tracker ___ ___

[issue21088] curses addch() argument position reverses in Python3.4.0

2014-05-13 Thread Larry Hastings
Changes by Larry Hastings : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue19775] Provide samefile() on Path objects

2014-05-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue21491] race condition in SocketServer.py ForkingMixIn collect_children

2014-05-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21470] Better seeding for the random module

2014-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: neologix: According to man rand(3ssl), OpenSSL uses an internal state of 1023 bytes for the RNG. You only see it reading 32 bytes from /dev/urandom in the strace because it has already loaded 1024 bytes from the RNG state file ~/.rng before adding another

[issue21483] Skip os.utime() test on NFS?

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or we could simply catch the EINVAL failure and then skip the test. I suppose the filesystem doesn't support timestamps > 2**32 ? -- nosy: +pitrou ___ Python tracker __

[issue21483] Skip os.utime() test on NFS?

2014-05-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21470] Better seeding for the random module

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is ~/.rnd any kind of serious? It hasn't been modified since two weeks on my system (which is rebooted every day). -- ___ Python tracker ___ __

[issue21492] email.header.decode_header sometimes returns bytes, sometimes str

2014-05-13 Thread Jim Minter
New submission from Jim Minter: Python 3.3.2 (default, Mar 5 2014, 08:21:05) [GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import email.header >>> email.header.decode_header("foo") [('foo', None)] >>> email.header.deco

[issue21483] Skip os.utime() test on NFS?

2014-05-13 Thread Larry Hastings
Larry Hastings added the comment: Antoine's plan sounds good to me. And, is it true that NFS only supports four-byte timestamps? -- ___ Python tracker ___ _

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue19656. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17756] test_syntax_error fails when run in the installed location

2014-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20db5e9086d4 by doko in branch '3.4': - Issue #17756: Fix test_code test when run from the installed location. http://hg.python.org/cpython/rev/20db5e9086d4 New changeset 8885fc2e92b3 by doko in branch 'default': Merge from 3.4: http://hg.python.org

[issue17756] test_syntax_error fails when run in the installed location

2014-05-13 Thread Matthias Klose
Matthias Klose added the comment: not yet closing, to see if there are some stream buffering issues in mock -- ___ Python tracker ___

[issue21470] Better seeding for the random module

2014-05-13 Thread Charles-François Natali
Charles-François Natali added the comment: > According to man rand(3ssl), OpenSSL uses an internal state of 1023 bytes for > the RNG. > > You only see it reading 32 bytes from /dev/urandom in the strace because it > has already loaded 1024 bytes from the RNG state file ~/.rng before adding > a

[issue21470] Better seeding for the random module

2014-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 13.05.2014 11:06, Antoine Pitrou wrote: > > Is ~/.rnd any kind of serious? It hasn't been modified since two weeks on my > system (which is rebooted every day). The file is apparently only updated if you use one the OpenSSL commands which needs random d

[issue21430] Document ssl.pending()

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, SSLSocket.pending() was added in b59825d9db8f with the commit message "get SSL support to work again". It isn't used anywhere in the stdlib. It isn't used by asyncio, Tornado or Twisted. It isn't necessary to write non-blocking SSL applications

[issue21493] Add test for ntpath.expanduser

2014-05-13 Thread Claudiu.Popa
New submission from Claudiu.Popa: Hello. This patch adds a test for ntpath.expanduser, which was missing. Also, it increases the test coverage for ntpath.py from 68% to 75%. -- components: Tests files: expanduser.patch keywords: patch messages: 218427 nosy: Claudiu.Popa priority: normal

[issue20977] pyflakes: undefined "ctype" in 2 except blocks in the email module

2014-05-13 Thread Rose Ames
Rose Ames added the comment: This is my first attempt at contributing to python & I'd really appreciate some feedback :). Should I have added a test to demonstrate the bug before trying to fix it? -- ___ Python tracker

[issue21484] More clarity needed about difference between "x += e" and "x = x + e"

2014-05-13 Thread Feliks
Feliks added the comment: Well, there is some anecdotal evidence. ;-) I happen to have a lot of experience with a lot of programming languages, and I was bitten by this. Let's put it like this: it is quite easy to overlook the significance of the sentence in question. One looks at the paragr

[issue19656] Add Py3k warning for non-ascii bytes literals

2014-05-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21488] codecs.encode/decode documentation inconsistency

2014-05-13 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +patch nosy: +berker.peksag, ncoghlan stage: -> patch review type: resource usage -> behavior versions: +Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35240/issue21488.diff ___ Python tracker <

[issue21430] Document ssl.pending()

2014-05-13 Thread Alexey Gorshkov
Alexey Gorshkov added the comment: Ok. As https://docs.python.org/dev/library/ssl.html#notes-on-non-blocking-sockets says: "Calling select() tells you that the OS-level socket can be read from (or written to)", and here is situation: len(select([ssl_socket],[],[], 0.2)[0]) returns 0, but ssl

[issue21483] Skip os.utime() test on NFS?

2014-05-13 Thread Skip Montanaro
Skip Montanaro added the comment: > Or we could simply catch the EINVAL failure and then skip the test. > I suppose the filesystem doesn't support timestamps > 2**32 ? Just in that one test? If I passed -1 that would probably also generate EINVAL (haven't tested). I'll have to check with the ad

[issue21430] Document ssl.pending()

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Alexey, to quote your own link, here is the proper way: http://www.perlmonks.org/?node_id=845640 > And it is not need to tell about asyncio, Tornado or Twisted. Of course it is :-) It is generally far better to use an existing non-blocking I/O framework, than

[issue20565] Update Tcl/Tk version for buildbots

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zachary. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue20560] tkFileFilter.c: ostypeCount not initialized?

2014-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue4913] wave.py: add writesamples() and readsamples()

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I hope all mentioned bugs were already fixed in the wave module. As for new writesamples() and readsamples() methods, perhaps it would be better to add utility functions in the audioop module for packing/unpacking integers. In any case a user can use array.a

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Claudiu, your benchmark is broken, it measure a no-op. Correct benchmark: $ ./python -S -m timeit -n 10 -s "import dbm.dumb as dbm; d=dbm.open('x.dat', 'c')" "len(d)" 3.4: 10 loops, best of 3: 2.56 usec per loop 3.5: 10 loops, best of 3:

[issue18615] sndhdr.whathdr could return a namedtuple

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Personally I doubt it is a good idea to convert any tuple to named tuple. There are downsides: this increases memory usage and decreases performance; this changes pickled data and makes it backward incompatible (and even worse with other serialization method

[issue21308] PEP 466: backport ssl changes

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: I have not started on this patch yet, I'd wanted to get the other, smaller, backports done first. Unless someone else is planning on getting to this, I think 2.7.8 is more realistic. -- ___ Python tracker

[issue21308] PEP 466: backport ssl changes

2014-05-13 Thread Donald Stufft
Donald Stufft added the comment: I agree that 2.7.8 is more realistic. This particular backport is going to be the most work due to the scope of it. -- ___ Python tracker ___ __

[issue18615] sndhdr.whathdr could return a namedtuple

2014-05-13 Thread Claudiu.Popa
Claudiu.Popa added the comment: But it improves the API. It's much nicer to actually access the values returned by sndhdr as f.type, f.sampling_rate, f.channels than f[0], f[1], f[2]. You do have a point though. Would it be more acceptable if we'll provide a new function which returns a namedt

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-13 Thread Jim Jewett
Jim Jewett added the comment: Did you try 3.5 without the patch, in case the issue is not with his code? On May 13, 2014 7:23 AM, "Serhiy Storchaka" wrote: > > Serhiy Storchaka added the comment: > > Claudiu, your benchmark is broken, it measure a no-op. > > Correct benchmark: > > $ ./pytho

[issue21492] email.header.decode_header sometimes returns bytes, sometimes str

2014-05-13 Thread Berker Peksag
Berker Peksag added the comment: > >>> email.header.decode_header("foo") > [('foo', None)] email.header.decode_header() implements rfc-2047 and the "foo" header doesn't match the syntax described in rfc-2047 (see "2. Syntax of encoded-words"). See the code for more information: * http://hg.py

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-13 Thread Claudiu.Popa
Claudiu.Popa added the comment: Right, my benchmark was indeed flawed. Here are the new results on my machine: Without the patch # ./python -S -m timeit -n 10 -s "import dbm.dumb as dbm; d=dbm.open('x.dat', 'c')" "len(d)" 10 loops, best of 3: 0.564 usec per loop With the patch # ./pyt

[issue20544] Use specific asserts in operator tests

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I had stopped committing patches for similar issues because there is an opposition against this. See discussion at http://comments.gmane.org/gmane.comp.python.devel/145535. -- ___ Python tracker

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-13 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's a new patch which uses the EAFP approach for dunder methods (__len__, __contains__ etc) and the _verify_open method for the other methods (.keys, .iterkeys) etc. Now the results are similar with the benchmark without the patch. -- Added file: htt

[issue20544] Use specific asserts in operator tests

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think these transformations are useful, because on failure they will give you what is the actual value of the compared operands (something which assertTrue is enable to extract). Also they are clearer to read IMO. -- nosy: +pitrou _

[issue20544] Use specific asserts in operator tests

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: I agree with Antoine. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue21494] getopt error doesnot display correct error

2014-05-13 Thread Priya pawar
New submission from Priya pawar: i created command from getopt but it gives error if i give single hyphan in long option it should check long option not in small option. eg. hello -foo -o option is not recognized hello --foo is working fine. -- messages: 218447 nosy: priya priority

[issue20977] pyflakes: undefined "ctype" in 2 except blocks in the email module

2014-05-13 Thread R. David Murray
R. David Murray added the comment: It doesn't really matter what order you do it in (though I prefer to write tests first, usually), but yes, we will want tests before we commit the fix. I tried to be thorough in my testing, but obviously I missed some branches :(. --

[issue21494] getopt error doesnot display correct error

2014-05-13 Thread Eric V. Smith
Eric V. Smith added the comment: That's working as designed. It allows you to say "-fo" if both 'f' and 'o' are short options. -- nosy: +eric.smith ___ Python tracker ___ __

[issue21492] email.header.decode_header sometimes returns bytes, sometimes str

2014-05-13 Thread R. David Murray
R. David Murray added the comment: The error is actually the first case returning string rather than bytes. See issue 6302. -- dependencies: +Add decode_header_as_string method to email.utils resolution: -> duplicate stage: -> resolved status: open -> closed

[issue21492] email.header.decode_header sometimes returns bytes, sometimes str

2014-05-13 Thread R. David Murray
R. David Murray added the comment: Hmm. It looks like we decided that we couldn't fix the behavior for backward compatibility reasons. In 3.4 you can use the new email policies to get automatic, correct stringification of headers. -- ___ Python tr

[issue20977] pyflakes: undefined "ctype" in 2 except blocks in the email module

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to see the patch applied if no test can be written. The bug was not notified before. -- ___ Python tracker ___ _

[issue21495] Sane default for logging config

2014-05-13 Thread Thomas Guettler
New submission from Thomas Guettler: Imagine you write a small console script which is implemented like a library. This tool has to do two things: the console script needs to configure the logging, and the library needs to use it. The library usage of logging it easy well documented: {{{ logg

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: New patch includes the documentation as well. -- keywords: +needs review Added file: http://bugs.python.org/file35242/pbkdf2.diff ___ Python tracker __

[issue21496] pyvenv activate_this.py

2014-05-13 Thread couplewavylines
New submission from couplewavylines: Is there any plan to add an 'activate_this.py' to venv? The virtualenv package includes this script. Its purpose is to activate the environment "in-place," from other Python code. One use-case is running multiple WSGI apps that each need a different virtual

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: I'm still concerned about the unicode issue, but I'm not sure what the right way to fix it is. -- ___ Python tracker ___ _

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Donald Stufft
Donald Stufft added the comment: The attached patch looks pretty good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Donald Stufft
Donald Stufft added the comment: I don't think there's any way around it, nor do I think that it actually leaks any meaningful timing. -- ___ Python tracker ___

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Donald Stufft
Donald Stufft added the comment: Oh, gotcha. Yea I agree, but it's Python 2.x that's par for the course. -- ___ Python tracker ___ __

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: Sorry, I wasn't concerned from a timing attack perspective here, I was concerned from an "oh my god implicit coercion is terrible" perspective :-) -- ___ Python tracker _

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread Florian Bruhin
New submission from Florian Bruhin: When faulthandler is used while sys.stderr is None (e.g. when using pythonw.exe), a (IMHO) confusing exception is raised: Traceback (most recent call last): File "test.py", line 7, in faulthandler.enable() AttributeError: 'NoneType' ob

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Related: https://groups.google.com/forum/#!topic/dev-python/ytbYwHXKC6o I'm not sure how what is proposed here would be useful for ThreadPoolExecutor but it would definitely be helpful being able to set an initializer for ProcessPoolExecutor because right no

[issue21498] configparser accepts keys beginning with comment_chars when writing

2014-05-13 Thread Florian Bruhin
New submission from Florian Bruhin: When adding something to a configparser instance which has a key beginning with a comment char, it writes the data to a file without generating an error, and when reading the file back obviously the data is different as it's a comment: >>> cp = configpar

[issue21488] codecs.encode/decode documentation inconsistency

2014-05-13 Thread Brett Cannon
Brett Cannon added the comment: Berker's patch LGTM, so assigning to him to commit. -- assignee: docs@python -> berker.peksag nosy: +brett.cannon stage: patch review -> commit review ___ Python tracker

[issue21494] getopt error doesnot display correct error

2014-05-13 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: enhancement -> behavior ___ Python tracker ___ __

[issue9253] argparse: optional subparsers

2014-05-13 Thread couplewavylines
Changes by couplewavylines : -- nosy: +couplewavylines ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21489] Switching from -OO to -O still uses cached bytecode

2014-05-13 Thread Brett Cannon
Brett Cannon added the comment: It's something that could potentially be changed in the future, but no one has prioritized it enough to worry about it. Typically this opens a pandora's box of wanting to generalize it so it supports custom user optimizations as well and then people lose motivat

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-05-13 Thread Brett Cannon
Brett Cannon added the comment: I thought we gave ourselves the wiggle room to change the warnings we emitted for -3 (I unfortunately can't find a reference to something relating to that in the Python 2.7 PEP)? -- ___ Python tracker

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: Attached patch modifies faulthandler to raises a RuntimeError("sys.stderr is None") with your use case. Is it what you expected? -- keywords: +patch Added file: http://bugs.python.org/file35243/faulthandler.patch ___

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread Florian Bruhin
Florian Bruhin added the comment: I didn't test the patch (I don't have the toolchain set up to do so), but it looks like this is indeed an exception which makes more sense to the developer. When I saw the exception as it is now, I only discovered it's related to stderr being None by finding p

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: > I personally would prefer failing silently though so the application still > runs (if there's no stderr, there just is no fault log), but that's debatable > of course. Nope, there is no debate: there is the Zen of Python :-) "Errors should never pass silent

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread Florian Bruhin
Florian Bruhin added the comment: The thing is the developer is not necessarely the one controlling if sys.stderr is None, sometimes the user is. For example, see https://docs.python.org/3.4/using/windows.html#executing-scripts-without-the-python-launcher - an user might have decided to use p

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: > This means there's an unexpected gotcha I prefer to see an exception before sys.stderr is None, instead of not seeing the traceback when the application does crash. It is usually a pain to reproduce a crash in the exact same conditions. > if I want my appli

[issue21422] int << 0: return the number unmodified

2014-05-13 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > > What we want to test is that the return value is of type 'int', which is what > Victor's test checks. > Thank you for the explanations! for 2.7.6 type(2 << 62) is and type(2 << 61) is (I suppose it's analogous in a 32 bit machine around type(2 <<

[issue21329] configparser can't parse MySQL style config

2014-05-13 Thread R. David Murray
R. David Murray added the comment: The data structure you are asking for bears a resemblance to the data structure used by the email package to record message headers. Email uses a list with a dict-like API cobbled together on top. The difference with your suggestion is that email also needs

[issue19656] Add Py3k warning for non-ascii bytes literals

2014-05-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21499] test_importlib incorrectly relies on .__builtins__

2014-05-13 Thread Eric Snow
New submission from Eric Snow: Per the docs*, a module's __builtins__ may be a module or a dict or even missing. However, test.test_importlib.test_api.ReloadTests checks __builtins__ as part of several tests. Instead, the tests should ignore __bulitins__. I'll push a patch in a minute that

[issue21499] test_importlib incorrectly relies on .__builtins__

2014-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16d26391ec36 by Eric Snow in branch '3.4': Issue #21499: Ignore __builtins__ in several test_importlib.test_api tests. http://hg.python.org/cpython/rev/16d26391ec36 New changeset bdf94b2c0639 by Eric Snow in branch 'default': Merge from 3.4 (for #21

[issue21499] test_importlib incorrectly relies on .__builtins__

2014-05-13 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue21500] Make use of the "load_tests" protocol in test_importlib packages

2014-05-13 Thread Eric Snow
New submission from Eric Snow: Right now to run importlib tests you can do either of the following: ./python -m tests test_importlib ./python -m tests.test_importlib Both make use of the regrtest infrastructure. For test submodules the commands are similar: ./python -m tests test_importlib.t

[issue21470] Better seeding for the random module

2014-05-13 Thread Tim Peters
Tim Peters added the comment: Crytpo generators are a whole different world, and I wouldn't listen to anyone save a bona fide expert in that field. Plausible: the "hardest thing" OpenSSL has to do is generate secure RSA keys. But the bit length of an RSA key can't be taken at face value: t

[issue21501] submitting mmap example for use in documentation

2014-05-13 Thread Steve Foley
New submission from Steve Foley: Hello, I would like to submit an example for the mmap docs page. It demonstrates the use of shared memory and message passing between processes. Thanks! import mmap, os, select NUM_CHILDREN = 30 MSG_LEN = 8 BUF_LEN = NUM_CHILDREN * MSG_LE

[issue2052] Allow changing difflib._file_template character encoding.

2014-05-13 Thread Berker Peksag
Berker Peksag added the comment: Attaching two patches: issue2052.diff adds a "charset" keyword argument to HtmlDiff.make_file(). issue2052_html5.diff also adds a "charset" keyword argument to HtmlDiff.make_file() and updates the markup of HtmlDiff() to HTML5. I tested it with Firefox 29 and

[issue2052] Allow changing difflib._file_template character encoding.

2014-05-13 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file35245/issue2052_html5.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that this is not work with the punycode encoding (and may be some third-party encodings). -- ___ Python tracker ___

[issue21486] optimize v4 & v6 netmask parsing

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why not just use functools.lru_cache? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python

[issue21486] optimize v4 & v6 netmask parsing

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Because that would incur the cost of LRU logic and locking, which we don't need here. -- ___ Python tracker ___ ___

[issue21501] submitting mmap example for use in documentation

2014-05-13 Thread Steve Foley
Steve Foley added the comment: sorry! this is the correct version ;-) --- import mmap, os, select NUM_CHILDREN = 30 MSG_LEN = 9 BUF_LEN = NUM_CHILDREN * MSG_LEN buf = mmap.mmap(-1, BUF_LEN) p = select.poll() def write_buffer(i): msg = '%s\t%d\n' %

[issue18877] tkinter askopenfilenames does not work in Windows library folder

2014-05-13 Thread AJNeufeld
AJNeufeld added the comment: I'd like this issue to be reopened. It does not appear resolved. It is different from the wantobjects=False issue. Windows 7 has 'libraries' which are folders containing the contents of more than one folder. For instance, on my computer > Libraries > Document

[issue21495] Sane default for logging config

2014-05-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21496] pyvenv activate_this.py

2014-05-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-13 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: It seems that most functions and methods do not bother checking if _default_root exists before trying to access it. However, upon seeing line 366 in ttk (if tkinter._support_default_root:), my recommendation would be to change line 319 to "if tkinter._s

[issue15871] Online docs: make index search always available.

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue16108] Include maintainer information in register/upload

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue20051] PA-RISC buildbot: compiler cannot create executables

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue13669] XATTR_SIZE_MAX and XATTR_LIST_MAX undefined on kfreebsd/debian with eglibc

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue13869] CFLAGS="-UNDEBUG" build failure

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue6467] PyOS_Readline: treatment of "1234EOF"; behavior of builtin_raw_input

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

  1   2   >