Fastest way to remove the first x characters from a very long string

2015-05-16 Thread bruceg113355
I have a string that contains 10 million characters. The string is formatted as: 001 : some hexadecimal text ... \n 002 : some hexadecimal text ... \n 003 : some hexadecimal text ... \n ... 010 : some hexadecimal text ... \n 011 : some hexadecimal text ... \n and I need the

[issue24208] test_inspect leaks temporary directory

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 08829230079b by Yury Selivanov in branch 'default': Issue 24208: Fix tests -- don't create a tempdir in __init__. https://hg.python.org/cpython/rev/08829230079b -- nosy: +python-dev ___ Python tracker

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2015-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15267 ___ ___

[issue22958] Constructors of weakref mapping classes don't accept self and dict keyword arguments

2015-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Constructors of some mapping classes don't accept `self` keyword argument ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22958

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please look at the new patch Raymond? This is the dependency for issue22958. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-05-16 Thread Eli Bendersky
Eli Bendersky added the comment: I don't know how important this is to really warrant removal. Removal means potentially breaking working code when trying to run it with Python 3.5, and my impression was that the core devs are somewhat alergic to this, at least while the transition to Python

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-16 Thread Eric Snow
Eric Snow added the comment: Great! The buildbots are happy too. :) -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24192 ___

[issue18986] Add a case-insensitive case-preserving dict

2015-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18986 ___ ___

Re: Rule of order for dot operators?

2015-05-16 Thread Peter Otten
C.D. Reimer wrote: Greetings, Noobie question regarding a single line of code that transforms a URL slug (this-is-a-slug) into a title (This Is A Slug). title = slug.replace('-',' ').title() This line also works if I switched the dot operators around. title =

[issue11477] Incorrect operand precedence when implementing sequences in C

2015-05-16 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11477 ___ ___ Python-bugs-list

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d60cb6c33cf by Serhiy Storchaka in branch '2.7': Issue #20014: array.array() now accepts unicode typecodes. Based on patch by https://hg.python.org/cpython/rev/7d60cb6c33cf -- nosy: +python-dev ___

Secret code in Ex Machina

2015-05-16 Thread Seymore4Head
http://www.reddit.com/r/movies/comments/365f9b/secret_code_in_ex_machina/ -- https://mail.python.org/mailman/listinfo/python-list

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c34513c2a894 by Serhiy Storchaka in branch '2.7': Issue #15267: HTTPConnection.request() now is compatibile with old-style https://hg.python.org/cpython/rev/c34513c2a894 -- nosy: +python-dev ___ Python

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread bruceg113355
On Saturday, May 16, 2015 at 10:06:31 AM UTC-4, Stefan Ram wrote: bruceg113...@gmail.com writes: Your approach using .join is what I was looking for. I'd appreciate a report of your measurements. # Original Approach # - ss = ss.split(\n) ss1 = for sdata in ss: ss1 =

[issue24190] BoundArguments facility to inject defaults

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea61d8eb8a28 by Yury Selivanov in branch 'default': Issue 24190: Add inspect.BoundArguments.apply_defaults() method. https://hg.python.org/cpython/rev/ea61d8eb8a28 -- nosy: +python-dev ___ Python tracker

[issue24190] BoundArguments facility to inject defaults

2015-05-16 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks for the suggestion, Antoine! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24190

[issue23964] Update README documentation for IDLE tests.

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 19e111891e39 by Terry Jan Reedy in branch '2.7': Issue #23964: Update idlelib/idle_test/README.txt. first patch by Al Sweigart. https://hg.python.org/cpython/rev/19e111891e39 New changeset 35b84ba2f8b1 by Terry Jan Reedy in branch '3.4': Issue

[issue21804] Implement thr UTF8 command (RFC 6856) in poplib.

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ea762200e27 by R David Murray in branch 'default': #21804: Add RFC 6856 (UTF8) support to poplib. https://hg.python.org/cpython/rev/6ea762200e27 -- nosy: +python-dev ___ Python tracker

[issue21804] Implement thr UTF8 command (RFC 6856) in poplib.

2015-05-16 Thread R. David Murray
R. David Murray added the comment: Thanks, Milan. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21804 ___

[issue16991] Add OrderedDict written in C

2015-05-16 Thread Yury Selivanov
Yury Selivanov added the comment: As for refleak -- I looked at it briefly: simple a = OrderedDict(); a = None code leaks, so it must be somewhere in tp_new/tp_dealloc. And I know what object is leaking - it's None. -- ___ Python tracker

Re: Rule of order for dot operators?

2015-05-16 Thread Gary Herron
On 05/16/2015 12:20 PM, C.D. Reimer wrote: Greetings, Noobie question regarding a single line of code that transforms a URL slug (this-is-a-slug) into a title (This Is A Slug). title = slug.replace('-',' ').title() This line also works if I switched the dot operators around. title =

Re: Rule of order for dot operators?

2015-05-16 Thread C.D. Reimer
On 5/16/2015 12:34 PM, Peter Otten wrote: You can find out yourself by using operations where the order does matter: Test.upper().lower() I was wondering about that and couldn't think of an example off the top of my head. Thank you, Chris Reimer --

[issue24210] Tests failed with -Werror

2015-05-16 Thread Berker Peksag
Berker Peksag added the comment: But what to do with this code after 3.7? And why not to do this right now? It's on my TODO list, but I'll probably won't have time to work on in it before beta 1. Thanks for the review! -- resolution: - fixed stage: - resolved status: open - closed

[issue24210] Tests failed with -Werror

2015-05-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24210 ___ ___

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread Chris Angelico
On Sun, May 17, 2015 at 2:22 AM, bruceg113...@gmail.com wrote: # Original Approach # - ss = ss.split(\n) ss1 = for sdata in ss: ss1 = ss1 + (sdata[OFFSET:] + \n) # Chris's Approach # lines = ss.split(\n) new_text = \n.join(line[8:] for line in

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread Irmen de Jong
On 16-5-2015 18:24, bruceg113...@gmail.com wrote: Data is coming from a wxPython TextCtrl widget. Hm, there should be a better source of the data before it ends up in the textctrl widget. The widget is displaying data received on a serial port for a user to analyze. If this is read from a

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread bruceg113355
On Saturday, May 16, 2015 at 12:59:19 PM UTC-4, Chris Angelico wrote: On Sun, May 17, 2015 at 2:22 AM, bruceg113...@gmail.com wrote: # Original Approach # - ss = ss.split(\n) ss1 = for sdata in ss: ss1 = ss1 + (sdata[OFFSET:] + \n) # Chris's Approach #

[issue22027] RFC 6531 (SMTPUTF8) support in smtplib

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b0e4c87bf9e by R David Murray in branch 'default': #22027: Add RFC6531 support to smtplib. https://hg.python.org/cpython/rev/6b0e4c87bf9e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue24210] Tests failed with -Werror

2015-05-16 Thread Berker Peksag
Berker Peksag added the comment: Interesting, I ran the test suite twice before commit the patch. I will take a look, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24210 ___

[issue23964] Update README documentation for IDLE tests.

2015-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the push. I incorporated most of your suggestions and added more changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23964 ___

[issue23964] Update README documentation for IDLE tests.

2015-05-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23964 ___

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread bruceg113355
On Saturday, May 16, 2015 at 9:46:17 AM UTC-4, Chris Angelico wrote: On Sat, May 16, 2015 at 11:28 PM, bruceg113...@gmail.com wrote: I have a string that contains 10 million characters. The string is formatted as: 001 : some hexadecimal text ... \n 002 : some hexadecimal text

EuroPython 2015: Come with your partners

2015-05-16 Thread M.-A. Lemburg
We are happy to announce the official EuroPython Partner Program for EuroPython 2015 in Bilbao: *** EuroPython 2015 Partner Program *** https://ep2015.europython.eu/en/events/partner-program/ There is plenty to see in and around Bilbao. We have worked out a set of

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread Grant Edwards
On 2015-05-16, bruceg113...@gmail.com bruceg113...@gmail.com wrote: I have a string that contains 10 million characters. The string is formatted as: 001 : some hexadecimal text ... \n 002 : some hexadecimal text ... \n 003 : some hexadecimal text ... \n ... 010 : some

[issue16991] Add OrderedDict written in C

2015-05-16 Thread Yury Selivanov
Yury Selivanov added the comment: Raymond, is there any chance you can review the patch before beta1? Sorry, for bugging you with this, I just really hope we can have fast OrderedDict in 3.5. -- ___ Python tracker rep...@bugs.python.org

Re: Building CPython

2015-05-16 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: On Sat, 16 May 2015 11:59 pm, Marko Rauhamaa wrote: supports multiple inheritance without classes. Maybe I should port that to Python... I'd like to see it, but somehow I don't think that your Scheme object system is another name for

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread Joel Goldstick
On Sat, May 16, 2015 at 9:28 AM, bruceg113...@gmail.com wrote: I have a string that contains 10 million characters. The string is formatted as: 001 : some hexadecimal text ... \n 002 : some hexadecimal text ... \n 003 : some hexadecimal text ... \n ... 010 : some

[issue24176] Incorrect parsing of unpacked expressions in call

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 38b2307372bf by Benjamin Peterson in branch 'default': allow test node after ** in calls (closes #24176) https://hg.python.org/cpython/rev/38b2307372bf -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed

Re: Building CPython

2015-05-16 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: A couple more negatives: - no such thing as inheritance; Untrue. My simple Scheme object system (125 lines incl. documentation) supports multiple inheritance without classes. Maybe I should port that to Python... - is-a relationship

[issue24208] test_inspect leaks temporary directory

2015-05-16 Thread Yury Selivanov
Yury Selivanov added the comment: Look's like it's TestNoEOL.__init__ method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24208 ___ ___

[issue24208] test_inspect leaks temporary directory

2015-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24208 ___

[issue24208] test_inspect leaks temporary directory

2015-05-16 Thread Yury Selivanov
Yury Selivanov added the comment: I think it should be fixed now. Thanks for finding this! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24208 ___

[issue15216] Support setting the encoding on a text stream after creation

2015-05-16 Thread Nick Coghlan
Nick Coghlan added the comment: Revisiting the idea Nikolaus raised last year regarding whether or not this could be done using a dedicated API in the sys module, I realised today that even if we decided to use a separate public API, *that API* would still need a defined way to modify the

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2015-05-16 Thread R. David Murray
R. David Murray added the comment: Added review comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16864 ___ ___ Python-bugs-list mailing

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread Rustom Mody
On Saturday, May 16, 2015 at 8:30:02 PM UTC+5:30, Grant Edwards wrote: On 2015-05-16, bruceg113355 wrote: I have a string that contains 10 million characters. The string is formatted as: 001 : some hexadecimal text ... \n 002 : some hexadecimal text ... \n 003 : some

[issue22939] integer overflow in iterator object

2015-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22939 ___ ___

[issue23689] Memory leak in Modules/sre_lib.h

2015-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23689 ___ ___

[issue24210] Tests failed with -Werror

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_platform is failed. == ERROR: test_dist (test.test_platform.PlatformTest) -- Traceback (most recent call last): File

[issue24210] Tests failed with -Werror

2015-05-16 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch. An unrelated failure: $ ./python -Werror -m test test_slice [1/1] test_slice test test_slice failed -- Traceback (most recent call last): File /home/berker/projects/cpython/default/Lib/test/test_slice.py, line 82, in test_hash

[issue18682] [PATCH] remove bogus codepath from pprint._safe_repr

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c77a42c234d6 by Serhiy Storchaka in branch 'default': Issue #18682: Optimized pprint functions for builtin scalar types. https://hg.python.org/cpython/rev/c77a42c234d6 -- nosy: +python-dev ___ Python

[issue24210] Tests failed with -Werror

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch LGTM. But what to do with this code after 3.7? And why not to do this right now? An unrelated failure: Ah, this is issue24134. Thank you for reporting this. -- ___ Python tracker

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread Chris Angelico
On Sat, May 16, 2015 at 11:28 PM, bruceg113...@gmail.com wrote: I have a string that contains 10 million characters. The string is formatted as: 001 : some hexadecimal text ... \n 002 : some hexadecimal text ... \n 003 : some hexadecimal text ... \n ... 010 : some

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19176 ___ ___

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated to the tip. If Eli doesn't have objections, I'll commit it. -- Added file: http://bugs.python.org/file39391/doctype-remove.v4.patch ___ Python tracker rep...@bugs.python.org

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread bruceg113355
On Saturday, May 16, 2015 at 11:13:45 AM UTC-4, Rustom Mody wrote: On Saturday, May 16, 2015 at 8:30:02 PM UTC+5:30, Grant Edwards wrote: On 2015-05-16, bruceg113355 wrote: I have a string that contains 10 million characters. The string is formatted as: 001 : some

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15836 ___ ___ Python-bugs-list mailing list

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2015-05-16 Thread Berker Peksag
Berker Peksag added the comment: Since the patch has been reviewed by several core developers, I think you can go ahead and commit it. I'm +0 on the 2.7 version of the patch (the isinstance(e, types.ClassType) part looks fine, but I haven't tested it). It's probably not worth to change

[issue24210] Tests failed with -Werror

2015-05-16 Thread Berker Peksag
Berker Peksag added the comment: Thanks Serhiy. -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24210 ___

[issue24210] Tests failed with -Werror

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6181146842ba by Berker Peksag in branch 'default': Issue #24210: Silence a PendingDeprecationWarning warning in platform.platform(). https://hg.python.org/cpython/rev/6181146842ba -- nosy: +python-dev

[issue24210] Tests failed with -Werror

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And test_ssl. $ ./python -Werror -m test.regrtest -vv test_ssl == CPython 3.5.0a4+ (default:08829230079b+, May 16 2015, 19:19:38) [GCC 4.8.2] == Linux-3.13.0-53-generic-i686-athlon-with-debian-jessie-sid little-endian == hash algorithm: siphash24 32bit ==

[issue19662] smtpd.py should not decode utf-8

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7d3074fa888 by R David Murray in branch 'default': #19662: Make requirement to support arbitrary keywords explicit. https://hg.python.org/cpython/rev/a7d3074fa888 -- ___ Python tracker

[issue21804] Implement thr UTF8 command (RFC 6856) in poplib.

2015-05-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - commit review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21804 ___

[issue16314] Support xz compression in distutils

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09bd552999bf by Serhiy Storchaka in branch 'default': Issue #16314: Added support for the LZMA compression in distutils. https://hg.python.org/cpython/rev/09bd552999bf -- nosy: +python-dev ___ Python

[issue24204] string.strip() documentation is misleading

2015-05-16 Thread Jim
Jim added the comment: Maybe, ... all combinations of its values are stripped from the beginning and end. It is rather difficult to be both clear AND concise. Heck, I'm having trouble just trying to explain it. Mark, that part is clear, but I think somehow reiterating how the method works

[issue23637] Warnings error with non-ascii chars.

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 22e44a7ee89f by Serhiy Storchaka in branch '2.7': Issue #23637: Showing a warning no longer fails with UnicodeErrror. https://hg.python.org/cpython/rev/22e44a7ee89f -- nosy: +python-dev ___ Python

[issue24210] Tests failed with -Werror

2015-05-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Werror -m test.regrtest -u all -vv == CPython 3.5.0a4+ (default:5342fad7cd59+, May 16 2015, 15:55:16) [GCC 4.8.2] Traceback (most recent call last): File /home/serhiy/py/cpython/Lib/runpy.py, line 170, in _run_module_as_main __main__,

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Catching TypeError or AttributeError on len() is a hack, but it is compatible with Python 3 and older code. We could handle this in issue23740. Changing TemporaryFile would solve this issue, but only for TemporaryFile. len() raises AttributeError for other

Re: Building CPython

2015-05-16 Thread Steven D'Aprano
On Sat, 16 May 2015 11:59 pm, Marko Rauhamaa wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: A couple more negatives: - no such thing as inheritance; Untrue. My simple Scheme object system (125 lines incl. documentation) Ah yes, I've seen Javascript code like that too. Each

[issue24134] assertRaises can behave differently

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Interesting, the last patch exposed a flaw in test_slice. def test_hash(self): # Verify clearing of SF bug #800796 self.assertRaises(TypeError, hash, slice(5)) self.assertRaises(TypeError, slice(5).__hash__) But the second

Re: Rule of order for dot operators?

2015-05-16 Thread Tim Chase
On 2015-05-16 12:20, C.D. Reimer wrote: Does python perform the dot operators from left to right or according to a rule of order (i.e., multiplication/division before add/subtract)? Yes, Python evaluates dot-operators from left to right. -tkc --

[issue24134] assertRaises can behave differently

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c93868f202e by Serhiy Storchaka in branch '2.7': Reverted issue #24134 changes. https://hg.python.org/cpython/rev/0c93868f202e New changeset a69a346f0c34 by Serhiy Storchaka in branch '3.4': Reverted issue #24134 changes (except new tests).

[issue24209] Allow IPv6 bind in http.server

2015-05-16 Thread Link Mauve
New submission from Link Mauve: When running `python -m http.server -b ::` (or any other IPv6), I’d expect people to be able to download from my IPv6. This patch fixes that issue. I also tested it on a dual-stack kernel, IPv4 requests work just fine and appear as :::127.0.0.1 for

Re: Minimising stack trace

2015-05-16 Thread Cecil Westerhof
Op Friday 15 May 2015 20:17 CEST schreef Cecil Westerhof: While playing with recursion I get: RuntimeError: maximum recursion depth exceeded in comparison But then I get a very long stack trace. Is there a way to make this a lot shorter. Now I ‘lose’ interesting information because of the

[issue24210] Tests failed with -Werror

2015-05-16 Thread Berker Peksag
Berker Peksag added the comment: This is caused by issue 1322. I'll fix it. -- assignee: - berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24210 ___

Re: Fastest way to remove the first x characters from a very long string

2015-05-16 Thread Ian Kelly
On Sat, May 16, 2015 at 10:22 AM, bruceg113...@gmail.com wrote: # Chris's Approach # lines = ss.split(\n) new_text = \n.join(line[8:] for line in lines) Looks like the approach you have may be fast enough already, but I'd wager the generator expression could be replaced

[issue23780] Surprising behaviour when passing list to os.path.join.

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is extended patch, with tests. -- assignee: - serhiy.storchaka stage: - patch review versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23780

[issue22027] RFC 6531 (SMTPUTF8) support in smtplib

2015-05-16 Thread R. David Murray
R. David Murray added the comment: Rewrote the tests to keep all the existing tests working against an unmodified SimSMTPServer, so that we know backward compatibility is maintained. And as I said, I changed the tests to reflect that a non-ascii body must be provided as binary data, which

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2015-05-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21800 ___

Re: Secret code in Ex Machina

2015-05-16 Thread David H. Lipman
From: Seymore4Head Seymore4Head@Hotmail.invalid http://www.reddit.com/r/movies/comments/365f9b/secret_code_in_ex_machina/ LOL - It is like an Easter Egg in a movie. C O O L ! -- Dave Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk http://www.pctipp.ch/downloads/dl/35905.asp --

[issue23780] Surprising behaviour when passing list to os.path.join.

2015-05-16 Thread Florian Bruhin
Florian Bruhin added the comment: Serhiy, I don't see a new patch added - did you forget to attach it or am I missing something? :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23780

[issue21083] Add get_content_disposition() to email.message.Message

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29ba76f5c3dc by R David Murray in branch 'default': #21083: add get_content_disposition method to email.message. https://hg.python.org/cpython/rev/29ba76f5c3dc -- nosy: +python-dev ___ Python tracker

[issue21083] Add get_content_disposition() to email.message.Message

2015-05-16 Thread R. David Murray
R. David Murray added the comment: Thanks, Abhilash. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21083 ___

[issue8489] Support RFC 6531 in smptlib

2015-05-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: needs patch - resolved status: open - closed superseder: - RFC 6531 (SMTPUTF8) support in smtplib versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue24210] Tests failed with -Werror

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e73182301a61 by Berker Peksag in branch 'default': Issue #24210: Silence more PendingDeprecationWarning warnings in tests. https://hg.python.org/cpython/rev/e73182301a61 -- ___ Python tracker

[issue24208] test_inspect leaks temporary directory

2015-05-16 Thread Yury Selivanov
Yury Selivanov added the comment: That's strange. None of these test touch any files-related stuff. At least I can't see it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24208 ___

[issue18330] Fix idlelib.PyShell.build_subprocess_arglist use of __import__

2015-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since filing this, I have decided that starting Idle directly with PyShell should be deprecated. That would affect any patch for this. In the meanwhile, there are other priorities. -- ___ Python tracker

[issue24204] string.strip() documentation is misleading

2015-05-16 Thread Carol Willing
Carol Willing added the comment: Additional text added about stripping characters from the leading end and trailing end of the string. An additional example that illustrates the outer characters being stripped while the inner string characters, even though matching the chars set of

[issue23780] Surprising behaviour when passing list to os.path.join.

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, sorry, I forget to attach it. -- Added file: http://bugs.python.org/file39394/join_datatype_check_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23780

[issue18682] [PATCH] remove bogus codepath from pprint._safe_repr

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there tests for all the builtin scalars? Yes, now there are. -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.5 -Python 3.4 ___

Rule of order for dot operators?

2015-05-16 Thread C.D. Reimer
Greetings, Noobie question regarding a single line of code that transforms a URL slug (this-is-a-slug) into a title (This Is A Slug). title = slug.replace('-',' ').title() This line also works if I switched the dot operators around. title = slug.title().replace('-',' ') I'm reading the

Re: Rule of order for dot operators?

2015-05-16 Thread Joel Goldstick
On Sat, May 16, 2015 at 3:20 PM, C.D. Reimer ch...@cdreimer.com wrote: Greetings, Noobie question regarding a single line of code that transforms a URL slug (this-is-a-slug) into a title (This Is A Slug). title = slug.replace('-',' ').title() This line also works if I switched the dot

Re: Rule of order for dot operators?

2015-05-16 Thread Thomas 'PointedEars' Lahn
C.D. Reimer wrote: Who? Noobie What? question regarding a single line of code that transforms a URL slug (this-is-a-slug) into a title (This Is A Slug). title = slug.replace('-',' ').title() This line also works if I switched the dot operators around. title =

Re: Rule of order for dot operators?

2015-05-16 Thread C.D. Reimer
On 5/16/2015 12:40 PM, Thomas 'PointedEars' Lahn wrote: However, for greater efficiency, in general you should call .replace() in such a way that the length of the string it operates on is minimized. For example, if feasible, always slice *before* .replace(). Slice was how I got the slug from

[issue22955] Pickling of methodcaller, attrgetter, and itemgetter

2015-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: methodcaller with keyword arguments pickled with pickle_getter_and_caller3.patch needs Python 3.5 to unpickle. Following patch pickles it in backward compatible way. -- Added file: http://bugs.python.org/file39395/pickle_getter_and_caller4.patch

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2015-05-16 Thread Almad
Almad added the comment: I'd add that this bug is very practical and can render a lot of software unusable/noisy/confusing on Windows, including Django (I discovered this bug when mentoring on Django Girls]. The simple step to reproduce is to take any windows and set regional settings to

[issue17045] Improve C-API doc for PyTypeObject

2015-05-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17045 ___ ___

[issue12816] smtpd uses library outside of the standard libraries

2015-05-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12816 ___ ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 738ac3ad9ee4 by Serhiy Storchaka in branch 'default': Fixed compilation error in signalmodule.c (issue #20182). https://hg.python.org/cpython/rev/738ac3ad9ee4 -- ___ Python tracker rep...@bugs.python.org

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2015-05-16 Thread Zachary Ware
Zachary Ware added the comment: Here's a new patch that actually applies, and has a couple of improvements. I'd greatly appreciate some review on this; I'm planning on committing before beta1 anyway. -- nosy: +paul.moore, steve.dower, tim.golden priority: normal - high Added file:

[issue24213] ProcessPoolExecutor().map() fails following an identical map()

2015-05-16 Thread Ned Deily
Ned Deily added the comment: I can reproduce a crash with your sample program using the current numpy wheel (1.9.2) and the python.org 3.4.3. The significant parts of the OS X crash dump: Crashed Thread:0 Dispatch queue: com.apple.main-thread Exception Type:EXC_BAD_ACCESS

  1   2   >