[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread anatoly techtonik
anatoly techtonik added the comment: 1. The documentation doesn't say that the content of this dict may change sporadically even if you don't call locals() 2. I am referring to inline documentation: >>> h = locals() >>> type(h) >>> help(h) --

[issue17525] os.getcwd() fails on cifs share

2013-03-26 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17544] regex code re-raises exceptions on success

2013-03-26 Thread Zdeněk Pavlas
Zdeněk Pavlas added the comment: Yes, found that *certain* IO operations re-raise the error, too. However, if the Python runtime expects extension writers to keep tstate->curexc_type clear, it should be documented in http://docs.python.org/2/c-api/exceptions.html There's not a single use cas

[issue17549] Some exceptions not highlighted in exceptions documentation.

2013-03-26 Thread Ramchandra Apte
New submission from Ramchandra Apte: In http://docs.python.org/3/library/exceptions.html#exception-hierarchy , some exception are not highlighted correctly. -- messages: 185262 nosy: Ramchandra Apte priority: normal severity: normal status: open title: Some exceptions not highlighted in

[issue1207613] Bottom Scroll Bar in IDLE

2013-03-26 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- title: Bottom Scroll Bar -> Bottom Scroll Bar in IDLE ___ Python tracker ___ ___ Python-bugs-list ma

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Christian Heimes
Christian Heimes added the comment: Benjaman and Georg, what do the RMs feel about the doc patch? -- nosy: +benjamin.peterson, georg.brandl ___ Python tracker ___ ___

[issue1747670] Limiting data copy in xmlrpclib

2013-03-26 Thread Thomas Fenzl
Thomas Fenzl added the comment: I removed the unnecessary check on single-element arrays. No strong opinion on usefulness, as I don't use xmlrpc a lot... -- Added file: http://bugs.python.org/file29579/xmlrpc_less_copy-1.diff ___ Python tracker

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Georg Brandl
Georg Brandl added the comment: * I would take out the "erroneous" of "erroneous or maliciously constructed" in the disclaimers. The odds of creating one of the "bombings" by chance are slim. * The names of attacks in the table are quite opaque if you haven't heard of them. They should be li

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Christian Heimes
Christian Heimes added the comment: 1. sounds fine to me 2. I can copy some text from the README.txt of defusedxml. CSV table was easier to maintain for me. What's a good tool to create and modify sphinx tables? 3. No strong opinion here, better safe than sorry? 4. IMO the warning should ment

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Donald Stufft
Donald Stufft added the comment: FWIW I put the warning on all the sax pages just because there's no way to know which page a user will go to if they are coming in via google. -- ___ Python tracker ___

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Georg Brandl
Georg Brandl added the comment: 2. That would be good. For this table the "simple" rst tables should be fine: = = head head = = body body body body = = 3. Once per XML logical handling module/package seems quite enough. 4. The warnings only link to the section

[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Gergö Barany
New submission from Gergö Barany: Trying to configure Python (3.3 and 3.4 prerelease from Mercurial) with --enable-profiling doesn't work because the configure script contains a syntax error that causes it to conclude that the C compiler does not accept the -pg flag: $ ../cpython/configure --

[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27cb49ede303 by Benjamin Peterson in branch '2.7': fix variable reference to fix --enable-profiling (closes #17550) http://hg.python.org/cpython/rev/27cb49ede303 New changeset d321885ff8f3 by Benjamin Peterson in branch '2.7': merge 2.7.4 release br

[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Georg, I fixed this in the 2.7.4 release branch. You might want to in 3.3, too. -- nosy: +benjamin.peterson, georg.brandl resolution: fixed -> stage: committed/rejected -> status: closed -> open versions: +Python 2.7 ___

[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Georg Brandl
Georg Brandl added the comment: Done, thanks for the pointer! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17549] Some exceptions not highlighted in exceptions documentation.

2013-03-26 Thread Ezio Melotti
Ezio Melotti added the comment: That's probably because the pygment version used by the docs don't include the new Exceptions introduced in PEP 3151. -- nosy: +ezio.melotti, georg.brandl type: -> enhancement ___ Python tracker

[issue16475] Support object instancing and recursion in marshal

2013-03-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84e73ace3d7e by Kristjan Valur Jonsson in branch 'default': Issue #16475: Add a whatsnew entry for 3.4 http://hg.python.org/cpython/rev/84e73ace3d7e -- ___ Python tracker

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Christian Heimes
Christian Heimes added the comment: Here we go again! -- stage: -> patch review Added file: http://bugs.python.org/file29581/xmldocs3.diff ___ Python tracker ___ ___

[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread Eric Snow
Eric Snow added the comment: So the problem you are having is that inside functions the dict returned by locals() does not get updated when the "current local symbol table" changes? Keep in mind that for modules and classes (the other two execution blocks), the dict returned by locals() does

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Georg Brandl
Georg Brandl added the comment: I still see "erroneous" in there... otherwise looks good to me. -- ___ Python tracker ___ ___ Python-b

[issue17511] Idle find function closes after each find operation

2013-03-26 Thread Kuchinsky
Kuchinsky added the comment: Thanks, Roger. Unfortunately, this doesn't work for me. I'm running Windows and am using version 2.7.3 For me, nothing is highlighted until the 'find' window closes. This means that if I click 'find', nothing is highlighted even though the text has been found. F

[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11087] Speeding up the interpreter with a few lines of code

2013-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Not at the expense of introducing undefined behaviour. I suggest > closing this. ok, let's do it. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7795a178b0a by Christian Heimes in branch '3.2': Issue 17538: Document XML vulnerabilties http://hg.python.org/cpython/rev/e7795a178b0a New changeset 65e8ac5f073f by Christian Heimes in branch '3.3': Issue 17538: Document XML vulnerabilties http://

[issue17551] Windows - accessing drive with nothing mounted forces user interaction

2013-03-26 Thread Bob Alexander
New submission from Bob Alexander: Attempting to use os.path.exists on a Windows drive that is a mobile device mount point with nothing mounted pops up a dialog asking to insert a device. This makes it impossible to search a set of drives for a specific file without the possibility of unnecess

[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread anatoly techtonik
anatoly techtonik added the comment: Under the trace function, the dict is always updated, and that changed a workflow in the program I was debugging leading to heisenbug. But that's a different story. I'd like to concentrate on the reasons to rename locals() result type from 'dict' to 'livedi

[issue14135] check for locale changes in test.regrtest

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15600] expose the finder details used by the FileFinder path hook

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: The details are no longer in a closure but instead on the _loaders attribute. Why do you want the details exposed? Do you have an actual use-case? -- status: open -> pending ___ Python tracker

[issue15611] devguide: add "core mentors" area to Experts Index

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: Is this still desired? I think it would be better to simply have a message in experts.html to say that if you need help finding someone then email core-mentorship instead of having a list that must be maintained. -- status: open -> pending _

[issue15578] Crash when modifying sys.modules during import

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: Eric has commit rights now so he can commit his own fix. =) -- ___ Python tracker ___ ___ Python-bugs-

[issue15578] Crash when modifying sys.modules during import

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> eric.snow nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15834] 2to3 benchmark not working under Python 3

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: collinwinter -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8911] regrtest.main should have a test skipping argument

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: http://bugs.python.org/issue17515 might also play into this if it happens to go in. -- ___ Python tracker ___ ___

[issue2716] Reimplement audioop because of copyright issues

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11664] Add patch method to unittest.TestCase

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: So, what's the status of this? Move it forward or close this? -- status: open -> pending ___ Python tracker ___ __

[issue15987] Provide a way to compare AST nodes for equality recursively

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: I have a use for this as well, but w/o the lineno/col_offset comparison and all I need is a True/False result. -- ___ Python tracker ___

[issue15987] Provide a way to compare AST nodes for equality recursively

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: IOW I think a function that uses ast.walk() and has flags for specifying whether _attributes should also be checked and then uses a class check and then uses _fields to do all other checking. -- ___ Python tracker

[issue16104] Use multiprocessing in compileall script

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread Eric Snow
Eric Snow added the comment: Thanks for the details, Anatoly. I am surprised by the behavior you've described. It may be that functions don't use fast locals when tracing is turned on. I'll have to check. If that's the case, I think the documentation for locals() should be improved. Eithe

[issue17511] Idle find function closes after each find operation

2013-03-26 Thread Kuchinsky
Kuchinsky added the comment: I think I fixed it! I used some of the code from ReplaceDialog.py to get the highlighted text to display. Thanks to Roger for mentioning that file! Since the find function now does 'find again', we might want to remove the 'find again' option from the 'Edit' menu.

[issue17552] socket.sendfile()

2013-03-26 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': This is based on progress made in issue 13564 and aims to provide a new sendfile() method for the socket class taking advantage of high-performance "zero-copy" os.sendfile() available on most POSIX platforms. A wrapper on top of os.sendfile() appears to be

[issue17552] socket.sendfile()

2013-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: A couple of comments: - I don't understand the point of the second member in the tuple - the timeout logic should be fixed so that the total operation time doesn't exceed the timeout, rather than each iteration (in other words, a deadline should be computed at

[issue13564] ftplib and sendfile()

2013-03-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I created issue 17552 in order to discuss about socket.sendfile() addition. -- dependencies: +socket.sendfile() ___ Python tracker ___ __

[issue17552] socket.sendfile()

2013-03-26 Thread Charles-François Natali
Charles-François Natali added the comment: - I don't understand the "running out of FDs" thing. select() is limited to FDs less than FD_SETSIZE, but I don't see how you could get EMFILE (select() will return a ValueError) - is there any platform with sendfile() which doesn't support poll()? -

[issue1442493] IDLE shell window gets very slow when displaying long lines

2013-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: print(10*'a') is still a problem in 3.3. -- versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker ___ _

[issue17552] socket.sendfile()

2013-03-26 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-03-26 Thread Bernard Lang
Bernard Lang added the comment: Reply to R.David.Murray > See also issue 6095. You are right. I goofed, this is the issue I meant to point to. > $ ls '' > ls: cannot access : No such file or directory > So, the behavior is consistent with the shell. This is a fair remark. But still, giving a

[issue17553] python setup.py bdist_rpm is broken

2013-03-26 Thread Sean Carolan
New submission from Sean Carolan: I'm attempting to build a Python 2.7.3 RPM but the build command from the documentation fails. My platform is RHEL 5.9, x86_64 http://docs.python.org/2/distutils/builtdist.html#creating-rpm-packages Steps to reproduce: 1. Download latest Python tarball to h

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-03-26 Thread R. David Murray
R. David Murray added the comment: I'm inclined to agree with you. I believe '' represents the current directory in sys.path, for example. It ought to be easy to add this since issue 6095 is already fixed. -- versions: +Python 3.4 -Python 2.7 ___

[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Michele Orrù
Michele Orrù added the comment: .. sorry for all these trivialities. -- Added file: http://bugs.python.org/file29584/issue16692.3.patch ___ Python tracker ___ ___

[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. I don't know what happened, but the last patch fails to apply: $ patch -p1 < issue16692.3.patch patching file Doc/library/ssl.rst patching file Doc/whatsnew/3.4.rst patching file Lib/ssl.py patching file Lib/test/test_ssl.py patching file Misc/NEWS Hunk

[issue17554] Compact output for regrtest

2013-03-26 Thread Ezio Melotti
New submission from Ezio Melotti: The attached patch is a proof of concept that changes the output of regrtest so that the "[xxx/yyy] test_zz" is updated in place instead of printing each test on a separate line. Failures, skips, and the final report are printed normally, making it easier

[issue17554] Compact output for regrtest

2013-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file29586/regroutput.txt ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17552] socket.sendfile()

2013-03-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I don't understand the point of the second member in the tuple The 'exception' member can be useful to know the reason why sendfile() failed and send() was used as fallback. > the timeout logic should be fixed so that the total operation > time doesn't e

[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file29587/issue16692.4.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17272] request.full_url: unexpected results on assignment

2013-03-26 Thread Demian Brecht
Demian Brecht added the comment: Based on your and Andrew's comment in issue #16464 (new behaviour so it should only apply to 3.4), I agree that this should be a 3.4-only change. -- ___ Python tracker

[issue17554] Compact output for regrtest

2013-03-26 Thread R. David Murray
R. David Murray added the comment: I would like both the normal (non-overwritten) progress list and the summary at the end :) I would not like the overwriting mode to be the default, but otherwise it looks good. -- ___ Python tracker

[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, yet another issue :-) Testing on a machine with OpenSSL 1.0.0 gives the following failures. I think you mixed up skipIf / skipUnless. == ERROR: test_protocol_sslv2 (test.test_ssl.ThreadedTe

[issue17554] Compact output for regrtest

2013-03-26 Thread R. David Murray
R. David Murray added the comment: Oh, by 'looks good' I was referring to the output, not the patch, which I haven't looked at yet. -- ___ Python tracker ___ ___

[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch fixing the aforementioned issue (as well as another small issue with the set_ciphers("ALL") hack). -- Added file: http://bugs.python.org/file29588/tls12.patch ___ Python tracker

[issue17272] request.full_url: unexpected results on assignment

2013-03-26 Thread Demian Brecht
Demian Brecht added the comment: Patch updated (acks update, fixed order) per Terry's instructions on core-mentorship. -- Added file: http://bugs.python.org/file29589/request_17272.1.patch ___ Python tracker _

[issue7559] TestLoader.loadTestsFromName swallows import errors

2013-03-26 Thread Domen Kožar
Domen Kožar added the comment: What can I do to put this forward? It's still an issue in py2.7 -- nosy: +iElectric ___ Python tracker ___ _

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke
andrew cooke added the comment: what is rietveld? and why is this marked as "easy"? it seems like it involves issues that aren't described well in the spec - it requires some kind of canonical way to describe urls with (and without) parameters to solve completely. -- nosy: +acooke _

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread Ezio Melotti
Ezio Melotti added the comment: Rietveld is the review tool. You can access it by clicking on the "review" link at the right of the patch. You should have received an email as well when I made the review. -- ___ Python tracker

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke
andrew cooke added the comment: thanks (only subscribed to this now, so no previous email). my guess is that google are assuming a dumb regexp so http://example.com/foo? in a rule does not match http://example.com/foo and also i realised that http://google.com/robots.txt doesn't contai

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread R. David Murray
R. David Murray added the comment: Well, the code is easy. Figuring out what the code is supposed to do turns out to be hard, but we didn't know that when we marked it as easy :) I want to do more research before OKing a fix for this. (There is clearly a bug, I'm just not certain what the

[issue17555] Creating new processes after importing multiprocessing.managers consumes more and more memory

2013-03-26 Thread Marc Brünink
New submission from Marc Brünink: Importing multiprocessing.managers and creating new processes recursively is not a good idea. You will run out of memory very fast. On my machine with 8GB it only takes about 20 forks until I start swapping. -- components: Library (Lib) files: test_for