[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread anatoly techtonik
anatoly techtonik added the comment: It could be the implementation detail if locals() calls were not useful to majority of Python software, and if behavior of its returned dict did not affect the execution flow of user programs (was deterministic for users who should not care about the implem

[issue17564] test_urllib2_localnet fails

2013-03-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: RDM's comment: If that test is run by default, we could change it to only run with -uall. Then normal users wouldn't see it. This is a good idea, only to reduce the occurrence of this test_run. Logically, this may not help at all. I am kind of undecided on

[issue5550] [urllib.request]: Comparison of HTTP headers should be insensitive to the case

2013-03-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Case insensitive lookup will be more fool-proof than capitalized look up. I would in favor of going with case insensitive look up than the capitalized look up one. Because the headers could be added in multiple ways and we cannot be assured that they are all s

[issue17556] os.path.join() converts None to '' by default

2013-03-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17435] threading.Timer.__init__() should use immutable argument defaults for args and kwargs

2013-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: I agree with the OP -- it's a simple fix and the current code definitely violates our recommendations. I see no reason not to submit this (if there's nothing *else* wrong with it -- it actually seems pretty complete). Not sure how important it is to fix in

[issue17435] threading.Timer.__init__() should use immutable argument defaults for args and kwargs

2013-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The reported behavior is not a bug by our usual standards. The code is exactly as documented. manual: class threading.Timer(interval, function, args=[], kwargs={}) docstring: t = Timer(30.0, f, args=[], kwargs={}) Threading is not a beginner module. Any compete

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread Eric Snow
Eric Snow added the comment: I've indicated that this issue supercedes issue #7083. -- stage: -> needs patch ___ Python tracker ___ _

[issue7083] locals() behaviour differs when tracing is in effect

2013-03-27 Thread Eric Snow
Changes by Eric Snow : -- superseder: -> Document the circumstances where the locals() dict gets updated ___ Python tracker ___ ___ Py

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2013-03-27 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: Just got bitten by this bug, which affects xml.etree.ElementTree and cElementTree too. Any chance to have it fixed? Note that lxml.etree is not affected by the bug and can be used as a replacement for the stdlib module if you happen to have some work to do.

[issue17563] Excessive resizing of dicts when used as a cache

2013-03-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17295] __slots__ on PyVarObject subclass

2013-03-27 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue, but I didn't see that #1173475 was closed. Sorry, I reopened this issue again. -- nosy: +haypo status: closed -> open ___ Python tracker __

[issue17295] __slots__ on PyVarObject subclass

2013-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17468] Generator memory leak

2013-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-27 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that it is a good idea to patch such major function (macro) in a minor version (ex: Python 2.7.x). I changed the Versions field to only select Python 3.4. -- nosy: +haypo versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> committed/rejected status: open -> closed superseder: -> Implement generator interface in itertools.chain. ___ Python tracker ___ _

[issue17565] segfaults during serialization

2013-03-27 Thread STINNER Victor
STINNER Victor added the comment: ModelSettings.py requires globalSettings which is not attached. -- nosy: +haypo ___ Python tracker ___ _

[issue17559] str.is* implementation seem suboptimal for single character strings

2013-03-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: There's still stuff in bytes_methods.c which looks like the old string code. -- ___ Python tracker ___ __

[issue17559] str.is* implementation seem suboptimal for single character strings

2013-03-27 Thread STINNER Victor
STINNER Victor added the comment: If you would like to improve Python, you have to focus on the development version which is Python 3.4. In this version, the code is different: if (length == 1) return PyBool_FromLong( Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, 0)));

[issue17559] str.is* implementation seem suboptimal for single character strings

2013-03-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: The shortcut seems fairly pointless to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17559] str.is* implementation seem suboptimal for single character strings

2013-03-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +benjamin.peterson, ezio.melotti, haypo, serhiy.storchaka versions: +Python 3.4 ___ Python tracker ___

[issue17491] Consolidate traceback.format_tb and traceback.print_tb

2013-03-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thank you for the patch. It seems like it would make more sense to implement print_tb in terms of extract_tb. That is, print_tb should iterate through the result of extract_tb and do its printing. -- nosy: +benjamin.peterson ___

[issue16676] Segfault under Python 3.3 after PyType_GenericNew

2013-03-27 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue17565] segfaults during serialization

2013-03-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please provide a self-contained explain, we can reproduce. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue17563] Excessive resizing of dicts when used as a cache

2013-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-03-27 Thread Radu Voicilas
Changes by Radu Voicilas : -- nosy: +raduv ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17565] segfaults during serialization

2013-03-27 Thread Daniele Raimondi
New submission from Daniele Raimondi: pickle and cPickle cause really often segfaults when dumping or loading user defined classes. It happens with python 2.7.3 on 64bits architecture, with any protocol (0,1,2). I attach an example of class afflicted by this problem. Solutions anyone?

[issue17491] Consolidate traceback.format_tb and traceback.print_tb

2013-03-27 Thread Radu Voicilas
Radu Voicilas added the comment: Is there anything else that I have to do in order for this patch to be looked at ? I am holding off a similar one for print_exception vs. format_exception -- ___ Python tracker ___

[issue16676] Segfault under Python 3.3 after PyType_GenericNew

2013-03-27 Thread Mark Shannon
Mark Shannon added the comment: This issue should be considered closed. PyType_GenericNew is a convenience function for typeobjects to put in their tp_new slots. Calling it directly only works for some types. It worked in 3.2 for dict, but that was happenstance. You could use ((PyTypeObject

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: Hummm... For those experiencing failures when /proc is mounted: do you have a grsecurity-patched kernel? If RBAC is enabled, /proc/self/fd is empty, so this approach won't work... -- nosy: +neologix ___ Pyth

[issue17564] test_urllib2_localnet fails

2013-03-27 Thread R. David Murray
R. David Murray added the comment: I think we should instead have it email the ISP that their DNS is broken :) Seriously, though, complain to your ISP. My ISP at least provides name servers that don't have this "feature" if you prefer to use them, and they are the default for business account

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 27/03/13 21:09, Charles-François Natali wrote: > I could, but I don't have to: a shared memory won't incur any I/O or > copy (except if it is swapped). A file-backed mmap will incur a *lot* > of I/O: really, just try writting a 1GB file, and you'll see your

[issue17564] test_urllib2_localnet fails

2013-03-27 Thread Mark Shannon
Mark Shannon added the comment: Bah, stupid BT :( I opened the URL in my browser and got a "helpful" message telling me "Sorry, the website sadflkjsasf.i.nvali.d. cannot be found" Perhaps we should just remove this test? I suspect this is only going to become more common. -- _

[issue17564] test_urllib2_localnet fails

2013-03-27 Thread R. David Murray
R. David Murray added the comment: Indeed, this is almost always a (common) ISP DNS server misconfiguration. Well, they would claim they are "helping their users", but we know better. Not much we can do about it, except perhaps add an explanatory note to the test failure message (if assertRai

[issue17564] test_urllib2_localnet fails

2013-03-27 Thread Ezio Melotti
Ezio Melotti added the comment: There's a comment in the test that says it might be because of the ISP. What happens if you try to open that address in a browser or using something like wget? -- nosy: +ezio.melotti status: pending -> open ___ Python

[issue17564] test_urllib2_localnet fails

2013-03-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Are you behind some kind of a proxy? This is seen when you are running the tests and your interent connection is via proxy (and that is handling this invalid URL test) -- nosy: +orsenthil status: open -> pending __

[issue17564] test_urllib2_localnet fails

2013-03-27 Thread Mark Shannon
New submission from Mark Shannon: The test_urllib2_localnet test fails when run with a clean build from a clean checkout. Machine: Ubuntu 12.04 LTS, 64 bit Intel i3-2370M CPU @ 2.40GHz × 4 Test output: $ ./python -m test -v test_urllib2_localnet == CPython 3.4.0a0 (default:53cc3dbb1918, Mar

[issue17563] Excessive resizing of dicts when used as a cache

2013-03-27 Thread Mark Shannon
New submission from Mark Shannon: If a dict is used a cache, e.g. in functools.lru_cache, the reduced resize factor in 3.3 can cause excessive resizing. This can lead to a significant performance regression. When the the number of deletions and insertions is roughly in balance the reduced head

[issue17558] gdb debugging python frames in optimised interpreters

2013-03-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: > I meant when there is no memory pressure. http://lwn.net/Articles/326552/ """ The kernel page cache contains in-memory copies of data blocks belonging to files kept in persistent storage. Pages which are written to by a processor, but not yet written

[issue17562] spam

2013-03-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -Aslanidi resolution: -> invalid stage: -> committed/rejected status: open -> closed title: Invitation to connect on LinkedIn -> spam ___ Python tracker ___

[issue17562] Invitation to connect on LinkedIn

2013-03-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg185376 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17562] Invitation to connect on LinkedIn

2013-03-27 Thread Konstantin
New submission from Konstantin: LinkedIn I'd like to add you to my professional network on LinkedIn. - Konstantin Konstantin Aslanidi Author of opentradingsystem.com Greater New York City Area Confirm that you know Konstantin Aslanidi: https://www.linkedin.com/e/-3qcne3-hesyzdls-

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 27/03/2013 8:14pm, Charles-François Natali wrote: > > Charles-François Natali added the comment: > >> Apart from creating, unlinking and resizing the file I don't think there >> should be any disk I/O. >> >> On Linux disk I/O only occurs when fsync() or close

[issue17561] Add socket.create_server_sock() convenience function

2013-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: > What you say is right but whether the kernel supports an hybrid IPv4/6 stack > or not there's not much we can do about it anyway. > Exactly what are you suggesting with the ServerSocket class you mentioned? > What do you expect it to do? There's a con

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: > Apart from creating, unlinking and resizing the file I don't think there > should be any disk I/O. > > On Linux disk I/O only occurs when fsync() or close() are called. What? Writeback occurs depending on the memory pressure, percentage of used pages,

[issue17561] Add socket.create_server_sock() convenience function

2013-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: Tulip has something similar. Someone should compare the two and make sure they are equivalent or similar. -- ___ Python tracker ___

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 27/03/2013 7:27pm, Charles-François Natali wrote: > > Charles-François Natali added the comment: > >> Through fork, yes, but "shared" rather than "copy-on-write". > > There's a subtlety: because of refcounting, just treating a COW object > as read-only (e.g.

[issue17561] Add socket.create_server_sock() convenience function

2013-03-27 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Side note: this is how in pyftpdlib I determine whether a platform supports the dual stack: def support_hybrid_ip_v4_v6(): # Note: IPPROTO_IPV6 constant is broken on Windows, see: # http://bugs.python.org/issue6926 sock = None try: if

[issue17561] Add socket.create_server_sock() convenience function

2013-03-27 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: What you say is right but whether the kernel supports an hybrid IPv4/6 stack or not there's not much we can do about it anyway. Exactly what are you suggesting with the ServerSocket class you mentioned? What do you expect it to do? Note that platforms suppor

[issue13510] Clarify that readlines() is not needed to iterate over a file

2013-03-27 Thread Ashwini Chaudhary
Changes by Ashwini Chaudhary : -- nosy: +montysinngh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: > Through fork, yes, but "shared" rather than "copy-on-write". There's a subtlety: because of refcounting, just treating a COW object as read-only (e.g. iteratin on the array) will trigger a copy anyway... > I assume you mean "shared memory" and shm_op

[issue17556] os.path.join() converts None to '' by default

2013-03-27 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with David. This is a programming error, and should result in an exception. -- nosy: +eric.smith ___ Python tracker ___

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 27/03/2013 5:47pm, Charles-François Natali wrote: >> multiprocessing currently only allows sharing of such shared arrays >> using inheritance. > > You mean through fork() COW? Through fork, yes, but "shared" rather than "copy-on-write". >> Perhaps we need

[issue17554] Compact output for regrtest

2013-03-27 Thread Brett Cannon
Brett Cannon added the comment: I say move forward and put it behind a flag (w/ quiet is fine, maybe some arg to specify quietness or -qq much like -vv?). -- ___ Python tracker

[issue17556] os.path.join() converts None to '' by default

2013-03-27 Thread R. David Murray
R. David Murray added the comment: I think it is probably better to keep the error, myself. It seems to me that a None creeping in is more likely to be an error in the program. But I could be convinced otherwise :) What is your use case? -- nosy: +r.david.murray versions: -Python

[issue17554] Compact output for regrtest

2013-03-27 Thread R. David Murray
R. David Murray added the comment: No, what I'd prefer is that the current "print it as it runs" behavior not change, but that the list of skip reasons be displayed at the end. after all the tests have completed. This is probably not a realistic request, so I'm fine with just having Ezio's ve

[issue17561] Add socket.create_server_sock() convenience function

2013-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: I think that's a good idea. However, there's a problem with the implementation: if one passes "" or None as address on a dual-stack node, the resulting socket will be either IPv4 bound to INADDR_ANY, or IPv6 bound to IN6ADDR_ANY, whereas one would exp

[issue17329] Document unittest.SkipTest

2013-03-27 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue17329] Document unittest.SkipTest

2013-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd5c23583fa5 by Ezio Melotti in branch '3.2': #17329: document unittest.SkipTest. Initial patch by Zachary Ware. http://hg.python.org/cpython/rev/cd5c23583fa5 New changeset 4bf2a53b53b6 by Ezio Melotti in branch '3.3': #17329: merge with 3.2. http:

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread Ned Batchelder
Changes by Ned Batchelder : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread Eric Snow
Eric Snow added the comment: I should also point out that the following from that note may actually also be a CPython implementation detail: Each call to locals() will return the same dictionary, updated to the contents of the current local symbol table. We'd want to be sure that such sh

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread mrjbq7
mrjbq7 added the comment: > Richard was saying that you shouldn't serialize such a large array, > that's just a huge performance bottleneck. The right way would be > to use a shared memory. Gotcha, for clarification, my original use case was to *create* them in the other process (something whic

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread Eric Snow
Eric Snow added the comment: Okay, I found it. sys.settrace() ultimately results in the setting of tstate->use_tracing to true and sets tstate->c_tracefunc and tstate_c_traceobj (see sys_settrace() in Python/sysmodule.c and PyEval_SetTrace() in Python/ceval.c). tstate->c_tracefunc() gets set

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: > Also, does pickle currently handle byte strings larger than 4GB? The 2.7 failure is indeed a pickle limitation, which should now be fixed by issue #13555. > On a machine with 256GB of RAM, it makes more sense to send arrays > of this size than say o

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 27/03/2013 5:13pm, mrjbq7 wrote: > On a machine with 256GB of RAM, it makes more sense to send arrays > of this size than say on a laptop... I was thinking more of speed than memory consumption. -- ___ Python tra

[issue16754] Incorrect shared library extension on linux

2013-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: So sysconfig.get_config_var('SO') will change in a micro release? Won't this break working user code? Give unexpected file names? -- nosy: +amaury.forgeotdarc status: pending -> open ___ Python tracker

[issue7083] locals() behaviour differs when tracing is in effect

2013-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Calling locals() updates the dict, just as documented. -- ___ Python tracker ___ ___ Python-bugs-list

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread mrjbq7
mrjbq7 added the comment: On a machine with 256GB of RAM, it makes more sense to send arrays of this size than say on a laptop... -- ___ Python tracker ___ _

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I *think* we need to keep compatibility with the wire format, but perhaps > we could use a special length value (-1?) to introduce a longer (64-bit) > length value. Yes we could, although that would not help on Windows pipe connections (where byte oriented

[issue17561] Add socket.create_server_sock() convenience function

2013-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread Eric Snow
Eric Snow added the comment: Thanks for the script Anatoly. That's pretty much what I was imagining from your description. This definitely reinforces my belief that profiling. -- versions: +Python 3.3, Python 3.4 ___ Python tracker

[issue17561] Add socket.create_server_sock() convenience function

2013-03-27 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': Here's a function similar to socket.create_connection() which addresses all the repetitive tasks needed to order to create an IPv4/IPv6 agnostic server socket. -- components: Library (Lib) files: socket.patch keywords: easy, needs review, patch mes

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2013-03-27 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7083] locals() behaviour differs when tracing is in effect

2013-03-27 Thread anatoly techtonik
anatoly techtonik added the comment: Attached localtest2.py where an empty locals() call changes behavior. --- localtest.pyWed Mar 27 19:48:06 2013 +++ localtest2.py Wed Mar 27 19:45:19 2013 @@ -3,6 +3,7 @@ def X(): l = locals() i = "foo" +locals() print("Is 'i'

[issue17553] Note that distutils’ bdist_rpm command is not used to build a CPython rpm

2013-03-27 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> docs@python components: +Distutils, Documentation -Build keywords: +easy nosy: +docs@python, tarek stage: -> needs patch title: python setup.py bdist_rpm is broken -> Note that distutils’ bdist_rpm command is not used to build a CPython rpm ver

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

2013-03-27 Thread Bob Alexander
Bob Alexander added the comment: Thanks for the prompt reply! Your suggested change does change the behavior to exactly the way I think it should work by default. Tried it on both Windows 7 and Vista; no popups when accessing a "mobile mount" drive with nothing in it, just quietly reports False.

[issue17553] python setup.py bdist_rpm is broken

2013-03-27 Thread Sean Carolan
Sean Carolan added the comment: Ok, thanks for clearing that up. Maybe the documentation could be updated to explicitly state this to avoid confusion, eg: "NOTE: You cannot use setup.py to build a Python RPM. It is only for building Python modules." --

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: A multiprocessing queue currently uses a 32-bit signed int to encode object length (in bytes): def _send_bytes(self, buf): # For wire compatibility with 3.2 and lower n = len(buf) self._send(struct.pack("!i", n)) # The condit

[issue17560] problem using multiprocessing with really big objects?

2013-03-27 Thread mrjbq7
New submission from mrjbq7: I ran into a problem using multiprocessing to create large data objects (in this case numpy float64 arrays with 90,000 columns and 5,000 rows) and return them to the original python process. It breaks in both Python 2.7 and 3.3, using numpy 1.7.0 (but with different

[issue17553] python setup.py bdist_rpm is broken

2013-03-27 Thread Éric Araujo
Éric Araujo added the comment: Sorry, I don’t understand the question. The point still stands: one should not use setup.py build_rpm to build an RPM for CPython. Please read Misc/RPM/README. -- ___ Python tracker

[issue17553] python setup.py bdist_rpm is broken

2013-03-27 Thread Sean Carolan
Sean Carolan added the comment: Éric Araujo, if that is the case then why does it build what looks like a *.spec file for Python itself? [scarolan@titania:~/Python-2.7.3]$ head -10 ./build/bdist.linux-x86_64/rpm/SPECS/Python.spec %define name Python %define version 2.7.3 %define unmangled_vers

[issue17553] python setup.py bdist_rpm is broken

2013-03-27 Thread Éric Araujo
Éric Araujo added the comment: To build Python itself you need to use the Makefile and the Misc/RPM/python-2.7.spec file. The doc you’re referring to talks about building rpm packages for Python libraries, not CPython itself. -- nosy: +eric.araujo

[issue17536] update browser list with additional browser names

2013-03-27 Thread Éric Araujo
Éric Araujo added the comment: FTR the shlex unicode bug reports are #6988 and #1170, and the cStringIO bug is #1548891. -- ___ Python tracker ___ __

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread anatoly techtonik
anatoly techtonik added the comment: > "I as a user" can > see and can inspect for further troubleshooting This doesn't work for this example, which was your question. I still feel like this needs further clarification. For a user this behavior is not expected. User is someone who doesn't know

[issue17559] str.is* implementation seem suboptimal for single character strings

2013-03-27 Thread Gaëtan de Menten
New submission from Gaëtan de Menten: In isspace, isalpha, isalnum and isdigit, I see code like: /* Shortcut for single character strings */ if (PyString_GET_SIZE(self) == 1 && isspace(*p)) return PyBool_FromLong(1); Is it intentional to not use: if (PyString_GET_SIZE(self) == 1))

[issue17558] gdb debugging python frames in optimised interpreters

2013-03-27 Thread Marcus Cobden
New submission from Marcus Cobden: I've made some tweaks to the libpython.py util functions to better pick up python frames when using a normal python interpreter. It's not by any means perfect, but it works on my ubuntu-shipped python interpreter (with debugging symbols installed, but not run

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is expected: "zc = xxx" updates locals! but not the copy. -- ___ Python tracker ___ ___ P

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread bob gailer
bob gailer added the comment: On 3/27/2013 9:48 AM, anatoly techtonik wrote: > anatoly techtonik added the comment: > > Example: > > l = locals() > z = dict(a=5, b=3) > > lc = dict(l) > zc = dict(z) > > print(lc == l) > print(zc == z) > > Gives: > > False >

[issue12271] panel.h is not found even if it's installed on various flavours of SUSE

2013-03-27 Thread Kenneth O'Brien
Kenneth O'Brien added the comment: I have created a simple patch that solves this problem. Depending on whether panel.h or ncurses/panel.h are found, the appropriate one is included. -- nosy: +Kenneth.O'Brien Added file: http://bugs.python.org/file29594/ken_ncurses.patch __

[issue17329] Document unittest.SkipTest

2013-03-27 Thread Michael Foord
Michael Foord added the comment: For features like test skipping I would prefer to keep all the documentation together. -- ___ Python tracker ___ ___

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread anatoly techtonik
anatoly techtonik added the comment: Example: l = locals() z = dict(a=5, b=3) lc = dict(l) zc = dict(z) print(lc == l) print(zc == z) Gives: False True -- ___ Python tracker ___

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

2013-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Does it change something if you insert in your script (in 3.3): import msvcrt msvcrt.SetErrorMode(msvcrt.SEM_FAILCRITICALERRORS) -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue17554] Compact output for regrtest

2013-03-27 Thread Brett Cannon
Brett Cannon added the comment: So are you saying you want both the short-form output while running but then the whole output upon completion, David? I can understand wanting the summaries still in order to sort the skipped tests vs. failures, but not outputting every test that succeeded since

[issue7559] TestLoader.loadTestsFromName swallows import errors

2013-03-27 Thread Domen Kožar
Domen Kožar added the comment: One relevant use case is the following: https://github.com/Pylons/venusian/issues/23 Here the module is supposed to raise an ImportError. -- ___ Python tracker __

[issue7559] TestLoader.loadTestsFromName swallows import errors

2013-03-27 Thread Michael Foord
Michael Foord added the comment: My preferred fix is to wrap "an exception during import" as a test that fails instead of an AttributeError. This would definitely be a new feature rather than a bugfix - so it could only be in 3.4. It could be made available to Python 2.7 through the unittest2

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Normal dict in Python is updated by user code (which "I as a user" can > see and can inspect for further troubleshooting) and for locals's dict > this is not correct. Do you have an example? -- ___ Python tra

[issue11664] Add patch method to unittest.TestCase

2013-03-27 Thread Michael Foord
Michael Foord added the comment: Yes this is still relevant and needs doing (and is easy). The implementation should be similar to: def patch(self, *args, **kwargs): # lazy import from unittest.mock import patch p = patch(*args, **kwargs) result = p.start() self.addCleanup(p

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread anatoly techtonik
anatoly techtonik added the comment: Amaury, from user's point of view (I am not a core developer - I just need to troubleshoot complicated Python code) the object (the internal structure) returned by locals() has different behavior than a normal dict. Normal dict in Python is updated by user

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread anatoly techtonik
anatoly techtonik added the comment: Eric, here is the code that confirms changed behavior under trace function for both Python 2 and 3 - http://bugs.python.org/file15081/localstest.py I agree that the documentation fix is necessary, and if you say that it is an easier sell - I tend to believe

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

2013-03-27 Thread Richard Oudkerk
Richard Oudkerk added the comment: _afterfork_registry is not supposed to be cleared. But the problem with ForkAwareThreadLocal meant that the size of the registry at generation n is 2**n! -- ___ Python tracker

  1   2   >