Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
On 15/10/2013 02:50, Roy Smith wrote: In article mailman.1087.1381800936.18130.python-l...@python.org, Terry Reedy tjre...@udel.edu wrote: The first versions of Python and unicode were developed and released about the same time. No one knew that either would be as successful as they have

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Antoon Pardon
Op 15-10-13 01:11, Chris Angelico schreef: On Tue, Oct 15, 2013 at 6:18 AM, John Nagle na...@animats.com wrote: Operator + as concatenation for built-in arrays but addition for NumPy arrays. ... NumPy definitely isn't part of the language. It's not even part of the standard library, it's

Re: How to manage Git or Mercurial repositories

2013-10-15 Thread Michael Ströder
Andriy Kornatskyy wrote: Managing version control repositories can be a challenge in multi-user environment especially when simplification of user collaboration is your goal. There are usually two primary concerns while considering enterprise deployment for version control repositories:

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Steven D'Aprano
On Tue, 15 Oct 2013 10:11:53 +1100, Chris Angelico wrote: On Tue, Oct 15, 2013 at 6:18 AM, John Nagle na...@animats.com wrote: Old-style classes vs. new-style classes. By the time I started using Python, new-style classes existed and were the recommended way to do things, so I never got

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Chris Angelico
On Tue, Oct 15, 2013 at 6:48 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 15-10-13 01:11, Chris Angelico schreef: On Tue, Oct 15, 2013 at 6:18 AM, John Nagle na...@animats.com wrote: Operator + as concatenation for built-in arrays but addition for NumPy arrays. ... NumPy

Mailing list contained posts with acute accent for apostrophe.

2013-10-15 Thread Tae Wong
The acute accent (´) is a special apostrophe if the user has no experience or can't type in the apostrophe (or the grave accent: `). You don't use Python but you aren't subscribed to this list (so non-subscribers can post). Example of special quotes: `xxx´ An example of a post on the python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Antoon Pardon
Op 15-10-13 10:57, Chris Angelico schreef: On Tue, Oct 15, 2013 at 6:48 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 15-10-13 01:11, Chris Angelico schreef: On Tue, Oct 15, 2013 at 6:18 AM, John Nagle na...@animats.com wrote: Operator + as concatenation for built-in arrays but

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Steven D'Aprano
On Tue, 15 Oct 2013 19:57:50 +1100, Chris Angelico wrote: On Tue, Oct 15, 2013 at 6:48 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: That doesn't matter. Adding and concating are different operations and their are types in which both occur rather naturally. So as a designer of such

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Tuesday, October 15, 2013 2:20:10 PM UTC+5:30, Steven D'Aprano wrote: If you read the whole python-history blog on blogspot, you'll see that Python's had it's share of mistakes, design failures and other oops! moments. I think that it is a testament to GvR's over-all design that the end

Problem calling script with arguments

2013-10-15 Thread Florian Lindner
Hello, I have a 3rd party perl script: head -n 1 /usr/sbin/ftpasswd #!/usr/bin/perl I want to write data to stdin and read from stdout: proc = Popen( [/usr/bin/perl, /usr/sbin/ftpasswd --hash, --stdin], stdout=PIPE, stdin=PIPE) output, input = proc.communicate(pwd) return output.strip()

Re: Problem calling script with arguments

2013-10-15 Thread Michael Speer
/usr/sbin/ftpasswd --hash You're missing a comma, and python automatically concatenates adjacent strings. On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner mailingli...@xgm.dewrote: Hello, I have a 3rd party perl script: head -n 1 /usr/sbin/ftpasswd #!/usr/bin/perl I want to write

Re: Problem calling script with arguments

2013-10-15 Thread Florian Lindner
Am Dienstag, 15. Oktober 2013, 13:18:17 schrieb Michael Speer: /usr/sbin/ftpasswd --hash You're missing a comma, and python automatically concatenates adjacent strings. Damn! Thanks! On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner mailingli...@xgm.dewrote: Hello, I have a 3rd

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Chris Angelico
On Wed, Oct 16, 2013 at 2:01 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 15 Oct 2013 19:57:50 +1100, Chris Angelico wrote: Python doesn't happen to implement str-str or str/str, but some languages do: Which languages are you talking about? For the record, if PHP

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread wxjmfauth
Le lundi 14 octobre 2013 21:18:59 UTC+2, John Nagle a écrit : [...] No, Python went through the usual design screwups. Look at how painful the slow transition to Unicode was, from just str to Unicode strings, ASCII strings, byte strings, byte arrays, 16 and 31 bit character

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Janssen
Objects in programming languages (or 'values' if one is more functional programming oriented) correspond to things in the world. One of the things you're saying there is that values correspond to things in the world. But you will not get agreement in computer science on that anymore than

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
On 15/10/2013 21:11, wxjmfa...@gmail.com wrote: Le lundi 14 octobre 2013 21:18:59 UTC+2, John Nagle a écrit : [...] No, Python went through the usual design screwups. Look at how painful the slow transition to Unicode was, from just str to Unicode strings, ASCII strings, byte

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Tim Chase
On 2013-10-16 06:09, Chris Angelico wrote: xyz - abc; (1) Result: xyz cba - abc; (2) Result: cba abcdabc - abc; (3) Result: d Every instance of the subtracted-out string is removed. It's something like x.remove(y) in many other languages. Or as one might write x.remove(y) in

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Grant Edwards
On 2013-10-15, Mark Janssen dreamingforw...@gmail.com wrote: Yeah, well 40 years ago they didn't have parsers. That seems an odd thing to say. People were assembling and compiling computer programs long before 1973. How did they do that without parsers? -- Grant Edwards

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Rhodri James
On Tue, 15 Oct 2013 21:26:27 +0100, Mark Janssen dreamingforw...@gmail.com wrote: = Rusi, attribution missing from original. Objects in programming languages (or 'values' if one is more functional programming oriented) correspond to things in the world. One of the things you're saying

Re: PID tuning.

2013-10-15 Thread John Nagle
On 10/14/2013 2:03 PM, Ben Finney wrote: Renato Barbosa Pim Pereira renato.barbosa.pim.pere...@gmail.com writes: I am looking for some software for PID tuning that would take the result of a step response, and calculates Td, Ti, Kp, any suggestion or hint of where to start?, thanks. Is

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
On 15/10/2013 21:26, Mark Janssen wrote: Yeah, well 40 years ago they didn't have parsers. I'm very pleased to see that (presumably) some Americans do have a sense of humour. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence --

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Peter Cacioppi
only I'm focusing on the importance of design rather than deifying the person who designed it. I'm cool with deification here. I'll happily get on my knees and bow towards Holland while chanting Guido ... I'm not worthy 5 times a day, if that's part of the cult. Want an odd and ranty

Re: Python was designed

2013-10-15 Thread Piet van Oostrum
Mark Janssen dreamingforw...@gmail.com writes: Yeah, well 40 years ago they didn't have parsers. The purpose of having a field of computer science worthy of the name, is to advance the science not let this riff-raff dominate the practice. Hah! 40 years ago I wrote a parser generator

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: Objects in programming languages (or 'values' if one is more functional programming oriented) correspond to things in the world. One of the things you're saying there is that values correspond to things in the world. But

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Wednesday, October 16, 2013 3:31:06 AM UTC+5:30, Rhodri James wrote: On Tue, 15 Oct 2013 21:26:27 +0100, Mark Janssen wrote: = Rusi, attribution missing from original. Yes. It would help to keep your quotes bound (firstclassly?) to their respective quoters -- Mark Janssen also and

Re: Complex literals (was Re: I am never going to complain about Python again)

2013-10-15 Thread John Nagle
On 10/10/2013 6:27 PM, Steven D'Aprano wrote: For what it's worth, there is no three-dimensional extension to complex numbers, but there is a four-dimensional one, the quaternions or hypercomplex numbers. They look like 1 + 2i + 3j + 4k, where i, j and k are all distinct but i**2 == j**2 ==

[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19079 ___

[issue5411] Add xz support to shutil

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.4 beta 1 will be soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___ Python-bugs-list

[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Giampaolo, Raymond? What are your opinions? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13451 ___ ___

[issue18652] Add itertools.first_true (return first true item in iterable)

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK, now I have a place in the non-test email code where using this would lead to easier-to-read code. Now you have not this place. ;) -- ___ Python tracker rep...@bugs.python.org

[issue19201] Add 'x' mode to lzma.open()

2013-10-15 Thread Vajrasky Kok
Vajrasky Kok added the comment: Stopped the leaking after running the test by adding self.addCleanup. -- Added file: http://bugs.python.org/file32130/add_x_mode_to_lzma_v3.patch ___ Python tracker rep...@bugs.python.org

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Found the cause of the ssl test failure -- the location of the ssl test key and cert are different. Here's a new patch with a quick fix (#4), but I think the correct solution is to either have the certificates inline in the source and write them to a temp

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-15 Thread STINNER Victor
STINNER Victor added the comment: Tim http://msdn.microsoft.com/en-us/library/windows/desktop/aa366750(v=vs.85).aspx Yes, this one. Tim BTW, everything I've read (including the MSDN page I linked to) says that the LFH is enabled _by default_ starting in Windows Vista (which I happen to be

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: It should be enabled explicitly. Victor, please read your own link before posting: The information in this topic applies to Windows Server 2003 and Windows XP. Starting with Windows Vista, the system uses the low-fragmentation heap (LFH) as needed to service

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-15 Thread STINNER Victor
STINNER Victor added the comment: Victor, please read your own link before posting: Oh. I missed this part, that's why I didn't understand Tim's remark. So the issue comes the Windows heap allocator. I don't see any obvious improvment that Python can do to improve the memory usage. I close

[issue19246] high fragmentation of the memory heap on Windows

2013-10-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: freeing then reallocating lots of memory fails under Windows - high fragmentation of the memory heap on Windows ___ Python tracker rep...@bugs.python.org

[issue19246] high fragmentation of the memory heap on Windows

2013-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: fixed - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19246 ___ ___

[issue16845] warnings.simplefilter should validate input

2013-10-15 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch to add the validation in simplefilter with the test. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file32131/add_assert_in_simplefilter.patch ___ Python tracker

[issue17221] Resort Misc/NEWS

2013-10-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17221 ___ ___

[issue17221] Resort Misc/NEWS

2013-10-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 484ce82b7873 by Serhiy Storchaka in branch 'default': Issue #17221: Merge 3.4.0 Alpha 1 entries before and after 3.3.1 release candidate 1. http://hg.python.org/cpython/rev/484ce82b7873 -- ___ Python

[issue5411] Add xz support to shutil

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy's patch needs a versionchanged or versionadded tag in the Docs. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___

[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy, perhaps it would be useful to see if such optimizations can apply to Tulip's (or asyncio's) event loop, since it will probably be the new standard in 3.4. -- nosy: +pitrou ___ Python tracker

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B
Tyler B added the comment: I wanted to make an edit so here's my revised comment: Looked at the code and found differences between 3.4 and 2.7. 2.7 has 4 exceptions that can be raised while 3.4 has 3 exceptions. I propose removing the list of parameters from the documenation to keep things

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the better solution would be to fix the test inheritance hierarchy: only concrete test classes should inherit from unittest.TestCase. Then the code can be simplified by simply calling unittest.main(__name__). -- nosy: +pitrou stage: - patch

[issue15817] Misc/gdbinit: Expose command documentation to gdb help

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks like a good idea. Of course, since we now have the python-gdb pluging which provides much more powerful diagnostics on modern gdbs, the usefulness of gdbinit is a bit reduced. -- nosy: +pitrou ___ Python

[issue19219] speed up marshal.loads()

2013-10-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19219 ___ ___ Python-bugs-list mailing list

[issue19256] Optimize marshal format and add version token.

2013-10-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19256 ___ ___ Python-bugs-list mailing list

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B
Tyler B added the comment: One last edit: Looked at the code and found differences between 3.4 and 2.7. 2.7 has 4 exceptions that can be raised while 3.4 has 3 exceptions. I propose including the full list of parameters but describing the exceptions in a way that's less specific about the

[issue19265] Increased test coverage for datetime pickling

2013-10-15 Thread Colin Williams
New submission from Colin Williams: This just increases test coverage for the datetime module by one line. -- components: Library (Lib) files: datetimepickling.patch keywords: patch messages: 13 nosy: Colin.Williams priority: normal severity: normal status: open title: Increased

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Georg Brandl
Georg Brandl added the comment: Tyler, thanks for the suggestion. However it doesn't really solve the issue: the parameter order is the opposite of the current doc text (and your suggested text). -- nosy: +georg.brandl ___ Python tracker

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Nick Coghlan
New submission from Nick Coghlan: Issue 15806 added contextlib.ignored to the standard library (later renamed to contextlib.ignore), as a simple helper that allows code like: try: os.remove(fname) except FileNotFoundError: pass to instead be written as: with

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: The specific docs quotes that persuaded me suppress was a better name than ignore for this feature (by contrast, ignore in this sense only appears in its own docs): From http://docs.python.org/dev/library/stdtypes.html#contextmanager.__exit__: Exit the runtime

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19266 ___ ___ Python-bugs-list mailing

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Zero Piraeus
Zero Piraeus added the comment: This is my first submitted patch; if there's anything wrong with it, please let me know (but the testsuite passes, and make patchcheck only warns about Misc/NEWS and Misc/ACKS, which I assume is handled by committer). -- keywords: +patch nosy:

[issue19265] Increased test coverage for datetime pickling

2013-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Tests nosy: +belopolsky stage: - patch review versions: +Python 3.4 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19265

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: Zero's patch looks good to me, but it may be a couple of days before I can get to applying it. If anyone else can handle it before then, please feel free :) Also, Zero, if you could review and sign the contributor agreement, that would be great:

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Zero Piraeus
Zero Piraeus added the comment: Zero, if you could review and sign the contributor agreement, that would be great: http://www.python.org/psf/contrib/contrib-form/ Done :-) -- ___ Python tracker rep...@bugs.python.org

[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Brett Cannon
Brett Cannon added the comment: I'm seeing the same error as Stefan. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19079 ___

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski
New submission from Paweł Wroniszewski: The following code reproduces the error: import logging logging.root.addHandler(logging.FileHandler(filename='test.log',encoding='UTF16')) logging.error( u'b\u0142\u0105d') I think the problem is in the line logging/__init__.py:860: ufs =

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor
STINNER Victor added the comment: The example works fine on Python3: localhost$ python3 Python 3.3.2 (default, Aug 23 2013, 19:00:04) [GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux Type help, copyright, credits or license for more information. import logging

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the purpose of fs.decode(stream.encoding): why not directly using ufs=u'%s\n? @Pawel: Can you please try to replace ufs=fs.decode(stream.encoding) with ufs=u'%s\n'? -- ___ Python tracker

[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread Ivan Pozdeev
New submission from Ivan Pozdeev: It appears that the interpreter assigns an identifier to local or global scope at compilation time rather than searching locals, then globals (i.e. vars()) at the time of execution. An example: def test(): ... vars()['a']=1 ... print(a) ... test()

[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread R. David Murray
R. David Murray added the comment: Not really. But locals() is not reliably modifiable, and the vars documentation also notes this. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___ Python

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Turns out there were other uses of the sample key/cert pair. The easiest solution is to just have the code try both locations if necessary. Here's a new patch to review. -- Added file: http://bugs.python.org/file32134/asyncio5.patch

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: This patch looks fine. I'll apply it shortly. -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19266 ___

[issue12866] Add support for 24-bit samples in the audioop module

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Antoine's comments. -- Added file: http://bugs.python.org/file32135/audioop_24bit_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12866

[issue18725] Multiline shortening

2013-10-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e8c424dc638 by Serhiy Storchaka in branch 'default': Issue #18725: The textwrap module now supports truncating multiline text. http://hg.python.org/cpython/rev/2e8c424dc638 -- ___ Python tracker

[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Georg Brandl
Georg Brandl added the comment: Ah yes, I somehow missed running perf.py itself with Python 3. Should be fixed now; adapting the #19108 patch should be easy enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19079

[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19079 ___

[issue18725] Multiline shortening

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Antoine has approved this on IRC. Thank you Ezio and Antoine for your reviews. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I will see. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13451 ___ ___ Python-bugs-list mailing list

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski
Paweł Wroniszewski added the comment: Hi Victor. Your fix works, but actually using simply ufs='%s\n' also seem to work, as type( '%s' % u'foo') and type( u'%s' % u'foo') returns the same - unicode. So I would suggest dropping ufs completely, and changing the two occurences to fs. It works

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski
Paweł Wroniszewski added the comment: Btw I also don't see the purspose of fs.decode(stream.encoding), as it should rather be encoded and not decoded... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19267

[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I don't have time to look into Serhiy's changes right now but here's a brief summary: - there's a (I think) *minor* downside in terms of backward compatibility because scheduler._queue won't be updated after cancel() (basically this is the reason why this

[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry, I failed to notice there's a scheduler.queue property which exposes the underlying _queue attribute so the patch should take that into account and return the updated list. -- ___ Python tracker

[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment applies cleanly with the current 3.4 code (last one wasn't) and returns an updated list on scheduler.queue. I rebased my work starting from my original patch (cancel.patch) not Serhiy's because it wasn't clear to me *where* exactly

[issue19085] Add tkinter basic options tests

2013-10-15 Thread Ned Deily
Ned Deily added the comment: With Aqua Cocoa Tcl/Tk 8.5.14 or 8.6.0 (using ActiveState's 8.5.14 or 8.6.0) on OS X 10.8.5, running test_ttk_guionly: == ERROR: test_class (tkinter.test.test_ttk.test_widgets.ScrollbarTest)

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Natal Ngétal
Natal Ngétal added the comment: Hi, here the patch to fix this bug on Python 2.7 with a test suite. -- nosy: +hobbestigrou Added file: http://bugs.python.org/file32137/patch_utf16 ___ Python tracker rep...@bugs.python.org

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed, thanks for reporting! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14407

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 38243a0a1f44 by Antoine Pitrou in branch '3.3': Issue #14407: Fix unittest test discovery in test_concurrent_futures. http://hg.python.org/cpython/rev/38243a0a1f44 New changeset 9cc40bc5f02b by Antoine Pitrou in branch 'default': Issue #14407: Fix

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor
STINNER Victor added the comment: patch_utf16 looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19267 ___ ___ Python-bugs-list

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +Unicode nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19267 ___

[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: it wasn't clear to me *where* exactly the enter() speedup was introduced Constructing Event object. You introduced __init__(). Here is a patch which is based on my patch and new Giampaolo's patch. In additional it fixes a performance for the queue property

[issue19085] Add tkinter basic options tests

2013-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19085 ___ ___ Python-bugs-list mailing list

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e94e29dab32c by Victor Stinner in branch '2.7': Close #19267: Fix support of multibyte encoding (ex: UTF-16) in the logging http://hg.python.org/cpython/rev/e94e29dab32c -- nosy: +python-dev resolution: - fixed stage: - committed/rejected

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor
STINNER Victor added the comment: This bug is specific to Python 2. I should now be fixed, thanks Paweł for the report and Natal for the patch. @Natal: Could you please sign the Contributor Agreement for next contributions? http://www.python.org/psf/contrib/contrib-form/ --

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski
Paweł Wroniszewski added the comment: Cool - looks good to me as well. Thanks guys. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19267 ___ ___

[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman resolution: invalid - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19268

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a partial patch for Windows. (Mostly for myself; I need to integrate this into the main patch.) -- Added file: http://bugs.python.org/file32139/winasyncio.diff ___ Python tracker rep...@bugs.python.org

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a full new patch, with Windows project/solution changes included, and updated from the latest Tulip asyncio branch. -- Added file: http://bugs.python.org/file32140/asyncio6.patch ___ Python tracker

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: Removed file: http://bugs.python.org/file32139/winasyncio.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: PS. There's some garbage at the start of pcbuild.sln (perhaps a BOM mark?). I'm not going to re-upload the patch for now, but please note this. -- ___ Python tracker rep...@bugs.python.org

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B
Tyler B added the comment: Here's a revised suggestion that has the order changed. I have additional concerns but please provide comment on this revision. Thanks # 2.7 Raises an exception. argc indicates the number of parameters to the raise statement, ranging from 0 to 3. The parameters can

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Zachary Ware
Zachary Ware added the comment: I had missed this issue before; issue16968 tracks the same thing. There are a couple of issues that the committed patch doesn't address. Namely, the file still uses test_main, and there is no thread or process reaping when running the file via discovery.

[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread R. David Murray
R. David Murray added the comment: Ethan, why did you reopen the issue? Do you have a different opinion, or was it just an issue-update error? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19268

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19267 ___ ___ Python-bugs-list mailing list

[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread Ethan Furman
Ethan Furman added the comment: Oops! Issue update error, I was just adding myself to nosy as it looked like it was still open. Re-closing. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker

[issue19269] subtraction of pennies incorrect rounding or truncation problem

2013-10-15 Thread Pete
New submission from Pete: Python makes errors on simple subtraction with 'pennies'. 2000.0 - 1880.98 119.019998 See attached file for more examples... -- components: Windows files: py_subtraction_bug messages: 200035 nosy: radiokinetics.pete priority: normal severity: normal

[issue19269] subtraction of pennies incorrect rounding or truncation problem

2013-10-15 Thread Tim Peters
Tim Peters added the comment: Please read this: http://docs.python.org/2/tutorial/floatingpoint.html A web search will lead you to thousands of discussions of alternatives. Probably best to use the `decimal` module if you're working heavily with decimal values. -- nosy: +tim.peters

  1   2   >