[issue23628] See if os.scandir() could help speed up importlib

2015-03-13 Thread Brett Cannon
Brett Cannon added the comment: The answer is no. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23628 ___

[issue23622] Deprecate unrecognized backslash+letter escapes in re

2015-03-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- title: Deprecate unrecognized backslash+letter escapes - Deprecate unrecognized backslash+letter escapes in re ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23622

[issue23645] Incorrect doc for __getslice__

2015-03-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23645 ___

Re: regex help

2015-03-13 Thread Thomas 'PointedEars' Lahn
Larry Martell wrote: I need to remove all trailing zeros to the right of the decimal point, but leave one zero if it's whole number. For example, if I have this:

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-13 Thread Wei Wu
Wei Wu added the comment: The last approach I proposed requires some change in template code of check_xxx methods. To make it better, we can add a bool parameter to the check_xxx functions, True value indicating a fd test. If a filename is given at the same time, then a fd can get from that

[issue23637] Warnings error with non-ascii chars.

2015-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is not only with the file.write(). If one of arguments is unicode (even if it doesn't contain non-ascii characters) and other argument is non-ascii string, we get this error. warnings.showwarning(u'', DeprecationWarning, 'filè.py', 10)

Re: Pexpect idea - but can I handle curses?

2015-03-13 Thread Thomas 'PointedEars' Lahn
Skip Montanaro wrote: Thomas 'PointedEars' Lahn […] wrote: Yes, it (top(1) from procps-ng 3.3.9) does. Either run top -u '!root' or type “o” (for case-insensitive filter), then e.g. “!USER=root” to show processes started by all users except “root”. RTFM. Neither works on what I have

[issue23658] multiprocessing: string arg to SystemExit

2015-03-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23658 ___ ___ Python-bugs-list

[issue23622] Deprecate unrecognized backslash+letter escapes

2015-03-13 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23622 ___ ___ Python-bugs-list

Re: regex help

2015-03-13 Thread Tim Chase
On 2015-03-13 12:05, Larry Martell wrote: I need to remove all trailing zeros to the right of the decimal point, but leave one zero if it's whole number. But I can't figure out how to get the 5. to be 5.0. I've been messing with the negative lookbehind, but I haven't found

Re: regex help

2015-03-13 Thread MRAB
On 2015-03-13 16:05, Larry Martell wrote: I need to remove all trailing zeros to the right of the decimal point, but leave one zero if it's whole number. For example, if I have this:

[issue23654] infinite loop in faulthandler._stack_overflow

2015-03-13 Thread Matt Frank
Matt Frank added the comment: Yes, this is currently only a problem with the Intel compiler. The writes to buffer[] are dead (provably won't be ever used) at the point that the recursive call occurs. Actually gcc and llvm can figure this out. Thus all the space allocated for the first call

[issue23614] Opaque error message on UTF-8 decoding to surrogates

2015-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: The Table 3-7 of http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (page 93 of the book, or 40 of the pdf) shows that if the start byte is ED the continuation byte must be in range 80..9F. This means that, in order to decode a sequence starting with ED,

[issue23637] Warnings error with non-ascii chars.

2015-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: I think that the problem is actually with the file.write() in _show_warning(). If any of the arguments of formatwarning() are unicode, the result will be unicode, and if file (default sys.stderr) is opened in binary mode, Python will try to encode the unicode

Re: Pexpect idea - but can I handle curses?

2015-03-13 Thread Skip Montanaro
On Fri, Mar 13, 2015 at 12:03 PM, Thomas 'PointedEars' Lahn pointede...@web.de wrote: “o” is not an option, it is an interaktive keystroke command in (my) top(1). o is also an unrecognized keystroke. OpenSUSE 12.2 has reached its end-of-life on 2014-01-27. I understand that. Tell that to

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23623 ___ ___

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-13 Thread Brett Cannon
Brett Cannon added the comment: The PEP is now live: https://www.python.org/dev/peps/pep-0489/ . If you want to participate in the discussion it will probably happen on the import-sig. -- ___ Python tracker rep...@bugs.python.org

Re: regex help

2015-03-13 Thread Larry Martell
On Fri, Mar 13, 2015 at 1:29 PM, MRAB pyt...@mrabarnett.plus.com wrote: On 2015-03-13 16:05, Larry Martell wrote: I need to remove all trailing zeros to the right of the decimal point, but leave one zero if it's whole number. For example, if I have this:

[issue21518] Expose RegUnLoadKey in winreg

2015-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: The naming of the function needs discussion. I think it should be UnLoadKey, as the API function behind it is RegUnLoadKey (not RegUnloadKey). It may be illogical(*) that the function is called that way in the API, but it would add confusion if Python called

[issue23658] multiprocessing: string arg to SystemExit

2015-03-13 Thread Davin Potts
Davin Potts added the comment: Are you looking at the current code in the 2.7 branch or just at the code committed in https://hg.python.org/cpython/rev/da5b370f41a1 (done as part of issue13854)? The code in 2.7 has since been updated and appears to use an exitcode of 1 whenever a str is

Re: Google Code Shutting Down

2015-03-13 Thread Josh English
Thanks for the discussion. I found my original concern was supposedly about sourceforge. PyPi, according to a post over on pypubsub-dev that pip installs had anecdotal problems with sourcforge-hosted projects. I guess I wanted some more anecdotes and opinions before I tried moving anything.

[issue23614] Opaque error message on UTF-8 decoding to surrogates

2015-03-13 Thread Chris Angelico
Chris Angelico added the comment: Nice document. Is that actually how Python's decoder checks things? Does the decoder have different definitions of valid continuation byte based on the lead byte? If that's the case... well, ten out of ten for complying with the spec, to be sure, but

[issue23645] Incorrect doc for __getslice__

2015-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b91d834160f by Benjamin Peterson in branch '2.7': the default is sys.maxsize not sys.maxint (closes #23645) https://hg.python.org/cpython/rev/3b91d834160f -- nosy: +python-dev resolution: - fixed stage: patch review - resolved status:

[issue2052] Allow changing difflib._file_template character encoding.

2015-03-13 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch. Thanks for the review, Serhiy. I will open a new issue for the HTML 5 part of the patch. -- Added file: http://bugs.python.org/file38474/issue2052_v2.diff ___ Python tracker

Re: The idle gui

2015-03-13 Thread sohcahtoa82
On Friday, March 13, 2015 at 1:58:44 PM UTC-7, lmze...@gmail.com wrote: My python program was running for over six weeks. Then the idle gui stopped opening. I have reinstalled several times but it doesn't work. Any idea? Not trying to be rude here, but do you really think we'll be able to help

[issue23655] Memory corruption using pickle over pipe to subprocess

2015-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please try to minimize you data and try to reproduce an issue without using third-party modules if this is possible? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23655

Python 2 to 3 conversion - embrace the pain

2015-03-13 Thread John Nagle
I'm approaching the end of converting a large system from Python 2 to Python 3. Here's why you don't want to do this. The language changes aren't that bad, and they're known and documented. It's the package changes that are the problem. Discovering and fixing all the new bugs takes a while.

[issue2211] Cookie.Morsel interface needs update

2015-03-13 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: Added file: http://bugs.python.org/file38476/issue2211_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2211 ___

[issue23655] Memory corruption using pickle over pipe to subprocess

2015-03-13 Thread John Nagle
John Nagle added the comment: minimize you data - that's a big job here. Where are the tests for pickle? Is there one that talks to a subprocess over a pipe? Maybe I can adapt that. -- ___ Python tracker rep...@bugs.python.org

Re: Code hosting providers

2015-03-13 Thread Paul Rubin
Ben Finney ben+pyt...@benfinney.id.au writes: Also worth watching is Kallithea, a new federated code hosting service ... Good hunting in finding a free-software code hosting provider for your projects! Should also put in a mention for Savannah (savannah.gnu.org for GNU projects and

[issue23637] Warnings error with non-ascii chars.

2015-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that tries to coerce non-ascii filename and line to unicode using appropriate encoding if it is needed and possible. If it is not possible, the warning just gets lost, as in the case of IO error. -- keywords: +patch stage: - patch

Odd ValueError using float

2015-03-13 Thread emile
On an older WinXP SP2 box with python2.6 that's been running this process fine for years, this week we're seeing: c:\python26\lib\site-packages\fenx\sql_interface.py(144)normalized() - return val (Pdb) val *** NameError: name 'val' is not defined (Pdb) l 139 try: 140 val =

[issue23614] Opaque error message on UTF-8 decoding to surrogates

2015-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: Nice document. Is that actually how Python's decoder checks things? Yes, Python follows the Unicode standard. * E0 followed by 80..9F: non-shortest form * ED followed by A0..BF: surrogate * F4 followed by 90..BF: outside defined range If you get a decode

Re: Python 2 to 3 conversion - embrace the pain

2015-03-13 Thread INADA Naoki
Hi, John. I'm maintainer of PyMySQL. I'm sorry about bug of PyMySQL. But the bug is completely unrelated to Python 3. You may encounter the bug on Python 2 too. I've already made mysqlclient, the fork of MySQLdb supporting Python 3. On Sat, Mar 14, 2015 at 6:08 AM, John Nagle

[issue23655] Memory corruption using pickle over pipe to subprocess

2015-03-13 Thread John Nagle
John Nagle added the comment: Or just use pickle._Pickler instead of pickle.Pickler and like (implementation detail!). Tried that. Changed my own code as follows: 25a26 71,72c72,73 self.reader = pickle.Unpickler(self.proc.stdout)# set up reader self.writer =

The idle gui

2015-03-13 Thread lmzentman
My python program was running for over six weeks. Then the idle gui stopped opening. I have reinstalled several times but it doesn't work. Any idea? -- https://mail.python.org/mailman/listinfo/python-list

Re: Code hosting providers

2015-03-13 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: In the meantime, I get zero-dollar hosting of my repos, including zip download and such ... You're welcome to shun them. There is definitely benefit to encouraging a multiplicity of hosting services. But I'm not bothered by the GitHub non-free-ness,

[issue23643] Segmentation Fault with Large Simple Function

2015-03-13 Thread Ned Deily
Ned Deily added the comment: (Closed by submitter.) -- nosy: +ned.deily resolution: - duplicate stage: - resolved superseder: - stack overflow evaluating eval(() * 3) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23643

[issue23187] Segmentation fault, possibly asyncio related

2015-03-13 Thread Michael Goldish
Michael Goldish added the comment: I caught another crash just now, this time in update_refs(). A stack trace is attached below. I still think this is the same issue. static void update_refs(PyGC_Head *containers) { PyGC_Head *gc = containers-gc.gc_next; 67382D60 mov

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-03-13 Thread Nikolaus Rath
Nikolaus Rath added the comment: On Mar 06 2015, Martin Panter rep...@bugs.python.org wrote: Still to do: Need to find a better home for the _DecompressReader and _BaseStream classes. Currently it lives in “lzma”, but apparently it is possible for any of the gzip, bz2, lzma modules to not be

[issue23661] Setting a exception side_effect on a mock from create_autospec does not work

2015-03-13 Thread Ignacio Rossi
Ignacio Rossi added the comment: The problem only affects autospecced functions. Apparently, the problem lies here (all code excerpts from Lib/unittest/mock.py): - When autospeccing functions, the Mock._mock_delegate field is populated at the end of _setup_func (and its the only place I found

[issue23187] Segmentation fault, possibly asyncio related

2015-03-13 Thread Guido van Rossum
Guido van Rossum added the comment: So what do you make of this? PyObject_GC_Malloc(unsigned __int64 basicsize=4046951880) That's nearly 4 GB. I somehow doubt your app is actually trying to allocate that much memory -- maybe the type object a few lines below in the stack is overwritten, or

Re: The idle gui

2015-03-13 Thread Steven D'Aprano
sohcahto...@gmail.com wrote: We need more information than just It doesn't work. You wouldn't go to a car mechanic and say It makes a funny noise, would you? No. Actually, most likely yes.It's remarkably hard to describe noises, and often difficult to pin-point where they come from. My wife

[issue12641] Remove -mno-cygwin from distutils

2015-03-13 Thread Ned Deily
Ned Deily added the comment: Michael, this issue is closed and the changes have long since been released. Comments here will likely be ignored. Please open a new issue describing the problem you are seeing and under what environment, with exact steps to reproduce it. -- nosy:

Re: Odd ValueError using float

2015-03-13 Thread Chris Angelico
On Sat, Mar 14, 2015 at 1:33 PM, Paul Rubin no.email@nospam.invalid wrote: emile em...@fenx.com writes: *** NameError: name 'val' is not defined (Pdb) l 139 try: 140 val = round(float(decval),1) 141 except: 142 import pdb; pdb.set_trace() If 'float'

Re: Code hosting providers

2015-03-13 Thread Paul Rubin
Mario Figueiredo mar...@gmail.com writes: Question: How much money is this group, taken as the whole of the python world, spending on remote hosting per month? I'd wager very little, since most options are completely free. Oh come on, if you count all forms of hosting, some of us are spending

Re: Python 2 to 3 conversion - embrace the pain

2015-03-13 Thread Chris Angelico
On Sat, Mar 14, 2015 at 10:14 AM, Ned Deily n...@acm.org wrote: In article mdvq76$rit$1...@dont-email.me, John Nagle na...@animats.com wrote: All the bugs I'm discussing reflect forced package changes or upgrades. None were voluntary on my part. You would have run into the SSL

[issue23187] Segmentation fault, possibly asyncio related

2015-03-13 Thread Michael Goldish
Michael Goldish added the comment: I don't see a reason to assume the machine was running out of memory. After each crash the process was kept alive by one of those Windows crash dialogs - the process terminated unexpectedly or similar. I could see exactly how much memory was occupied by the

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: The setuptools code is licensed under the ZPL and PSF licenses. If either of those licenses are insufficient, I'm happy to release my contribution in that file to the public domain. -- ___ Python tracker

Re: Code hosting providers

2015-03-13 Thread Gene Heskett
On Friday 13 March 2015 20:48:36 Mario Figueiredo wrote: On Fri, 13 Mar 2015 19:38:09 -0400, Gene Heskett ghesk...@wdtv.com wrote: Running your own server is a piece of cake, and if I, at 80 yo, can do it, I don't see a single reason you can't do likewise. The code I write, for what is

[issue23624] str.center inconsistent with format ^

2015-03-13 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23624 ___ ___

Re: Code hosting providers

2015-03-13 Thread Paul Rubin
Mario Figueiredo mar...@gmail.com writes: That's taking things too far. And when people speak of hosting your own server, they don't necessarily mean hosting in your home computer. Speaking for myself, I refuse to collaborate on any project that is hosted on some dude's personal computer.

Re: Odd ValueError using float

2015-03-13 Thread Paul Rubin
emile em...@fenx.com writes: *** NameError: name 'val' is not defined (Pdb) l 139 try: 140 val = round(float(decval),1) 141 except: 142 import pdb; pdb.set_trace() If 'float' or 'round' throw an exception, the assignment to 'val' never happens, so

Re: Code hosting providers

2015-03-13 Thread Mario Figueiredo
On Fri, 13 Mar 2015 23:13:17 -0400, Gene Heskett ghesk...@wdtv.com wrote: That's taking things too far. And when people speak of hosting your own server, they don't necessarily mean hosting in your home computer. Speaking for myself, I refuse to collaborate on any project that is hosted on

Re: Code hosting providers

2015-03-13 Thread Rustom Mody
On Saturday, March 14, 2015 at 9:15:39 AM UTC+5:30, Paul Rubin wrote: Mario Figueiredo writes: Question: How much money is this group, taken as the whole of the python world, spending on remote hosting per month? I'd wager very little, since most options are completely free. Oh come on,

[issue23187] Segmentation fault, possibly asyncio related

2015-03-13 Thread Michael Goldish
Michael Goldish added the comment: Why do you consider that it's the same issue? Because it's a very similar stack trace, the crash itself is in subtype_dealloc(), it happens once every few days, asyncio is involved, and the issue is relatively new - I couldn't find another bug report with a

Re: regex help

2015-03-13 Thread Cameron Simpson
On 13Mar2015 12:05, Larry Martell larry.mart...@gmail.com wrote: I need to remove all trailing zeros to the right of the decimal point, but leave one zero if it's whole number. For example, if I have this:

[issue23639] Not documented special names

2015-03-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idlelib.rpc uses the somewhat arbitrary *strings* '__methods__' and '__attributes__' as private signals in its protocol. They are not object or attribute names, special or otherwise, in the sense used here. The use of '__methods__' in idlelib.rpc (line 176)

[issue23556] Scope for raise without argument is different in Python 2 and 3

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

Re: regex help

2015-03-13 Thread Steven D'Aprano
Larry Martell wrote: I need to remove all trailing zeros to the right of the decimal point, but leave one zero if it's whole number. def strip_zero(s): if '.' not in s: return s s = s.rstrip('0') if s.endswith('.'): s += '0' return s And in use: py

[issue23187] Segmentation fault, possibly asyncio related

2015-03-13 Thread Guido van Rossum
Guido van Rossum added the comment: Are we all in agreement that it's probably somehow running out of memory? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23187 ___

[issue9679] unicode DNS names in urllib, urlopen

2015-03-13 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9679 ___ ___

[issue9679] unicode DNS names in urllib, urlopen

2015-03-13 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9679 ___

Re: Python 2 to 3 conversion - embrace the pain

2015-03-13 Thread John Nagle
On 3/13/2015 3:27 PM, INADA Naoki wrote: Hi, John. I'm maintainer of PyMySQL. I'm sorry about bug of PyMySQL. But the bug is completely unrelated to Python 3. You may encounter the bug on Python 2 too. True. But much of the pain of converting to Python 3 comes from having to switch

Re: Python 2 to 3 conversion - embrace the pain

2015-03-13 Thread Ned Deily
In article mdvq76$rit$1...@dont-email.me, John Nagle na...@animats.com wrote: All the bugs I'm discussing reflect forced package changes or upgrades. None were voluntary on my part. You would have run into the SSL certificate issue if you upgraded your Python 2 instance to the current

Re: Pexpect idea - but can I handle curses?

2015-03-13 Thread Skip Montanaro
On Fri, Mar 13, 2015 at 5:47 PM, Christian Gollwitzer aurio...@gmx.de wrote: Why? Do you not have a C compiler? Sure I do, and I'm not afraid to use it. I realize top is just one not-terribly-critical tool, but every divergence between my machines and the standard install just makes it that

[issue23661] Setting a exception side_effect on a mock from create_autospec does not work

2015-03-13 Thread Ignacio Rossi
New submission from Ignacio Rossi: The following fails on python 3.4.2, 3.4.3 and 3.5.0a2 (downloaded from python.org and compiled on Ubuntu 14.04). The same happens when using mock.patch with autospec=True. from unittest.mock import create_autospec def function(): ... pass ... mock =

Re: Code hosting providers

2015-03-13 Thread Mario Figueiredo
On Fri, 13 Mar 2015 19:38:09 -0400, Gene Heskett ghesk...@wdtv.com wrote: Running your own server is a piece of cake, and if I, at 80 yo, can do it, I don't see a single reason you can't do likewise. The code I write, for what is called a legacy computer, is just one of the things I share at

Re: The idle gui

2015-03-13 Thread Mark Lawrence
On 13/03/2015 20:58, lmzent...@gmail.com wrote: My python program was running for over six weeks. Then the idle gui stopped opening. I have reinstalled several times but it doesn't work. Any idea? Would you please read http://www.catb.org/esr/faqs/smart-questions.html and possibly

Re: Odd ValueError using float

2015-03-13 Thread Chris Angelico
On Sat, Mar 14, 2015 at 9:10 AM, emile em...@fenx.com wrote: (Pdb) decval '4' (Pdb) len(decval) 1 (Pdb) int(decval) *** ValueError: invalid literal for int() with base 10: '41.703' (Pdb) Any ideas? What's type(decval) tell you? I suspect you may have something other than a

[issue23042] Python 2.7.9 ctypes module doesn't build on FreeBSD x86

2015-03-13 Thread Danya Alexeyevsky
Danya Alexeyevsky added the comment: Faced the same problem on FreeBSD. I confirm: applying the reversed patch fixed it. Thanks! -- nosy: +Danya.Alexeyevsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23042

Re: Odd ValueError using float

2015-03-13 Thread emile
On 03/13/2015 03:14 PM, Chris Angelico wrote: On Sat, Mar 14, 2015 at 9:10 AM, emile em...@fenx.com wrote: (Pdb) decval '4' (Pdb) len(decval) 1 (Pdb) int(decval) *** ValueError: invalid literal for int() with base 10: '41.703' (Pdb) Any ideas? What's type(decval) tell you? I

Re: Code hosting providers

2015-03-13 Thread Gene Heskett
On Friday 13 March 2015 17:13:41 Paul Rubin wrote: Chris Angelico ros...@gmail.com writes: In the meantime, I get zero-dollar hosting of my repos, including zip download and such ... You're welcome to shun them. There is definitely benefit to encouraging a multiplicity of hosting

[issue9679] unicode DNS names in urllib, urlopen

2015-03-13 Thread Demian Brecht
Demian Brecht added the comment: Here's a simple patch that adds functionality matching that in http.client to urllib.request. As pointed out by John, I see no reason why urllib and http.client shouldn't have consistent handling if IDNs independent of IRIs (although IRI encoding would be a

Re: Pexpect idea - but can I handle curses?

2015-03-13 Thread Christian Gollwitzer
Am 13.03.15 um 18:25 schrieb Skip Montanaro: I understand that. Tell that to management though. They were working on 13.1 for awhile, but seem to be focused on 13.2 now, though not all our internal software works on that. I'll give up on hoping I get access to a more modern top anytime soon.

[issue12641] Remove -mno-cygwin from distutils

2015-03-13 Thread Michael Clerx
Michael Clerx added the comment: I'm seeing this bug in 2.7.9. The reason seems to be that the version detection doesn't work... This snippet: out = os.popen(gcc_exe + ' -dumpversion', 'r') out_string = out.read() returns an empty out_string, causing gcc_version = None '4' Maybe the

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-13 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22852 ___ ___

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Alon and Davin. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44c1c0cbdc06 by Serhiy Storchaka in branch '2.7': Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar. https://hg.python.org/cpython/rev/44c1c0cbdc06 New changeset c1abcbcfefab by Serhiy Storchaka in branch '3.4': Issue

[issue2211] Cookie.Morsel interface needs update

2015-03-13 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: Added file: http://bugs.python.org/file38466/issue2211_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2211 ___

[issue23655] Memory corruption using pickle over pipe to subprocess

2015-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: sys.modules['_pickle'] del sys.modules['pickle'] # if exists import pickle Or just use pickle._Pickler instead of pickle.Pickler and like (implementation detail!). -- nosy: +alexandre.vassalotti, pitrou, serhiy.storchaka stage: - test needed type:

Re: Python3 pickle vs. stdin/stdout - unable to get clean byte streams in Python 3

2015-03-13 Thread John Nagle
On 3/12/2015 5:18 PM, John Nagle wrote: On 3/12/2015 2:56 PM, Cameron Simpson wrote: On 12Mar2015 12:55, John Nagle na...@animats.com wrote: I have working code from Python 2 which uses pickle to talk to a subprocess via stdin/stdio. I'm trying to make that work in Python 3. I'm starting

[issue23655] Memory corruption using pickle over pipe to subprocess

2015-03-13 Thread John Nagle
New submission from John Nagle: I'm porting a large, working system from Python 2 to Python 3, using six, so the same code works with both. One part of the system works a lot like the multiprocessing module, but predates it. It launches child processes with Popen and talks to them using

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As side effect the parsing is now twice faster. $ ./python -m timeit -s from http.cookiejar import parse_ns_headers -- parse_ns_headers('foo=bar; Expires=Thu, 01 Jan 1970 00:00:10 GMT') Before: 1000 loops, best of 3: 976 usec per loop After: 1000 loops,

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 525ccfcc55f7 by Serhiy Storchaka in branch '3.4': Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now https://hg.python.org/cpython/rev/525ccfcc55f7 New changeset 7891d084a9ad by Serhiy Storchaka in branch 'default': Issue

[issue23639] Not documented special names

2015-03-13 Thread Ian Lee
Changes by Ian Lee ianlee1...@gmail.com: -- nosy: +IanLee1521 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23639 ___ ___ Python-bugs-list mailing

Re: My emails are getting bounced?

2015-03-13 Thread Tim Golden
On 12/03/2015 22:03, Zachary Ware wrote: On Thu, Mar 12, 2015 at 4:56 PM, Ryan Gonzalez rym...@gmail.com wrote: I'm posting this here because I have no clue who the heck the mailing list manager is. I got this message: Your membership in the mailing list Python-ideas has been disabled due

Karlsruhe (Germany) Python User Group, March 20th 2015, 7pm

2015-03-13 Thread Jürgen A . Erhard
The Karlsruhe Python User Group (KaPy) meets again. Friday, 2015-03-20 (March 20th) at 19:00 (7pm) in the rooms of Entropia eV (the local affiliate of the CCC). See http://entropia.de/wiki/Anfahrt on how to get there. For your calendars: meetings are held monthly, on the 3rd Friday. There's

Re: generator/coroutine terminology

2015-03-13 Thread Rustom Mody
On Friday, March 13, 2015 at 1:53:50 PM UTC+5:30, Chris Angelico wrote: On Fri, Mar 13, 2015 at 4:28 PM, Rustom Mody wrote: And even there I would expect generators to close with StopIteration Whereas I would expect coroutines to close (on close method) with GeneratorExit [Ive not

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-03-13 Thread Jean-Charles Lefebvre
Jean-Charles Lefebvre added the comment: Well, just in case, I've attached the patch to apply against 3.5.0a2. -- Added file: http://bugs.python.org/file38469/python-3.5.0a2-fdvalidation.patch ___ Python tracker rep...@bugs.python.org

[issue23645] Incorrect doc for __getslice__

2015-03-13 Thread Alex Shkop
Alex Shkop added the comment: This is true. In ceval.c default value for end index is PY_SSIZE_T_MAX. Whereas in sysmodule.c defined: SET_SYS_FROM_STRING(maxsize, PyInt_FromSsize_t(PY_SSIZE_T_MAX)); SET_SYS_FROM_STRING(maxint,

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-13 Thread James Rutherford
James Rutherford added the comment: Hi all, apologies for the spam, but I just wanted to confirm that no-one is waiting on anything from me... I'm happy to consolidate the final minor points make the patch against python3 if that would simplify things. --

Re: generator/coroutine terminology

2015-03-13 Thread Marko Rauhamaa
Rustom Mody rustompm...@gmail.com: Nice demo of the same confusing terminology we are talking about. Why don't you just stick with the terminology of the language specification? I think your students are going to be more confused if you try to come up with something better. When I say expect

Re: Python3 pickle vs. stdin/stdout - unable to get clean byte streams in Python 3

2015-03-13 Thread Steven D'Aprano
John Nagle wrote: I'm starting to think that the cpickle module, which Python 3 uses by default, has a problem. After the program has been running for a while, I start seeing errors such as File C:\projects\sitetruth\InfoSiteRating.py, line 200, in scansite if

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-13 Thread STINNER Victor
STINNER Victor added the comment: I don't understand your benchmark. Do you mean that os.walk() is slower with fast_bottom-up.patch because islink() is called or because I replaced for entry in scandir(top): with entry = next(scandir_it)? Are you testing the top-bottom or bottom-up? Here is

Re: generator/coroutine terminology

2015-03-13 Thread Chris Angelico
On Fri, Mar 13, 2015 at 4:28 PM, Rustom Mody rustompm...@gmail.com wrote: And even there I would expect generators to close with StopIteration Whereas I would expect coroutines to close (on close method) with GeneratorExit [Ive not thought all this through properly so may be off the mark] I

Re: My emails are getting bounced?

2015-03-13 Thread Zachary Ware
On Thu, Mar 12, 2015 at 4:56 PM, Ryan Gonzalez rym...@gmail.com wrote: I'm posting this here because I have no clue who the heck the mailing list manager is. I got this message: Your membership in the mailing list Python-ideas has been disabled due to excessive bounces The last bounce

Re: Code hosting providers

2015-03-13 Thread Steven D'Aprano
Chris Angelico wrote: It's worth noting, by the way, that sometimes it's worth using a non-federated service. I host most of my projects on GitHub, because the git repo is the part that's most important to me. I don't heavily use the bug tracker attached to any of those projects, nor the

[issue23656] shutil.copyfile (or built-in open) releases sqlite3's transaction lock

2015-03-13 Thread Hiroaki Miyajima
New submission from Hiroaki Miyajima: When copying sqlite3's database file by shutil.copyfile while holding its transaction lock, its lock is released unexpectedly. Attached is a sample program showing this. Inside, process-1 and process-2 just do following steps respectively: (1) open a

Re: Code hosting providers

2015-03-13 Thread Chris Angelico
On Fri, Mar 13, 2015 at 4:17 PM, Paul Rubin no.email@nospam.invalid wrote: Thanks for that informative post: I've been uncomfortable with the reach of Github and you've done a good job explaining the reasons. I personally use self-hosted git repositories on cheap VPS servers which is easy to

  1   2   >