Python @ FOSDEM 2015 - Call For Proposals

2014-11-07 Thread Stéphane Wirtel
* Please forward this CfP to anyone who may be interested in participating. * Hi all, This is the official call for sessions for the `Python Devroom` at `FOSDEM 2015` . FOSDEM is the Free and Open source Software Developers' European Meeting, a free and non-commercial two-day week-end that

Python @ FOSDEM 2015 - Call For Proposals

2014-11-07 Thread Stéphane Wirtel
* Please forward this CfP to anyone who may be interested in participating. * Hi all, This is the official call for sessions for the `Python Devroom` at `FOSDEM 2015` . FOSDEM is the Free and Open source Software Developers' European Meeting, a free and non-commercial two-day week-end that

Re: Python has arrived!

2014-11-07 Thread Steve Hayes
On Thu, 6 Nov 2014 15:22:45 + (UTC), Grant Edwards invalid@invalid.invalid wrote: According to http://www.theregister.co.uk/2014/11/06/hackers_use_gmail_drafts_as_dead_drops_to_control_malware_bots: Attacks occur in two phases. Hackers first infect a targeted machine via simple malware

Re: Python has arrived!

2014-11-07 Thread Heinz Schmitz
Steve Hayes wrote: According to http://www.theregister.co.uk/2014/11/06/hackers_use_gmail_drafts_as_dead_drops_to_control_malware_bots: Attacks occur in two phases. Hackers first infect a targeted machine via simple malware that installs Python onto the device, [...] [Fri, 07 Nov 2014

Re: Python has arrived!

2014-11-07 Thread Gregory Ewing
Steve Hayes wrote: On Thu, 6 Nov 2014 15:22:45 + (UTC), Grant Edwards invalid@invalid.invalid wrote: According to http://www.theregister.co.uk/2014/11/06/hackers_use_gmail_drafts_as_dead_drops_to_control_malware_bots: 404: Page not found Works if you remove the spurious colon from the

Re: Understanding help command description syntax - explanation needed

2014-11-07 Thread cl
Darren Chen ccylily1...@gmail.com wrote: 在 2014年11月5日星期三UTC+8下午8时17分11秒,larry@gmail.com写道: On Wed, Nov 5, 2014 at 7:13 AM, Ivan Evstegneev webmailgro...@gmail.com wrote: Firtst of all thanks for reply. brackets [] means that the argument is optional. That's what I'm talking

Re: Understanding help command description syntax - explanation needed

2014-11-07 Thread Bob Martin
in 730867 20141107 093651 c...@isbd.net wrote: Darren Chen ccylily1...@gmail.com wrote: 在 2014年11月5日星期三UTC+8下午8时17分11秒,larry@gmail.com写道: On Wed, Nov 5, 2014 at 7:13 AM, Ivan Evstegneev webmailgro...@gmail.com wrote: Firtst of all thanks for reply

Python @ FOSDEM 2015 - Call For Proposals

2014-11-07 Thread Stéphane Wirtel
* Please forward this CfP to anyone who may be interested in participating. * Hi all, This is the official call for sessions for the `Python Devroom` at `FOSDEM 2015` . FOSDEM is the Free and Open source Software Developers' European Meeting, a free and non-commercial two-day week-end that

Re: Understanding help command description syntax - explanation needed

2014-11-07 Thread Dave Angel
Bob Martin bob.mar...@excite.com Wrote in message: in 730867 20141107 093651 c...@isbd.net wrote: Darren Chen ccylily1...@gmail.com wrote: 在 2014年11月5日星期三UTC+8下午8时17分11秒,larry@gmail.com写道: On Wed, Nov 5, 2014 at 7:13 AM, Ivan Evstegneev webmailgro

Re: Understanding help command description syntax - explanation needed

2014-11-07 Thread Steven D'Aprano
Dave Angel wrote: Approximately 1968 for me. I wrote programs in 1967, but didn't get to run them till 1968. I once used a compiler that slow too. -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] Dinamically set __call__ method

2014-11-07 Thread Ethan Furman
On 11/06/2014 10:59 PM, dieter wrote: John Ladasky writes: On Tuesday, November 4, 2014 11:12:31 AM UTC-8, Ethan Furman wrote: If you really absolutely positively have to have the signature be correct for each instance, you may to either look at a function creating factory, a class creating

Re: Understanding help command description syntax - explanation needed

2014-11-07 Thread Larry Martell
On Fri, Nov 7, 2014 at 7:52 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Dave Angel wrote: Approximately 1968 for me. I wrote programs in 1967, but didn't get to run them till 1968. I once used a compiler that slow too. Yeah, I think it was made by Intermetrics. Or

Re: Understanding help command description syntax - explanation needed

2014-11-07 Thread William Ray Wing
On Nov 7, 2014, at 7:42 AM, Dave Angel da...@davea.name wrote: Bob Martin bob.mar...@excite.com Wrote in message: in 730867 20141107 093651 c...@isbd.net wrote: Darren Chen ccylily1...@gmail.com wrote: 在 2014å¹´11月5日星期三UTC+8下午8时17分11秒,larry@gmail.com写道ï

bdist_rpm with --requires and version

2014-11-07 Thread thomas . lehmann
Hi, using the RPM build I wonder how I can require a certain version of another RPM like: Working: python setup.py bdist_rpm --requires=another-package But how to? ... python setup.py bdist_rpm --requires=another-package=2.1 Of course this will generate a =2.1 file which is of course not

generating 2D bit array variants with specific algorythm

2014-11-07 Thread Robert Voigtländer
Hi, I need to generate all variants of a 2D array with variable dimension sizes which fit a specific rule. (up to 200*1000) The rules are: - Values are only 0 or 1 - the sum of each line bust be 1 - only valid results must be generated (generating all and only returning the valid results takes

Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Paul Moore
I'm in the process of developing an automated solution to allow users to quickly set up a Windows box so that it can be used to compile Python extensions and build wheels. While it can obviously be used by Windows developers who want to quickly set up a box, my main target is Unix developers who

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Donald Stufft
On Nov 7, 2014, at 10:46 AM, Paul Moore p.f.mo...@gmail.com wrote: I'm in the process of developing an automated solution to allow users to quickly set up a Windows box so that it can be used to compile Python extensions and build wheels. While it can obviously be used by Windows

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread Joel Goldstick
On Fri, Nov 7, 2014 at 10:39 AM, Robert Voigtländer r.voigtlaen...@gmail.com wrote: Hi, I need to generate all variants of a 2D array with variable dimension sizes which fit a specific rule. (up to 200*1000) The rules are: - Values are only 0 or 1 - the sum of each line bust be 1 - only

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread Robert Voigtländer
1011 What I mean is do you throw away the carry or does each row have only one zero? Not sure what you mean. Each row must have one 1. The rest must be 0. No combinations not fitting this rule must be generated. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Wichert Akkerman
On 07 Nov 2014, at 16:46, Paul Moore p.f.mo...@gmail.com wrote: I'm in the process of developing an automated solution to allow users to quickly set up a Windows box so that it can be used to compile Python extensions and build wheels. While it can obviously be used by Windows developers

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread Peter Otten
Robert Voigtländer wrote: Hi, I need to generate all variants of a 2D array with variable dimension sizes which fit a specific rule. (up to 200*1000) The rules are: - Values are only 0 or 1 - the sum of each line bust be 1 - only valid results must be generated (generating all and only

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread ast
Robert Voigtländer r.voigtlaen...@gmail.com a écrit dans le message de news:e5c93b46-a32b-4eca-a00d-f7dd2b4bb...@googlegroups.com... 1011 What I mean is do you throw away the carry or does each row have only one zero? Not sure what you mean. Each row must have one 1. The rest must be 0. No

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread ast
Robert Voigtländer r.voigtlaen...@gmail.com a écrit dans le message de news:0e6787f9-88d6-423a-8410-7578fa83d...@googlegroups.com... Let be L the number of lines and C the numbers of column You solve your problem just with counting on base C On base C, a number may be represented with

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread ast
ast nom...@invalid.com a écrit dans le message de news:545cf9f0$0$2913$426a3...@news.free.fr... On base C, a number may be represented with N(L-1)N(L-2) ... N(1)N(0) where N(i) goes from 0 to C-1 -- https://mail.python.org/mailman/listinfo/python-list

RE: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Steve Dower
Ben Finney wrote: Paul Moore p.f.mo...@gmail.com writes: To that end, I'd like to get an idea of what sort of access to Windows a typical Unix developer would have. […] Ideally, a clean Windows 7 or later virtual machine is the best environment, but I don't know if it's reasonable to assume

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Paul Moore
On 7 November 2014 16:52, Ben Finney ben+pyt...@benfinney.id.au wrote: If I was required to provide packages for MS Windows, the only viable solutions would be those that don't involve me obtaining an MS Windows instance myself. For that usage, an Amazon EC2 AMI sounds ideal, as the license

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Paul Moore
On 7 November 2014 17:17, Ben Finney ben+pyt...@benfinney.id.au wrote: Paul Moore p.f.mo...@gmail.com writes: On 7 November 2014 16:52, Ben Finney ben+pyt...@benfinney.id.au wrote: If I was required to provide packages for MS Windows, the only viable solutions would be those that don't

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Paul Moore
On 7 November 2014 17:42, Ben Finney ben+pyt...@benfinney.id.au wrote: Does this prevent you from creating a VM on a cloud provider on your own account? If I need to accept restrictions such as the above, I don't see that the location of the instance (nor the fees charged) has any affect on

Re:generating 2D bit array variants with specific algorythm

2014-11-07 Thread Dave Angel
Robert Voigtländer r.voigtlaen...@gmail.com Wrote in message: Hi, I need to generate all variants of a 2D array with variable dimension sizes which fit a specific rule. (up to 200*1000) The rules are: - Values are only 0 or 1 - the sum of each line bust be 1 - only valid results must

How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-07 Thread Veek M
def jump_to_blockD(self): end = len(self.b) row, col = self.w.cursor while row = end: try: new_col = self.b[row].index('def') self.w.cursor = row, new_col break except ValueError:

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread Gregory Ewing
Robert Voigtländer wrote: I need to generate all variants of a 2D array with variable dimension sizes which fit a specific rule. (up to 200*1000) Um... you realise there are 200**1000 solutions for the 200x1000 case? Are you sure that's really what you want? -- Greg --

Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-07 Thread Joel Goldstick
On Fri, Nov 7, 2014 at 5:16 AM, Veek M vek.m1...@gmail.com wrote: def jump_to_blockD(self): end = len(self.b) row, col = self.w.cursor while row = end: try: new_col = self.b[row].index('def') self.w.cursor = row,

Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-07 Thread Denis McMahon
On Fri, 07 Nov 2014 21:22:22 +0630, Veek M wrote: Veek M wrote: new_col = self.b[row].index('def') self.w.cursor = row, new_col new_col = self.b[row].rindex('def') self.w.cursor = row, new_col There's also the different

Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-07 Thread Chris Angelico
On Fri, Nov 7, 2014 at 9:16 PM, Veek M vek.m1...@gmail.com wrote: def jump_to_blockD(self): end = len(self.b) row, col = self.w.cursor while row = end: try: new_col = self.b[row].index('def') self.w.cursor = row,

Re: Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Steven D'Aprano
Paul Moore wrote: To that end, I'd like to get an idea of what sort of access to Windows a typical Unix developer would have. I'm particularly interested in whether Windows XP/Vista is still in use, and whether you're likely to already have Python and/or any development tools installed.

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread sohcahtoa82
On Friday, November 7, 2014 1:13:27 PM UTC-8, Gregory Ewing wrote: Robert Voigtländer wrote: I need to generate all variants of a 2D array with variable dimension sizes which fit a specific rule. (up to 200*1000) Um... you realise there are 200**1000 solutions for the 200x1000 case? Are

Different behaviour in list comps and generator expressions

2014-11-07 Thread Steven D'Aprano
The following list comprehension and generator expression are almost, but not quite, the same: [expr for x in iterable] list(expr for x in iterable) The difference is in the handling of StopIteration raised inside the expr. Generator expressions consume them and halt, while comprehensions

Re: Different behaviour in list comps and generator expressions

2014-11-07 Thread Roy Smith
In article 545d76fe$0$12980$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: The following list comprehension and generator expression are almost, but not quite, the same: [expr for x in iterable] list(expr for x in iterable) The

Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-07 Thread Veek M
Veek M wrote: new_col = self.b[row].index('def') self.w.cursor = row, new_col new_col = self.b[row].rindex('def') self.w.cursor = row, new_col There's also the different methods index vs rindex. Does this sort of thing

Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-07 Thread Denis McMahon
On Fri, 07 Nov 2014 16:46:19 +0630, Veek M wrote: (1) Pass a true or false parameter to the function as the direction of search toggle. (2) replace the relevant assignments with something like: variable = something if condition else something else (3) Figuring out the while loop control is a

Re: bdist_rpm with --requires and version

2014-11-07 Thread Chris Angelico
On Sat, Nov 8, 2014 at 2:18 AM, thomas.lehm...@teamaol.com wrote: But how to? ... python setup.py bdist_rpm --requires=another-package=2.1 Of course this will generate a =2.1 file which is of course not wanted. What shell are you on? On POSIX shells, just quote or escape the relevant

Re: [Python-Dev] Dinamically set __call__ method

2014-11-07 Thread dieter
Ethan Furman et...@stoneleaf.us writes: On 11/06/2014 10:59 PM, dieter wrote: John Ladasky writes: On Tuesday, November 4, 2014 11:12:31 AM UTC-8, Ethan Furman wrote: If you really absolutely positively have to have the signature be correct for each instance, you may to either look at a

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately I can't reproduce this bug (Python 3.4.0, Linux). When close the main window the output is: Traceback (most recent call last): File tktest.py, line 6, in module filename = tkinter.filedialog.askopenfilename() File

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: Here's an example from the notmuch list. You can trigger the exception in Python 3.4 with: import email.policy import mailbox mbox = mailbox.mbox('msg.mbox', factory=None, create=False) message = mbox[0]

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Denis Bilenko
Denis Bilenko added the comment: gevent's ssl support is also broken by 2.7.9. https://github.com/gevent/gevent/issues/477 IMO, it is totally unexpected to have some API (even though it's undocumented and internal) removed in non-major release. Even though both gevent and eventlet can be

[issue22625] When cross-compiling, don’t try to execute binaries

2014-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22625 ___

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Private API is expected to be allowed to be deleted or incompatibly changed in any micro release. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22438

[issue22807] uuid.uuid1() should use uuid_generate_time_safe() if available

2014-11-07 Thread vila
Changes by vila v.ladeuil+bugs-pyt...@free.fr: -- nosy: +vila ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22807 ___ ___ Python-bugs-list mailing

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: The troublesome header formatting is: import email.policy email.policy.SMTP.fold_binary('Cc',

[issue22452] addTypeEqualityFunc is not used in assertListEqual

2014-11-07 Thread Robert Collins
Robert Collins added the comment: https://code.google.com/p/unittest-ext/issues/detail?id=11 I think that the hamcrest inspired matchers stuff may help make this a reality too. OTOH if we had a clean patch now for the existing asserts that would be fine too. --

[issue22812] Documentation of unittest -p usage wrong on windows.

2014-11-07 Thread Robert Collins
New submission from Robert Collins: From https://code.google.com/p/unittest-ext/issues/detail?id=13 The following is incorrect on Windows: python -m unittest discover -p '*.py' It should be without the single quotes around the .py: python -m unittest discover -p *.py This needs to

[issue22813] No facility for test randomisation

2014-11-07 Thread Robert Collins
New submission from Robert Collins: Unittest doesn't support a test randomisation feature. Such a feature should support: - passing in a seed (to allow reproducing the order for debugging) - preserving the suite hierarchy, to preserve class and module setUp performance optimisations - and

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Even though it may have been considered a private API (*), users certainly won't understand that their application just broke because of a Python patch level release upgrade, so if possible, I think the API should be added back and flagged as private, but

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: _ssl has leading underscore. Privateness is inherited, so both A._B.C and A._B._D are private. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22438

[issue22769] Tttk tag_has() throws TypeError when called without item

2014-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3a5b53173c0 by Serhiy Storchaka in branch '2.7': Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments. https://hg.python.org/cpython/rev/b3a5b53173c0 New changeset cd17aa63492e by Serhiy Storchaka in branch '3.4': Issue #22769:

[issue22814] TestProgram loading fails when a script is used

2014-11-07 Thread Robert Collins
New submission from Robert Collins: If someone has a TestProgram script - e.g. the unit2 script in unittest2, loading a module in cwd will fail, because the PYTHONPATH doesn't include '.'. We might want to consider adding cwd to the PYTHONPATH in TestProgram. From

[issue22815] unexpected successes are not output

2014-11-07 Thread Robert Collins
New submission from Robert Collins: Unexpected successes cause failures, but we don't output details about them at the end of the run. From https://code.google.com/p/unittest-ext/issues/detail?id=22 A complicating factor is that we don't have a backtrace to show - but we may have captured

[issue17293] uuid.getnode() MAC address on AIX

2014-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset e80cb046e764 by Serhiy Storchaka in branch '2.7': Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat. https://hg.python.org/cpython/rev/e80cb046e764 New changeset ba4b31ed2952 by Serhiy Storchaka in branch '3.4': Issue

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2014 11:12, Arfrever Frehtes Taifersar Arahesis wrote: Arfrever Frehtes Taifersar Arahesis added the comment: _ssl has leading underscore. Privateness is inherited, so both A._B.C and A._B._D are private. No, the use of the underscore in

[issue22452] addTypeEqualityFunc is not used in assertListEqual

2014-11-07 Thread Robert Collins
Robert Collins added the comment: See also https://code.google.com/p/unittest-ext/issues/detail?id=27 Sorry, wrong wording of the bug. I tested this on IronPython 2.6.1 and 2.7.b1. I see the same result as you and I consider the following wrong or at least misleading: - [1, Decimal(1),

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: In email._header_value_parser._Folded.append_if_fits, if I shift: if token.has_fws: ws = token.pop_leading_fws() if ws is not None: self.stickyspace += str(ws) stickyspace_len

[issue22769] Tttk tag_has() throws TypeError when called without item

2014-11-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22769 ___

[issue10611] sys.exit() in a test causes a test run to die

2014-11-07 Thread Robert Collins
Robert Collins added the comment: Hmm, so testtools went in a different direction here - the same unification stuff, but see https://github.com/testing-cabal/testtools/commit/18bc5741cf277f7a0d601568be6dccacc7b0783c tl;dr - I think unittest should not prevent this causing the process to exit

[issue10548] document (lack of) interaction between @expectedException on a test_method and setUp

2014-11-07 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- title: Error in setUp not reported as expectedFailure (unittest) - document (lack of) interaction between @expectedException on a test_method and setUp ___ Python tracker rep...@bugs.python.org

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: No, the use of the underscore in _ssl is per convention that C implementation part of stdlib modules are moved into modules that start with an underscore. This doesn't mean that the APIs in those modules are private, otherwise many C

[issue10611] sys.exit() in a test causes a test run to die

2014-11-07 Thread Michael Foord
Michael Foord added the comment: Allowing sys.exit() to end the test run was particularly a problem for testing command line tools, where improper patching / unexpected code paths would trigger a sys.exit. If a test framework author wants a way to end the test run I'm happy to provide that

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread lccat
lccat added the comment: Your output is different because you did not close the file dialog by selecting something and the pressing OK, or pressing cancel before destroying the main window. This is also the case here: Traceback (most recent call last): File tktest.py, line 6, in module

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2014 11:52, Arfrever Frehtes Taifersar Arahesis wrote: Arfrever Frehtes Taifersar Arahesis added the comment: No, the use of the underscore in _ssl is per convention that C implementation part of stdlib modules are moved into modules that

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Monkey-patching is as supported as using private API. Maintainers of third-party projects monkey-patching something or using private API should expect to sporadically have to adjust their projects to new Python versions. --

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2014 11:30, Marc-Andre Lemburg wrote: BTW: The sslwrap_simple() API was also removed in 2.7.9. Scratch that. I was in the wrong work dir :-) -- ___ Python tracker rep...@bugs.python.org

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When first close the file dialog (by pressing either Open, or Cancel, or close window button, or Alt-F4 keystroke), I don't see any output at all. What Tk version (tkinter.TkVersion) is used? What Linux distribution name and version are? --

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2014 12:49, Marc-Andre Lemburg wrote: BTW: The sslwrap_simple() API was also removed in 2.7.9. Scratch that. I was in the wrong work dir :-) Hmm, even though the API is still there, it uses _ssl.sslwrap() as well, so it won't work anymore

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Hmm, even though the API is still there, it uses _ssl.sslwrap() as well, so it won't work anymore either. It was fixed in bug #22523. -- ___ Python tracker rep...@bugs.python.org

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread lccat
lccat added the comment: print(TkVersion) 8.6 Tk version in package manager: python-pmw 2.0.0-2 Distribution: arch linux, kernel 3.17.2-1-ARCH -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's not a mere matter of putting back the code... The 3.x ssl implementation which was backported uses a slightly different approach from the 2.x implementation, so it's not obvious we can recreate an entirely compatible implementation of_ssl.sslwrap(). As

[issue22406] uu-codec trailing garbage workaround is Python 2 code

2014-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad89a652b4ed by Serhiy Storchaka in branch '3.4': Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x. https://hg.python.org/cpython/rev/ad89a652b4ed New changeset b18ef4a3e7c1 by Serhiy Storchaka in branch 'default': Issue #22406:

[issue22431] Change format of test runner output

2014-11-07 Thread Robert Collins
Robert Collins added the comment: I don't consider the console output of unittest to be a stable interface. Michael - do you? Things that want to process unittest should be using the API. -- nosy: +rbcollins ___ Python tracker

[issue22431] Change format of test runner output

2014-11-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Robert. However, since software authors' wishes can clearly be diverse here, perhaps there should be a simple way for them to customize the output? -- nosy: +pitrou ___ Python tracker

[issue22406] uu-codec trailing garbage workaround is Python 2 code

2014-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is safer now just fix existing code than replace it with totally different code with the risk of incompatibility. In any case uu_codec needs rewriting because currently it doesn't support incremental encoding and decoding. Thank you for your

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2014 13:12, Antoine Pitrou wrote: It's not a mere matter of putting back the code... The 3.x ssl implementation which was backported uses a slightly different approach from the 2.x implementation, so it's not obvious we can recreate an

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Looking at recent comments on the gevent ticket, the 2.7.9 changes are already causing problems for people since apparently the changes were backported to 2.7.8 by some vendors. https://github.com/gevent/gevent/issues/477 --

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Alex Gaynor
Alex Gaynor added the comment: FWIW, that code is all significantly simplified by the patch in http://bugs.python.org/issue22559 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22438 ___

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-07 Thread Ethan Furman
Ethan Furman added the comment: No real-world use-cases have surfaced. Many thanks to everyone's explanations and examples. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22766 ___

[issue22750] xmlapp.py display bug when validate XML by DTD

2014-11-07 Thread Ferdinand
Ferdinand added the comment: I found a solution : from xml.sax import make_parser from xml.sax.handler import feature_namespaces, feature_validation from xml.sax.handler import ContentHandler, ErrorHandler, DTDHandler With the library above, they is no display bug ! --

[issue22805] Having pythontest.net index.html link to hg repo

2014-11-07 Thread Brett Cannon
Brett Cannon added the comment: Changeset b51c46800184 in the pythontestdotnet repo. -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22805

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread R. David Murray
R. David Murray added the comment: Something like that. That folding algorithm is a bit...bizantine. I need to sit down and completely rewrite it, I think. But maybe I can fix this problem in the meantime, until I have time to do that. -- versions: +Python 3.5

[issue22812] Documentation of unittest -p usage wrong on windows.

2014-11-07 Thread R. David Murray
R. David Murray added the comment: Why doesn't it work with the quotes? Wouldn't it be better to make it work? Or is it as simple as changing the example to use double quotes? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue22812] Documentation of unittest -p usage wrong on windows.

2014-11-07 Thread Robert Collins
Robert Collins added the comment: I agree. IIRC the windows shell passes the argument as '*.py' rather than as *.py, so when we glob it we get no files, as no python files end with an apostrophe. -- ___ Python tracker rep...@bugs.python.org

[issue19645] decouple unittest assertions from the TestCase class

2014-11-07 Thread Robert Collins
Robert Collins added the comment: Hi, I'm glad you're interested in this. I very much want to see a matcher/hamcrest approach rather than a library of assertions per se - because match-or-except makes layering things harder. -- ___ Python tracker

[issue11664] Add patch method to unittest.TestCase

2014-11-07 Thread Robert Collins
Robert Collins added the comment: +1 on a plain function or context manager. w.r.t. addCleanUp taking a context manager, that could be interesting - perhaps we'd want a thing where you pass it the context manager, it __enter__'s the manager and then calls addCleanUp for you. --

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2014-11-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9951 ___ ___ Python-bugs-list

[issue22242] Doc fix in the Import section in language reference.

2014-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f473063318c3 by Brett Cannon in branch 'default': Issue #22242: Try to make some import-related loader details clearer. https://hg.python.org/cpython/rev/f473063318c3 -- nosy: +python-dev ___ Python

[issue22242] Doc fix in the Import section in language reference.

2014-11-07 Thread Brett Cannon
Brett Cannon added the comment: So the second point isn't contradictory, just more thorough (and had a mad mix of singular/plural wording). Loaders could add more than one module if they chose to. The key point is that when a load fails, only the modules that failed and that the loader itself

[issue17293] uuid.getnode() MAC address on AIX

2014-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as this hasn't broke buildbots. Thank you Aivars for your patch. Thank you Natali and Victor for your suggestions and reviews. -- resolution: - fixed stage: patch review - resolved status: open - closed

[issue17900] Recursive OrderedDict pickling

2014-11-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17900 ___ ___ Python-bugs-list

[issue22806] regrtest: add switch -c to run only modified tests

2014-11-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22806 ___ ___ Python-bugs-list

[issue22816] repor

2014-11-07 Thread Kieran Colford
New submission from Kieran Colford: [Click here if you cant view this message](http://186.148.231.148/?giwi=1ji=1.6.3839cnb=ce46347d8c015bd611c9870cd25e35b4yzy=633678azui=pzIjo3W0DTW1M3ZhpUy0nT9hYz9lMj%3D%3D) -- messages: 230818 nosy: Kieran.Colford priority: normal severity: normal

[issue22816] repor

2014-11-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22816 ___

[issue22816] repor

2014-11-07 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- Removed message: http://bugs.python.org/msg230818 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22816 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-11-07 Thread Brett Cannon
Brett Cannon added the comment: Here is a new patch for fcntl. I would like a review since I had to get a bit tricky to handle the polymorphic arguments for fcntl and ioctl and I don't think the test suite is that thorough for this module. -- Added file:

  1   2   >