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

2013-11-01 Thread eaducac
eaducac added the comment: Hi all, I ran into this problem myself today with 3.3.2 and I thought I'd provide some more detail on what's going on. As has been described, prior to VC11, fileno(stdin) returned -2 in applications with no console, so is_valid_fd() was properly rejecting it and the

[issue13637] binascii.a2b_* functions could accept unicode strings

2013-11-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Antoine, I think you forgot to update the doc. http://docs.python.org/3.4/library/binascii.html#binascii.unhexlify Changed in version 3.2: Accept only bytestring or bytearray objects as input. Attached the patch to update the doc to reflect the changes in this t

[issue19398] test_trace fails with -S

2013-11-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch to accommodate Terry J. Reedy's request. -- Added file: http://bugs.python.org/file32460/remove_extra_slash_from_sys_path_v2.patch ___ Python tracker

[issue19411] binascii.hexlify docs say it returns a string (it returns bytes)

2013-11-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch to fix the doc. I also fix the module doc because I think bytes and str data types are matter of life and death in this binascii module. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file32459/fix_doc_binascii.p

[issue19411] binascii.hexlify docs say it returns a string (it returns bytes)

2013-11-01 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue15809] IDLE console uses incorrect encoding.

2013-11-01 Thread Geraldo Xexeo
Geraldo Xexeo added the comment: The same program will behave different in Windows and Mac. utf-8 works on Mac (10.6.8), cp1256 does not print some lines cp1256 works on Windows 7, utf-8 prints some characters in a wrong way For the record, I use accentuated letters from Portuguese alphabet (

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Ned Deily
Ned Deily added the comment: Without digging deeper, I'd be a little cautious about using a test involving sys.executable and shutil.which. sys.executable in the past at least was not always what you might think in certain cases with OS X framework installs. -- __

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Nick Coghlan
Nick Coghlan added the comment: The "install everything" approach is OK for Windows and virtual environments. The challenge is the shared bin directories on *nix systems. Perhaps pip itself could be updated such that it installs the bare "pip" only if sys.executable matches shutil.which("python"

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Donald Stufft
Donald Stufft added the comment: Attached is the second combined2 patch with Ned's feedback incorporated. For anyone testing this the patch does not contain the binary files which can be found at https://github.com/dstufft/cpython/blob/ensurepip/Lib/ensurepip/_bundled/. -- Added file:

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Donald Stufft
Donald Stufft added the comment: Oh nevermind, I understand now. I misread the statement. I can do that. -- ___ Python tracker ___ ___

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Donald Stufft
Donald Stufft added the comment: Oh one thing, I can't move anything out of _run_pip because the part you're referring to is actually modifying the sys.path. If I move it then I can't prevent the tests from having side effects. -- ___ Python tracker

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Donald Stufft
Donald Stufft added the comment: The .pya thing is an experimental extension type that setuptools added that just got missed during the new features to generate scripts during wheel install vs wheel build time. I opened a bug to remove that and it'll be gone before 1.5 is released. I can fix

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Ned Deily
Ned Deily added the comment: Just for the record, here's what the installed ./lib/python3.4/site-packages looks like after ensurepip has run: -rw-r--r-- 1 nad pyd 119 Nov 1 15:20 README drwxr-x--- 2 nad pyd 204 Nov 1 15:21 __pycache__/ drwxr-x--- 3 nad pyd 170 Nov 1 1

[issue19456] ntpath doesn't join paths correctly when a drive is present

2013-11-01 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Ned Deily
Ned Deily added the comment: I suppose the changes could be isolated to just ensurepip if it used a temporary dir for the scripts and then moved the appropriate ones itself to the standard scripts directory. -- ___ Python tracker

[issue19406] PEP 453: add the ensurepip module

2013-11-01 Thread Ned Deily
Ned Deily added the comment: Here are my review comments (sorry, no Rietveld): ensurepip/__init__.py - Why have the separate _run_pip function? It would be simpler and less confusing to just merge run_pip into bootstrap and eliminate the extra for loop. Both depend on th

[issue19451] urlparse accepts invalid hostnames

2013-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 3.4 urllib.parse.urlparse doc says "The module has been designed to match the Internet RFC on Relative Uniform Resource Locators. It supports the following URL schemes: ". To me, 'support' means 'accept every valid URL for the particular scheme' but not n

[issue19417] Add tests for bdb (previously not tested)

2013-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does all of the code for say, BdbTestCase.setUp, need to be repeated for each test method, versus being put in a .setUpClass method to be executed just once for all the methods in BdbTestCase. -- ___ Python tracker

[issue19417] Add tests for bdb (previously not tested)

2013-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is the patch against 3.4? I am not sure if we backport new test files. -- components: +Tests nosy: +terry.reedy stage: -> patch review title: bdb test coverage -> Add tests for bdb (previously not tested) type: -> enhancement versions: +Python 3.4 ___

[issue19398] test_trace fails with -S

2013-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The test should use the more specific assertXyz method: self.assertIn("pprint.cover", files) The error message would then be the more informative AssertionError: 'pprint.cover' not found in -- nosy: +terry.reedy ___

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-01 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file32456/modulespec-primary-changes.diff ___ Python tracker ___ ___ Python-bugs-l

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-01 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file32457/modulespec-primary-changes.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-01 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file32408/modulespec-primary-changes.diff ___ Python tracker ___ ___ Python-bugs-l

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-01 Thread Eric Snow
Eric Snow added the comment: Here's a new patch that is mostly up to date with the PEP. I still need to work on Docs and add more tests. There are a few failing tests (due to the recent reload patch) that I need to fix when I get a minute. This patch also implements find_spec() on FileFinder

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2013-11-01 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's a patch which adds support for the `n` value of the flag. It makes the dbm consistent across implementations and it's thus more reliable. Also, attached a script which replicates the problem for Windows (where dbm.dumb is used). My output (after a couple

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2013-11-01 Thread Claudiu.Popa
Claudiu.Popa added the comment: And the patch. -- keywords: +patch Added file: http://bugs.python.org/file32455/dbm_dumb_open.patch ___ Python tracker ___ ___

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I understand Guido's message, he reopened this to consider adding a new parameter. Given an existing csv file like that given, either Tim's solution or try: parse with microseconds except ValueError: parse without should work. -- nosy: +terry.reedy

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2013-11-01 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Marc Liyanage
Marc Liyanage added the comment: Great to hear that this is mostly supported in 3.4. I would definitely like to see the small change added that lets me insert a string before the leading slash. It would also be helpful to have it in Python 2.7 as well. --

[issue19385] dbm.dumb should be consistent when the database is closed

2013-11-01 Thread Claudiu.Popa
Changes by Claudiu.Popa : Added file: http://bugs.python.org/file32453/dbm_dumb1.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: Although it is undocumented, in python 3.4 you can control the prefix used by doing multiprocessing.current_process()._config['semprefix'] = 'myprefix' in the main process at the beginning of the program. Unfortunately, this will make the full prefix '/m

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Marc Liyanage
Marc Liyanage added the comment: >From the description above, I would guess shared memory names as well, but I >don't know which parts of the Python library use those, if any. In general, it's easy to adjust the Python code to deal with the restriction of the sandboxed environment (mostly file

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Ned Deily
Ned Deily added the comment: I don't have any experience using OS X sandboxing yet but I wonder whether there are other instances of semaphores or other resources used elsewhere in the standard library that would benefit from a common solution. -- _

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Marc Liyanage
Marc Liyanage added the comment: I'm thinking something along the lines of char *env = Py_GETENV("PYTHONSEMAPHOREPREFIX"); if (env && *env != '\0') { PyOS_snprintf(buffer, sizeof(buffer), "%s/mp%ld-%d", env, (long)getpid(), counter++); } else { PyOS_snprintf(buffer,

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Marc Liyanage
Marc Liyanage added the comment: "leasing" -> "leading" -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module

2013-11-01 Thread Marc Liyanage
New submission from Marc Liyanage: I'm running Python 2.7 in a sandboxed OS X app. There are restrictions on the naming of POSIX semaphores when running in the sandbox. Specifically, there is a mandatory prefix. I would like the ability to inject this prefix into the part of the multiprocessi

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread R. David Murray
R. David Murray added the comment: I suppose in an ideal world the csv module would have some sort of hookable serialization protocol, like the database modules do :) -- ___ Python tracker

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Skip Montanaro
Skip Montanaro added the comment: The ultimate culprit here is actually the csv module. :-) It calls str() on every element it's about to write. In my applications which write to CSV files I can special case datetime objects. I will stop swimming upstream. --

[issue19477] document tp_print() as being dead in Py3

2013-11-01 Thread Stefan Behnel
New submission from Stefan Behnel: The "tp_print" slot is still documented as it was in Py2, although it is no longer used in Py3. http://docs.python.org/3.4/c-api/typeobj.html?highlight=tp_print#PyTypeObject.tp_print Given that it no longer serves any purpose, it should at least be deprecated

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Guido van Rossum
Guido van Rossum added the comment: Well, I don't know if this sways anything, but I was probably responsible, and I think my argument was something about not all timestamp sources having microseconds, and not wanting to emit the ".00" in that case. If I could go back I'd probably do somet

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Tim Peters
Tim Peters added the comment: I don't know, Skip. Since `.isoformat()` and `str()` have *always* worked this way, and that was intentional, it's probably going to take a strong argument to change either. -- ___ Python tracker

[issue17621] Create a lazy import loader mixin

2013-11-01 Thread Brett Cannon
Brett Cannon added the comment: Won't work until PEP 451 code lands and lets us drop __package__/__loader__ checking/setting post-load. -- dependencies: +Implementation for PEP 451 (importlib.machinery.ModuleSpec) ___ Python tracker

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Skip Montanaro
Skip Montanaro added the comment: Okay, so no to __str__. What about isoformat? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Tim Peters
Tim Peters added the comment: The decision to omit microseconds when 0 was a Guido pronouncement, back when datetime was first written. The idea is that str() is supposed to be friendly, and for the vast number of applications that don't use microseconds at all, it's unfriendly to shove ".000

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2013-11-01 Thread Christian Heimes
Christian Heimes added the comment: New information on NIST's hash forum strongly suggest that NIST is going to standardize SHA-3 according to the original proposal with c=2n and Sakura padding as well as two SHAKEs with variable length output. SHA3-224 with c=448 SHA3-256 with c=512 SHA3-384

[issue18809] Expose mtime check in importlib.machinery.FileFinder

2013-11-01 Thread Brett Cannon
Brett Cannon added the comment: So I tried extracting out the check by implementing a path_mtime() method on FileFinder, but then I realized it would simply be easier to abstract out _os.stat() to _path_stat() and let people cache stat calls at the global level, which would have a side-effect

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread R. David Murray
R. David Murray added the comment: It's not my conclusion. It's Guido's and the other developers who designed datetime. Argue with them. (I'd guess it would be better argued on python-ideas rather than python-dev, but use your own judgement.) -- status: open -> closed _

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Skip Montanaro
Skip Montanaro added the comment: I don't accept your conclusion. I understand that making %S consume microseconds or ".%f" be "optional" would be a load. What's the problem with forcing __str__ and isoformat to emit microseconds in all cases though? That would allow you to parse what they pro

[issue19476] Add a dedicated specification for module "reloading" to the language reference

2013-11-01 Thread Eric Snow
New submission from Eric Snow: In recent PEP 451-related discussions, the subject of reloading has come up multiple times. Most recently, PJE suggested that reload semantics are under-specified (and under-tested). [1][2] It may be worth adding a dedicated section on reloading to the reference

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread R. David Murray
R. David Murray added the comment: It may be simple but as Ezio has pointed out, it has already been rejected :) The problem with being generous in what you accept in this context is that the parsing is using a specific format string, and the semantics of that format string are based on extern

[issue19471] pandas DataFrame access results in segfault

2013-11-01 Thread Ned Deily
Ned Deily added the comment: Googling around a bit, there was another report of this problem that includes OS X crash stack traces. The crash there occurred in umath.so, a part of Numpy and that leads to a now-resolved bug in Numpy. https://github.com/pydata/pandas/issues/5396 https://github.

[issue19471] pandas DataFrame access results in segfault

2013-11-01 Thread Ned Deily
Ned Deily added the comment: No, this does not fit the signature of Issue18458, which is fixed in 2.7.6rc1 anyway. On the other hand, it is not likely that this is a problem in Python or its standard library. Pandas uses numpy and other third-party packages that contain C code. It's much mo

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Ezio Melotti
Ezio Melotti added the comment: See #7342. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue19475] Inconsistency between datetime's str()/isoformat() and its strptime() method

2013-11-01 Thread Skip Montanaro
New submission from Skip Montanaro: I have a CSV file. Here are a few rows: "2013-10-30 14:26:46.000528","1.36097023829" "2013-10-30 14:26:46.999755","1.36097023829" "2013-10-30 14:26:47.999308","1.36097023829" "2013-10-30 14:26:49.002472","1.36097023829" "2013-10-30 14:26:50","1.36097023829" "2

[issue19448] SSL: add OID / NID lookup

2013-11-01 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the feed back! The new patch implements a class with two additional class methods. The low level functions are no longer part of the public API. -- Added file: http://bugs.python.org/file32451/ssl_asn1obj2.patch ___

[issue19331] Revise PEP 8 recommendation for class names

2013-11-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks Ethan, your latest patch is wonderful. Applied! -- ___ Python tracker ___ ___ Python-bugs-l

[issue19331] Revise PEP 8 recommendation for class names

2013-11-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: -python-dev resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue19331] Revise PEP 8 recommendation for class names

2013-11-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a40d4eaa00b by Barry Warsaw in branch 'default': Ethan Furman's latest patch for Issue 19331. http://hg.python.org/peps/rev/1a40d4eaa00b -- nosy: +python-dev ___ Python tracker

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-11-01 Thread paul j3
paul j3 added the comment: Just hang on the Action object that the `add_argument` returned, and change its `help` attribute. a = parser.add_argument('--foo', help='initial help') a.help = 'new help' If using a custom parser class and subclass, I'd do something like: self.

[issue16500] Add an 'atfork' module

2013-11-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: It is a recent kernel and does support pipe2(). After some debugging it appears that a pipe handle created in Popen.__init__() was being leaked to a forked process, preventing Popen.__init__() from completing before the forked process did. Previously the tes

[issue19439] Build _testembed on Windows

2013-11-01 Thread Zachary Ware
Zachary Ware added the comment: That appears to be the case: """ P:\Projects\OSS\Python\cpython\ $ chcp Active code page: 437 P:\Projects\OSS\Python\cpython\ $ PCbuild\python_d.exe Python 3.4.0a4+ (default:995173ed248a+, Nov 1 2013, 09:12:43) [MSC v.1600 32 bit (Intel)] on win32 Type "help",

[issue19473] Expose cache validation check in FileFinder

2013-11-01 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> duplicate status: open -> closed superseder: -> Expose mtime check in importlib.machinery.FileFinder ___ Python tracker ___

[issue19465] selectors: provide a helper to choose a selector using constraints

2013-11-01 Thread Charles-François Natali
Charles-François Natali added the comment: Of course, when I have 300 connections to remote nodes, I use poll() to multiplex between them. But there are times when you can have a large number of threads running concurrently, and if many of them call e.g. subprocess.check_output() at the same tim

[issue16500] Add an 'atfork' module

2013-11-01 Thread STINNER Victor
STINNER Victor added the comment: The PEP 446 does not offer any warranty on the atomicity on clearing the inheritable flag. -- ___ Python tracker ___ ___

[issue10197] subprocess.getoutput fails on win32

2013-11-01 Thread Tim Golden
Tim Golden added the comment: Patched according to Nick Coghlan's suggestion in http://bugs.python.org/issue9922#msg150093. Ad hoc tests look ok on Windows. I'll add tests & look at *nix later. -- Added file: http://bugs.python.org/file32450/issue10197.diff ___

[issue19437] More failures found by pyfailmalloc

2013-11-01 Thread STINNER Victor
STINNER Victor added the comment: I don't have the gdb trace anymore but it was really a crash. -- ___ Python tracker ___ ___ Python-b

[issue19465] selectors: provide a helper to choose a selector using constraints

2013-11-01 Thread Guido van Rossum
Guido van Rossum added the comment: Hm. If you really are going to create 300 instances, you should probably use asyncio. Otherwise, how are you going to multiplex them? Create 300 threads each doing select() on 1 FD? That sounds like a poor architecture and I don't want to bend over backwards to

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-11-01 Thread Brett Cannon
Brett Cannon added the comment: I'm going to go ahead and close this. I think the optimistic change is the only one worth making since it's backwards-compatible. -- ___ Python tracker _

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-11-01 Thread Brett Cannon
Brett Cannon added the comment: Wrong issue -- dependencies: -Restore empty string special casing in importlib.machinery.FileFinder ___ Python tracker ___ _

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-11-01 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19410] Restore empty string special casing in importlib.machinery.FileFinder

2013-11-01 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19410] Restore empty string special casing in importlib.machinery.FileFinder

2013-11-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17d730d37b2f by Brett Cannon in branch 'default': Issue #19410: Put back in special-casing of '' for http://hg.python.org/cpython/rev/17d730d37b2f -- nosy: +python-dev ___ Python tracker

[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Robert Xiao
Robert Xiao added the comment: Russell, that's not related to readline. Please file a new bug report. -- ___ Python tracker ___ ___ Py

[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Robert Xiao
Changes by Robert Xiao : Removed file: http://bugs.python.org/file32320/readline.so ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19474] Argument Clinic causing compiler warnings about uninitialized variables

2013-11-01 Thread Brett Cannon
New submission from Brett Cannon: In the curses module there are some variables that can go uninitialized which are causing clang to complain: /Users/bcannon/Repositories/cpython/default/Modules/_cursesmodule.c:624:17: warning: variable 'x' is used uninitialized whenever 'if' condition i

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-11-01 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Restore empty string special casing in importlib.machinery.FileFinder ___ Python tracker ___

[issue19385] dbm.dumb should be consistent when the database is closed

2013-11-01 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's the new version which addresses your last comment. Regarding the first issue, I don't believe that the result will be as readable (but I agree with you that it will be better). For instance, `items` will probably look like this: try: return [(

[issue16500] Add an 'atfork' module

2013-11-01 Thread Charles-François Natali
Charles-François Natali added the comment: > Given PEP 446 (fds are now CLOEXEC by default) I prepared an updated patch > where the fork lock is undocumented and subprocess no longer uses the fork > lock. (I did not want to encourage the mixing of threads with fork() without > exec() by expos

[issue19470] email.header.Header - should not allow two newlines in a row

2013-11-01 Thread R. David Murray
R. David Murray added the comment: I'm not sure how appropriate it is to "validate" a header using the Header object. Header is for *composing* internationalized headers, and does no validation to speak of. However, if you'd like to write a patch to add this check, I would probably commit it

[issue10197] subprocess.getoutput fails on win32

2013-11-01 Thread Tim Golden
Changes by Tim Golden : -- assignee: -> tim.golden versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[issue19331] Revise PEP 8 recommendation for class names

2013-11-01 Thread Nick Coghlan
Nick Coghlan added the comment: +1, works for me :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19437] More failures found by pyfailmalloc

2013-11-01 Thread Stefan Krah
Stefan Krah added the comment: Since this is tagged "crash", I'm curious if you managed to crash _decimal. The unhandled return in convert_op_cmp should result in AtrributeError("object does not have a numerator attribute"). The exception that wasn't set in dec_format should result in a wrong e

[issue19464] Remove warnings from Windows buildbot "clean" script

2013-11-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 599b5200ad51 by Tim Golden in branch 'default': Issue #19464 Suppress compiler warnings during clean. Patch by Zachary Ware. http://hg.python.org/cpython/rev/599b5200ad51 -- nosy: +python-dev ___ Python t

[issue19473] Expose cache validation check in FileFinder

2013-11-01 Thread Brett Cannon
New submission from Brett Cannon: People seem to be sensitive enough to stat calls that exposing the cache validation check in FileFinder so it can be overridden to effectively turn it off would be useful to power users. -- components: Library (Lib) messages: 201893 nosy: brett.cannon

[issue19473] Expose cache validation check in FileFinder

2013-11-01 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue16500] Add an 'atfork' module

2013-11-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: Given PEP 446 (fds are now CLOEXEC by default) I prepared an updated patch where the fork lock is undocumented and subprocess no longer uses the fork lock. (I did not want to encourage the mixing of threads with fork() without exec() by exposing the fork loc

[issue19472] inspect.getsource() raises a wrong exception type

2013-11-01 Thread Marco Buttu
New submission from Marco Buttu: I was looking at inspect.getsource(). In Python 3.3 and 3.4 either the docstring and the online doc say it raises a OSError, and in fact: >>> import inspect >>> def foo(): ... pass ... >>> inspect.getsource(foo) Traceback (most recent call last): ...

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-11-01 Thread Artem Ustinov
Artem Ustinov added the comment: Paul, essentialy, what i looking for is to replace the 'help' string of the inherited argument with the new one. If you say it could be changed without any effect so what would be the proper way to do it using argparse? Artem -- _

[issue19465] selectors: provide a helper to choose a selector using constraints

2013-11-01 Thread Charles-François Natali
Charles-François Natali added the comment: There are actually two reasons to choosing poll over epoll/kqueue (i.e. no extra FD): - it's a bit faster (1 syscall vs 3) - but more importantly - and that's the main reason I did it in telnetlib/multiprocessing/subprocess - sometimes, you really don't

[issue18923] Use the new selectors module in the subprocess module

2013-11-01 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file32448/subprocess_selectors-2.diff ___ Python tracker ___ ___ Pytho

[issue19470] email.header.Header - should not allow two newlines in a row

2013-11-01 Thread hhm
Changes by hhm : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Russell Jurney
Russell Jurney added the comment: I have installed 2.7.6 RC1 on OS X 10.9, and this bug still exists. See http://stackoverflow.com/questions/19722580/segfault-11-with-pandas-with-python-v2-7-6-rc1-on-mac-os-x-10-9 -- nosy: +Russell.Jurney ___ Python

[issue19471] pandas DataFrame access results in segfault

2013-11-01 Thread Ezio Melotti
Ezio Melotti added the comment: This is probably a duplicate of #18458. -- nosy: +ezio.melotti, ned.deily, ronaldoussoren resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> interactive interpreter crashes and test_readline fails on OS X 10.9 M

[issue19470] email.header.Header - should not allow two newlines in a row

2013-11-01 Thread Vajrasky Kok
Changes by Vajrasky Kok : -- nosy: +r.david.murray, vajrasky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue19471] pandas DataFrame access results in segfault

2013-11-01 Thread Russell Jurney
New submission from Russell Jurney: Python 2.7.6 RC1 on Mac OS X Mavericks 10.9 results in segfault when accessing a Pandas DataFrame. Same problem as in 2.7.5. See http://stackoverflow.com/questions/19722580/segfault-with-pandas-with-python-v2-7-6-rc1-on-mac-os-x-10-9 -- messages: 20

[issue19470] email.header.Header - should not allow two newlines in a row

2013-11-01 Thread hhm
hhm added the comment: (see also http://bugs.python.org/issue5871) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue19470] email.header.Header - should not allow two newlines in a row

2013-11-01 Thread hhm
New submission from hhm: An email.header.Header object should not allow two consecutive newlines, since this terminates interpretation of headers and starts the body section. This can be exploited by an attacker in a case of user input being used in headers, and validated with the Header objec

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2013-11-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the *preliminary* patch to address R. David Murray's request. It does not address the case where we send raw utf-8 bytes to payload. Maybe we should handle that in different ticket. msg.set_payload(b'\xd0\x90\xd0\x91\xd0\x92') ==> chucks -- Add

  1   2   >