[issue13238] Add shell command helpers to subprocess module

2011-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: The PyPI package to prototype the API details is now available: http://pypi.python.org/pypi/shell_command http://shell-command.readthedocs.org https://bitbucket.org/ncoghlan/shell_command/ -- ___ Python tracker

[issue13578] Add subprocess.iter_output() convenience function

2011-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: You can see a version of this here: https://bitbucket.org/ncoghlan/shell_command/src/2b1988b072aa/shell_command.py#cl-157 -- ___ Python tracker

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2011-12-10 Thread Nick Coghlan
New submission from Nick Coghlan : As the subject line says: >>> fmt = "{0!a}" >>> fmt.format(10) '10' >>> import string >>> string.Formatter().format(fmt, 10) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.2/string.py", line 180, in format return self.vfo

[issue13405] Add DTrace probes

2011-12-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Pending work yet: (documented to avoid forgeting it) - Performance hit because trying to determine the source line in each function call. To be solved with ¿tolerable? memory overhead. Would be acceptable to sacrifice x2/x4 time the pyc filesize (in memory)

[issue6698] IDLE no longer opens only an edit window when configured to do so

2011-12-10 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch to correct the existing bug as-is. Should the behavior of IDLE be changed as Tal suggests? -- keywords: +patch nosy: +serwy Added file: http://bugs.python.org/file23911/issue6698.patch ___ Python t

[issue13405] Add DTrace probes

2011-12-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Alan, I would open a new issue tracking this one and posting a patch there, if I were you. Previous DTRACE attempts failed because trying to make everybody happy. I don't want to repeat the mistake. I am open to modify this code to satisfy systemtap *AFTER*

[issue13578] Add subprocess.iter_output() convenience function

2011-12-10 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13578] Add subprocess.iter_output() convenience function

2011-12-10 Thread Nick Coghlan
New submission from Nick Coghlan : subprocess.check_output() is nice, but doesn't help if you want to process the piped data line-by-line. Currently, that means you have to do the full Popen dance if you want access to each line of output as it becomes available. This RFE is for a subprocess.

[issue13577] __qualname__ is not present on builtin methods and functions

2011-12-10 Thread Meador Inge
New submission from Meador Inge : I was recently experimenting with the new PEP 3155 '__qualname__ implementation and noticed that '__qualname__' is not present on builtin methods and functions: [meadori@motherbrain cpython]$ ./python Python 3.3.0a0 (default:aab45b904141+, Dec 10 2011, 14:53:5

[issue13544] Add __qualname__ to functools.WRAPPER_ASSIGNMENTS

2011-12-10 Thread Meador Inge
Meador Inge added the comment: Filip, with the exception of some minor whitespace problems (remember to run 'make patchcheck') and a missed testcase in 'TestWraps.test_default_update', this looks good to me. I was just about to attach a similar patch. Here is an updated patch with those mino

[issue13568] sqlite3 convert_date error with DATE type

2011-12-10 Thread Gianluigi Tiesi
Gianluigi Tiesi added the comment: So I suppose I have to blame sqlite3 and not fill a bug here -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue13568] sqlite3 convert_date error with DATE type

2011-12-10 Thread Gianluigi Tiesi
Gianluigi Tiesi added the comment: I've made a simplified testcase, my problem is importing from a sql dump with dates in the format '10-OCT-11', so if I understand 'DATE' in sqlite is fake and really a string? I have no way to control this behavior if my dump is text? -- ___

[issue13448] PEP 3155 implementation

2011-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: No, it's only class objects that have __name__ and __qualname__, not class instances. -- ___ Python tracker ___

[issue13576] Handling of broken condcoms in HTMLParser

2011-12-10 Thread Ezio Melotti
New submission from Ezio Melotti : The attached patch adds a few tests about the handling of broken conditional comments (condcoms). A valid condcom looks like . An invalid one looks like This seems a common mistake, and it's found even on popular sites like adobe, linkedin, deviantart. C

[issue13448] PEP 3155 implementation

2011-12-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I am evaluating the use of "__qualname__" in my dtrace probes (issue #13405) and I see things like this: """ >>> def a() : ... class b() : ... pass ... return b() ... >>> c=a() >>> c <__main__.a..b object at 0xfe37f3ac> >>> c.__qualname__ Traceback (

[issue1398] Can't pickle partial functions

2011-12-10 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.o

[issue4331] Can't use _functools.partial() created function as method

2011-12-10 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.o

[issue4727] pickle/copyreg doesn't support keyword only arguments in __new__

2011-12-10 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.o

[issue9269] Cannot pickle self-referencing sets

2011-12-10 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.o

[issue11564] pickle not 64-bit ready

2011-12-10 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.

[issue13448] PEP 3155 implementation

2011-12-10 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.

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Nikita Pchelin
Nikita Pchelin added the comment: Here is a link for example in question: https://github.com/jango/calculon/blob/master/calculon/calculon.py Previously, I would pass logger instance from Calculon class to _Producer and _Consumer classes. In the current revision, I removed the logging complete

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2011-12-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Fails in exactly the same way when built from my shell account using current hg head. Does not fail on same version of OS on amd64. -- ___ Python tracker __

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: You shouldn't need to pickle loggers, because loggers just represent where in your application something happens (that being determined by the logger name). The logger name is just a string, and if you need to communicate that across e.g. a process boundary, jus

[issue11822] Improve disassembly to show embedded code objects

2011-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11822] Improve disassembly to show embedded code objects

2011-12-10 Thread Torsten Landschoff
Torsten Landschoff added the comment: I offer the attached patch as a starting point to fulfill this feature request. The patch changes the output to insert the disassembly of local code objects on the referencing line. As that made the output unreadable to me, I added indentation for the nes

[issue13505] Bytes objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2011-12-10 Thread Meador Inge
Meador Inge added the comment: I don't really know that much about pickle, but Antoine mentioned that 'bytearray' works fine going from 3.2 to 2.7. Given that, can't we just compose 'bytes' with 'bytearray'? Something like: Python 3.3.0a0 (default:aab45b904141+, Dec 10 2011, 13:34:41) [GCC

[issue13574] refresh example in doc for Extending and Embedding

2011-12-10 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.

[issue13575] old style classes still alive

2011-12-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Changes look good. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13521] Make dict.setdefault() atomic

2011-12-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Eric, overload "__hash__()" and check that is only called once, while now would be called twice. -- ___ Python tracker ___ __

[issue13568] sqlite3 convert_date error with DATE type

2011-12-10 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: c.execute("insert into testdate values ('now')") This works, but you actually are putting string "now" into a field with DATE type. When conversion occurs after retrieving data, there is an error. Also if you use datetime() function c.execute("insert in

[issue13544] Add __qualname__ to functools.WRAPPER_ASSIGNMENTS

2011-12-10 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Patch with tests. -- keywords: +patch nosy: +gruszczy Added file: http://bugs.python.org/file23906/13544.patch ___ Python tracker ___ _

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-12-10 Thread Florent Xicluna
Florent Xicluna added the comment: I know it won't be committed as-is, but this is the patch with most of the deprecated things removed. I skipped all the modules where a veto has been pronounced explicitly. -- keywords: +patch Added file: http://bugs.python.org/file23905/issue13248_o

[issue8931] '#' has no affect with 'c' type

2011-12-10 Thread Torsten Landschoff
Torsten Landschoff added the comment: Attached patch makes Python throw an exception in the case above. It also adds a test case for that case. -- keywords: +patch nosy: +torsten Added file: http://bugs.python.org/file23904/issue_8931.diff ___ Python

[issue8684] improvements to sched.py

2011-12-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Updated patch adding a synchronized argument to scheduler class and updating doc is in attachment. -- Added file: http://bugs.python.org/file23903/sched-thread-safe.patch ___ Python tracker

[issue13575] old style classes still alive

2011-12-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: low -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13575] old style classes still alive

2011-12-10 Thread Florent Xicluna
Florent Xicluna added the comment: Off course the leftovers are mainly in comments and documentation. See also issue #13574. -- ___ Python tracker ___ _

[issue13575] old style classes still alive

2011-12-10 Thread Florent Xicluna
New submission from Florent Xicluna : there are still some leftovers of Python 2 old-style classes. See attached patch. -- components: Interpreter Core, Library (Lib) files: oldstyle_leftovers.diff keywords: patch messages: 149188 nosy: flox priority: low severity: normal stage: patch r

[issue13378] Change the variable "nsmap" from global to instance (xml.etree.ElementTree)

2011-12-10 Thread Florent Xicluna
Florent Xicluna added the comment: Of course it's better to have someone else to review the patch. However in this case, I'm not sure it is a major feature. BTW, I noticed that effbot is currently marked as *inactive* maintainer http://docs.python.org/devguide/experts.html#stdlib If it is not

[issue13563] Make use of with statement in ftplib

2011-12-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: That's why I nosyed you. Thanks. ;) -- assignee: -> giampaolo.rodola components: +Library (Lib) keywords: +easy -patch resolution: -> fixed status: open -> closed ___ Python tracker

[issue13563] Make use of with statement in ftplib

2011-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6cd736239b8a by Giampaolo Rodola' in branch 'default': fix #13563: make use of with statement in ftplib.py where needed http://hg.python.org/cpython/rev/6cd736239b8a -- nosy: +python-dev ___ Python track

[issue5689] Support xz compression in tarfile module

2011-12-10 Thread Nadeem Vawda
Nadeem Vawda added the comment: Great stuff! I'll close this issue along with issue 6715 once the buildbot stuff is all sorted out. -- ___ Python tracker ___

[issue13574] refresh example in doc for Extending and Embedding

2011-12-10 Thread Florent Xicluna
New submission from Florent Xicluna : The example uses PyInstanceObject which is Python 2 only (old-style classes). http://docs.python.org/dev/extending/newtypes.html#weak-reference-support -- assignee: docs@python components: Documentation, Extension Modules messages: 149183 nosy: docs

[issue5689] Support xz compression in tarfile module

2011-12-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thanks for the review, guys! I can't close this issue yet because it depends on #6715. -- resolution: -> fixed stage: needs patch -> committed/rejected ___ Python tracker

[issue5689] Support xz compression in tarfile module

2011-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 899a8c7b2310 by Lars Gustäbel in branch 'default': Issue #5689: Add support for lzma compression to the tarfile module. http://hg.python.org/cpython/rev/899a8c7b2310 -- nosy: +python-dev ___ Python track

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-10 Thread Raymond Hettinger
New submission from Raymond Hettinger : The csv.writer needs a special case for floats to print them to full precision. See http://stackoverflow.com/a/8455313/1001643 In Py2.7, the csv.writer converts floats to strings using str(). This will store 1323494016.8556759 as '1323494016.86' and un

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-10 Thread Georg Brandl
Georg Brandl added the comment: I don't really like the combination of the left bar and the background color. What about making the left bar thicker, and leaving out the background color? -- ___ Python tracker _

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Note sure about icon vs. text (“Warning:”) vs. colors. I think an > icon would be as scary as the current big color boxes. I like Ezio’s > change + Antoine’s indenting suggestion. An icon will only be scary if you chopse a scary one. A "warning" icon can si

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Nikita Pchelin
Nikita Pchelin added the comment: Fair enough. Thanks for help with investigating this issue! -- ___ Python tracker ___ ___ Python-bu

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > One thing, however, that this would mean > that I would have to declare logger in any method outside of __init__, > like in shutdown() for example. If you only use the logger from the child process, you can declare and store it in the run() method. That

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-10 Thread Ezio Melotti
Ezio Melotti added the comment: > I think an icon would be as scary as the current big color boxes. Especially if I design it. Georg, is the patch ok if I add a bit of indentation as suggested by Antoine? -- ___ Python tracker

[issue13549] Incorrect nested list comprehension documentation

2011-12-10 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file23901/issue13549-3-py32.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue13549] Incorrect nested list comprehension documentation

2011-12-10 Thread Ezio Melotti
Ezio Melotti added the comment: Having both is fine. I just noticed that the 3.2 docs are different[0], so I tried to merge them: 3.2 says: """ List comprehensions provide a concise way to create lists from sequences. Common applications are to make lists where each element is the result of s

[issue13562] Notes about module load path

2011-12-10 Thread Nam Nguyen
Nam Nguyen added the comment: That would be great. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: Note sure about icon vs. text (“Warning:”) vs. colors. I think an icon would be as scary as the current big color boxes. I like Ezio’s change + Antoine’s indenting suggestion. -- nosy: +eric.araujo ___ Python tracke

[issue13567] HTTPError interface changes / breaks depending on what was passed to constructor

2011-12-10 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, ezio.melotti versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___ ___

[issue13564] ftplib and sendfile()

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: > deciding whether using sendfile() should probably be done silently (no > explicit argument) As an optimization taking advantage from OS support, I think this should be automatic too. But if there are too many issues, then explicit argument sounds better. > t

[issue13562] Notes about module load path

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch, I will make a few wording/markup editions if you don’t mind and post the edited version. -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker

[issue13561] os.listdir documentation should mention surrogateescape

2011-12-10 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, haypo, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13559] Use sendfile where possible in httplib

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

[issue13557] exec of list comprehension fails on NameError

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: Would you like to make a doc patch? -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python, eric.araujo resolution: invalid -> stage: -> needs patch versions: +Python 2.7, Python 3.3 __

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-12-10 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13551] pulldom doesn't populate DOM tree

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: So, is there a code or documentation bug in any version? -- nosy: +eric.araujo ___ Python tracker ___

[issue13550] Rewrite logging hack of the threading module

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: On #13550 I asked Guido about the Thing/_Thing function/class indirection and use of _Verbose; the reply: > IIRC: > > The design started out this way because it predates new-style classes. When > this was put in one > couldn't subclass extension types, and the

[issue13540] Document the Action API in argparse

2011-12-10 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +bethard, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13539] Return value missing in calendar.TimeEncoding.__enter__

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: Good catch. The code doesn’t break because there is a check for None later on (certainly because getlocale may return None, but here __enter__ always returns None). How did you find this? If you have a code snippet that reproduces the bug we’ll be able to add

[issue13521] Make dict.setdefault() atomic

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: maniram: We try to keep bug reports focused on one thing, and we don’t generally collect votes (we prefer that people vote with patches, tests and messages with content—for example, saying exactly what “more robust” should be). Here I think Antoine and Jesús sa

[issue13538] Improve doc for str(bytesobject)

2011-12-10 Thread Éric Araujo
Changes by Éric Araujo : -- title: Docstring of str() and/or behavior -> Improve doc for str(bytesobject) ___ Python tracker ___ ___ P

[issue13538] Docstring of str() and/or behavior

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: A note in the docs (without note/warning directives, just a note) and maybe the docstring would be good. It should better explain that str has two uses: converting anything to a str (using __str__ or __repr__), decode buffer to str (with encoding and errors arg

[issue13537] Namedtuple instances can't be pickled in a daemonized process

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: Confirmed (3.2): >>> def func(): ... t = collections.namedtuple('t', 'a') ... instance = t(1) ... print(instance) ... return pickle.dumps(instance) >>> func() t(a=1) Traceback (most recent call last): File "", line 1, in File "", line 5, in f

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the detailed bug report. I thought the normalization performed by the codec lookup system would convert 'cp-1252' to 'cp1252' (its “real” name, i.e. the name of the module implementing the codec), but it does not. I’m +1 to removing the hyphen in th

[issue13544] Add __qualname__ to functools.WRAPPER_ASSIGNMENTS

2011-12-10 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13502] Documentation for Event.wait return value is either wrong or incomplete

2011-12-10 Thread R. David Murray
R. David Murray added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13570] Expose faster unicode<->ascii functions in the C-API

2011-12-10 Thread Stefan Krah
Stefan Krah added the comment: > I prefer to not expose such function or someone will use it without > understanding exactly how dangerous it is. OK. - I'm afraid that I made an error in the benchmarks, since I accidentally used a changed version of telco.py, namely: # t is a Decimal o

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2011-12-10 Thread STINNER Victor
STINNER Victor added the comment: The problem comes maybe from the name of a curses key, keyname(). PyInit__curses() gets the name of all keys (KEY_MIN..KEY_MAX). -- ___ Python tracker ___

[issue13453] Tests and network timeouts

2011-12-10 Thread Charles-François Natali
Charles-François Natali added the comment: And I assume that the test_telnetlib failure on the OpenIndiana buildbot is due to a broken name resolution service, as in issue #11812. Here's a patch bumping the timeout to 60s, which should be enough to resolve "localhost"... -- Added file:

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2011-12-10 Thread STINNER Victor
STINNER Victor added the comment: The compilation of the module failed for the same reason: building '_curses' extension gcc -pthread -fPIC -Wno-unused-result -g -O0 -Wall -Wstrict-prototypes -DHAVE_NCURSESW=1 -I/usr/include/ncursesw -IInclude -I. -I./Include -I/usr/include/arm-linux-gnueabi

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2011-12-10 Thread STINNER Victor
New submission from STINNER Victor : http://www.python.org/dev/buildbot/all/builders/ARM%20Ubuntu%203.x/builds/143/steps/test/logs/stdio --- test test_curses crashed -- Traceback (most recent call last): File "/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/regrtest.py", line

[issue13569] multiprocessing module: Process.start() fails with EOFError: pickle.PicklingError: Can't pickle : it's not found as thread.lock

2011-12-10 Thread Nikita Pchelin
Nikita Pchelin added the comment: >> (note these aren't threads, but processes) Fair enough, I should be more careful with terminology. > Ok, can you try to move the getLogger call from _Producer.__init__ to,> _Producer.run?,> (same for _Consumer) Yes, that seems to work fine. One thing, how

[issue11886] test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": AEST timezone called "EST"

2011-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset e37a7dc8944e by Victor Stinner in branch 'default': Issue #11886: Fix also test_time for the non-DST timezone name (EST/AEST) http://hg.python.org/cpython/rev/e37a7dc8944e -- ___ Python tracker

[issue13530] Docs for os.lseek neglect to mention what it returns

2011-12-10 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13564] ftplib and sendfile()

2011-12-10 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13453] Tests and network timeouts

2011-12-10 Thread Charles-François Natali
Charles-François Natali added the comment: The test_poplib failures are likely due to this obvious race: """ def setUp(self): [...] threading.Thread(target=self.server, args=(self.evt,self.sock)).start() time.sleep(.1) [...] def server(self, evt, serv): serv.lis

[issue13559] Use sendfile where possible in httplib

2011-12-10 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13570] Expose faster unicode<->ascii functions in the C-API

2011-12-10 Thread STINNER Victor
STINNER Victor added the comment: Le 09/12/2011 22:12, Stefan Krah a écrit : > The bottleneck in _decimal is (res is ascii): > > PyUnicode_FromString(res); > > PyUnicode_DecodeASCII(res) has the same performance. > > > With this function ... > >static PyObject* > unicode_fromascii(const

[issue13502] Documentation for Event.wait return value is either wrong or incomplete

2011-12-10 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks, here's a patch updated accordingly. -- Added file: http://bugs.python.org/file23897/event_wait_cleared-1.diff ___ Python tracker _

[issue13453] Tests and network timeouts

2011-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ba1a22c8988 by Charles-François Natali in branch '2.7': Issue #13453: Catch EAI_FAIL in support.transient_internet. http://hg.python.org/cpython/rev/5ba1a22c8988 New changeset c998c6f5464b by Charles-François Natali in branch '3.2': Issue #13453:

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-12-10 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch to help nail this down. -- Added file: http://bugs.python.org/file23896/debug_stuck.diff ___ Python tracker ___ ___

[issue10408] Denser dicts and linear probing

2011-12-10 Thread Charles-François Natali
Charles-François Natali added the comment: This paper might be of interest: http://www.siam.org/meetings/alenex05/papers/13gheileman.pdf Basically, it concludes that most of the time, there's no speedup to be gained from the increased cached locality incurred by linear probing when the input

[issue13453] Tests and network timeouts

2011-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Wow, the error description ("Non-recoverable failure in name resolution") is as useful as a Windows error message. Ok for the patch. -- ___ Python tracker ___

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset f82ebf9b3a52 by Florent Xicluna in branch 'default': Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd). http://hg.python.org/cpython/rev/f82ebf9b3a52 -- _

[issue13569] multiprocessing module: Process.start() fails with EOFError: pickle.PicklingError: Can't pickle : it's not found as thread.lock

2011-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > To make sure we are on the same page, here is what I changed it to: > https://github.com/jango/PC/blob/test/pc/pc.py > > -> lines 47-50 commented out (init of PC class that initialises threads); > -> lines 64, 65, 77, 78 getLogger within the PC class and prin

Dict.update documentation bug

2011-12-10 Thread Gerrat Rickert
The current docstring for dict.update shows: >>> help(dict.update) Help on method_descriptor: update(...) D.update(E, **F) -> None. Update D from dict/iterable E and F. If E has a .keys() method, does: for

[issue13453] Tests and network timeouts

2011-12-10 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma