[issue10379] locale.format() input regression

2013-04-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 02, 2013, at 03:04 PM, Eric V. Smith wrote: >I think it would be a bug fix and thus should be backported. It's not like >we'd be breaking any working code, unless it was expecting the exception. That would

[issue17621] Create a lazy import loader mixin

2013-04-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17621> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17579] socket module in 2.7.4 raises error instead of gaierror in 2.7.3

2013-04-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, so this is not a Python problem, but an Ubuntu problem. It's also not a problem with Ubuntu's version of Python. I can reproduce it on Ubuntu 13.04 with hg trunk, but not Debian Wheezy with hg trunk. Closing as invalid and will investigate

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17630> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17636> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17685] Frozenset literal?

2013-04-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17685> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15657] Error in Python 3 docs for PyMethodDef

2013-04-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I just ran into this too. -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue15657> ___ ___ Python-bugs-list mailin

[issue15657] Error in Python 3 docs for PyMethodDef

2013-04-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: We should fix the code for 3.2 through 3.4, but change the docs for 3.2 and 3.3 to remove the parenthetical note. For 3.4 we can leave the parenthetical note but say this is new in 3.4 (or maybe, that it doesn't actually work in some versions <

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-04-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17012> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-04-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: >From a documentation standpoint, path='' is not the same as "When no path is >specified", so indeed it should return None when path=''. Serhiy's patch >looks good to me. -- _

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-04-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: -> barry ___ Python tracker <http://bugs.python.org/issue17012> ___ ___ Python-bugs-list mailing list Unsubscri

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-04-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue17012> ___ ___ Python-bugs-list mai

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-04-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Serhiy, I'd say go ahead and commit it. +1 from me. -- ___ Python tracker <http://bugs.python.org/issue17012> ___ ___

[issue17750] allow the testsuite to run in the installed location

2013-04-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17750> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17712] test_gdb failures

2013-04-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry, doko ___ Python tracker <http://bugs.python.org/issue17712> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17712] test_gdb failures

2013-04-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Possibly this issue: Possibly this issue: https://bugzilla.redhat.com/show_bug.cgi?id=312011 I'm seeing tons of this on Ubuntu 13.04. -- ___ Python tracker <http://bugs.python.org/is

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-04-16 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: socket.gethostbyname('sadflkjsasf.i.nvali.d') gives a TimeoutError instead of an IOError on Ubuntu 13.04, causing the test to fail. % ./python -m unittest test.test_urllibnet .E../home/barry/projects/python/cpython/Lib/test/test_urlli

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-04-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I couldn't wait. :) -- assignee: serhiy.storchaka -> barry ___ Python tracker <http://bugs.python.org/issue17012> ___ _

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-04-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue17012> ___ ___ Python-bugs-list

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-04-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 16, 2013, at 03:26 PM, R. David Murray wrote: >I can't see how this could be classed as a bug in Python. An invalid domain >should quickly return a DNS error on a correctly configured operating system, >which is what the test is tes

[issue17788] Add a with expression, for use in comprehensions

2013-04-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17788> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: As described here: http://www.wefearchange.org/2013/04/python-3-language-gotcha-and-short.html the following code will produce an UnboundLocalError when the exception is triggered: def bad(): e = None try: do_something() except

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 19, 2013, at 12:01 AM, Ezio Melotti wrote: > >Maybe we could raise a warning when the deleted name already exists in the >local namespace? Ideally, I think a SyntaxError if you could detect a previously bound name in the namespace being u

[issue4617] SyntaxError when free variable name is also an exception target

2013-04-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue4617> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 19, 2013, at 12:37 AM, R. David Murray wrote: >And what if it weren't a print statement? An error is better than a >"randomly" changed value, I think. I'm really not sure there is anything we >can do here, beyond Ezio

[issue17800] Expose __del__ when tp_del is populated from C code

2013-04-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17800> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Ezio, the problem with your patch is that it also gives a warning on this code, which is totally safe: def good(): exc = None try: bar(int(sys.argv[1])) except KeyError as e: print('ke') exc = e except Value

[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-04-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17843> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17827] Document codecs.encode and codecs.decode

2013-04-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17827> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17828] More informative error handling when encoding and decoding

2013-04-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17828> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17839] base64 module should use memoryview

2013-04-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17839> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17853] Conflict between lexical scoping and name injection in __prepare__

2013-04-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17853> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17872] Crash in marshal.load() with bad reader

2013-04-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17872> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-05-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue15535> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17921] explicit empty check instead of implicit booleaness

2013-05-08 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17921> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17941] namedtuple should support fully qualified name for more portable pickling

2013-05-09 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17941> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17961> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 12, 2013, at 10:57 AM, Nick Coghlan wrote: >I encountered an interesting suggestion [1] regarding the enum.Enum >convenience API: use the member names as their values, rather than the >current integers starting from one. > >Since

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 12, 2013, at 8:35 PM, Ethan Furman wrote: > Ethan Furman added the comment: > > The class syntax (and default Enum) no longer have preferential treatment for > integers (even __int__ is gone); so it is completely up to us as what should

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 13, 2013, at 10:10 AM, Antoine Pitrou wrote: >I agree with Nick here, there's no reason to auto-number constants in >Python. This is not C :-) Why should they be strings? Why not object()? Why is `x.value == str(x)` a useful invari

[issue17966] Lack of consistency in PEP 8 -- Style Guide for Python Code

2013-05-13 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17966> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17966] Lack of consistency in PEP 8 -- Style Guide for Python Code

2013-05-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: It's not *particularly* silly[1], but I think that with Government backing, he could make it very silly. [1] I mean, the right hand side isn't silly at all and the left hand side merely does a forward aerial half turn every alternative

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-13 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 12, 2013, at 06:51 AM, Nick Coghlan wrote: >>>> class Shape(Enum): >... square = 2 >... diamond = 1 >... circle = 3 >... alias_for_square = square I see Guido pronounced against it, but I'm just registering that I

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 13, 2013, at 02:06 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >> >I agree with Nick here, there's no reason to auto-number constants >> >in >> >Python. This is not C :-) >> >

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 13, 2013, at 02:24 PM, Nick Coghlan wrote: >Yep. Since we no longer have a compelling reason for it to be anything >else, it may as well be the human readable string. Again, why does it matter? That's the whole point of having a human r

[issue17941] namedtuple should support fully qualified name for more portable pickling

2013-05-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: LGTM too. Needs test and docs. -- ___ Python tracker <http://bugs.python.org/issue17941> ___ ___ Python-bugs-list mailin

[issue17954] Support creation of extensible enums through metaclass subclassing

2013-05-13 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17954> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17974] Migrate unittest to argparse

2013-05-14 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17974> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17977] urllib.request.urlopen() cadefault argument is documented with wrong default value

2013-05-14 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: The docs[1] say: .. function:: urlopen(url, data=None[, timeout], *, cafile=None, capath=None, cadefault=True) The code[2] says: def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, *, cafile=None, capath=None, cadefault=False

[issue17977] urllib.request.urlopen() cadefault argument is documented with wrong default value

2013-05-14 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue17977> ___ ___ Python-bugs-list

[issue17978] Python crashes if Py_Initialize/Py_Finalize are called multiple times

2013-05-14 Thread Romulo A. Ceccon
New submission from Romulo A. Ceccon: I have patched (see attachment) Python 2.7.4 (as available for download at python.org/download) to disable initialization of Unicode (an embeded system requirement) and now it segfaults with the following program: #include int main(int argc

[issue17978] Python crashes if Py_Initialize/Py_Finalize are called multiple times

2013-05-14 Thread Romulo A. Ceccon
Romulo A. Ceccon added the comment: I've made some further investigation on this issue. Here's the output and the stack trace using --with-pydebug (and the attached patch applied): run no. 0 [8766 refs] free_list[0]->ob_refcnt before XDECREF: 2 run no. 1

[issue13146] Writing a pyc file is not atomic

2013-05-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue13146> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8604] Adding an atomic FS write API

2013-05-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue8604> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8604] Adding an atomic FS write API

2013-05-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Of course, I have my own atomic-rename thing, but I'm not going to post the code here. It's fairly limited to my own use case and I have no interest in making it cross platform. That being said, I personally found that a context manager with a

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-05-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17222> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-05-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Antoine says: > Ah, right. Well, there would be an argument not to use os.replace() in > py_compile, since it's an offline processing step which generally > shouldn't race with another (online) processing step. But I think that's not

[issue13146] Writing a pyc file is not atomic

2013-05-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +doko ___ Python tracker <http://bugs.python.org/issue13146> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13146] Writing a pyc file is not atomic

2013-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Proposed patch for 2.7 -- Added file: http://bugs.python.org/file30324/13146-2.7.patch ___ Python tracker <http://bugs.python.org/issue13

[issue13146] Writing a pyc file is not atomic

2013-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm re-opening this because I'd like to get RM pronouncement on applying a patch to 2.7, 3.2, and 3.3 to make py_compile.py atomically rename its pyc/pyo file. Attached is a patch for 2.7 based on importlib's approach in 3.4. It should be

[issue13146] Writing a pyc file is not atomic

2013-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Oh btw, if Georg and Benjamin deny this for the stable releases, I'll very likely patch the Ubuntu versions anyway. -- ___ Python tracker <http://bugs.python.org/is

[issue13146] Writing a pyc file is not atomic

2013-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 20, 2013, at 09:52 PM, Antoine Pitrou wrote: >Some people already complained about this change. I'm not sure it's fit for a >bugfix release. http://bugs.python.org/issue17222 Yeah, but that's a crazy use case. :) >Besides

[issue13146] Writing a pyc file is not atomic

2013-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 20, 2013, at 09:57 PM, Charles-François Natali wrote: >IIRC, os.rename() will fail on Windows if the target file already exists. >That's why os.replace() was added. Ah, that's probably a more serious blocker for adding it to upstream Py

[issue7434] general pprint rewrite

2013-05-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue7434> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11959] smtpd cannot be used without affecting global state

2013-05-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue11959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22597> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22627] Calling timestamp() on a datetime object modifies the timestamp of a different datetime object.

2014-10-13 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22627> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21189] Broken link to patch

2014-10-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I changed the link to point here: https://docs.python.org/devguide/patch.html -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue22680] unittest discovery is fragile

2014-10-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22680> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2014-11-06 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: I'm classifying this as a security issue, since using uuid_generate_time() -- i.e. the not _safe() variety -- does return collisions in real world cases that we've seen, and those could have security implications. However, I don't know t

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

2014-11-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 06, 2014, at 08:10 PM, Alex Gaynor wrote: >FWIW, I'm not convinced the pure python fallback code is sufficient either; >time.time() doesn't have the necessary resolution AFAIK? Also clock_seq is >generated using the random module'

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2014-11-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22636> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22869] Split pylifecycle.c out from pythonrun.c

2014-11-14 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22869> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22914] Rewrite of Python 2/3 porting HOWTO

2014-11-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22914> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-11-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22966> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll take this one. I think it should be easy to add a test case, which I'll do. -- assignee: -> barry ___ Python tracker <http://bugs.pytho

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue22966> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Not counting importlib.h, here's the diff I'm going to apply to 3.4. It passes all the existing tests and includes a new test for this behavior. -- Added file: http://bugs.python.org/file37339/22966.txt

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue22966> ___ ___ Python-bugs-list

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I already pushed a fix. http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.4/builds/702/steps/test/logs/stdio (although asyncio is still failing there but that should be unrelated) -- status: open -> clo

[issue22995] Restrict default pickleability

2014-12-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue22995> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22848] Subparser help does not respect SUPPRESS argument

2014-12-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Targetting to 3.5 and nosying myself. It would be nice if it were possible to suppress the help of an entire subparser, but I took a quick look at the code and it seems tricky. -- nosy: +barry versions: +Python 3.5 -Python 2.7

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-14 Thread Andrej A Antonov
Andrej A Antonov added the comment: @demian.brecht , your example code-fragment is too big. :-) too many lines -- just only for adding "timeout". it is uncomfortably. most people will not using that: most likely they just will forget about "timeout" (but in *MOST*

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-15 Thread Andrej A Antonov
Andrej A Antonov added the comment: @demian.brecht , socket.setdefaulttimeout([timeout]) -- it is bad practice, because setting this global varible we may spoil other cases. example "TCP keepalive" [ s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, true) ] and global variab

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-15 Thread Andrej A Antonov
Andrej A Antonov added the comment: ok, let's go to other side of this problem: question: why default transport (xmlrpc.client.Transport()) is not setting value of timeout?`` answer: because *unknown* which value need to using by default. in various cases programmer need various ti

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-15 Thread Andrej A Antonov
Andrej A Antonov added the comment: >> if you NOT point timeout in "RPC-client" -- you program will freeze or will >> maked resource leak (with small probability). > Assuming a lack of concurrency, your program will indeed freeze until the > system timeout has been

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Andrej A Antonov
Andrej A Antonov added the comment: I just will write next code-fragment: import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP) s.connect(('python.org', 80)) print( 'is my operation system using (by default) "tcp

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Andrej A Antonov
Andrej A Antonov added the comment: >> in GNU/Linux "system timeout has been reached" -- means that system timeout >> will *never* reached. > That's quite likely because the system limits may be very large. I tested system-timeout GNU/Linux (on various computer

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Andrej A Antonov
Andrej A Antonov added the comment: @demian.brecht , for high probably to catch *infinite_freeze* (at GNU/Linux) -- if we may will run requests of "xmlrpc.client.ServerProxy" -- parallely: (when running next code -- need to make some network-disconnections on "network-

Re: [issue22980] C extension naming doesn't take bitness into account

2014-12-16 Thread M.-A. Lemburg
nough to need to appear in the tag. Antoine has a point there. Together with the problems I mentioned with non-mainstream platforms, it would be better to use a compile time definition of the platform tag as you've chosen for Windows. PEP 425 unfortunately ignores the mentioned problems of get_pl

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Andrej A Antonov
Andrej A Antonov added the comment: good patch (issue14134.patch) ! thanks! -- ___ Python tracker <http://bugs.python.org/issue14134> ___ ___ Python-bugs-list m

[issue23077] PEP 1: Allow Provisional status for PEPs

2014-12-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Dec 31, 2014, at 01:54 AM, Nick Coghlan wrote: >As we've started working through the post-release PEP 440 changes, I think >this is definitely worthy of a separate PEP. I'm open to discussion and ideas, but I want to caution against sprea

[issue23149] Typo in PEP-0008 - "this PEP do not"

2015-01-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue23149> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23189] Set docstrings to empty string when optimizing with -OO.

2015-01-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That's a backward compatibility break since existing code may be expecting None. At least it needs to be carefully considered, and should have no possibility of be applied to anything before Python 3.5. -- nosy: +barry versions: -Python 2.7, P

[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2015-01-13 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue23228> ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: [issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-14 Thread M.-A. Lemburg
Adding a note to the documentation is fine. The .reset() method doesn't have anything to do with the underlying stream. It's only meant to work at the codec level and needed for codecs that keep internal state. -- Marc-Andre Lemburg

Re: [issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2015-01-15 Thread M.-A. Lemburg
te(self, object): +self.stream.write(self._encoder.encode(object)) + +def reset(self): +self.stream.write(self._encoder.encode(final=True)) + Note that the doc-string mentions a non-existing attribute and there are doc-string missing for the other methods. The purpose appears to be a Strea

[issue23342] run() - unified high-level interface for subprocess

2015-01-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue23342> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23399] venv should create relative symlinks where possible

2015-02-05 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: There is a subtle behavior difference between virtualenv and pyvenv. When you create a venv with virtualenv, the symbolic links files /bin are relative, while they are absolute with pyvenv. This means that virtual environments created with virtualenv can

<    18   19   20   21   22   23   24   25   26   >